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

:root {
  --bg: #080A0F;
  --bg2: #0D1018;
  --bg3: #131620;
  --surface: #181C28;
  --border: rgba(255,255,255,0.07);
  --accent: #4F8EF7;
  --accent2: #7B5CF0;
  --white: #F0F4FF;
  --muted: #6B7494;
  --text: #C8D0E8;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(79,142,247,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,142,247,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* NAV */
header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8,10,15,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 20px;
  color: var(--white); text-decoration: none; letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }
nav { display: flex; align-items: center; gap: 4px; }
nav a {
  font-size: 14px; color: var(--muted);
  text-decoration: none; padding: 8px 16px;
  border-radius: 6px; transition: color 0.2s, background 0.2s;
}
nav a:hover, nav a.active { color: var(--white); background: rgba(255,255,255,0.06); }
nav a.nav-cta {
  background: var(--accent); color: #fff;
  font-weight: 500; margin-left: 8px;
}
nav a.nav-cta:hover { background: #6BA3FF; }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.burger span { width: 22px; height: 2px; background: var(--white); border-radius: 2px; display: block; transition: all 0.3s; }
.mobile-nav {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: rgba(8,10,15,0.97); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  flex-direction: column; padding: 16px 24px 24px; z-index: 99;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: 16px; }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a.nav-cta { color: var(--accent); font-weight: 600; border: none; margin-top: 8px; }

main { padding-top: 68px; position: relative; z-index: 1; }

/* PAGE HERO */
.page-hero {
  padding: 80px 40px 60px; text-align: center; position: relative;
}
.page-hero::after {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(79,142,247,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 5vw, 64px); font-weight: 800;
  color: var(--white); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 16px;
}
.page-hero p { font-size: 18px; color: var(--muted); max-width: 560px; margin: 0 auto; }

.section { padding: 80px 40px; max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px; font-weight: 600;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 4vw, 44px); font-weight: 700;
  color: var(--white); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 48px;
}
.section-title.centered { text-align: center; }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.card:hover { border-color: rgba(79,142,247,0.3); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.card-icon { font-size: 32px; margin-bottom: 16px; display: block; }
.card h3 { font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.card p { font-size: 14px; line-height: 1.7; color: var(--muted); }

.btn {
  display: inline-block; padding: 14px 32px; border-radius: 8px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: all 0.3s; cursor: pointer; border: none; font-family: 'Outfit', sans-serif;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 20px rgba(79,142,247,0.35);
}
.btn-primary:hover { background: #6BA3FF; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(79,142,247,0.45); }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid rgba(79,142,247,0.4); }
.btn-outline:hover { background: rgba(79,142,247,0.1); border-color: var(--accent); }

.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: center; }
.step { text-align: center; }
.step-num {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; color: #fff;
  margin: 0 auto 16px; box-shadow: 0 4px 20px rgba(79,142,247,0.4);
}
.step h3 { font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }
.step-arrow { font-size: 28px; color: var(--accent); opacity: 0.5; text-align: center; }

/* FORM */
.form-section { background: var(--bg2); padding: 80px 40px; }
.form-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 48px; max-width: 640px;
  margin: 0 auto; position: relative; overflow: hidden;
}
.form-wrap::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}
.form-wrap h2 { font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.form-wrap > p { color: var(--muted); margin-bottom: 28px; }
textarea {
  width: 100%; background: var(--bg2); border: 1px solid var(--border);
  border-radius: 8px; color: var(--white); font-family: 'Outfit', sans-serif;
  font-size: 15px; padding: 16px; resize: vertical; min-height: 140px;
  outline: none; transition: border-color 0.3s; margin-bottom: 8px;
}
textarea:focus { border-color: var(--accent); }
textarea::placeholder { color: var(--muted); }
.char-counter { font-size: 13px; color: var(--muted); text-align: right; margin-bottom: 20px; }
.char-counter.warn { color: #F97316; }
.char-counter.over { color: #EF4444; }
.success-msg { display: none; text-align: center; padding: 32px; }
.success-msg .check { font-size: 56px; display: block; margin-bottom: 12px; }
.success-msg p { font-size: 18px; color: #4ADE80; font-weight: 500; }

/* FOOTER */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 40px; display: flex; align-items: center;
  justify-content: space-between; position: relative; z-index: 1;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 13px; color: var(--muted); }

.divider { height: 1px; background: var(--border); }

/* ABOUT PAGE */
.text-block { max-width: 760px; }
.text-block p { font-size: 16px; line-height: 1.8; color: var(--text); margin-bottom: 20px; }
.text-block h3 { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 16px; margin-top: 8px; }
.text-block ul { list-style: none; padding: 0; margin-bottom: 20px; }
.text-block ul li { padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text); font-size: 15px; display: flex; align-items: flex-start; gap: 12px; }
.text-block ul li::before { content: '→'; color: var(--accent); flex-shrink: 0; }
.text-block ul li:last-child { border-bottom: none; }

/* CONTACTS */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 40px; }
.contact-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 36px; text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.contact-card:hover { border-color: rgba(79,142,247,0.3); transform: translateY(-4px); }
.contact-icon { font-size: 40px; display: block; margin-bottom: 16px; }
.contact-card h3 { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: var(--muted); margin-bottom: 16px; line-height: 1.6; }
.contact-card a { color: var(--accent); text-decoration: none; font-weight: 500; font-size: 16px; }
.contact-card a:hover { text-decoration: underline; }
.info-box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 32px; }
.info-box h3 { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 20px; }
.info-row { padding: 12px 0; border-bottom: 1px solid var(--border); display: flex; gap: 16px; align-items: flex-start; }
.info-row:last-child { border-bottom: none; }
.info-row strong { color: var(--white); font-size: 14px; min-width: 160px; flex-shrink: 0; }
.info-row span { font-size: 14px; color: var(--muted); line-height: 1.6; }
.topics-list { list-style: none; padding: 0; margin-top: 16px; }
.topics-list li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.topics-list li::before { content: '•'; color: var(--accent); }
.topics-list li:last-child { border-bottom: none; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden; transition: border-color 0.3s;
}
.faq-item.open { border-color: rgba(79,142,247,0.3); }
.faq-q {
  padding: 20px 24px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  user-select: none;
}
.faq-q span:first-child { font-size: 15px; font-weight: 500; color: var(--white); }
.faq-icon { font-size: 22px; color: var(--accent); flex-shrink: 0; transition: transform 0.3s; line-height: 1; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-a { max-height: 600px; }
.faq-a-inner { padding: 0 24px 20px; font-size: 14px; color: var(--muted); line-height: 1.8; }
.faq-a-inner ul { list-style: disc; padding-left: 20px; margin-top: 8px; }
.faq-a-inner ul li { margin-bottom: 4px; }

/* CTA BANNER */
.cta-banner {
  background: linear-gradient(135deg, rgba(79,142,247,0.08), rgba(123,92,240,0.08));
  border: 1px solid rgba(79,142,247,0.15); border-radius: 16px;
  padding: 64px 40px; text-align: center;
  margin: 0 40px 80px; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(79,142,247,0.1), transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { font-family: 'Syne', sans-serif; font-size: 36px; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: var(--muted); margin-bottom: 28px; font-size: 16px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
  header { padding: 0 20px; }
  nav { display: none; }
  .burger { display: flex; }
  .section { padding: 48px 20px; }
  .page-hero { padding: 48px 20px 32px; }
  .cards-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step-arrow { transform: rotate(90deg); }
  .contact-grid { grid-template-columns: 1fr; }
  .form-wrap { padding: 28px 20px; }
  .form-section { padding: 60px 20px; }
  footer { flex-direction: column; gap: 20px; text-align: center; padding: 32px 20px; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .cta-banner { margin: 0 20px 60px; padding: 40px 24px; }
}

/* ═══════════════════════════════════════
   INDEX.HTML — HERO & PAGE SECTIONS
═══════════════════════════════════════ */

.page { position: relative; z-index: 1; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 120px 40px 80px;
  text-align: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(79,142,247,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(79,142,247,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,142,247,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.hero-tag {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); background: rgba(79,142,247,0.1);
  border: 1px solid rgba(79,142,247,0.25); border-radius: 20px;
  padding: 6px 16px; margin-bottom: 28px; font-weight: 600;
}
.hero-content h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(48px, 7vw, 88px); font-weight: 800;
  color: var(--white); letter-spacing: -0.04em; line-height: 1.05;
  margin-bottom: 24px;
}
.hero-content h1 .accent { color: var(--accent); }
.hero-content > p {
  font-size: 18px; color: var(--muted); max-width: 520px;
  margin: 0 auto 36px; line-height: 1.7;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Sections on index */
section { padding: 80px 40px; max-width: 1100px; margin: 0 auto; }
section#how { max-width: 100%; }
.section-tag {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px; font-weight: 600; display: block;
}
.section-sub {
  font-size: 17px; color: var(--muted); max-width: 560px;
  margin: 0 auto 48px; text-align: center; line-height: 1.7;
}
.section-title { text-align: center; }

/* Form section */
.form-section { max-width: 100% !important; padding: 80px 40px; background: var(--bg2); }
.form-group { margin-bottom: 8px; }
.form-group label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.form-submit { width: 100%; margin-top: 8px; }
.success-msg h3 { font-family: 'Syne', sans-serif; font-size: 24px; font-weight: 700; color: var(--white); margin-bottom: 8px; }

/* Footer (index has different structure) */
footer { position: relative; z-index: 1; }
.footer-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 40px; padding: 60px 40px 40px;
  background: var(--bg2); border-top: 1px solid var(--border);
}
.footer-logo {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 20px;
  color: var(--white); text-decoration: none; letter-spacing: -0.02em;
  display: inline-block; margin-bottom: 12px;
}
.footer-logo span { color: var(--accent); }
.footer-tagline { font-size: 13px; color: var(--muted); line-height: 1.6; max-width: 240px; }
.footer-col h4 { font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  padding: 20px 40px; background: var(--bg2);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { font-size: 13px; color: var(--muted); }

/* Mobile menu (index uses .mobile-menu, others use .mobile-nav) */
.mobile-menu {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: rgba(8,10,15,0.97); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  flex-direction: column; padding: 16px 24px 24px; z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: 16px; }
.mobile-menu a:last-child { border-bottom: none; margin-top: 8px; }

/* Burger open state */
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .hero { padding: 100px 20px 60px; }
  .hero-content h1 { font-size: clamp(36px, 10vw, 56px); }
  section { padding: 48px 20px; }
  .form-section { padding: 60px 20px; }
  .footer-grid { grid-template-columns: 1fr; padding: 40px 20px; gap: 32px; }
  .footer-bottom { padding: 16px 20px; flex-direction: column; gap: 8px; text-align: center; }
}
