:root {
  color-scheme: light dark;
  --bg: #f6f1e6;
  --ink: #1c1a17;
  --muted: #4f4b45;
  --accent: #197f7f;
  --accent-dark: #0f5c5c;
  --accent-warm: #e1a14b;
  --card: rgba(255, 255, 255, 0.72);
  --border: rgba(28, 26, 23, 0.12);
  --shadow: 0 18px 40px rgba(28, 26, 23, 0.18);
  --bg-gradient: radial-gradient(circle at 15% 20%, #fff6e9 0%, #f6f1e6 45%, #efe6d8 100%);
  --orbit-glow: rgba(25, 127, 127, 0.18);
  --halo-glow: rgba(225, 161, 75, 0.2);
  --bar-bg: #fff;
  --bar-border: rgba(28, 26, 23, 0.08);
  --stow-pocket-start: #ffe5c1;
  --stow-pocket-end: #f0c27d;
  --fold-color: rgba(15, 92, 92, 0.35);
  --step-bg: rgba(255, 255, 255, 0.6);
  --cta-panel-bg: linear-gradient(135deg, #fff7eb, #f3dcc0);
  --cta-panel-border: rgba(28, 26, 23, 0.1);
}

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

body {
  margin: 0;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  background: var(--bg-gradient);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-orbit,
.bg-halo {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-orbit::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--orbit-glow), transparent 70%);
  top: -160px;
  right: -120px;
  filter: blur(2px);
}

.bg-halo::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--halo-glow), transparent 65%);
  bottom: -220px;
  left: -180px;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 7vw 12px;
  animation: rise 0.9s ease both;
}

.logo {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 28px;
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  gap: 18px;
}

.nav-link {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.nav-link:hover {
  border-color: var(--accent);
}

main {
  display: flex;
  flex-direction: column;
  gap: 96px;
  padding: 24px 7vw 80px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  animation: rise 1.1s ease both;
}

.hero-text h1 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(36px, 6vw, 64px);
  margin: 10px 0 14px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
}

.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fffaf0;
  box-shadow: var(--shadow);
}

.btn.primary:hover {
  transform: translateY(-2px);
}

.btn.ghost {
  color: var(--accent-dark);
  border-color: var(--accent-dark);
  background: transparent;
}

.btn.ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 92, 92, 0.2);
}

.note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-visual {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 32px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 22px;
  animation: float-in 1.2s ease both;
}

.bar {
  position: relative;
  height: 70px;
  border-radius: 40px;
  background: var(--bar-bg);
  border: 1px solid var(--bar-border);
  display: flex;
  align-items: center;
  padding: 0 26px;
  overflow: hidden;
}

.dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-right: 14px;
  background: var(--accent-dark);
  opacity: 0.92;
  animation: slide-in 3.8s ease-in-out infinite;
}

.d2 {
  animation-delay: 0.2s;
}

.d3 {
  animation-delay: 0.4s;
  background: var(--accent);
}

.d4 {
  animation-delay: 0.6s;
}

.d5 {
  animation-delay: 0.8s;
  background: var(--accent-warm);
}

.d6 {
  animation-delay: 1s;
}

.stow-pocket {
  position: absolute;
  right: 16px;
  width: 110px;
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--stow-pocket-start), var(--stow-pocket-end));
  display: grid;
  place-items: center;
}

.fold {
  display: block;
  width: 52px;
  height: 8px;
  border-radius: 8px;
  background: var(--fold-color);
  position: absolute;
}

.fold.shadow {
  transform: translateY(12px);
  width: 38px;
  opacity: 0.5;
}

.caption {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.notch-lab {
  display: grid;
  gap: 12px;
}

.notch-shell {
  position: relative;
  height: 86px;
  border-radius: 40px;
  background: var(--bar-bg);
  border: 1px solid var(--bar-border);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.notch-cutout {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 48px;
  border-radius: 0 0 24px 24px;
  background: var(--bg);
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.notch-track {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.notch-track .item {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--accent-dark);
  animation: drift 4.4s ease-in-out infinite;
}

.notch-track .i2 {
  animation-delay: 0.3s;
  background: var(--accent);
}

.notch-track .i3 {
  animation-delay: 0.6s;
}

.notch-track .i4 {
  animation-delay: 0.9s;
  background: var(--accent-warm);
}

.notch-track .i5 {
  animation-delay: 1.2s;
}

.notch-track .i6 {
  animation-delay: 1.5s;
  background: var(--accent);
}

.notch-track .i7 {
  animation-delay: 1.8s;
}

.notch-stow {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 96px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--stow-pocket-start), var(--stow-pocket-end));
  display: grid;
  place-items: center;
}

.hover-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.22), transparent 55%);
  opacity: 0.7;
  animation: pulse 3.6s ease-in-out infinite;
}

.story,
.features,
.behavior,
.steps,
.cta-panel {
  animation: rise 1s ease both;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.story-grid article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 12px 24px rgba(28, 26, 23, 0.08);
}

.behavior-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.behavior-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(28, 26, 23, 0.12);
  display: grid;
  gap: 16px;
}

.behavior-visual {
  height: 84px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.mini-track {
  display: flex;
  gap: 10px;
  align-items: center;
}

.mini-item {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--accent-dark);
  animation: mini-drift 2.8s ease-in-out infinite;
}

.mini-item:nth-child(2) {
  animation-delay: 0.2s;
  background: var(--accent);
}

.mini-item:nth-child(3) {
  animation-delay: 0.4s;
}

.mini-item:nth-child(4) {
  animation-delay: 0.6s;
  background: var(--accent-warm);
}

.mini-stow {
  position: absolute;
  right: 16px;
  width: 44px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--stow-pocket-start), var(--stow-pocket-end));
  opacity: 0.8;
}

.behavior-visual.pulse .wave {
  width: 160px;
  height: 160px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  animation: ripple 2.6s ease-in-out infinite;
}

.behavior-visual.tint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.tint-swatch {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: var(--accent);
  box-shadow: 0 6px 16px rgba(25, 127, 127, 0.35);
  animation: bob 3.2s ease-in-out infinite;
}

.tint-swatch.warm {
  background: var(--accent-warm);
  animation-delay: 0.4s;
}

.tint-swatch.cool {
  background: var(--accent-dark);
  animation-delay: 0.8s;
}

.features,
.steps {
  display: grid;
  gap: 32px;
}

.section-heading h2 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
}

.section-heading p {
  color: var(--muted);
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-grid article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 12px 24px rgba(28, 26, 23, 0.08);
}

.feature-grid h3 {
  margin-top: 0;
}

.step-list {
  list-style: none;
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.step-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  background: var(--step-bg);
  border-radius: 22px;
  padding: 20px;
  border: 1px solid var(--border);
}

.step-number {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 24px;
  color: var(--accent-dark);
}

.cta-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  background: var(--cta-panel-bg);
  border-radius: 28px;
  padding: 28px;
  border: 1px solid var(--cta-panel-border);
}

.cta-panel h2 {
  margin: 0 0 8px;
  font-family: "Fraunces", "Times New Roman", serif;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 24px 7vw 40px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 16px;
}

.site-footer a:hover {
  color: var(--ink);
}

@keyframes slide-in {
  0%,
  20% {
    transform: translateX(0);
    opacity: 0.95;
  }
  50% {
    transform: translateX(18px);
    opacity: 0.7;
  }
  100% {
    transform: translateX(0);
    opacity: 0.95;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(12px);
  }
}

@keyframes mini-drift {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(6px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.85;
  }
}

@keyframes ripple {
  0% {
    transform: scale(0.2);
    opacity: 0.8;
  }
  70% {
    transform: scale(1);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dot {
    animation: none;
  }

  .btn {
    transition: none;
  }

  .site-header,
  .hero,
  .hero-visual,
  .story,
  .features,
  .behavior,
  .steps,
  .cta-panel,
  .notch-track .item,
  .mini-item,
  .hover-glow,
  .behavior-visual.pulse .wave,
  .tint-swatch {
    animation: none;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11120f;
    --ink: #f4efe6;
    --muted: #b8ae9e;
    --accent: #4bbcbc;
    --accent-dark: #2b9a9a;
    --accent-warm: #f0b36b;
    --card: rgba(23, 24, 21, 0.86);
    --border: rgba(244, 239, 230, 0.12);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    --bg-gradient: radial-gradient(circle at 15% 20%, #222522 0%, #151613 45%, #0f100d 100%);
    --orbit-glow: rgba(75, 188, 188, 0.2);
    --halo-glow: rgba(240, 179, 107, 0.18);
    --bar-bg: #151715;
    --bar-border: rgba(244, 239, 230, 0.12);
    --stow-pocket-start: #3b2f1f;
    --stow-pocket-end: #7b5b30;
    --fold-color: rgba(75, 188, 188, 0.45);
    --step-bg: rgba(23, 24, 21, 0.72);
    --cta-panel-bg: linear-gradient(135deg, #1d1e1a, #2a2318);
    --cta-panel-border: rgba(244, 239, 230, 0.12);
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav {
    flex-wrap: wrap;
  }

  .notch-cutout {
    width: 120px;
  }
}
