:root {
  /* Obsidian Hardware Dark Palette (omni-v Inspired) */
  --bg-page: #05070b;
  --bg-elevated: #090d14;
  --bg-surface: #0c111b;
  --bg-surface-hover: #111827;
  --bg-surface-soft: rgba(255, 255, 255, 0.045);

  /* Ink & Typography */
  --ink-primary: #f8fafc;
  --ink-secondary: #94a0b4;
  --ink-muted: #5d697d;
  --ink-silver: #7e8a9e;

  /* Hardware Accents */
  --cta-bg: #f8fafc;
  --cta-bg-hover: #ffffff;
  --cta-ink: #05070b;
  --accent-orange: #ff6b1a;
  --accent-orange-glow: rgba(255, 107, 26, 0.45);
  --accent-steel: #60a5fa;
  --accent-steel-glow: rgba(96, 165, 250, 0.3);
  --success: #22c55e;
  --danger: #f43f5e;

  /* Precision Hairlines & Glass */
  --border-subtle: rgba(255, 255, 255, 0.085);
  --border-strong: rgba(255, 255, 255, 0.18);
  --border-bracket: rgba(255, 255, 255, 0.34);
  --glass-bg: rgba(9, 13, 20, 0.72);
  --glass-border: rgba(255, 255, 255, 0.12);

  /* Shadows */
  --shadow-xs: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 14px 36px rgba(0, 0, 0, 0.48);
  --shadow-md: 0 28px 72px rgba(0, 0, 0, 0.65);
  --shadow-lg: 0 42px 110px rgba(0, 0, 0, 0.8);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 9999px;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "SF Pro Display", "Inter", -apple-system, "PingFang SC", sans-serif;
  --font-mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Layout */
  --container-max: 1280px;
  --section-gap: clamp(84px, 9.5vw, 136px);
  --ease-apple: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   DAYLIGHT MODE (html[data-theme="light"]) — Apple Keynote Studio
   ========================================================= */
html[data-theme="light"] {
  color-scheme: light;
  --bg-page: #f1f4f9;
  --bg-elevated: #f8fafd;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f4f7fb;
  --bg-surface-soft: rgba(15, 23, 42, 0.045);

  --ink-primary: #11151d;
  --ink-secondary: #4e596b;
  --ink-muted: #7a8699;
  --ink-silver: #7c879b;

  --cta-bg: #121620;
  --cta-bg-hover: #1d2433;
  --cta-ink: #ffffff;
  --accent-orange: #ea580c;
  --accent-orange-glow: rgba(234, 88, 12, 0.34);

  --border-subtle: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.18);
  --border-bracket: rgba(15, 23, 42, 0.34);
  --glass-bg: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.92);

  --shadow-xs: 0 3px 12px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 24px 60px rgba(15, 23, 42, 0.11);
  --shadow-lg: 0 36px 90px rgba(15, 23, 42, 0.16);
}

html[data-theme="light"] .eyebrow::after {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.3), transparent);
}

html[data-theme="light"] .btn-primary {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

html[data-theme="light"] .btn-primary:hover,
html[data-theme="light"] .btn-glow:hover {
  box-shadow:
    0 14px 32px rgba(15, 23, 42, 0.25),
    0 0 26px rgba(234, 88, 12, 0.42),
    0 0 52px rgba(59, 130, 246, 0.24);
}

html[data-theme="light"] .btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--border-strong);
}

html[data-theme="light"] .btn-secondary:hover {
  background: #ffffff;
  border-color: var(--ink-primary);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-page);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  color-scheme: dark;
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--ink-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

.container {
  width: min(100% - 48px, var(--container-max));
  margin-inline: auto;
}

@media (max-width: 768px) {
  .container {
    width: calc(100% - 32px);
  }
}

/* Technical Micro Eyebrow (omni-v style) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

.eyebrow::after {
  content: "";
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), transparent);
}

.dual-heading {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.036em;
  line-height: 1.04;
  font-size: clamp(36px, 4.6vw, 62px);
}

.dual-heading .tone-dark {
  display: block;
  color: var(--ink-primary);
}

.dual-heading .tone-light {
  display: block;
  color: var(--ink-silver);
}

/* Luminous White Pill CTAs + Glowing Hover Aura */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.3s var(--ease-apple),
    background-color 0.25s ease,
    box-shadow 0.35s var(--ease-apple),
    border-color 0.25s ease,
    color 0.25s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--cta-bg);
  color: var(--cta-ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 18px rgba(255, 255, 255, 0.14);
}

.btn-primary:hover {
  background: var(--cta-bg-hover);
  transform: translateY(-2px);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.6),
    0 0 28px rgba(255, 255, 255, 0.45),
    0 0 54px rgba(255, 107, 26, 0.34);
}

.btn-glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 107, 26, 0.22) 48%, rgba(255, 255, 255, 0.72) 54%, transparent 80%);
  transform: translateX(-140%) skewX(-18deg);
  transition: transform 0.72s var(--ease-apple);
  pointer-events: none;
}

.btn-glow:hover::before {
  transform: translateX(140%) skewX(-18deg);
}

.btn-glow:hover {
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.68),
    0 0 28px rgba(255, 255, 255, 0.56),
    0 0 60px rgba(255, 107, 26, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink-primary);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.42);
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(96, 165, 250, 0.18);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-secondary);
  padding-inline: 12px;
}

.btn-ghost:hover {
  color: var(--ink-primary);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 12.5px;
}

/* Precision Hardware Corner Brackets (omni-v Product Cards) */
.corner-brackets {
  position: relative;
}

.corner-brackets::before,
.corner-brackets::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  pointer-events: none;
  transition: border-color 0.3s ease, width 0.3s ease, height 0.3s ease;
}

.corner-brackets::before {
  top: -1px;
  left: -1px;
  border-top: 1.5px solid var(--border-bracket);
  border-left: 1.5px solid var(--border-bracket);
}

.corner-brackets::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 1.5px solid var(--border-bracket);
  border-right: 1.5px solid var(--border-bracket);
}

.corner-brackets:hover::before,
.corner-brackets:hover::after {
  border-color: var(--accent-orange);
  width: 16px;
  height: 16px;
}

/* Staggered Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(4px);
  transition:
    opacity 0.9s var(--ease-apple),
    transform 0.9s var(--ease-apple),
    filter 0.85s var(--ease-apple);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.78s var(--ease-apple),
    transform 0.78s var(--ease-apple);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}
