/* Foxy Switcher — landing page
   Tokens follow docs/DESIGN_SYSTEM.md (LURA v1). */

:root {
  --c-orange-50: #fff7ed;
  --c-orange-100: #ffe8d1;
  --c-orange-200: #ffd0a3;
  --c-orange-300: #ffb066;
  --c-orange-400: #ff9233;
  --c-orange-500: #ff7a1a;
  --c-orange-600: #e55f00;
  --c-orange-700: #b94a00;

  --c-gray-0: #ffffff;
  --c-gray-50: #fafafb;
  --c-gray-100: #f3f3f5;
  --c-gray-200: #e8e8ec;
  --c-gray-300: #d8d8de;
  --c-gray-500: #8e8e96;
  --c-gray-600: #6e6e76;
  --c-gray-700: #4a4a52;
  --c-gray-800: #2a2a2e;
  --c-gray-900: #1a1a1c;
  --c-gray-1000: #0d0d0f;

  --c-green-500: #22c55e;
  --c-amber-500: #f59e0b;
  --c-blue-500: #3b82f6;

  --bg-window: var(--c-gray-50);
  --bg-card: var(--c-gray-0);
  --bg-card-hover: var(--c-gray-100);
  --bg-pill: rgba(0, 0, 0, 0.05);
  --bg-topbar: rgba(255, 255, 255, 0.78);

  --text-primary: var(--c-gray-1000);
  --text-secondary: var(--c-gray-600);
  --text-tertiary: var(--c-gray-500);
  --text-link: var(--c-orange-600);
  --text-on-accent: #ffffff;

  --separator: rgba(20, 20, 25, 0.1);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.18);

  --accent: var(--c-orange-500);
  --accent-hover: var(--c-orange-600);
  --accent-soft: var(--c-orange-100);
  --accent-soft-text: var(--c-orange-700);

  --ok: var(--c-green-500);
  --ok-soft: rgba(34, 197, 94, 0.14);
  --warn: var(--c-amber-500);
  --warn-soft: rgba(245, 158, 11, 0.16);
  --info: var(--c-blue-500);
  --info-soft: rgba(59, 130, 246, 0.12);

  --radius-button: 8px;
  --radius-card: 12px;
  --radius-pill: 9999px;

  --shadow-card: 0 0 0 0.5px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 0 0 0.5px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-cta: 0 8px 24px rgba(255, 122, 26, 0.32);
  --shadow-focus: 0 0 0 3px rgba(255, 122, 26, 0.3);

  --font-sans:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro",
    "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --font-mono:
    ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-window: var(--c-gray-1000);
    --bg-card: var(--c-gray-900);
    --bg-card-hover: #232327;
    --bg-pill: rgba(255, 255, 255, 0.08);
    --bg-topbar: rgba(20, 20, 22, 0.72);

    --text-primary: #f5f5f7;
    --text-secondary: #b0b0b6;
    --text-tertiary: #8a8a92;
    --text-link: var(--c-orange-300);

    --separator: rgba(255, 255, 255, 0.1);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.18);

    --accent-soft: rgba(255, 122, 26, 0.16);
    --accent-soft-text: var(--c-orange-300);

    --ok-soft: rgba(74, 222, 128, 0.18);
    --warn-soft: rgba(251, 191, 36, 0.2);
    --info-soft: rgba(96, 165, 250, 0.18);

    --shadow-card: 0 0 0 0.5px rgba(255, 255, 255, 0.06), 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-card-hover: 0 0 0 0.5px rgba(255, 255, 255, 0.1), 0 12px 32px rgba(0, 0, 0, 0.5);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-primary);
  background:
    radial-gradient(
      1100px 600px at 80% -10%,
      rgba(255, 122, 26, 0.18),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at -10% 10%,
      rgba(255, 122, 26, 0.08),
      transparent 60%
    ),
    var(--bg-window);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: dark) {
  body {
    background:
      radial-gradient(
        1100px 600px at 80% -10%,
        rgba(255, 122, 26, 0.22),
        transparent 60%
      ),
      radial-gradient(
        900px 500px at -10% 10%,
        rgba(255, 122, 26, 0.1),
        transparent 60%
      ),
      var(--bg-window);
    background-attachment: fixed;
  }
}

a {
  color: var(--text-link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-pill);
  padding: 1px 6px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.01em;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 24px;
  background: var(--bg-topbar);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 -0.5px 0 var(--separator);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  border-radius: 6px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.topnav a {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-secondary);
}
.topnav a:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
  text-decoration: none;
}
.topnav a.ghost {
  color: var(--text-primary);
  font-weight: 500;
}

@media (max-width: 640px) {
  .topnav a:not(.ghost) {
    display: none;
  }
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 56px;
}
@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 0 32px;
    text-align: center;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 24px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-soft-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.18);
}

.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hero .tagline {
  margin: 0 0 20px;
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.hero .lede {
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 56ch;
}
@media (max-width: 880px) {
  .hero .lede {
    margin-left: auto;
    margin-right: auto;
  }
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 880px) {
  .cta-row {
    justify-content: center;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-button);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform 120ms ease, box-shadow 180ms ease, background 180ms ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}
.btn.primary {
  background: var(--accent);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-cta);
}
.btn.primary:hover {
  background: var(--accent-hover);
}
.btn.secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 0.5px var(--border-subtle), var(--shadow-card);
}
.btn.secondary:hover {
  background: var(--bg-card-hover);
}
.btn-sub {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.8;
  margin-left: 4px;
}

.micro-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* Hero art */
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
}
.hero-art .halo {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 360px;
  height: 360px;
  background: radial-gradient(
    closest-side,
    rgba(255, 122, 26, 0.32),
    rgba(255, 122, 26, 0) 70%
  );
  filter: blur(8px);
  pointer-events: none;
}
.hero-art .mascot {
  position: relative;
  width: clamp(220px, 28vw, 320px);
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(255, 122, 26, 0.28));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art .mascot {
    animation: none;
  }
}

/* Section base */
section {
  scroll-margin-top: 80px;
}
section h2 {
  font-size: clamp(26px, 3vw, 32px);
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}

/* Intro video */
.intro-video {
  padding: 16px 0 56px;
}
.intro-video h2 {
  margin-bottom: 20px;
}
.intro-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card-hover);
  background: var(--bg-card);
}
.intro-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
@media (max-width: 700px) {
  .intro-video {
    padding: 8px 0 40px;
  }
  .intro-video-frame {
    border-radius: 8px;
  }
}

/* Why */
.why {
  padding: 32px 0 24px;
  max-width: 760px;
}
.why p {
  margin: 0 0 16px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Features */
.features {
  padding: 56px 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 880px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 180ms ease, transform 180ms ease;
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 14px 0 6px;
  letter-spacing: -0.005em;
}
.card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-soft-text);
}
.card-icon[data-tone="ok"] {
  background: var(--ok-soft);
  color: var(--ok);
}
.card-icon[data-tone="warn"] {
  background: var(--warn-soft);
  color: var(--c-amber-500);
}
.card-icon[data-tone="info"] {
  background: var(--info-soft);
  color: var(--info);
}

/* How */
.how {
  padding: 56px 0;
  max-width: 760px;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--bg-card);
  padding: 18px 20px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text-on-accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
}
.steps h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 4px 0 4px;
  letter-spacing: -0.005em;
}
.steps p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* FAQ */
.faq {
  padding: 56px 0;
  max-width: 760px;
}
.faq details {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: 10px;
  transition: box-shadow 180ms ease;
}
.faq details[open] {
  box-shadow: var(--shadow-card-hover);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 1.75px solid var(--text-tertiary);
  border-bottom: 1.75px solid var(--text-tertiary);
  transform: rotate(45deg);
  transition: transform 180ms ease;
  flex-shrink: 0;
}
.faq details[open] summary::after {
  transform: rotate(-135deg);
}
.faq p {
  margin: 12px 0 4px;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.65;
}

/* CTA band */
.cta-band {
  margin: 40px 0 64px;
  padding: 32px;
  border-radius: var(--radius-card);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, var(--c-orange-500), var(--c-orange-600));
  color: var(--text-on-accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 24px 48px rgba(255, 122, 26, 0.28);
}
.cta-band h2 {
  margin: 0 0 6px;
  color: var(--text-on-accent);
  font-size: 22px;
}
.cta-band p {
  margin: 0;
  opacity: 0.92;
  max-width: 56ch;
}
.cta-band .btn.primary {
  background: var(--c-gray-1000);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  white-space: nowrap;
}
.cta-band .btn.primary:hover {
  background: var(--c-gray-800);
}
@media (max-width: 720px) {
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

/* Footer */
.footer {
  border-top: 0.5px solid var(--separator);
  margin-top: 16px;
  padding: 32px 0;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}
@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-primary);
}
.footer-brand img {
  border-radius: 5px;
}
.footer-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
}
.footer-links a:hover {
  color: var(--text-primary);
}
.footer-meta {
  margin: 0;
  font-size: 13px;
  color: var(--text-tertiary);
}
@media (max-width: 720px) {
  .footer-meta {
    grid-column: 1;
  }
}
