:root {
  --bg: #000000;
  --bg-elev: #0a0a0c;
  --panel: #131316;
  --fg: #f5f5f7;
  --muted: #86868b;
  --rule: rgba(255, 255, 255, 0.12);
  --kairon: #6e8cff;
  --kairon-2: #b98cff;
  --tether: #4fd6b8;
  --tether-2: #5ac8fa;
  --nav-h: 48px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: var(--nav-h);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

a { color: inherit; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(1.25rem, env(safe-area-inset-left));
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--rule);
  z-index: 100;
}

.nav-brand {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.nav-links a {
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav-links a:hover { color: var(--fg); }

/* ---------- layout ---------- */

.section {
  padding: clamp(6rem, 16vh, 11rem) 1.5rem;
  position: relative;
}

.wrap {
  max-width: 60rem;
  margin: 0 auto;
}

.center { text-align: center; }

/* ---------- type ---------- */

.eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 0.9rem;
}

h1 {
  font-size: clamp(2.75rem, 9vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
}

h2 {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 1.1rem;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.4rem;
}

.lede {
  font-size: clamp(1.1rem, 2.1vw, 1.5rem);
  line-height: 1.4;
  color: var(--muted);
  max-width: 34rem;
  margin: 1.5rem auto 0;
  letter-spacing: -0.01em;
}

.body {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 32rem;
}

.grad-brand,
.grad-kairon {
  background: linear-gradient(120deg, var(--kairon), var(--kairon-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grad-tether {
  background: linear-gradient(120deg, var(--tether), var(--tether-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- hero ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(120vw, 1100px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(110, 140, 255, 0.18) 0%,
    rgba(185, 140, 255, 0.09) 35%,
    transparent 68%
  );
  pointer-events: none;
  z-index: 0;
}

.hero > *:not(.hero-glow):not(.scroll-cue) { position: relative; z-index: 1; }

.scroll-cue {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 1;
  animation: bob 2.4s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.5; }
  50%      { transform: translate(-50%, 6px); opacity: 1; }
}

/* ---------- product sections ---------- */

.product {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 7vw, 5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .product { grid-template-columns: 1fr 1fr; }
  .product.flip .product-copy { order: 2; }
}

.bg-elev { background: var(--bg-elev); }

.rule-top { border-top: 1px solid var(--rule); }

/* ---------- phone mockup ---------- */

.phone-stage {
  display: flex;
  justify-content: center;
  perspective: 1400px;
}

.phone {
  width: min(260px, 72vw);
  aspect-ratio: 9 / 19;
  border-radius: 2.6rem;
  padding: 9px;
  background: linear-gradient(155deg, #3a3a3f, #131316 42%, #2c2c31);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: rotateY(-13deg) rotateX(4deg);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.product.flip .phone { transform: rotateY(13deg) rotateX(4deg); }

.phone:hover,
.product.flip .phone:hover { transform: rotateY(0deg) rotateX(0deg); }

.screen {
  height: 100%;
  border-radius: 2.1rem;
  background: #08080a;
  padding: 1.6rem 1rem 1rem;
  overflow: hidden;
  position: relative;
}

.notch {
  position: absolute;
  top: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 1.1rem;
  border-radius: 1rem;
  background: #000;
}

.screen-title {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0.6rem 0 0.75rem;
}

/* habit rows (Kairon) */

.ring-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.ring {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex: none;
  background:
    conic-gradient(var(--kairon) 0 68%, rgba(255, 255, 255, 0.09) 68% 100%);
  display: grid;
  place-items: center;
}

.ring::after {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #08080a;
}

.ring-label { font-size: 0.72rem; line-height: 1.3; }
.ring-label span { display: block; color: var(--muted); font-size: 0.66rem; }

.task {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.55rem;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
}

.dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid var(--kairon);
  flex: none;
}

.task.done .dot { background: var(--kairon); }
.task.done { color: var(--muted); text-decoration: line-through; }

/* check-in rows (Tether) */

.bubble {
  max-width: 82%;
  padding: 0.5rem 0.7rem;
  border-radius: 0.85rem;
  font-size: 0.71rem;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
}

.bubble.me {
  margin-left: auto;
  background: linear-gradient(135deg, var(--tether), var(--tether-2));
  color: #04201b;
  font-weight: 500;
}

.streak {
  display: flex;
  align-items: center;
  gap: 0.26rem;
  margin: 0.9rem 0 1rem;
  font-size: 0.6rem;
  color: var(--muted);
  white-space: nowrap;
}

.pip {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.pip.on { background: var(--tether); }

/* ---------- studio / contact ---------- */

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 2.5rem;
  margin-top: 3.5rem;
  text-align: left;
}

.meta-grid p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.55;
}

.meta-grid a { color: var(--kairon); text-decoration: none; }
.meta-grid a:hover { text-decoration: underline; }

footer {
  border-top: 1px solid var(--rule);
  padding: 2.25rem 1.5rem 3rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

footer a { text-decoration: none; }
footer a:hover { color: var(--fg); }

/* ---------- reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue { animation: none; }
  .phone { transition: none; }
}

/* reflection note + week bars (Kairon) */

.note {
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--muted);
  font-style: italic;
  padding: 0.55rem 0.6rem;
  border-left: 2px solid var(--kairon);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 0.4rem 0.4rem 0;
  margin-bottom: 0.85rem;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 0.3rem;
  height: 46px;
}

.bars span {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--kairon), rgba(110, 140, 255, 0.25));
}

/* commitment card (Tether) */

.commit {
  padding: 0.6rem 0.7rem;
  border-radius: 0.7rem;
  background: rgba(79, 214, 184, 0.1);
  border: 1px solid rgba(79, 214, 184, 0.28);
  margin-bottom: 0.85rem;
}

.commit strong { display: block; font-size: 0.78rem; }
.commit span { display: block; font-size: 0.66rem; color: var(--muted); margin-top: 0.1rem; }

/* chat thread bottom-alignment (Tether) */

.screen { display: flex; flex-direction: column; }

.thread { margin-top: auto; }

.thread .bubble:last-child { margin-bottom: 0; }

.composer {
  margin-top: 0.75rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.68rem;
  color: #5c5c62;
}

/* stacked layout reads better with the device flat */

@media (max-width: 899px) {
  .phone,
  .product.flip .phone { transform: none; }
}

/* the studio headline stays quiet; colour arrives with the apps */

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.032em;
}

.hero .lede { margin-top: 1.75rem; }

/* very low-alpha gradients over pure black quantize into visible rings;
   a faint noise layer dithers the banding away */

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%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)'/%3E%3C/svg%3E");
}

/* the app name carries more weight than a label */

.app-name {
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 0.6rem;
}

.body-aside { margin-top: 1.1rem; }

/* Abstract marks stand in for product imagery. The .phone styles above are
   kept deliberately — they are the frame for real screenshots once they exist. */

.mark-stage {
  display: flex;
  justify-content: center;
}

.mark {
  width: min(340px, 78vw);
  height: auto;
  overflow: visible;
}

.mark-arc { transition: stroke-dasharray 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }

/* real app icon, presented as one */

.app-icon {
  width: min(280px, 68vw);
  height: auto;
  aspect-ratio: 1;
  border-radius: 22.5%;
  display: block;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.meta-right { text-align: right; }

@media (max-width: 600px) {
  .meta-right { text-align: left; }
}

/* brand marks */

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-brand img {
  height: 24px;
  width: auto;
  display: block;
}

.studio-mark {
  margin: 0 0 1.1rem;
  line-height: 0;
}

.studio-mark img {
  width: min(380px, 72vw);
  height: auto;
  display: block;
  margin: 0 auto;
}
