:root {
  color-scheme: only dark;
  --bg-canvas: #090B10;
  --bg-panel: #141822;
  --bg-elevated: #1B202D;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent: #F97316;
  --accent-bright: #FFA242;
  --emerald: #22C55E;
  --blue: #52A4F8;
  --amber: #F59E0B;
  --text-primary: #F8FAFC;
  --text-secondary: #A0AABA;
  --text-muted: #707A8A;
  --radius-card: 20px;
  --radius-pill: 999px;
  --font-sans: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Segoe UI", system-ui, sans-serif;
  --font-mono: "SF Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
}

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

html {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100svh;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: clip;
  position: relative;
}

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

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #090B10;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 42% at 74% 24%, rgba(249, 115, 22, 0.14), transparent 70%),
    radial-gradient(45% 35% at 18% 12%, rgba(82, 164, 248, 0.08), transparent 72%);
}

.container {
  position: relative;
  z-index: 1;
  width: min(1140px, calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9, 11, 16, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 650;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.brand-icon {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(249, 115, 22, 0.34);
  background: rgba(249, 115, 22, 0.1);
  color: var(--accent-bright);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.8);
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font: 500 0.8125rem/1 var(--font-sans);
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

/* Hero */
.hero {
  padding: clamp(56px, 8vw, 108px) 0 clamp(44px, 6vw, 76px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 5vw, 64px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--accent-bright);
}

.eyebrow-sep {
  opacity: 0.55;
}

.hero-title {
  margin: 0 0 22px;
  font-size: clamp(2.25rem, 4.6vw, 3.65rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.title-line {
  display: block;
}

.title-accent {
  background: linear-gradient(96deg, #FFB35C 0%, #F97316 55%, #EA580C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  margin: 0 0 26px;
  max-width: 52ch;
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  color: var(--text-secondary);
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}

.platform-tag {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 13px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease, color 160ms ease;
}

.primary-btn {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.28);
}

.primary-btn:hover {
  background: var(--accent-bright);
}

.secondary-btn {
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel);
  color: var(--text-primary);
}

.secondary-btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}

@media (prefers-reduced-motion: no-preference) {
  .primary-btn:hover,
  .secondary-btn:hover {
    transform: translateY(-1px);
  }
}

/* Camera stage */
.hero-stage {
  position: relative;
  margin: 0;
  padding: clamp(20px, 3vw, 34px);
  border-radius: 26px;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(160deg, rgba(22, 26, 36, 0.92), rgba(11, 13, 19, 0.96));
  overflow: hidden;
}

.viewfinder-frame {
  position: absolute;
  inset: 16px;
  pointer-events: none;
}

.vf-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(255, 255, 255, 0.24);
  border-style: solid;
  border-width: 0;
}

.vf-tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.vf-tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.vf-bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.vf-br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }

.stage-halo {
  position: absolute;
  inset: 8% 12% 16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.22), transparent 68%);
  filter: blur(24px);
  pointer-events: none;
}

.hero-picture {
  position: relative;
  z-index: 1;
  display: block;
}

.hero-camera {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.72));
}

.stage-caption {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Features Bento */
.features {
  padding: clamp(44px, 6vw, 84px) 0 clamp(64px, 8vw, 108px);
}

.section-head {
  margin-bottom: 30px;
}

.section-kicker {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.section-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.bento-card {
  padding: 26px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(20, 24, 34, 0.92), rgba(15, 18, 26, 0.92));
  transition: border-color 180ms ease, background-color 180ms ease;
}

.bento-card:hover {
  border-color: var(--border-strong);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.card-accent {
  width: 28px;
  height: 4px;
  border-radius: var(--radius-pill);
}

.accent-orange { background: var(--accent); }
.accent-amber { background: var(--amber); }
.accent-emerald { background: var(--emerald); }
.accent-blue { background: var(--blue); }

.card-title {
  margin: 0 0 10px;
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.card-body {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Roadmap strip */
.roadmap-strip {
  margin-top: 22px;
  padding: 24px 26px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(249, 115, 22, 0.22);
  background: linear-gradient(120deg, rgba(249, 115, 22, 0.08), rgba(20, 24, 34, 0.92) 55%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.roadmap-copy {
  max-width: 60ch;
}

.roadmap-title {
  margin: 0 0 6px;
  font-size: 1.0625rem;
  font-weight: 650;
}

.roadmap-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.roadmap-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-pill {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(9, 11, 16, 0.6);
  font-size: 0.78rem;
  color: var(--text-primary);
}

/* Scroll-driven entry reveal (decorative progressive enhancement per Modern Web Guidance) */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes card-enter {
      from {
        opacity: 0.2;
        transform: translateY(18px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .reveal-card {
      animation: card-enter auto linear backwards;
      animation-timeline: view(block);
      animation-range: entry 0% entry 40%;
    }
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 28px 0 42px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.disclaimer {
  margin: 0;
  max-width: 82ch;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

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

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

  .hero-copy {
    order: 1;
  }

  .hero-stage {
    order: 2;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(1140px, calc(100% - 28px));
  }

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

  .status-pill {
    display: none;
  }
}
