@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary: #6366F1;
  --primary-dark: #4F46E5;
  --primary-light: #A5B4FC;
  --accent: #F59E0B;
  --accent-hover: #D97706;
  --bg: #FAFBFF;
  --bg-alt: #EEEFFE;
  --bg-hero: #1E1B4B;
  --text: #1a1a2e;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --card-bg: #FFFFFF;
  --border: #E2E4F0;
  --border-accent: rgba(99,102,241,.3);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(99,102,241,.08);
  --shadow-hover: 0 12px 40px rgba(99,102,241,.15);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER — transparent → solid ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: #fff;
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
  border-bottom-color: var(--border);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  transition: color .3s;
}

.header.scrolled .logo { color: var(--text); }

.logo img { width: 38px; height: 38px; }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  transition: color .2s;
}

.header.scrolled .nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: var(--accent); }

/* ===== BUTTONS — with arrow ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: all .25s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,.3);
}

.btn-accent {
  background: var(--accent);
  color: #000000;
  font-weight: 800;
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,158,11,.3);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.35);
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,.1);
}

.btn-arrow::after {
  content: '→';
  font-size: 1.1rem;
  transition: transform .2s;
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

.nav-cta {
  padding: 9px 22px;
  font-size: .85rem;
  background: var(--accent);
  color: #000000;
  font-weight: 700;
  border-radius: var(--radius);
}

.nav-cta:hover { background: var(--accent-hover); }

/* ===== BURGER ===== */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: .3s;
}

.header.scrolled .burger span { background: var(--text); }

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30,27,75,.95);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  backdrop-filter: blur(8px);
}

.mobile-nav.active { display: flex; }
.mobile-nav a { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; color: #fff; font-weight: 600; }
.mobile-nav .close-btn {
  position: absolute; top: 18px; right: 22px;
  font-size: 2rem; color: #fff; cursor: pointer;
  background: none; border: none;
}

/* ===== HERO — split screen ===== */
.hero {
  background: var(--bg-hero);
  padding: 120px 0 0;
  overflow: hidden;
  position: relative;
  min-height: 600px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content { padding-bottom: 80px; }

.hero-badge {
  display: inline-block;
  background: rgba(99,102,241,.2);
  color: var(--primary-light);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 24px;
  font-family: 'Space Grotesk', sans-serif;
}

.hero h1 {
  color: #fff;
  font-size: 2.8rem;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-desc {
  color: rgba(255,255,255,.7);
  font-size: 1.08rem;
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.trust-badges {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-badge {
  color: rgba(255,255,255,.55);
  font-size: .82rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-badge strong { color: var(--accent); }

/* Hero visual side */
.hero-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.hero-graphic {
  width: 320px;
  height: 420px;
  background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(245,158,11,.1));
  border-radius: 24px 24px 0 0;
  border: 1px solid rgba(255,255,255,.1);
  border-bottom: none;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px;
}

.hero-graphic-icon {
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-graphic-lines {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-graphic-line {
  height: 10px;
  border-radius: 5px;
  background: rgba(255,255,255,.1);
}

.hero-graphic-line:nth-child(1) { width: 100%; background: rgba(99,102,241,.3); }
.hero-graphic-line:nth-child(2) { width: 75%; }
.hero-graphic-line:nth-child(3) { width: 90%; background: rgba(245,158,11,.2); }
.hero-graphic-line:nth-child(4) { width: 60%; }

/* ===== WAVE DIVIDER ===== */
.wave-divider {
  display: block;
  width: 100%;
  line-height: 0;
  margin-top: -1px;
}

.wave-divider svg {
  width: 100%;
  height: 60px;
  display: block;
}

.wave-divider-flip {
  transform: scaleY(-1);
  margin-bottom: -1px;
  margin-top: 0;
}

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 14px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 1rem;
}

/* ===== FEATURES — colored border-top cards ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px 26px;
  border-top: 4px solid var(--primary);
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}

.feature-card:nth-child(2) { border-top-color: var(--accent); }
.feature-card:nth-child(3) { border-top-color: #EC4899; }
.feature-card:nth-child(4) { border-top-color: #10B981; }
.feature-card:nth-child(5) { border-top-color: #8B5CF6; }
.feature-card:nth-child(6) { border-top-color: #06B6D4; }

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.feature-icon { margin-bottom: 16px; }

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.6;
}

/* ===== PLATFORMS ===== */
.download-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.download-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  display: block;
}

.download-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.download-emoji {
  font-size: 2rem;
  margin-bottom: 10px;
}

.download-card h3 {
  font-size: .95rem;
  margin-bottom: 4px;
}

.download-card p {
  color: var(--text-muted);
  font-size: .78rem;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-hero), var(--primary-dark));
  padding: 80px 0;
  text-align: center;
}

.cta-banner h2 {
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.cta-banner p {
  color: rgba(255,255,255,.7);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-badge {
  display: inline-block;
  background: rgba(245,158,11,.15);
  border: 1px solid rgba(245,158,11,.3);
  color: var(--accent);
  padding: 8px 22px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 24px;
  font-family: 'Space Grotesk', sans-serif;
}

/* ===== FAQ — two columns ===== */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.faq-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--primary);
}

.faq-card h3 {
  font-size: .98rem;
  margin-bottom: 10px;
  color: var(--text);
}

.faq-card p {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.65;
}

/* ===== FOOTER — two-level ===== */
.footer {
  background: var(--bg-hero);
  color: rgba(255,255,255,.7);
}

.footer-top {
  padding: 48px 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-top .logo { color: #fff; }

.footer-nav {
  display: flex;
  gap: 28px;
}

.footer-nav a {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}

.footer-nav a:hover { color: var(--accent); }

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}

/* ===== INSTRUCTION PAGE ===== */
.instr-hero {
  background: var(--bg-hero);
  padding: 120px 0 50px;
  text-align: center;
}

.instr-hero h1 {
  color: #fff;
  font-size: 2.3rem;
  margin-bottom: 14px;
}

.instr-hero p {
  color: rgba(255,255,255,.7);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.step-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 18px;
}

.step-card h2 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.step-card p, .step-card ul {
  color: var(--text-muted);
  line-height: 1.7;
}

.step-card ul { padding-left: 20px; }
.step-card ul li { margin-bottom: 8px; list-style: disc; }

.platforms-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.platform-mini-card {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: .9rem;
}

/* ===== ANIMATIONS — slide-in from side ===== */
.slide-in {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .6s ease, transform .6s ease;
}

.slide-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .6s ease, transform .6s ease;
}

.slide-in.visible,
.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .hero { min-height: auto; padding: 120px 0 60px; }
  .hero-content { padding-bottom: 0; text-align: center; }
  .hero-buttons { justify-content: center; }
  .trust-badges { justify-content: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: repeat(3, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; }
  .footer-top { flex-direction: column; text-align: center; }
  .footer-nav { flex-wrap: wrap; justify-content: center; }
  .platforms-mini { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 100px 0 50px; }
  .hero h1 { font-size: 1.7rem; }
  .section { padding: 50px 0; }
  .section-title { font-size: 1.5rem; }
  .platforms-mini { grid-template-columns: 1fr; }
  .wave-divider svg { height: 36px; }
}
