:root {
  --bg: #050403;
  --bg-soft: #0b0806;
  --panel: rgba(24, 16, 10, 0.72);
  --panel-strong: rgba(38, 24, 13, 0.88);
  --text: #fff8ec;
  --muted: #c9b9a0;
  --dim: #867867;
  --line: rgba(255, 180, 78, 0.22);
  --line-cool: rgba(178, 193, 188, 0.16);
  --amber: #ffae3d;
  --amber-bright: #ffd37a;
  --amber-deep: #b45b06;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
  --radius: 28px;
  --radius-sm: 16px;
  --content: 1120px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  background:
    radial-gradient(circle at 68% 20%, rgba(255, 157, 38, 0.18), transparent 30rem),
    radial-gradient(circle at 10% 0%, rgba(107, 66, 35, 0.28), transparent 26rem),
    linear-gradient(135deg, #020202 0%, #0b0704 48%, #050403 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    radial-gradient(circle at 20% 25%, rgba(255, 198, 97, 0.16) 0 1px, transparent 1px),
    radial-gradient(circle at 88% 38%, rgba(255, 198, 97, 0.13) 0 1px, transparent 1px);
  background-size: 190px 190px, 260px 260px;
  opacity: 0.55;
}

body::after {
  position: fixed;
  inset: auto 0 0;
  z-index: -1;
  height: 34vh;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(ellipse at 40% 100%, rgba(255, 139, 18, 0.08), transparent 42%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.9));
}

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

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: #120b04;
  background: var(--amber-bright);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  width: min(calc(100% - 2rem), 1320px);
  margin: 1.5rem auto;
  overflow: hidden;
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 16rem),
    rgba(0, 0, 0, 0.42);
  box-shadow: var(--shadow);
}

.compact-shell {
  width: min(calc(100% - 2rem), 980px);
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--content);
  margin: 0 auto;
  padding: 1.5rem clamp(1.25rem, 3vw, 3.5rem);
}

.brand,
.primary-nav,
.site-footer nav,
.footer-mark {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark,
.pricing-mark {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: url("/assets/img/driftlight-logo.png") center / cover no-repeat;
  box-shadow: 0 0 28px rgba(255, 166, 48, 0.34);
}

.primary-nav {
  gap: clamp(0.4rem, 2.3vw, 1.8rem);
  font-size: 0.92rem;
  color: var(--muted);
}

.primary-nav a:not(.button),
.site-footer a,
.text-link {
  text-decoration: none;
  transition: color 160ms ease;
}

.primary-nav a:not(.button):hover,
.primary-nav a[aria-current="page"],
.site-footer a:hover,
.text-link:hover {
  color: var(--text);
}

.button,
.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid rgba(255, 218, 142, 0.28);
  border-radius: 999px;
  color: #1c1005;
  background: linear-gradient(180deg, #ffc06b, var(--amber));
  box-shadow: 0 16px 40px rgba(255, 153, 34, 0.2);
  font-weight: 800;
  text-decoration: none;
}

.button:hover,
.store-badge:hover {
  filter: brightness(1.06);
}

.button-small {
  min-height: 2.65rem;
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
}

.button-outline {
  color: var(--amber-bright);
  background: rgba(255, 174, 61, 0.04);
  border-color: rgba(255, 174, 61, 0.62);
  box-shadow: none;
}

.nav-toggle {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 174, 61, 0.05);
}

.nav-toggle span[aria-hidden="true"],
.nav-toggle span[aria-hidden="true"]::before,
.nav-toggle span[aria-hidden="true"]::after {
  display: block;
  width: 1rem;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--amber-bright);
}

.nav-toggle span[aria-hidden="true"]::before,
.nav-toggle span[aria-hidden="true"]::after {
  content: "";
  transform: translateY(-6px);
}

.nav-toggle span[aria-hidden="true"]::after {
  transform: translateY(4px);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  max-width: var(--content);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 7rem) clamp(1.25rem, 3vw, 3.5rem);
}

.hero {
  min-height: 650px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--amber-bright);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 1.25rem;
  font-size: clamp(3.25rem, 7vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.5rem;
  color: var(--amber-bright);
  font-size: 1.15rem;
}

p {
  color: var(--muted);
}

.hero-text {
  max-width: 34rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.store-badge {
  gap: 0.75rem;
  min-height: 3.9rem;
  color: #fff;
  background: #050505;
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.store-badge small {
  display: block;
  color: #d8d8d8;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
}

.store-icon {
  position: relative;
  width: 1.55rem;
  height: 2rem;
  border: 2px solid #fff;
  border-radius: 0.38rem;
}

.store-icon::before {
  position: absolute;
  right: 0.45rem;
  bottom: 0.18rem;
  left: 0.45rem;
  height: 2px;
  background: #fff;
  content: "";
}

.hero-orbit {
  min-height: 430px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(255, 178, 63, 0.18) 0 24%, transparent 25%),
    radial-gradient(circle, rgba(255, 122, 0, 0.08) 0 42%, transparent 43%);
}

.breathing-light {
  width: min(52vw, 330px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, #ffe28f 0 16%, #ffc153 17% 31%, #f69522 32% 48%, rgba(194, 92, 5, 0.52) 49% 67%, rgba(105, 48, 10, 0.12) 68% 100%);
  box-shadow:
    0 0 50px rgba(255, 186, 74, 0.58),
    0 0 150px rgba(255, 128, 18, 0.3),
    0 0 260px rgba(255, 128, 18, 0.14);
  animation: breathe 7s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(0.92);
    filter: brightness(0.96);
  }
  50% {
    transform: scale(1.04);
    filter: brightness(1.08);
  }
}

.benefits,
.pricing-panel,
.simple-page {
  max-width: var(--content);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 3vw, 3.5rem);
}

.section-heading {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.center {
  text-align: center;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.benefit-item {
  min-height: 13.5rem;
  padding: 1.5rem;
  border-left: 1px solid var(--line-cool);
}

.benefit-item p {
  margin-bottom: 0;
}

.benefit-icon {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  display: inline-grid;
  place-items: center;
  margin-bottom: 1.15rem;
  color: var(--amber);
  background: radial-gradient(circle, rgba(255, 174, 61, 0.16), transparent 68%);
}

.page-icon {
  --icon-line: 3px;
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  display: inline-grid;
  place-items: center;
  margin-bottom: 1.15rem;
  color: var(--amber);
  background: radial-gradient(circle, rgba(255, 174, 61, 0.16), transparent 68%);
}

.page-icon::before {
  width: 3.2rem;
  height: 3.2rem;
  content: "";
}

.benefit-icon svg {
  width: 3.45rem;
  height: 3.45rem;
  display: block;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(255, 174, 61, 0.34));
}

.benefit-icon svg path:first-child:last-child {
  fill: none;
}

.product-section {
  padding-top: 2rem;
}

.phone-frame {
  width: min(100%, 340px);
  margin: 0 auto;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 2.2rem;
  background: linear-gradient(135deg, #252525, #050505 45%, #38312a);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.phone-frame img {
  border-radius: 1.72rem;
  background: #090603;
}

.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 1.72rem;
  background: #f47a16;
}

.phone-screen img {
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.phone-screen-caption {
  position: absolute;
  right: 1.5rem;
  bottom: 2.6rem;
  left: 1.5rem;
  display: grid;
  gap: 0.3rem;
  text-align: center;
  text-shadow: 0 2px 14px rgba(76, 28, 0, 0.24);
}

.phone-screen-caption strong {
  color: rgba(255, 252, 240, 0.96);
  font-size: 1.42rem;
  line-height: 1.1;
}

.phone-screen-caption span {
  color: rgba(255, 248, 236, 0.86);
  font-size: 0.98rem;
  line-height: 1.3;
}

.check-list {
  display: grid;
  gap: 0.9rem;
  padding: 0;
  margin: 1.8rem 0 0;
  list-style: none;
  color: var(--muted);
}

.check-list li {
  position: relative;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.check-list li::before {
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  margin-top: 0.2rem;
  border-radius: 50%;
  background: var(--amber);
  content: "";
}

.check-list li::after {
  position: absolute;
  width: 0.5rem;
  height: 0.28rem;
  margin-top: 0.52rem;
  margin-left: 0.29rem;
  border-bottom: 2px solid #130b04;
  border-left: 2px solid #130b04;
  content: "";
  transform: rotate(-45deg);
}

.pricing-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.4rem;
  align-items: center;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 148, 32, 0.44);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 10% 40%, rgba(255, 173, 61, 0.22), transparent 16rem),
    linear-gradient(135deg, rgba(64, 36, 14, 0.72), rgba(8, 6, 4, 0.72));
}

.pricing-panel h2 {
  margin-bottom: 0.2rem;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.pricing-panel p {
  margin-bottom: 0;
}

.pricing-mark {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  max-width: var(--content);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 3vw, 3.5rem);
  border-top: 1px solid var(--line-cool);
}

.site-footer nav {
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer h2 {
  margin-bottom: 0.7rem;
  color: var(--text);
  font-size: 0.95rem;
}

.site-footer a,
.site-footer p {
  color: var(--dim);
  font-size: 0.92rem;
}

.site-footer nav div,
.site-footer nav {
  display: grid;
}

.site-footer p {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
}

.compact-footer {
  grid-template-columns: auto 1fr;
}

.compact-footer nav {
  display: flex;
  justify-content: center;
}

.simple-page {
  min-height: 520px;
}

.page-hero {
  max-width: 680px;
  margin: 0 auto clamp(2rem, 5vw, 4rem);
  text-align: center;
}

.page-hero h1 {
  max-width: none;
  margin-bottom: 0.65rem;
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.page-hero p {
  font-size: 1.25rem;
}

.page-icon {
  width: 7rem;
  height: 7rem;
  border: 1px solid rgba(255, 174, 61, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(255, 148, 32, 0.14);
}

.book-icon::before {
  border: 3px solid currentColor;
  border-radius: 8px 8px 5px 5px;
  background: transparent;
  clip-path: none;
  box-shadow: inset 1.25rem 0 0 -1.15rem currentColor;
}

.shield-icon::before {
  clip-path: polygon(50% 3%, 88% 18%, 82% 70%, 50% 96%, 18% 70%, 12% 18%);
}

.chat-icon::before {
  border: 3px solid currentColor;
  border-radius: 12px;
  background: transparent;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 72%, 58% 100%, 56% 72%, 0 72%);
}

.content-panel,
.reference-placeholder,
.support-actions {
  max-width: 720px;
  margin: 0 auto 1.25rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line-cool);
  border-radius: var(--radius-sm);
  background: var(--panel);
}

.prose h2 {
  margin-top: 2rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p:last-child,
.prose ul:last-child {
  margin-bottom: 0;
}

.prose li {
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.notice-panel {
  border-color: rgba(255, 174, 61, 0.36);
  background: var(--panel-strong);
}

.reference-placeholder {
  border-style: dashed;
}

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

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 3.25rem;
  color: var(--amber-bright);
  font-weight: 800;
}

@media (max-width: 860px) {
  .page-shell {
    width: min(calc(100% - 1rem), 1320px);
    margin: 0.5rem auto;
    border-radius: 20px;
  }

  .site-header {
    padding: 1rem;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% - 0.3rem);
    right: 1rem;
    left: 1rem;
    display: none;
    padding: 1rem;
    border: 1px solid var(--line-cool);
    border-radius: var(--radius-sm);
    background: rgba(7, 5, 4, 0.96);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .primary-nav {
    display: grid;
  }

  .section-grid,
  .hero,
  .product-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2.4rem;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(3rem, 15vw, 4.6rem);
    overflow-wrap: break-word;
  }

  .hero-orbit {
    min-height: 300px;
  }

  .breathing-light {
    width: min(76vw, 280px);
  }

  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pricing-mark {
    margin: 0 auto;
  }

  .site-footer,
  .compact-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav,
  .compact-footer nav {
    justify-content: start;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 1rem;
  }

  .brand-mark {
    width: 2.2rem;
    height: 2.2rem;
  }

  h1 {
    max-width: 8.5ch;
    font-size: clamp(2.65rem, 13vw, 3.45rem);
  }

  h2 {
    font-size: clamp(1.85rem, 9vw, 2.4rem);
  }

  .eyebrow {
    font-size: 0.76rem;
  }

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

  .benefit-item {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid var(--line-cool);
  }

  .button,
  .store-badge,
  .support-actions .text-link {
    width: 100%;
  }

  .compact-footer nav {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
