/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700;800&family=Sora:wght@400;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --bg:            #080B10;
  --surface:       #10151C;
  --surf-elev:     #161D27;
  --felt:          #0A1F18;
  --border:        #1E2630;
  --border-strong: #2A3340;
  --text:          #F2F6F8;
  --text-2:        #9AA7B2;
  --text-3:        #5A6672;
  --green:         #1FE08A;
  --green-deep:    #0E9E5E;
  --rouge:         #FF2E63;
  --rouge-deep:    #E11D54;
  --gold:          #FFB531;
  --gold-deep:     #E0921A;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Sora', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ===== TYPOGRAPHY ===== */
.font-display { font-family: 'Space Grotesk', sans-serif; }
.font-mono    { font-family: 'Space Mono', monospace; font-variant-numeric: tabular-nums; }

/* ===== NAV ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(8, 11, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(30, 38, 48, 0.6);
  transition: background 0.3s ease;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; }
.nav-logo-text { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 14px; line-height: 1.2; }
.nav-logo-text span { color: var(--green); }
.nav-links { display: none; align-items: center; gap: 4px; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-link {
  padding: 8px 16px; font-size: 14px; font-family: 'Sora', sans-serif;
  color: var(--text-2); border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.hamburger { display: flex; flex-direction: column; gap: 5px; padding: 8px; }
@media (min-width: 768px) { .hamburger { display: none; } }
.hamburger span { display: block; height: 2px; background: var(--text-2); border-radius: 2px; transition: all 0.25s ease; }
.hamburger span:nth-child(1) { width: 20px; }
.hamburger span:nth-child(2) { width: 20px; }
.hamburger span:nth-child(3) { width: 14px; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 20px; }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 20px; }
#mobile-menu {
  display: none;
  border-top: 1px solid rgba(30, 38, 48, 0.6);
  background: rgba(8, 11, 16, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
#mobile-menu.open { display: block; }
.mobile-menu-inner { padding: 16px 24px 24px; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-link {
  padding: 14px 16px; font-size: 16px; font-family: 'Sora', sans-serif;
  color: var(--text-2); border-radius: 12px; transition: all 0.2s;
  display: flex; align-items: center; gap: 8px;
}
.mobile-nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #27F09A 0%, #0FB36A 100%);
  color: #04130C;
  font-family: 'Sora', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: 0.3px;
  padding: 13px 24px;
  border-radius: 999px;
  transition: transform 0.12s ease-out, box-shadow 0.2s ease-out;
  white-space: nowrap;
  min-height: 44px;
}
.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 0 28px rgba(31, 224, 138, 0.5), 0 8px 24px rgba(0,0,0,0.4);
}
.btn-primary:active { transform: scale(0.97); }

.btn-rouge {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #FF4D78 0%, #E11D54 100%);
  color: #fff;
  font-family: 'Sora', sans-serif; font-weight: 600; font-size: 14px;
  padding: 13px 24px; border-radius: 999px;
  transition: transform 0.12s, box-shadow 0.2s;
  min-height: 44px;
}
.btn-rouge:hover { transform: translateY(-1px); box-shadow: 0 0 28px rgba(255,46,99,0.5); }

.app-store-btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: #000; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 16px; padding: 12px 22px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  min-height: 58px;
}
.app-store-btn:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(31,224,138,0.4);
  box-shadow: 0 0 24px rgba(31,224,138,0.18);
}
.app-store-btn .apple-icon { font-size: 28px; line-height: 1; }
.app-store-btn .btn-text small { display: block; font-size: 10px; opacity: 0.55; letter-spacing: 0.8px; text-transform: uppercase; font-family: 'Sora', sans-serif; }
.app-store-btn .btn-text strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 600; line-height: 1.1; }

/* ===== GLASS CARD ===== */
.glass-card {
  background: rgba(16, 21, 28, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.glass-card:hover {
  border-color: rgba(31,224,138,0.25);
  box-shadow: 0 0 32px rgba(31,224,138,0.08), 0 8px 32px rgba(0,0,0,0.3);
}

/* ===== PHONE FRAME ===== */
.phone-frame {
  position: relative;
  border-radius: 44px;
  overflow: hidden;
  background: #0a0e18;
  border: 2px solid rgba(255,255,255,0.08);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03),
    0 0 60px rgba(31,224,138,0.15),
    0 40px 80px rgba(0,0,0,0.65);
  aspect-ratio: 9 / 19.5;
}
.phone-frame img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  display: block;
}

.phone-frame-hero {
  width: 100%; max-width: 280px;
  border-radius: 52px;
  overflow: hidden;
  background: #0a0e18;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 0 80px rgba(31,224,138,0.22),
    0 0 140px rgba(31,224,138,0.08),
    0 48px 100px rgba(0,0,0,0.75);
  aspect-ratio: 9 / 19.5;
  animation: float 5s ease-in-out infinite;
}
.phone-frame-hero img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  display: block;
}

/* ===== FELT / GLOW BACKGROUNDS ===== */
.felt-hero-bg {
  background:
    radial-gradient(ellipse 100% 70% at 50% 115%, rgba(20,58,44,0.85) 0%, rgba(10,31,24,0.55) 40%, transparent 70%),
    var(--bg);
}
.felt-section-bg {
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(20,58,44,0.4) 0%, transparent 70%),
    var(--bg);
}
.felt-cta-bg {
  background:
    radial-gradient(ellipse 90% 80% at 50% 50%, rgba(20,58,44,0.9) 0%, rgba(10,31,24,0.7) 50%, var(--bg) 100%);
}

/* Subtle diagonal felt-weave texture overlay */
.felt-texture-overlay::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(
    -45deg, transparent, transparent 40px,
    rgba(31,224,138,0.012) 40px, rgba(31,224,138,0.012) 41px
  );
  z-index: 0;
}

/* ===== SUIT DECORATORS ===== */
.suit { position: absolute; pointer-events: none; user-select: none; font-style: normal; line-height: 1; }

/* ===== STATS STRIP ===== */
.stats-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-value { font-family: 'Space Mono', monospace; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }
.stat-label { font-family: 'Sora', sans-serif; font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; }

/* ===== SCROLLABLE SCREENSHOTS ROW ===== */
.screenshots-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 24px 24px 32px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screenshots-scroll::-webkit-scrollbar { display: none; }
.screenshot-item {
  flex-shrink: 0;
  width: 180px;
  scroll-snap-align: center;
}
@media (min-width: 640px) { .screenshot-item { width: 200px; } }
@media (min-width: 1024px) { .screenshot-item { width: 220px; } }

/* ===== CHIP RAIL DIVIDER ===== */
.chip-rail {
  display: flex; align-items: center; gap: 16px;
  color: var(--text-3); font-size: 16px;
}
.chip-rail::before, .chip-rail::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 30%, var(--border) 70%, transparent);
}

/* ===== SECTION HEADER ===== */
.section-eyebrow {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--green);
  margin-bottom: 12px;
}
.section-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
}
.section-sub {
  font-family: 'Sora', sans-serif;
  color: var(--text-2);
  line-height: 1.7;
}

/* ===== HERO EYEBROW ===== */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2.5px;
  color: var(--green);
  background: rgba(31,224,138,0.08);
  border: 1px solid rgba(31,224,138,0.2);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ===== FEATURE ICON ===== */
.feature-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: rgba(31,224,138,0.1);
  border: 1px solid rgba(31,224,138,0.2);
  color: var(--green);
  flex-shrink: 0;
}
.feature-icon.rouge {
  background: rgba(255,46,99,0.1);
  border-color: rgba(255,46,99,0.2);
  color: var(--rouge);
}
.feature-icon.gold {
  background: rgba(255,181,49,0.1);
  border-color: rgba(255,181,49,0.2);
  color: var(--gold);
}

/* ===== FAQ ACCORDION ===== */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; gap: 16px; text-align: left;
  font-family: 'Sora', sans-serif; font-weight: 600; font-size: 16px;
  color: var(--text); cursor: pointer;
  min-height: 64px;
  background: none; border: none;
  transition: color 0.2s;
}
.faq-trigger:hover { color: var(--green); }
.faq-icon {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-2); font-size: 14px; flex-shrink: 0;
  transition: transform 0.3s ease, background 0.2s, color 0.2s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: rgba(31,224,138,0.12);
  border-color: rgba(31,224,138,0.3);
  color: var(--green);
}
.faq-content {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1);
}
.faq-item.open .faq-content { max-height: 400px; }
.faq-body {
  padding-bottom: 20px;
  font-family: 'Sora', sans-serif; font-size: 15px;
  color: var(--text-2); line-height: 1.7;
}

/* ===== LEGAL PAGE ===== */
.legal-content h2 {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 20px; color: var(--text);
  margin-top: 40px; margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  font-family: 'Sora', sans-serif; font-size: 15px;
  color: var(--text-2); line-height: 1.75;
  margin-bottom: 16px;
}
.legal-content ul, .legal-content ol {
  padding-left: 24px; margin-bottom: 16px;
}
.legal-content li {
  font-family: 'Sora', sans-serif; font-size: 15px;
  color: var(--text-2); line-height: 1.7;
  margin-bottom: 8px;
}
.legal-content a { color: var(--green); }
.legal-content a:hover { text-decoration: underline; }
.legal-content strong { color: var(--text); font-weight: 600; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 64px 24px 40px; }
.footer-link { font-size: 14px; color: var(--text-2); transition: color 0.2s; }
.footer-link:hover { color: var(--text); }
.footer-legal-link { font-size: 13px; color: var(--text-3); transition: color 0.2s; }
.footer-legal-link:hover { color: var(--text-2); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(20,58,44,0.5) 0%, transparent 70%), var(--bg);
  padding: 120px 24px 64px;
  text-align: center;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}

/* ===== CONTACT CARD ===== */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  position: relative; overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--green-deep), var(--green), var(--green-deep));
}

/* ===== KEYFRAMES ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 24px rgba(31,224,138,0.3); }
  50%       { box-shadow: 0 0 48px rgba(31,224,138,0.55); }
}

/* ===== UTILITY GLOWS ===== */
.text-green   { color: var(--green); }
.text-rouge   { color: var(--rouge); }
.text-gold    { color: var(--gold); }
.text-2       { color: var(--text-2); }
.text-3       { color: var(--text-3); }
.glow-green   { box-shadow: 0 0 24px rgba(31,224,138,0.35); }
.glow-green-pulse { animation: pulse-glow 3s ease-in-out infinite; }
.text-glow-green  { text-shadow: 0 0 24px rgba(31,224,138,0.55); }

/* ===== LANG TOGGLE ===== */
.lang-toggle { display: flex; align-items: center; gap: 5px; }
.lang-sep { color: var(--text-3); font-size: 11px; line-height: 1; user-select: none; }
.lang-btn {
  font-family: 'Space Mono', monospace;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 5px 8px; border-radius: 7px;
  color: var(--text-3);
  background: none; border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  cursor: pointer; min-height: 30px; line-height: 1;
}
.lang-btn:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.lang-btn.active {
  color: var(--green);
  border-color: rgba(31,224,138,0.3);
  background: rgba(31,224,138,0.08);
}
.mobile-lang-row {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.mobile-lang-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-3);
}

/* ===== SAFE AREA SUPPORT ===== */
.safe-bottom { padding-bottom: env(safe-area-inset-bottom, 0); }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-aos] { transition: none !important; }
}
