:root {
  --bg: #fbf7ef;
  --bg-soft: #f3fbf6;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --surface-muted: #eef4ee;
  --ink: #19202a;
  --ink-soft: #5d6471;
  --line: rgba(25, 32, 42, 0.1);
  --accent: #117a63;
  --accent-strong: #0d5f4f;
  --accent-warm: #f08b3f;
  --accent-cool: #1573c5;
  --shadow: 0 18px 40px rgba(24, 34, 39, 0.12);
  --shadow-soft: 0 12px 30px rgba(24, 34, 39, 0.08);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(240, 139, 63, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(17, 122, 99, 0.18), transparent 26%),
    linear-gradient(180deg, #fffaf2 0%, #f9fdf9 42%, #f4f8ff 100%);
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  z-index: 100;
}

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

.page-shell {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.page-shell--legal {
  display: grid;
  min-height: 100vh;
  align-items: center;
  padding-block: 48px;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 20;
  padding: 18px 20px;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand__mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(17, 122, 99, 0.18);
}

.brand__text {
  display: grid;
  gap: 2px;
}

.brand__text strong {
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brand__text span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.site-nav a,
.site-nav button {
  color: var(--ink-soft);
  text-decoration: none;
}

.section {
  padding-block: 104px;
}

.section--strip {
  padding-block: 78px;
}

.section--spotlight,
.section--cta {
  padding-block: 84px;
}

.section__header {
  max-width: 760px;
  margin-bottom: 32px;
}

.eyebrow,
.feature-card__tag,
.gallery-panel__tag,
.glance-card__eyebrow,
.device-stage__badge span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before,
.feature-card__tag::before,
.gallery-panel__tag::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Outfit", "Segoe UI", sans-serif;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(3.5rem, 7vw, 6.2rem);
}

h2 {
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
}

h3 {
  font-size: clamp(1.5rem, 2vw, 2rem);
}

p,
li,
label,
input,
button {
  line-height: 1.6;
}

.lead,
.section__header p,
.cta-shell__copy p,
.spotlight__copy p {
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

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

.button:focus-visible,
.gallery-nav__button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(21, 115, 197, 0.25);
  outline-offset: 2px;
}

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 16px 30px rgba(17, 122, 99, 0.25);
}

.button--secondary,
.button--ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px var(--line);
}

.button--block {
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 132px);
}

.hero__actions,
.hero__signals,
.metric-row,
.pill-row,
.summary-row,
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__actions {
  margin: 28px 0 24px;
}

.hero__signals {
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.hero__signals li {
  padding: 11px 15px;
  border: 1px solid rgba(17, 122, 99, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.waitlist-card,
.feature-card,
.flow-step,
.journey-summary,
.journey-scroll,
.journey-step,
.metric-card,
.stack-card,
.gallery-shell,
.mock-screen,
.legal-card,
.cta-shell,
.site-footer,
.spotlight,
.device-stage__badge {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.waitlist-card,
.legal-card {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.waitlist-card--compact {
  max-width: 540px;
}

.waitlist-card__head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2rem);
}

.waitlist-card__head p,
.field span,
.consent,
.form-status {
  color: var(--ink-soft);
}

.waitlist-card__head p {
  margin: 12px 0 0;
}

.field {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.field input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(25, 32, 42, 0.12);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
}

.consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  margin: 18px 0 22px;
  font-size: 0.95rem;
}

.consent a,
.site-footer__links a,
.legal-card a {
  color: var(--accent-strong);
}

.form-status {
  min-height: 1.5em;
  margin: 14px 0 0;
  font-size: 0.95rem;
}

.form-status[data-state="success"] {
  color: var(--accent-strong);
}

.form-status[data-state="error"] {
  color: #ab3a2a;
}

.hero__visual {
  display: grid;
}

.device-stage {
  position: relative;
  min-height: 720px;
  padding: 32px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top left, rgba(240, 139, 63, 0.18), transparent 40%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(240, 248, 244, 0.84));
  overflow: hidden;
  box-shadow: var(--shadow);
}

.device-stage::before,
.device-stage::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.82;
}

.device-stage::before {
  inset: 54px auto auto -48px;
  width: 160px;
  height: 160px;
  background: rgba(21, 115, 197, 0.18);
}

.device-stage::after {
  inset: auto -36px 52px auto;
  width: 190px;
  height: 190px;
  background: rgba(17, 122, 99, 0.18);
}

.device-stage__badge {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 14px 18px;
  border-radius: 999px;
}

.device-stage__badge strong {
  display: block;
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 1rem;
}

.device-frame {
  position: relative;
  z-index: 2;
  width: min(100%, 360px);
  margin: 74px auto 0;
  padding: 14px;
  border-radius: 42px;
  background: #101721;
  box-shadow: 0 28px 60px rgba(16, 23, 33, 0.24);
}

.device-frame::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 38%;
  height: 18px;
  border-radius: 999px;
  background: #111827;
  transform: translateX(-50%);
}

.device-frame img {
  width: 100%;
  border-radius: 30px;
}

.glance-card {
  position: absolute;
  z-index: 3;
  max-width: 250px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.glance-card strong {
  display: block;
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 1.12rem;
  line-height: 1.2;
}

.glance-card--left {
  top: 150px;
  left: 0;
}

.glance-card--right {
  top: 282px;
  right: 0;
}

.glance-card--bottom {
  bottom: 28px;
  left: 24px;
  max-width: 310px;
}

.flow-list,
.feature-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.flow-step,
.feature-card,
.metric-card,
.stack-card,
.mock-screen,
.gallery-shell,
.cta-shell {
  border-radius: var(--radius-lg);
}

.flow-step {
  padding: 22px;
}

.flow-step__index {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--accent-cool);
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.journey-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
  gap: 24px;
  align-items: start;
}

.journey-summary,
.journey-scroll {
  border-radius: var(--radius-lg);
}

.journey-summary {
  position: sticky;
  top: 112px;
  padding: 28px;
}

.journey-summary h3 {
  max-width: 14ch;
}

.journey-summary p,
.journey-step p,
.journey-summary__hint {
  color: var(--ink-soft);
}

.journey-summary__signals {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.journey-summary__signals li {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(247, 251, 247, 0.92);
  border: 1px solid rgba(17, 122, 99, 0.1);
}

.journey-summary__hint {
  margin: 22px 0 0;
  font-size: 0.95rem;
}

.journey-future {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.journey-future__intro {
  max-width: 68ch;
}

.journey-future__intro p,
.future-card p {
  color: var(--ink-soft);
}

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

.future-card {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.future-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--accent-cool);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.future-card__tag::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-cool), var(--accent-warm));
}

.journey-scroll {
  display: grid;
  gap: 16px;
  max-height: 76vh;
  padding: 14px;
  overflow-y: auto;
  scroll-snap-type: y proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(17, 122, 99, 0.45) rgba(255, 255, 255, 0.4);
}

.journey-scroll::-webkit-scrollbar {
  width: 12px;
}

.journey-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 999px;
}

.journey-scroll::-webkit-scrollbar-thumb {
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(17, 122, 99, 0.72), rgba(21, 115, 197, 0.6));
}

.journey-step {
  position: relative;
  padding: 26px 24px 24px 72px;
  scroll-snap-align: start;
}

.journey-step::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 28px;
  bottom: -18px;
  width: 2px;
  background: linear-gradient(180deg, rgba(17, 122, 99, 0.28), rgba(21, 115, 197, 0.12));
}

.journey-step:last-child::before {
  display: none;
}

.journey-step__index {
  position: absolute;
  top: 22px;
  left: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  color: var(--accent-strong);
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(243, 251, 246, 0.96), rgba(232, 243, 255, 0.92));
  box-shadow: var(--shadow-soft);
}

.journey-step h3 {
  margin-bottom: 14px;
}

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

.feature-card {
  padding: 28px;
}

.feature-card p {
  color: var(--ink-soft);
}

.feature-card ul {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.feature-card li {
  padding-left: 20px;
  position: relative;
}

.feature-card li::before {
  content: "";
  position: absolute;
  top: 0.67em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
}

.spotlight,
.cta-shell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding: 30px;
}

.metric-card,
.stack-card {
  padding: 18px;
}

.metric-card span,
.stack-card span,
.mock-screen__header span,
.summary-row span,
.stats-grid span,
.ingredient-row span,
.template-footer span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-card strong,
.stack-card strong,
.mock-screen__header strong,
.summary-row strong,
.stats-grid strong,
.ingredient-row strong {
  display: block;
  margin: 8px 0 6px;
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 1.35rem;
}

.mock-screen {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(241, 248, 244, 0.92));
}

.mock-screen__header {
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-soft);
  border: 1px solid rgba(25, 32, 42, 0.08);
}

.pill--accent,
.stack-card--contrast {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-cool));
}

.sparkline {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  align-items: end;
  height: 120px;
  margin-top: 20px;
}

.sparkline span,
.bar-grid span {
  display: block;
  border-radius: 999px 999px 14px 14px;
  background: linear-gradient(180deg, rgba(17, 122, 99, 0.88), rgba(21, 115, 197, 0.62));
}

.sparkline span:nth-child(1) { height: 42%; }
.sparkline span:nth-child(2) { height: 56%; }
.sparkline span:nth-child(3) { height: 48%; }
.sparkline span:nth-child(4) { height: 74%; }
.sparkline span:nth-child(5) { height: 68%; }
.sparkline span:nth-child(6) { height: 84%; }
.sparkline span:nth-child(7) { height: 62%; }

.gallery-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  padding: 22px;
}

.gallery-nav {
  display: grid;
  gap: 12px;
}

.gallery-nav__button {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid transparent;
  border-radius: 18px;
  text-align: left;
  background: rgba(255, 255, 255, 0.64);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.gallery-nav__button span {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.gallery-nav__button strong {
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 1.1rem;
}

.gallery-nav__button.is-active {
  border-color: rgba(17, 122, 99, 0.18);
  box-shadow: inset 0 0 0 1px rgba(17, 122, 99, 0.14);
  background: rgba(243, 251, 246, 0.92);
}

.gallery-view {
  position: relative;
  min-height: 620px;
}

.gallery-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(260px, 0.56fr);
  gap: 22px;
  align-items: center;
}

.gallery-panel[hidden] {
  display: none;
}

.gallery-panel__device {
  display: grid;
  place-items: center;
}

.device-frame--gallery {
  margin: 0;
}

.mock-screen--gallery {
  width: min(100%, 430px);
  min-height: 580px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.summary-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.list-card,
.ingredient-list,
.stats-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
}

.template-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.ingredient-row,
.summary-row > div,
.stats-grid > div,
.list-card > div {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(247, 251, 247, 0.92);
}

.bar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 12px;
  height: 150px;
  margin: 18px 0 0;
}

.bar-grid span:nth-child(1) { height: 52%; }
.bar-grid span:nth-child(2) { height: 82%; }
.bar-grid span:nth-child(3) { height: 63%; }
.bar-grid span:nth-child(4) { height: 74%; }
.bar-grid span:nth-child(5) { height: 46%; }

.gallery-panel__copy p {
  color: var(--ink-soft);
}

.cta-shell__copy {
  max-width: 52ch;
}

.site-footer {
  padding: 28px 30px 34px;
  margin-bottom: 36px;
  border-radius: var(--radius-xl);
}

.site-footer__note,
.site-footer__copyright {
  margin: 0;
  color: var(--ink-soft);
}

.site-footer__links {
  margin-left: auto;
}

.brand--footer {
  margin-bottom: 12px;
}

.legal-page {
  width: min(calc(100% - 32px), 840px);
  margin: 0 auto;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.legal-page .brand {
  margin-bottom: 28px;
}

.legal-card {
  margin-top: 28px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 560ms ease, transform 560ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button,
  .gallery-nav__button {
    transition: none;
  }
}

@media (max-width: 1080px) {
  .hero,
  .journey-shell,
  .journey-future__grid,
  .spotlight,
  .cta-shell,
  .gallery-panel {
    grid-template-columns: 1fr;
  }

  .device-stage {
    min-height: 660px;
  }

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

  .gallery-view {
    min-height: auto;
  }

  .journey-summary {
    position: static;
  }

  .journey-scroll {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 860px) {
  .site-header,
  .site-footer,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .site-header,
  .site-footer {
    display: grid;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .feature-grid {
    gap: 16px;
  }

  .device-stage {
    min-height: 620px;
    padding-bottom: 180px;
  }

  .glance-card {
    position: static;
    max-width: none;
    margin-top: 16px;
  }

  .device-frame {
    margin-top: 86px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--container));
  }

  .section {
    padding-block: 78px;
  }

  .site-header {
    position: static;
    padding: 16px;
    margin-top: 12px;
    border-radius: 28px;
  }

  .brand__mark {
    width: 44px;
    height: 44px;
  }

  .button {
    width: 100%;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .device-stage {
    min-height: auto;
    padding: 24px 18px 24px;
  }

  .device-stage__badge {
    position: static;
    margin-bottom: 18px;
  }

  .device-frame,
  .mock-screen--gallery {
    width: 100%;
  }

  .waitlist-card,
  .feature-card,
  .future-card,
  .journey-summary,
  .journey-scroll,
  .journey-step,
  .flow-step,
  .cta-shell,
  .spotlight,
  .gallery-shell,
  .site-footer,
  .legal-page {
    padding: 20px;
  }

  .summary-row {
    grid-template-columns: 1fr;
  }

  .journey-step {
    padding: 84px 20px 20px;
  }

  .journey-step::before {
    top: 58px;
    left: 28px;
  }

  .journey-step__index {
    left: 20px;
  }

  .template-footer,
  .site-footer__links {
    flex-direction: column;
    align-items: flex-start;
  }
}
