@import url("tokens.css");
@import url("fonts.css");

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: color-mix(in srgb, var(--lime) 50%, white); }

.wrap {
  width: min(100% - var(--page) * 2, var(--wrap));
  margin-inline: auto;
}
.wrap--narrow {
  width: min(100% - var(--page) * 2, var(--wrap-narrow));
  margin-inline: auto;
}

/* Consistent photo treatment */
.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04) brightness(0.98);
}

/* —— Floating nav pill —— */
.nav-pill {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 var(--page);
  pointer-events: none;
}
.nav-pill__track {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, var(--wrap));
  padding: 10px 10px 10px 18px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--bg-elevated) 72%, transparent);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: var(--shadow-sm);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.nav-pill.is-scrolled .nav-pill__track {
  background: color-mix(in srgb, var(--bg-elevated) 94%, transparent);
  box-shadow: var(--shadow-md);
}
.nav-pill .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.03em;
  text-decoration: none;
  margin-right: auto;
}
.nav-pill .brand img { width: 32px; height: 32px; }
.nav-pill .brand .logo-dark { display: none; }
.nav-pill__links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-pill__links a {
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.nav-pill__links a:hover {
  color: var(--ink);
  background: var(--line);
}
.nav-pill__menu {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 100px;
  background: var(--line);
  color: var(--ink);
  cursor: pointer;
  margin-left: 4px;
}
.nav__drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  padding: 88px var(--page) 32px;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(24px);
  flex-direction: column;
  gap: 8px;
  pointer-events: auto;
}
.nav__drawer.open { display: flex; }
.nav__drawer a {
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
@media (max-width: 768px) {
  .nav-pill__links { display: none; }
  .nav-pill__menu { display: grid; place-items: center; }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn--lime {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 4px 20px rgba(212, 239, 90, 0.35);
}
.btn--lime:hover {
  background: var(--lime-hover);
  text-decoration: none;
  box-shadow: 0 6px 28px rgba(212, 239, 90, 0.45);
}
.btn--dark {
  background: var(--ink-bar);
  color: #fff;
}
.btn--dark:hover { text-decoration: none; filter: brightness(1.08); }
.btn--soft {
  background: var(--bg-elevated);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn--soft:hover { text-decoration: none; border-color: var(--ink-muted); }

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 120px var(--page) 64px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 88% 18%, color-mix(in srgb, var(--sky) 42%, transparent), transparent 68%),
    radial-gradient(ellipse 55% 45% at 12% 82%, color-mix(in srgb, var(--mint) 32%, transparent), transparent 72%),
    radial-gradient(ellipse 40% 35% at 55% 50%, color-mix(in srgb, var(--lime) 12%, transparent), transparent 70%),
    var(--bg);
}
.hero__orb {
  display: none;
}
.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px 12px 6px 8px;
  border-radius: 100px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}
.hero__label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
}
.hero__title {
  font-size: clamp(2.75rem, 6.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 0 0 20px;
  max-width: 12ch;
}
.hero__title .hl {
  display: inline;
  background: linear-gradient(180deg, transparent 58%, var(--lime) 58%, var(--lime) 92%, transparent 92%);
}
.hero__sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 44ch;
  margin: 0 0 28px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero__stats div strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}
.hero__stats div span {
  font-size: 12px;
  color: var(--text-faint);
  font-weight: 500;
}

/* Preview card (app snapshot, not a device frame) */
.preview {
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.preview__hero {
  height: 148px;
  background: linear-gradient(135deg, #7eb8d8 0%, #b4eacf 50%, #5a9cb8 100%);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}
.preview__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(14,16,20,0.2) 100%);
}
.preview__hero span {
  position: relative;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.preview__hero h3 {
  position: relative;
  margin: 6px 0 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.15;
}
.preview__hero h3 em {
  font-style: normal;
  background: var(--lime);
  color: var(--ink);
  padding: 0 6px;
  border-radius: 8px;
}
.preview__body { padding: 18px; }
.preview__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.preview__chip {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--bg);
  color: var(--text-muted);
}
.preview__chip--on {
  background: var(--ink-bar);
  color: var(--lime);
}
.preview__row {
  padding: 14px;
  background: var(--bg);
  border-radius: 14px;
  border: 1px solid var(--line);
}
.preview__row h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.preview__row p {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.preview__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.preview__metrics b {
  display: block;
  font-size: 13px;
  font-weight: 700;
}
.preview__metrics small {
  font-size: 10px;
  color: var(--text-faint);
  font-weight: 600;
}
.preview__bar {
  display: flex;
  margin-top: 14px;
  padding: 5px;
  background: var(--ink-bar);
  border-radius: 100px;
  gap: 4px;
}
.preview__tab {
  flex: 1;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  padding: 10px 4px;
  border-radius: 100px;
  color: rgba(255,255,255,0.45);
}
.preview__tab--on {
  background: var(--lime);
  color: var(--ink);
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .preview { max-width: 400px; }
}

/* —— Statement —— */
.statement {
  padding: clamp(72px, 10vh, 120px) 0;
  background: var(--bg-elevated);
  border-block: 1px solid var(--line);
}
.statement .wrap {
  text-align: center;
}
.statement p {
  margin: 0 auto;
  font-size: clamp(1.5rem, 3.5vw, 2.35rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.03em;
  max-width: 26ch;
  color: var(--ink);
}
.statement .muted {
  color: var(--text-muted);
  font-weight: 500;
}

/* —— Feature rows —— */
.feature {
  padding: clamp(64px, 8vh, 100px) 0;
}
.feature__card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.feature__card--flip .feature__media { order: 2; }
.feature__card--flip .feature__copy { order: 1; }
.feature__media {
  min-height: 360px;
  position: relative;
}
.feature__media img { height: 100%; min-height: 360px; }
.feature__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 64px);
}
.feature__index {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.feature__copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0 0 16px;
}
.feature__copy p {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 15px;
  max-width: 40ch;
}
.feature + .feature { padding-top: 0; }
.feature + .feature .wrap { padding-top: 24px; }

@media (max-width: 900px) {
  .feature__card { grid-template-columns: 1fr; }
  .feature__card--flip .feature__media { order: 0; }
  .feature__media { min-height: 260px; }
  .feature__media img { min-height: 260px; }
}

/* —— Capabilities grid —— */
.cap-section {
  padding: clamp(80px, 10vh, 120px) 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, color-mix(in srgb, var(--sky) 18%, transparent), transparent),
    var(--bg);
}
.cap-section__head {
  margin-bottom: 48px;
}
.cap-section__head h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
}
.cap-section__head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 46ch;
  font-size: 16px;
}
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cap-grid li {
  padding: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.cap-grid li:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.cap-grid__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.cap-grid__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--sky) 25%, var(--bg-elevated));
  color: var(--ink);
}
.cap-grid__icon--mint { background: color-mix(in srgb, var(--mint) 35%, var(--bg-elevated)); }
.cap-grid__icon--lime { background: color-mix(in srgb, var(--lime) 45%, var(--bg-elevated)); }
.cap-grid__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.cap-grid h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.cap-grid p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}
@media (max-width: 700px) {
  .cap-grid { grid-template-columns: 1fr; }
}

/* —— CTA —— */
.cta {
  padding: 0 var(--page) clamp(80px, 10vh, 120px);
}
.cta__inner {
  padding: clamp(56px, 8vw, 80px);
  border-radius: var(--radius-lg);
  background: var(--ink-bar);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta__inner::before {
  content: "";
  position: absolute;
  width: 60%;
  height: 120%;
  right: -20%;
  top: -40%;
  background: radial-gradient(circle, color-mix(in srgb, var(--lime) 25%, transparent), transparent 65%);
  pointer-events: none;
}
.cta__inner h2 {
  position: relative;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
}
.cta__inner p {
  position: relative;
  margin: 0 auto 28px;
  max-width: 38ch;
  color: rgba(255,255,255,0.65);
  font-size: 15px;
}

/* —— Footer —— */
.footer {
  padding: 48px var(--page) 36px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
}
.footer__grid {
  max-width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer__grid .brand { text-decoration: none; margin-bottom: 12px; }
.footer__grid .brand img { width: 30px; height: 30px; }
.footer__tagline {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 28ch;
  line-height: 1.5;
}
.footer__col h4 {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.footer__col a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 0;
}
.footer__col a:hover { color: var(--ink); }
.footer__bar {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-faint);
  font-weight: 500;
}
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* —— Doc pages —— */
.doc {
  padding: calc(100px + 40px) var(--page) 80px;
}
.doc h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 8px 0 12px;
}
.doc .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.doc .meta { font-size: 13px; color: var(--text-faint); margin-bottom: 36px; }
.doc h2 { font-size: 17px; font-weight: 700; margin: 36px 0 10px; letter-spacing: -0.02em; }
.doc h3 { font-size: 15px; font-weight: 700; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--text-muted); font-size: 15px; }
.doc strong { color: var(--ink); }
.doc a { font-weight: 600; }
.doc .note {
  margin: 28px 0;
  padding: 16px 20px;
  background: var(--bg-elevated);
  border-left: 3px solid var(--lime);
  border-radius: 0 12px 12px 0;
  font-size: 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--lime);
}
.doc .cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0;
}
.doc .card-box {
  padding: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.doc .card-box h2 { margin-top: 0; font-size: 16px; }
@media (max-width: 640px) { .doc .cards { grid-template-columns: 1fr; } }

/* Legacy nav for doc pages */
.nav-pill--doc { top: 16px; }
.nav-pill--doc .nav-pill__track { background: color-mix(in srgb, var(--bg-elevated) 94%, transparent); }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.brand .logo-dark { display: none; }

.fade {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade { opacity: 1; transform: none; transition: none; }
}
