:root {
  --ink: #07131c;
  --ink-soft: #9bb0bf;
  --panel: rgba(10, 28, 40, 0.55);
  --mint: #5dffc8;
  --mint-deep: #12c4a0;
  --line: rgba(93, 255, 200, 0.18);
  --font-brand: "Syne", ui-sans-serif, sans-serif;
  --font-body: "IBM Plex Sans", ui-sans-serif, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --page: 1120px;
}

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

html {
  color-scheme: dark;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.5;
  color: #e7f2f7;
  background: var(--ink);
  overflow-x: hidden;
}

a {
  color: var(--mint);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #b8ffe6;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 55% 50% at 78% 42%, rgba(18, 196, 160, 0.28), transparent 60%),
    radial-gradient(ellipse 60% 45% at 12% 85%, rgba(16, 70, 90, 0.5), transparent 55%),
    linear-gradient(165deg, #061018 0%, #0c2430 42%, #071820 100%);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  max-width: var(--page);
  width: 100%;
  margin: 0 auto;
  padding: 1.15rem 1.5rem 0;
}

.wordmark {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  color: #e7f2f7;
  text-decoration: none;
}

.header-studio {
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.header-studio:hover {
  color: var(--mint);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  gap: 1.75rem;
  min-height: 0;
  padding: 1.25rem 0 0.5rem;
}

/*
  One composition: pitch on the left, product mark on the right.
  Gravity sits in the middle of that band — brand leads the eye down
  into the promise and CTA; the icon answers “what is this?”
*/
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  max-width: var(--page);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  max-width: 32rem;
  min-width: 0;
}

/* LOCKED tagline — Syne 800 mint→lime gradient wordmark. Do not swap for 3D PNG. */
.brand {
  margin: 0 0 0.7rem;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(2.75rem, 7.2vw, 4.85rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  background: linear-gradient(120deg, var(--mint) 0%, #9bff7a 55%, var(--mint-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise 0.85s var(--ease) 0.04s both;
}

.promise {
  margin: 0 0 0.65rem;
  max-width: 15ch;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: #f3fafc;
  animation: rise 0.85s var(--ease) 0.14s both;
}

.lede {
  margin: 0 0 1.25rem;
  max-width: 36ch;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.5;
  animation: rise 0.85s var(--ease) 0.22s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.1rem;
  animation: rise 0.85s var(--ease) 0.3s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
}

.btn-primary {
  color: var(--ink);
  background: linear-gradient(135deg, var(--mint) 0%, #9bff7a 100%);
  box-shadow: 0 10px 32px rgba(18, 196, 160, 0.26);
}

.btn-primary:hover {
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(18, 196, 160, 0.36);
}

.cta-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.hero-visual {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: min(32vw, 300px);
  animation: rise-scale 1s var(--ease) 0.16s both;
}

.app-mark {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22%;
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(93, 255, 200, 0.14);
  animation: float 7.5s var(--ease) 1.1s infinite;
}

.install {
  max-width: var(--page);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.install-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin: 0 0 0.4rem;
  color: #c5d6e0;
  font-size: 0.92rem;
}

.install-label {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  color: #e7f2f7;
}

.install-cmd {
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  vertical-align: middle;
}

.install .muted {
  margin: 0;
  max-width: 54ch;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86em;
  padding: 0.28em 0.55em;
  border-radius: 0.45em;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--mint);
}

.site-footer {
  flex-shrink: 0;
  max-width: var(--page);
  width: 100%;
  margin: 0 auto;
  padding: 0.75rem 1.5rem 1.15rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.site-footer p {
  margin: 0;
}

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

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

.terms-page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.terms-page h1 {
  font-family: var(--font-brand);
  letter-spacing: -0.03em;
}

.terms-page p {
  color: #c5d6e0;
}

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

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

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

@media (max-width: 820px) {
  main {
    justify-content: flex-start;
    gap: 1.5rem;
    padding-top: 0.75rem;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
  }

  .hero-visual {
    order: -1;
    width: min(48vw, 220px);
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: none;
    padding-right: 0;
  }

  .brand {
    font-size: clamp(2.6rem, 12vw, 3.75rem);
  }

  .promise {
    max-width: 16ch;
  }

  .cta-row {
    flex-direction: column;
    align-items: center;
  }

  .install-line {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .install .muted {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .promise,
  .lede,
  .cta-row,
  .hero-visual,
  .app-mark {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
