:root {
  --bg: #06090f;
  --surface: #0e131e;
  --ink: #e8edf7;
  --muted: #95a2b7;
  --accent: #22a8ff;
  --accent-2: #8ae05f;
  --accent-3: #a78bfa;
  --accent-4: #f59e0b;
  --accent-5: #f472b6;
  --line: #1d2942;
  --shadow: 0 18px 40px rgba(5, 8, 16, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 10% -20%, #113f86 0%, transparent 32%),
    radial-gradient(circle at 95% 15%, #1d2f5c 0%, transparent 38%), var(--bg);
  line-height: 1.6;
}

.background-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.25;
  pointer-events: none;
}

.orb-a {
  width: 360px;
  height: 360px;
  left: -110px;
  top: 15vh;
  background: #2762d9;
}

.orb-b {
  width: 280px;
  height: 280px;
  right: -100px;
  top: 55vh;
  background: #12b6c8;
}

.container {
  width: min(1024px, 92vw);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
}

.brand {
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a,
a {
  color: var(--accent);
}

h1,
h2 {
  font-family: "Fraunces", serif;
  line-height: 1.15;
}

.hero {
  padding: 3.5rem 0 2rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.2rem;
  align-items: start;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  color: var(--muted);
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4.8vw, 4rem);
  margin: 0.5rem 0 1rem;
  max-width: 14ch;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 56ch;
}

.quick-points {
  margin-top: 0.85rem;
  color: #9fc2ec;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

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

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.btn {
  text-decoration: none;
  font-weight: 700;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #041123;
  box-shadow: 0 8px 22px rgba(34, 168, 255, 0.35);
}

.btn-secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
}

.phone-mock {
  background: #090d14;
  border-radius: 22px;
  border: 1px solid #1a2438;
  box-shadow: 0 24px 44px rgba(8, 12, 21, 0.48);
  padding: 1rem;
  color: #f5f8ff;
}

.mock-title {
  font-weight: 700;
  margin-top: 0.1rem;
  margin-bottom: 0.8rem;
}

.phone-mock ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.phone-mock li {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  background: #0f1726;
  border: 1px solid #202f49;
  border-radius: 12px;
  padding: 0.55rem 0.65rem;
}

.ago {
  background: #132138;
  color: #9fc2ec;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.ago.now {
  background: #11341e;
  color: #9de483;
}

.app-inspired {
  margin: 1rem auto 1.5rem;
}

.shot-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.8rem;
}

.scroll-shot {
  background: linear-gradient(180deg, #03060b 0%, #070b13 100%);
  border: 1px solid #1a2842;
  border-radius: 18px;
  padding: 0.85rem;
  box-shadow: var(--shadow);
}

.scroll-head {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.today-link {
  color: #41b8ff;
  font-size: 0.9rem;
}

.scroll-date {
  color: #9eb0cd;
  font-size: 0.9rem;
}

.scroll-awake {
  color: #91df6d;
  font-size: 0.86rem;
  margin-bottom: 0.5rem;
}

.scroll-sleep {
  border: 1px solid #25386b;
  background: #0d1430;
  border-radius: 10px;
  padding: 0.35rem 0.5rem;
  color: #d5ddf9;
  margin-bottom: 0.55rem;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.88rem;
}

.scroll-sleep span {
  background: #1f67b0;
  color: #e7f3ff;
  border-radius: 999px;
  padding: 0.02rem 0.45rem;
  font-weight: 700;
}

.scroll-list {
  display: grid;
  gap: 0.35rem;
}

.scroll-list .row {
  display: grid;
  grid-template-columns: 4.8rem 1fr auto;
  gap: 0.55rem;
  align-items: center;
  border: 1px solid #1b2a45;
  background: #0b1220;
  border-radius: 9px;
  padding: 0.37rem 0.5rem;
}

.scroll-list .row b {
  color: #39b0ff;
  font-size: 0.84rem;
}

.scroll-list .row span {
  color: #dce5f7;
  font-size: 0.9rem;
}

.scroll-list .row em {
  color: #7f93b6;
  font-style: normal;
  font-size: 0.8rem;
}

.timeline-shot {
  background: linear-gradient(180deg, #060a12 0%, #090e18 100%);
  border: 1px solid #1b2740;
  border-radius: 18px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.shot-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.8rem;
}

.shot-title {
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
}

.shot-day {
  color: #90e56e;
  font-size: 0.92rem;
}

.sleep-banner {
  background: #0e1330;
  border: 1px solid #26366a;
  border-radius: 11px;
  padding: 0.5rem 0.65rem;
  margin-bottom: 0.7rem;
  color: #d5ddf9;
  display: flex;
  justify-content: space-between;
}

.sleep-banner span {
  background: #1f67b0;
  color: #e7f3ff;
  padding: 0.06rem 0.45rem;
  border-radius: 999px;
  font-weight: 700;
}

.awake-banner {
  color: #91df6d;
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
  padding: 0 0.2rem;
}

.group-row span:nth-child(2) {
  font-size: 0.85rem;
}

.shot-row {
  display: grid;
  grid-template-columns: 5.3rem 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.58rem 0.68rem;
  margin-bottom: 0.45rem;
  border: 1px solid #1c2a43;
  border-radius: 10px;
  background: #0c1421;
}

.shot-row span:first-child {
  color: #3bb3ff;
  font-weight: 600;
}

.shot-row span:last-child {
  color: #8297bb;
  font-size: 0.9rem;
}

.imagery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem auto 1.5rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem auto 1.5rem;
}

.sheet-card h2 {
  margin-top: 0;
}

.sheet-card ul {
  margin: 0.65rem 0 0.5rem;
  padding-left: 1.1rem;
}

.sheet-card li {
  margin: 0.2rem 0;
}

.use-cases .use-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.use-cases .use-grid div {
  border: 1px solid #223351;
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
  background: #0e1726;
  display: grid;
  gap: 0.1rem;
}

.use-cases .use-grid strong {
  font-size: 0.9rem;
}

.use-cases .use-grid span {
  color: var(--muted);
  font-size: 0.82rem;
}

.visual-card,
.card,
.panel,
.legal {
  background: rgba(13, 18, 28, 0.86);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.visual-card {
  margin: 0;
  padding: 0.7rem;
}

.visual-card img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.visual-card figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem auto;
}

.card {
  padding: 1rem;
}

.card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}

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

.panel,
.legal {
  margin: 1.5rem auto 2rem;
  padding: 1.2rem;
}

blockquote {
  margin: 0.6rem 0 0.9rem;
  padding-left: 0.85rem;
  border-left: 4px solid var(--accent);
  font-size: 1.08rem;
}

.legal h1 {
  margin-top: 0.4rem;
  margin-bottom: 1rem;
}

.legal h2 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.note {
  font-size: 0.92rem;
  color: var(--accent-2);
  font-weight: 600;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.8rem 0 2rem;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 680ms ease forwards;
}

.delay-1 {
  animation-delay: 120ms;
}

.delay-2 {
  animation-delay: 220ms;
}

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

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

  h1 {
    max-width: 18ch;
  }
}

/* Section label pills */
.section-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--label-color, var(--accent));
  background: color-mix(in srgb, var(--label-color, var(--accent)) 15%, transparent);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0;
}

.section-label + h2 {
  margin-top: 0.85rem;
}

/* Section-specific card accents */
.split .sheet-card {
  border-left: 3px solid var(--card-accent, var(--accent));
}

/* Feature summary cards — gradient headings + colored dots */
.cards .card h2 {
  background: linear-gradient(135deg, var(--ink), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cards .card h2::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--card-accent, var(--accent));
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Panel top-border accents */
.panel {
  border-top: 2px solid var(--accent-5);
  box-shadow: var(--shadow), 0 -4px 20px rgba(244, 114, 182, 0.08);
}

.panel + .panel {
  border-top-color: var(--accent);
  box-shadow: var(--shadow), 0 -4px 20px rgba(34, 168, 255, 0.08);
}

.marquee-section {
  margin: 1rem auto 1.8rem;
}

.timeline-marquee {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 18, 30, 0.88);
  box-shadow: var(--shadow);
  padding: 0.55rem 0;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.timeline-marquee::before,
.timeline-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  pointer-events: none;
  z-index: 2;
}

.timeline-marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(6, 9, 15, 0.95), transparent);
}

.timeline-marquee::after {
  right: 0;
  background: linear-gradient(270deg, rgba(6, 9, 15, 0.95), transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: max-content;
}

.marquee-item + .marquee-item::before {
  content: '•';
  display: inline-block;
  margin: 0 2rem;
  color: color-mix(in srgb, var(--muted) 85%, white 15%);
  opacity: 0.7;
}

.marquee-group + .marquee-group .marquee-item:first-child::before {
  content: '•';
  display: inline-block;
  margin: 0 2rem;
  color: color-mix(in srgb, var(--muted) 85%, white 15%);
  opacity: 0.7;
}


.marquee-item {
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.marquee-item strong {
  color: var(--ink);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Use-case grid colored stripes */
.use-grid div:nth-child(1) { border-left: 3px solid var(--accent); }
.use-grid div:nth-child(2) { border-left: 3px solid var(--accent-2); }
.use-grid div:nth-child(3) { border-left: 3px solid var(--accent-3); }
.use-grid div:nth-child(4) { border-left: 3px solid var(--accent-4); }
.use-grid div:nth-child(5) { border-left: 3px solid var(--accent-5); }
.use-grid div:nth-child(6) { border-left: 3px solid var(--accent); }

/* Closing CTA glow */
.cta-bottom .btn-primary {
  box-shadow: 0 8px 30px rgba(34, 168, 255, 0.4);
}

/* Screenshot gallery with device frames */
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 200px));
  gap: 1.2rem;
  margin-top: 1rem;
  justify-content: center;
  justify-items: center;
  align-items: end;
}

.device-frame {
  position: relative;
  background:
    linear-gradient(180deg, rgba(17, 25, 44, 0.95), rgba(9, 13, 24, 0.95)) padding-box,
    linear-gradient(140deg, rgba(140, 180, 255, 0.55), rgba(35, 52, 86, 0.85) 45%, rgba(9, 13, 24, 0.95)) border-box;
  border-radius: 22px;
  border: 1.2px solid transparent;
  padding: 12px 10px 18px;
  box-shadow:
    0 30px 70px rgba(3, 7, 18, 0.65),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  margin: 0;
  overflow: hidden;
  width: 100%;
  max-width: 200px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.shot-button {
  all: unset;
  display: block;
  cursor: zoom-in;
}

.shot-button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 70%, white 30%);
  outline-offset: 4px;
  border-radius: 14px;
}

.device-frame.focus {
  transform: translateY(-6px) scale(1.06);
  z-index: 2;
  box-shadow:
    0 36px 80px rgba(3, 7, 18, 0.7),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.device-frame.flank {
  transform: translateY(4px) scale(0.98);
  z-index: 1;
}

.device-frame.edge {
  transform: translateY(10px) scale(0.95);
  opacity: 0.96;
}

.shot-button img {
  transition: transform 200ms ease;
}

.shot-button:hover img {
  transform: scale(1.03);
}

.device-frame::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 46%;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.15)
  );
  opacity: 0.6;
  box-shadow: 0 0 10px rgba(120, 170, 255, 0.25);
  z-index: 3;
}

.device-frame img {
  width: 100%;
  aspect-ratio: 1080 / 2199;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  display: block;
  background: transparent;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(10, 16, 28, 0.8);
  position: relative;
  z-index: 2;
}

.device-frame figcaption {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.shot-modal {
  width: min(92vw, calc(82vh * 0.4911));
  max-width: none;
  border: 1px solid #1f2d45;
  border-radius: 28px;
  padding: 0;
  background: #0b111d;
  color: var(--ink);
  box-shadow: 0 40px 120px rgba(2, 6, 18, 0.75);
}

.shot-modal::backdrop {
  background: rgba(2, 6, 18, 0.7);
  backdrop-filter: blur(2px);
}

.shot-modal-inner {
  padding: 0 0 1.3rem;
  position: relative;
}

.shot-modal-inner::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.6rem;
  width: 36%;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(210, 226, 255, 0.35);
  box-shadow: 0 0 10px rgba(120, 170, 255, 0.25);
}

.shot-modal figure {
  margin: 0;
}

.shot-modal img {
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 18px;
  background: #05070e;
  display: block;
}

.shot-modal figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

.shot-modal-header {
  display: flex;
  justify-content: flex-end;
  padding: 0.7rem 0.7rem 0.4rem;
}

.shot-close {
  appearance: none;
  border: 1px solid #283a5a;
  background: #0e1626;
  color: #c8d6f2;
  font-size: 0.85rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  margin: 0;
}

.shot-close:hover {
  background: #111b2d;
}


@media (max-width: 760px) {
  .cards,
  .imagery,
  .split {
    grid-template-columns: 1fr;
  }

  .screenshot-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .device-frame {
    border-radius: 18px;
    padding: 6px;
  }

  .device-frame img {
    border-radius: 10px;
  }

  .device-frame,
  .device-frame.focus,
  .device-frame.flank,
  .device-frame.edge {
    transform: none;
  }

  .use-cases .use-grid {
    grid-template-columns: 1fr;
  }

  .shot-gallery {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  nav {
    flex-wrap: wrap;
  }

  .timeline-marquee {
    border-radius: 18px;
    padding: 0.5rem 0;
  }

  .marquee-item {
    font-size: 0.9rem;
  }
}
