/* ========================================
   Polymaxx Landing Page — Bold Layout
   Inspired by phantom.com
   ======================================== */

:root {
  --background: #030712;
  --foreground: #f4f4f5;
  --muted: #1f2937;
  --muted-foreground: #9ca3af;
  --card: #0f172a;
  --card-foreground: #f8fafc;
  --border: rgba(148, 163, 184, 0.15);
  --yes: #10b981;
  --no: #ef4444;
  --info: #3b82f6;
  --radius: 1rem;
  --radius-lg: 1.5rem;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

::selection {
  background: rgba(59, 130, 246, 0.4);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 800px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 1rem;
  transition: transform 0.35s ease;
}

.header.header-hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 56px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  margin-top: 0.75rem;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 9999px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  justify-self: start;
}

/* Desktop nav links (inline, centered) */
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.nav-menu a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s, background 0.2s;
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.nav-menu a:hover {
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta-mobile {
  display: none !important;
}

.nav-cta-mobile,
.nav-cta {
  color: #fff !important;
}

/* Right-side actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: end;
}

/* Nav toggle — hidden on desktop */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-foreground);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, transform 0.3s;
}

.nav-toggle:hover {
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle-icon {
  transition: transform 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  transform: rotate(180deg);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 9999px;
  padding: 0.875rem 2rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--info);
  color: #fff;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(59, 130, 246, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--foreground);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1.125rem 3rem;
  font-size: 1.125rem;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: 10%;
  left: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08), transparent 60%);
  pointer-events: none;
}

.hero-cards {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(
    ellipse 50% 50% at 50% 50%,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 35%,
    rgba(0, 0, 0, 1) 70%
  );
  mask-image: radial-gradient(
    ellipse 50% 50% at 50% 50%,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 35%,
    rgba(0, 0, 0, 1) 70%
  );
}

.hero-card {
  position: absolute;
  width: 190px;
  height: 260px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  will-change: transform, opacity;
  animation: heroCardFloat var(--duration) linear var(--delay) both;
  opacity: 0;
}

.hero-card-question {
  color: var(--card-foreground);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.hero-card-yes,
.hero-card-no {
  flex: 1;
  text-align: center;
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-card-yes {
  color: #34d399;
}

.hero-card-no {
  color: #f87171;
}

.hero-card-label {
  display: block;
  font-size: 0.5625rem;
  font-weight: 600;
  opacity: 0.7;
  margin-bottom: 2px;
}

.hero-card-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
}

@keyframes heroCardFloat {
  0% {
    transform: translateY(0) rotate(var(--rotation));
    opacity: 0;
  }
  8% {
    opacity: 0.6;
  }
  85% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(calc(-100vh - 300px)) rotate(var(--rotation));
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.tagline {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--info);
  margin-bottom: 2rem;
  padding: 0.5rem 1.25rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 9999px;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 2rem;
}

.hero-sub {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--muted-foreground);
  max-width: 620px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== App Showcase ===== */
.app-showcase {
  position: relative;
  background: var(--card);
}

.app-showcase-scroll-area {
  height: 400vh;
  position: relative;
}

.app-showcase-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-screen {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  width: 90%;
  max-width: 400px;
  transition: opacity 0.15s ease;
}

.showcase-screen--active {
  opacity: 1;
  pointer-events: auto;
}

.showcase-screen h3 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0;
  color: var(--foreground);
}

.showcase-screen video {
  width: 100%;
  max-width: 340px;
  border-radius: 1.25rem;
}

.showcase-progress {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.showcase-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.3);
  transition: all 0.3s;
}

.showcase-dot--active {
  background: var(--info);
  width: 24px;
  border-radius: 4px;
}

/* No-JS fallback: show all screens stacked */
html:not(.js) .app-showcase-scroll-area {
  height: auto;
}

html:not(.js) .app-showcase-sticky {
  position: relative;
  height: auto;
  flex-direction: column;
  gap: 3rem;
  padding: 6rem 0;
}

html:not(.js) .showcase-screen {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

html:not(.js) .showcase-progress {
  display: none;
}

/* ===== Section ===== */
.section {
  padding: 8rem 0;
  position: relative;
}

/* Section theme backgrounds — each section has its own color personality */
#education {
  background: var(--background);
}

#how-it-works {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.04), transparent 60%),
    #040a18;
}

#features {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.05), transparent 50%),
    #060d1f;
}

#community {
  background:
    radial-gradient(ellipse at 80% 50%, rgba(16, 185, 129, 0.04), transparent 50%),
    #041210;
}

#rewards {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(139, 92, 246, 0.05), transparent 50%),
    #0a0716;
}

#portfolio {
  background:
    radial-gradient(ellipse at 70% 50%, rgba(59, 130, 246, 0.04), transparent 50%),
    #040a18;
}

#faq {
  background: #060910;
}

.cta-section {
  background: var(--background);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.section-sub {
  font-size: 1.1875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ===== Education Cards ===== */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.edu-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.edu-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(59, 130, 246, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.edu-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 16px;
  color: var(--info);
  margin-bottom: 1.5rem;
}

.edu-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.edu-card p {
  font-size: 1rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* Market Example */
.market-example {
  max-width: 480px;
  margin: 0 auto 3rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
}

.market-example:hover {
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 0 60px rgba(59, 130, 246, 0.08);
}

.market-example-header {
  margin-bottom: 1rem;
}

.market-example-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-foreground);
  font-weight: 700;
}

.market-example-question {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.market-example-prices {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.market-price {
  flex: 1;
  max-width: 160px;
  padding: 1.25rem;
  border-radius: 14px;
  text-align: center;
  transition: transform 0.2s;
}

.market-price:hover {
  transform: scale(1.03);
}

.market-price.yes {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.market-price.no {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.market-price-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.375rem;
}

.market-price.yes .market-price-label { color: var(--yes); }
.market-price.no .market-price-label { color: var(--no); }

.market-price-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
}

.market-price.yes .market-price-value { color: var(--yes); }
.market-price.no .market-price-value { color: var(--no); }

.market-example-footnote {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Categories */

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(148, 163, 184, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(59, 130, 246, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.step-number {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--info);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.75rem;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.step h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step p {
  font-size: 1rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ===== Feature Blocks ===== */
.feature-block {
  padding: 8rem 0;
  position: relative;
}

.feature-block + .feature-block {
  border-top: 1px solid rgba(148, 163, 184, 0.06);
}

.feature-label {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--info);
  margin-bottom: 1rem;
  padding: 0.375rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 9999px;
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep on feature label pills */
.feature-label::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.15),
    transparent
  );
  animation: shimmer 3s ease-in-out infinite;
}

/* Pulsing accent dot */
.label-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--info);
  margin-right: 0.5rem;
  position: relative;
  flex-shrink: 0;
}

.label-dot::after {
  display: none;
}

@keyframes shimmer {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

@keyframes pulse-ring {
  0% { width: 10px; height: 10px; opacity: 0.5; }
  100% { width: 24px; height: 24px; opacity: 0; }
}

.feature-block h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.feature-sub {
  font-size: 1.1875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 3.5rem;
}

/* Feature Modes Slider (Discovery) */
.feature-modes-slider {
  position: relative;
  margin-bottom: 2.5rem;
}

.feature-modes-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.5rem 0;
}

.feature-modes-track::-webkit-scrollbar {
  display: none;
}

.feature-modes-track .feature-mode {
  flex: 0 0 38%;
  scroll-snap-align: start;
  min-width: 280px;
}


.feature-mode {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-mode:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(59, 130, 246, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-mode-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.feature-mode-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 14px;
  color: var(--info);
  flex-shrink: 0;
}

.feature-mode h3 {
  font-size: 1.1875rem;
  font-weight: 700;
}

.feature-mode p {
  font-size: 1rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* Feature Callouts */
.feature-callouts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.callout {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.125rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: all 0.2s;
}

.callout:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--foreground);
}

/* Feature List (Social, Rewards, Portfolio) */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1.25rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: var(--radius-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(59, 130, 246, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-item-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 14px;
  color: var(--info);
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-item p {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* Desktop Callout — full-bleed accent section */
.desktop-callout {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(59, 130, 246, 0.12), transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(16, 185, 129, 0.08), transparent 60%),
    var(--card);
  border: none;
  border-radius: var(--radius-lg);
  padding: 5rem 3rem;
  text-align: center;
}

.desktop-callout .feature-sub {
  margin: 0 auto 2rem;
}

.desktop-screenshot {
  width: 100%;
  max-width: 960px;
  margin: 0 auto 2rem;
  border-radius: var(--radius-lg);
  display: block;
}

.desktop-body {
  font-size: 1.0625rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.widget-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: center;
}

.widget-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--card-foreground);
  transition: all 0.2s;
}

.widget-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.faq-item summary {
  padding: 1.75rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--foreground);
  transition: color 0.2s;
}

.faq-item summary:hover {
  color: var(--info);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted-foreground);
  border-bottom: 2px solid var(--muted-foreground);
  transform: rotate(-45deg);
  transition: transform 0.3s ease, border-color 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  border-color: var(--info);
}

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

.faq-item[open] .faq-answer {
  max-height: 500px;
}

.faq-item p {
  padding: 0 0 1.75rem;
  font-size: 1rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ===== CTA Section ===== */
.cta-section {
  text-align: center;
  padding: 10rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12), transparent 60%);
  pointer-events: none;
}

.cta-globe {
  position: absolute;
  width: 420px;
  height: 420px;
  top: 50%;
  left: 50%;
  margin-left: -210px;
  margin-top: -210px;
  transform-style: preserve-3d;
  animation: globe-spin 30s linear infinite;
  pointer-events: none;
}

.globe-ring {
  position: absolute;
  inset: 0;
  border: 1.2px solid rgba(59, 130, 246, 0.1);
  border-radius: 50%;
}

.globe-ring:nth-child(1) { transform: rotateY(0deg); }
.globe-ring:nth-child(2) { transform: rotateY(30deg); }
.globe-ring:nth-child(3) { transform: rotateY(60deg); }
.globe-ring:nth-child(4) { transform: rotateY(90deg); }
.globe-ring:nth-child(5) { transform: rotateY(120deg); }
.globe-ring:nth-child(6) { transform: rotateY(150deg); }

.globe-lat {
  position: absolute;
  left: 50%;
  border: 1.2px solid rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  transform: translateX(-50%) rotateX(90deg);
}

/* Equator */
.globe-lat:nth-child(7) {
  width: 420px;
  height: 420px;
  top: 0;
}

/* ~30° N */
.globe-lat:nth-child(8) {
  width: 364px;
  height: 364px;
  top: -28px;
}

/* ~30° S */
.globe-lat:nth-child(9) {
  width: 364px;
  height: 364px;
  top: 28px;
}

/* ~60° N */
.globe-lat:nth-child(10) {
  width: 210px;
  height: 210px;
  top: -105px;
}

/* ~60° S */
.globe-lat:nth-child(11) {
  width: 210px;
  height: 210px;
  top: 105px;
}

@keyframes globe-spin {
  to { transform: rotateY(-360deg); }
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.cta-logo {
  margin: 0 auto 2.5rem;
  width: 72px;
  height: 72px;
}

.cta-section h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.cta-sub {
  font-size: 1.1875rem;
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.cta-note {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 1.25rem;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.06);
  padding: 4rem 0;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 0.875rem;
  color: rgba(148, 163, 184, 0.4);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.25rem;
    height: 56px;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem 1.5rem;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 1.25rem;
    max-height: 500px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.25s ease-out;
  }

  .nav-menu.collapsed {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-color: transparent;
    transition: max-height 0.25s ease-in, opacity 0.2s ease-in;
  }

  .nav-menu a {
    text-align: center;
  }

  .hero-cards {
    -webkit-mask-image: radial-gradient(
      ellipse 45% 40% at 50% 45%,
      transparent 0%,
      rgba(0, 0, 0, 0.2) 40%,
      rgba(0, 0, 0, 1) 75%
    );
    mask-image: radial-gradient(
      ellipse 45% 40% at 50% 45%,
      transparent 0%,
      rgba(0, 0, 0, 0.2) 40%,
      rgba(0, 0, 0, 1) 75%
    );
  }

  .hero-card {
    width: 140px;
    height: 200px;
    padding: 1rem;
    border-radius: 18px;
  }

  .hero-card-question {
    font-size: 0.6875rem;
  }

  .hero-card-stats {
    font-size: 0.625rem;
  }

  .nav-cta-mobile {
    display: block !important;
    margin-top: 0.5rem;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-actions {
    position: absolute;
    right: 1.25rem;
  }

  .hero {
    min-height: 90vh;
    padding: 0 0.5rem;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .hero-sub {
    font-size: 1.0625rem;
  }

  .edu-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-modes-track .feature-mode {
    flex: 0 0 85%;
    min-width: 0;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .showcase-screen {
    max-width: 280px;
    width: 80%;
  }

  .showcase-screen h3 {
    padding-top: 1rem;
    font-size: 1.75rem;
  }

  .desktop-callout {
    padding: 3rem 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .section {
    padding: 5rem 0;
  }

  .section-header {
    margin-bottom: 3rem;
  }

  .feature-block {
    padding: 5rem 0;
  }

  .cta-section {
    padding: 6rem 0;
  }
}


/* Glow line on feature block top edge */
.feature-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.5s;
}

.feature-block:hover::before {
  opacity: 1;
}

/* CTA glow — slightly stronger */
.cta-section::before {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18), transparent 60%);
}


/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  .label-dot::after {
    animation: none;
  }

  .feature-label::after {
    animation: none;
  }

  .app-showcase-scroll-area {
    height: auto;
  }

  .app-showcase-sticky {
    position: relative;
    height: auto;
    flex-direction: column;
    gap: 3rem;
    padding: 6rem 0;
  }

  .showcase-screen {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .showcase-progress {
    display: none;
  }

  .hero-cards {
    display: none;
  }
}
