@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-color: #F0F9FF;
  --bg-gradient: linear-gradient(135deg, #F0F9FF, #E0F2FE);
  --text-primary: #0F172A;
  --text-secondary: #64748B;
  --accent-gradient: linear-gradient(135deg, #229ED9 0%, #38BDF8 100%);
  --accent-gradient-hover: linear-gradient(135deg, #38BDF8 0%, #229ED9 100%);
  --accent-shadow: rgba(34, 158, 217, 0.3);
  
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-bg-hover: rgba(255, 255, 255, 0.95);
  --glass-border: #E0F2FE;
  --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  
  /* Layout */
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* 3D background elements */
.bg-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.6;
  animation: float 20s infinite alternate cubic-bezier(0.5, 0, 0.5, 1);
}
.bg-shape-1 {
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  background: rgba(56, 189, 248, 0.2);
  top: -10%;
  left: -10%;
}
.bg-shape-2 {
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  background: rgba(34, 158, 217, 0.15);
  bottom: -20%;
  right: -10%;
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5%, 10%) scale(1.1); }
}

/* Star Background Effect - Hidden for Light Theme */
.stars-bg {
  display: none;
}

/* Star Background Effect */
.stars-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-image: 
    radial-gradient(1.5px 1.5px at 20px 30px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 40px 70px, rgba(255,255,255,0.8), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 150px 150px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 90px 40px, rgba(255,255,255,0.7), rgba(0,0,0,0));
  background-size: 200px 200px;
  opacity: 0.15;
  animation: twinkle 5s linear infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.1; }
  100% { opacity: 0.25; }
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  cursor: pointer;
  animation: navFadeIn 0.8s ease-out;
}

@keyframes navFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.nav-brand-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-logo {
  height: 40px;
  width: auto;
  transition: transform 0.3s ease;
  object-fit: contain;
}

.nav-brand:hover .nav-logo {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.nav-links a:hover, .nav-links a.active {
  color: #229ED9;
  background: rgba(34, 158, 217, 0.05);
}

/* Main Content */
.main-content {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
  width: 100%;
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeInDown 0.8s ease-out;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Trust Bar */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 3rem;
  margin: 0 auto 4rem;
  padding: 1.5rem 2.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  box-shadow: var(--glass-shadow);
  max-width: 950px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

@media (max-width: 768px) {
  .trust-bar {
    border-radius: 20px;
    padding: 1.5rem;
    gap: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Glass Card Component */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--glass-shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
  transform: translateY(-5px);
  background: var(--glass-bg-hover);
  box-shadow: 0 15px 40px 0 rgba(0, 0, 0, 0.08);
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tool-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 20px var(--accent-shadow);
  transition: transform 0.3s ease;
}

.tool-card:hover .tool-icon {
  transform: scale(1.1) rotate(5deg);
}

.tool-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.tool-card p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  flex-grow: 1;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  font-family: 'Outfit', sans-serif;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 8px 20px var(--accent-shadow);
}

.btn-primary:hover {
  background: var(--accent-gradient-hover);
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(34, 158, 217, 0.5);
}

.btn-secondary {
  background: transparent;
  color: #229ED9;
  border: 1px solid #229ED9;
}

.btn-secondary:hover {
  background: rgba(34, 158, 217, 0.05);
  transform: scale(1.05);
  border-color: #229ED9;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.9);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #229ED9;
  background: white;
  box-shadow: 0 0 0 4px rgba(34, 158, 217, 0.1);
}

.form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

/* Custom Select */
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2rem;
  padding-right: 2.5rem;
}

/* Toggles */
.toggle-wrapper {
  display: flex;
  background: #F1F5F9;
  border-radius: 999px;
  padding: 0.35rem;
  margin-bottom: 1rem;
}

.toggle-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  text-align: center;
  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.toggle-btn:hover {
  color: var(--text-primary);
}

.toggle-btn.active {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 12px var(--accent-shadow);
}

/* Tool Layout */
.tool-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Results Card */
.results-card {
  background: rgba(240, 249, 255, 0.85); /* Light blue gradient base with transparency */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 15px 35px rgba(34, 158, 217, 0.08);
}

#result-section {
  display: block;
  opacity: 1;
  visibility: visible;
}

.results-card.show-result {
  display: block;
  animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.results-card h3 {
  color: var(--text-primary);
  margin-bottom: 2rem;
  font-size: 1.75rem;
}

.result-item {
  margin-bottom: 1.5rem;
}

.result-label {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-bottom: 0.25rem;
}

.result-value {
  font-size: 1.75rem;
  font-weight: 700;
}

.result-value.large {
  font-size: 2.5rem;
}

.result-divider {
  height: 1px;
  background: rgba(15, 23, 42, 0.1); /* Darker line for light background */
  margin: 1.5rem 0;
}

/* Tooltips */
.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: rgba(100, 116, 139, 0.1);
  color: var(--text-secondary);
  border-radius: 50%;
  font-size: 0.7rem;
  cursor: help;
  position: relative;
}

.tooltip-icon:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  font-weight: 400;
}

/* SEO Content Section */
.seo-section {
  margin-top: 4rem;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 24px;
}

.seo-section h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.seo-section h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.seo-section p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, visibility;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}

/* Utilities */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1.5rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.hidden { display: none !important; }

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.hamburger span {
  width: 2rem;
  height: 0.25rem;
  background: var(--text-primary);
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    padding: 6rem 2rem 2rem 2rem;
    transition: right 0.3s ease-in-out;
    box-shadow: -5px 0 15px rgba(0,0,0,0.05);
  }
  
  .nav-links.nav-active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    width: 100%;
  }

  /* Hamburger Transform */
  .hamburger.toggle span:nth-child(1) {
    transform: rotate(45deg);
  }
  .hamburger.toggle span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.toggle span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .tool-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .form-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .glass-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .main-content {
    padding: 2rem 1rem;
  }
  
  /* Reduce blur for performance */
  .glass-card, .navbar, .modal-overlay, .nav-links {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  
  .bg-shape {
    opacity: 0.3;
  }

  .modal-content {
    padding: 2rem 1.5rem 1.5rem;
    width: 95%;
  }

  .nav-brand {
    font-size: 1.2rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5); /* slightly darker overlay */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal-overlay.show {
  opacity: 1;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 400px;
  text-align: center;
  padding: 3rem 2rem 2rem 2rem;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.show .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  font-size: 1.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
  padding: 0;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  border-radius: 20px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 25px rgba(220, 39, 67, 0.3);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.modal-overlay.hiding .modal-content {
  transform: scale(0.9);
}

.modal-overlay.hiding {
  opacity: 0;
}

/* Telegram Text Glow */
.text-glow {
  color: transparent;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

/* Section Titles */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

/* Info Cards (Why Use & Trust) */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.info-card {
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: 20px;
}

.info-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 6px rgba(34, 158, 217, 0.3));
}

.info-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.info-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Steps (How it Works) */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 5rem;
  position: relative;
}

@media (min-width: 768px) {
  .steps-container {
    flex-direction: row;
    align-items: flex-start;
  }
}

.step-card {
  flex: 1;
  position: relative;
  text-align: center;
  padding: 2rem;
  border-radius: 20px;
  z-index: 1;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 15px var(--accent-shadow);
  position: relative;
  z-index: 2;
}

.step-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto 5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: white;
  border: 1px solid #E0F2FE;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #38BDF8;
  box-shadow: 0 8px 25px rgba(34, 158, 217, 0.1);
  transform: translateY(-2px);
}

.faq-question {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  user-select: none;
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #229ED9;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Trust / Stats */
.trust-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  margin: 2rem 0 5rem;
  padding: 3rem;
  border-radius: 24px;
  text-align: center;
  background: white;
  border: 1px solid #E0F2FE;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #229ED9;
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1.1rem;
}

/* Footer Improvements */
.site-footer {
  margin-top: auto;
  padding: 3rem 2rem;
  text-align: center;
  background: transparent;
  border-top: 1px solid #E0F2FE;
  position: relative;
}

.site-footer::before {
  display: none;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #229ED9;
}

.footer-disclaimer {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .nav-logo {
    height: 30px;
  }
}
