:root {
  --bg: #050816;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-strong: rgba(13, 20, 38, 0.88);
  --border: rgba(148, 163, 184, 0.16);
  --border-glow: rgba(56, 189, 248, 0.45);
  --text: #f8fafc;
  --muted: #94a3b8;
  --gold: #fbbf24;
  --cyan: #38bdf8;
  --purple: #a855f7;
  --crimson: #f43f5e;
  --emerald: #34d399;
  --mx: 50vw;
  --my: 30vh;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.08), transparent 45%),
              radial-gradient(circle at 85% 15%, rgba(168, 85, 247, 0.09), transparent 45%),
              var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Mouse-following ambient cursor spotlight */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    620px circle at var(--mx) var(--my),
    rgba(56, 189, 248, 0.11),
    rgba(168, 85, 247, 0.05) 38%,
    transparent 70%
  );
  transition: opacity 0.25s ease;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.site-shell {
  position: relative;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Sticky Glass Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 8, 22, 0.78);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0.01em;
  font-size: 1rem;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.22);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--cyan), #0ea5e9);
  color: #020617;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.35);
}

/* Hero Section */
.hero {
  padding: 54px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 44px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(120deg, #fef08a 0%, #fbbf24 38%, #38bdf8 75%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 0 0 28px;
  color: #cbd5e1;
  font-size: 1.05rem;
  max-width: 540px;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.btn-magnetic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  will-change: transform;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #020617;
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.45);
}

.btn-amazon {
  background: rgba(15, 23, 42, 0.88);
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.45);
}

.btn-amazon:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(251, 191, 36, 0.8);
  box-shadow: 0 12px 30px rgba(251, 191, 36, 0.2);
}

.btn-ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-ghost-link:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.55);
}

/* True 3D Interactive Showcase Stage */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 10px;
  perspective: 1200px;
}

.tilt-card {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  --gx: 50%;
  --gy: 50%;
}

.hero-showcase {
  width: 100%;
  max-width: 390px;
  border-radius: 26px;
  padding: 18px;
  background: linear-gradient(155deg, rgba(30, 41, 59, 0.85), rgba(8, 13, 30, 0.92));
  border: 1px solid rgba(125, 211, 252, 0.3);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.65),
              0 0 42px rgba(56, 189, 248, 0.15);
}

.tilt-card .glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle at var(--gx) var(--gy),
    rgba(255, 255, 255, 0.26) 0%,
    rgba(56, 189, 248, 0.12) 26%,
    rgba(168, 85, 247, 0.06) 46%,
    transparent 68%
  );
  mix-blend-mode: screen;
  transition: opacity 0.25s ease;
  z-index: 4;
}

.tilt-card.is-tilting .glare,
.tilt-card:hover .glare {
  opacity: 1;
}

.tilt-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    320px circle at var(--gx) var(--gy),
    rgba(56, 189, 248, 0.35),
    rgba(251, 191, 36, 0.18) 40%,
    transparent 70%
  );
  z-index: -1;
  transition: opacity 0.25s ease;
}

.tilt-card.is-tilting::after,
.tilt-card:hover::after {
  opacity: 1;
}

.depth-1 { transform: translateZ(20px); }
.depth-2 { transform: translateZ(38px); }
.depth-3 { transform: translateZ(56px); }

.showcase-art-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.32);
  background: #0b1220;
  aspect-ratio: 1 / 1;
}

.showcase-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-logo {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  width: calc(100% - 24px);
  max-height: 66px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.85));
  pointer-events: none;
}

.showcase-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.showcase-meta-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fde68a;
}

.showcase-meta-sub {
  font-size: 0.74rem;
  color: var(--muted);
}

.showcase-pill-live {
  font-size: 0.7rem;
  font-weight: 900;
  padding: 4px 9px;
  border-radius: 999px;
  color: #022c22;
  background: #34d399;
  white-space: nowrap;
}

/* 3D Floating Badges orbiting the Hero Card */
.float-badge {
  position: absolute;
  padding: 7px 12px;
  border-radius: 12px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(125, 211, 252, 0.42);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  pointer-events: none;
  z-index: 5;
}

.fb-tl {
  top: 6px;
  left: -14px;
  transform: translateZ(62px);
  border-color: rgba(251, 191, 36, 0.55);
  animation: floatBadgeA 4.6s ease-in-out infinite;
}

.fb-tr {
  top: 26px;
  right: -16px;
  transform: translateZ(54px);
  border-color: rgba(168, 85, 247, 0.55);
  animation: floatBadgeB 5.2s ease-in-out infinite;
}

.fb-bl {
  bottom: 78px;
  left: -18px;
  transform: translateZ(64px);
  border-color: rgba(244, 63, 94, 0.55);
  animation: floatBadgeB 4.9s ease-in-out infinite;
}

.fb-br {
  bottom: 92px;
  right: -14px;
  transform: translateZ(58px);
  border-color: rgba(56, 189, 248, 0.55);
  animation: floatBadgeA 5.5s ease-in-out infinite;
}

@keyframes floatBadgeA {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -7px; }
}

@keyframes floatBadgeB {
  0%, 100% { margin-top: 0; }
  50% { margin-top: 7px; }
}

/* Stats Strip */
.stats-strip {
  margin: 10px 0 42px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.stat-num {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--gold);
}

.stat-lbl {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

/* Sections */
.section {
  padding: 46px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 30px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 6px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 900;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* 3D Feature Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  perspective: 1100px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  perspective: 1100px;
}

.feature-card {
  border-radius: 20px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s ease;
}

.feature-card:hover {
  border-color: var(--border-glow);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 1.5rem;
  margin-bottom: 14px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.feature-icon.gold {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.38);
}

.feature-icon.purple {
  background: rgba(168, 85, 247, 0.14);
  border-color: rgba(168, 85, 247, 0.38);
}

.feature-icon.crimson {
  background: rgba(244, 63, 94, 0.14);
  border-color: rgba(244, 63, 94, 0.38);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.9rem;
}

/* Legal & Support Cards */
.legal-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  border-radius: 20px;
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.legal-card:hover {
  border-color: rgba(251, 191, 36, 0.5);
}

.legal-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
}

.legal-card p {
  margin: 0;
  font-size: 0.87rem;
  color: #cbd5e1;
}

.legal-link-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--cyan);
}

/* Subpages (Privacy Policy & Terms of Service) */
.legal-page-wrap {
  padding: 38px 0 60px;
  max-width: 860px;
  margin: 0 auto;
}

.legal-doc-card {
  border-radius: 24px;
  padding: 34px 30px;
  background: var(--bg-card-strong);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
}

.legal-doc-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
  margin-bottom: 22px;
}

.legal-doc-header h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.65rem, 3.2vw, 2.25rem);
  font-weight: 900;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.legal-doc-card h2 {
  margin: 24px 0 8px;
  font-size: 1.12rem;
  font-weight: 800;
  color: #fde68a;
}

.legal-doc-card p,
.legal-doc-card li {
  color: #cbd5e1;
  font-size: 0.94rem;
}

.legal-doc-card ul {
  padding-left: 20px;
  margin: 8px 0 14px;
}

.legal-doc-card li + li {
  margin-top: 6px;
}

.legal-doc-card a {
  color: var(--cyan);
}

.back-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* Footer */
.footer {
  margin-top: 28px;
  border-top: 1px solid var(--border);
  padding: 24px 0 34px;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero {
    padding: 34px 0 28px;
  }

  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .fb-tl { left: 2px; }
  .fb-tr { right: 2px; }
  .fb-bl { left: 2px; }
  .fb-br { right: 2px; }

  .legal-doc-card {
    padding: 24px 18px;
  }
}

/* Accessibility: honor user's reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body::before,
  #bg-canvas {
    display: none;
  }

  .float-badge {
    animation: none;
  }

  .tilt-card,
  .btn-magnetic {
    transform: none !important;
    transition: none !important;
  }
}
