/* Company home: dark studio world, one lime accent, the chaos-to-app demonstration. */
:root {
  --bg: #0a0a0b;
  --bg-2: #151517;
  --bg-3: #1d1d20;
  --text: #f3f3f1;
  --muted: #a6a6ad;
  --line: rgb(255 255 255 / 0.1);
  --accent: #d4ff3a;
  --accent-ink: #0a0a0b;
  --light: #eceef1;
  --light-2: #ffffff;
  --ink: #0b0b0d;
  --ink-muted: #50535a;
  --light-line: rgb(11 11 13 / 0.12);

  --f-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --f-body: "Hanken Grotesk", system-ui, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 clamp(1rem, 0.96rem + 0.2vw, 1.12rem)/1.55 var(--f-body); }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: #3a3a40 var(--bg); }
a { color: inherit; text-underline-offset: 0.2em; }
svg { display: block; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 700; letter-spacing: -0.035em; line-height: 0.95; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; z-index: 60; }
.skip:focus { left: 8px; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; padding: 12px 0; background: rgb(10 10 11 / 0.94); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(10px)) { .nav { background: rgb(10 10 11 / 0.8); backdrop-filter: blur(14px) saturate(1.4); } }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.nav-in { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { display: block; height: 36px; width: auto; }
.nav-in a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.nav-in a:not(.btn):hover { color: var(--text); }
@media (max-width: 820px) { .nav-in a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: 600 0.95rem/1 var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform 0.25s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-2px); background: #e2ff7a; }
.btn-ghost { color: var(--text); border-color: rgb(255 255 255 / 0.28); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.88rem; }
.on-light .btn-ghost { color: var(--ink); border-color: rgb(11 11 13 / 0.3); }
.on-light .btn-ghost:hover { border-color: var(--ink); }
.on-light .btn-primary { background: var(--ink); color: var(--light-2); }
.on-light .btn-primary:hover { background: #26262b; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding: 140px 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(3rem, 1.3rem + 7.4vw, 8.4rem); max-width: 11.5ch; }
.hero h1 span { color: var(--muted); }
.hero-foot { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 34rem) auto; gap: 24px 48px; align-items: end; justify-content: space-between; }
.hero-foot p { color: var(--muted); font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.3rem); }
.hero-foot p b { color: var(--text); font-weight: 500; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 820px) { .hero-foot { grid-template-columns: 1fr; } .hero { align-items: end; padding-top: 120px; } }

.drift { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.drift .frag { position: absolute; }
.hero .frag:nth-child(1) { left: 62%; top: 14%; }
.hero .frag:nth-child(2) { left: 80%; top: 25%; }
.hero .frag:nth-child(3) { left: 66%; top: 33%; }
.hero .frag:nth-child(4) { left: 82%; top: 43%; }
.hero .frag:nth-child(5) { left: 68%; top: 52%; }
.hero .frag:nth-child(6) { left: 84%; top: 60%; }
.hero .frag:nth-child(7) { left: 86%; top: 12%; }
@media (max-width: 820px) {
  .hero .frag { transform: scale(0.82); transform-origin: left top; }
  /* Phones: headline first, then the chat bubbles in their own band, then the text and button. */
  .hero { padding-top: 96px; align-content: center; }
  .hero .wrap { display: contents; }
  .hero h1, .hero-foot { margin-inline: var(--gutter); }
  .hero h1 { order: 1; }
  .drift { order: 2; position: relative; inset: auto; height: 184px; }
  .hero-foot { order: 3; margin-top: 4px; }
  .hero .frag:nth-child(1) { left: 4%; top: 22px; } .hero .frag:nth-child(2) { left: 50%; top: 70px; }
  .hero .frag:nth-child(3) { left: 8%; top: 104px; }
  .hero .frag:nth-child(n+4) { display: none; }
  .hero h1 { position: relative; }
}

/* Fragments: the mess */
.frag { --r: 0deg; font-size: 0.9rem; line-height: 1.3; white-space: nowrap; will-change: transform; }
.frag.chat { background: #26262b; color: var(--text); padding: 10px 14px; border-radius: 16px 16px 16px 4px; box-shadow: 0 10px 30px -12px rgb(0 0 0 / 0.7); }
.frag.chat.me { background: #e9e9e4; color: var(--ink); border-radius: 16px 16px 4px 16px; }
.frag.chat small { display: block; font: 400 0.68rem/1 var(--f-mono); color: var(--muted); margin-top: 6px; text-align: right; }
.frag.chat.me small { color: #5e6066; }
.frag.call { display: inline-flex; align-items: center; gap: 8px; background: #2a1414; color: #ffb4ad; padding: 9px 13px; border-radius: 999px; font-weight: 500; }
.frag.call svg { width: 15px; height: 15px; }
.frag.note { background: #f1eee4; color: #23221e; padding: 12px 14px 12px; font: 400 0.86rem/1.35 var(--f-mono); transform: rotate(var(--r)); box-shadow: 0 12px 26px -14px rgb(0 0 0 / 0.8);
  -webkit-mask: linear-gradient(#000, #000) top/100% calc(100% - 6px) no-repeat, radial-gradient(circle at 6px 0, transparent 4px, #000 4.5px) bottom/12px 6px repeat-x;
          mask: linear-gradient(#000, #000) top/100% calc(100% - 6px) no-repeat, radial-gradient(circle at 6px 0, transparent 4px, #000 4.5px) bottom/12px 6px repeat-x; }
.frag.note s { color: #b0251e; }

/* Transformation scene */
.transform { position: relative; background: var(--bg); }
.t-pin { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: 96px 0 48px; }
.t-copy { position: relative; min-height: 15em; }
.t-step { position: absolute; inset: 0 0 auto; font: 700 clamp(1.9rem, 1.1rem + 2.6vw, 3.6rem)/1.02 var(--f-display); letter-spacing: -0.03em; opacity: 0.12; transition: opacity 0.5s var(--ease); }
.t-step.is-on { opacity: 1; }
.t-step + .t-step { top: auto; }
.t-copy { display: grid; }
.t-step { position: relative; grid-area: 1 / 1; opacity: 0; }
.t-step.is-on { opacity: 1; }
.t-progress { display: flex; gap: 8px; margin-top: 28px; }
.t-progress i { width: 34px; height: 4px; border-radius: 2px; background: rgb(255 255 255 / 0.16); transition: background-color 0.4s; }
.t-progress i.is-on { background: var(--accent); }
.t-hint { margin-top: 14px; font: 500 0.78rem/1 var(--f-mono); letter-spacing: 0.04em; color: var(--muted); transition: opacity 0.4s var(--ease); }
.t-hint span { display: inline-block; color: var(--accent); }
.t-hint.is-off { opacity: 0; }
.t-stage { position: relative; height: min(70svh, 600px); }
.t-stage .frag { position: absolute; z-index: 2; }
.app { position: absolute; inset: 8% 4% 6% 14%; background: var(--light-2); color: var(--ink); border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.9); display: flex; flex-direction: column; }
.app-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--light-line); }
.app-top b { font: 700 1.15rem/1 var(--f-display); letter-spacing: -0.02em; }
.live { display: inline-flex; align-items: center; gap: 7px; font: 500 0.78rem/1 var(--f-mono); color: #1d6b2f; background: #e6f6e0; padding: 6px 10px; border-radius: 999px; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.app-tabs { display: flex; gap: 6px; padding: 12px 20px 0; }
.app-tabs span { font-size: 0.8rem; padding: 6px 12px; border-radius: 999px; background: #f0f1f3; color: var(--ink-muted); }
.app-tabs span:first-child { background: var(--ink); color: #fff; }
.rows { list-style: none; margin: 0; padding: 10px 12px 12px; display: grid; gap: 6px; flex: 1; align-content: start; }
.rows li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 10px 10px; border-radius: 12px; background: #f6f7f8; }
.rows .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #fff; border: 1px solid var(--light-line); }
.rows .ic svg { width: 17px; height: 17px; }
.rows b { display: block; font-weight: 600; font-size: 0.92rem; }
.rows small { display: block; color: var(--ink-muted); font-size: 0.8rem; }
.rows em { font: 500 0.72rem/1 var(--f-mono); font-style: normal; color: var(--ink); background: #fff; border: 1px solid var(--light-line); padding: 6px 9px; border-radius: 8px; }
.rows em.ok { background: var(--accent); border-color: transparent; }
@media (max-width: 900px) {
  /* The whole pinned scene fits one screen: text on top, the app fills what is left. */
  .t-pin { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); align-content: stretch; height: 100svh; min-height: 0; padding: 76px 0 14px; gap: 14px; }
  .t-copy { min-height: 0; }
  .t-step { font-size: clamp(1.5rem, 1rem + 2.6vw, 2.2rem); }
  .t-progress { margin-top: 16px; }
  .t-hint { margin-top: 10px; }
  .t-stage { height: auto; min-height: 0; align-self: stretch; }
  .app { inset: 4% 0 0 0; }
  .t-stage .frag.extra { display: none; }
  /* One-line rows, so every row (and the bubble that flies into it) stays inside the card. */
  .app-top { padding: 12px 16px; }
  .app-tabs { padding: 10px 16px 0; }
  .rows { gap: 5px; padding: 8px 10px 10px; }
  .rows li { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; padding: 7px 8px; }
  .rows .ic { width: 28px; height: 28px; border-radius: 8px; }
  .rows b, .rows small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
  .rows b { font-size: 0.85rem; }
  .rows small { font-size: 0.75rem; }
}

/* Light sections */
.on-light { background: var(--light); color: var(--ink); }
.sec { padding: clamp(80px, 11vw, 160px) 0; }
.sec-title { font-size: clamp(2.4rem, 1.4rem + 4vw, 5.6rem); max-width: 14ch; margin-bottom: clamp(36px, 5vw, 72px); }
.sec-title span { color: var(--ink-muted); }

.build { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--light-line); }
.build li { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) 56px; gap: 24px; align-items: center; padding: clamp(22px, 3vw, 36px) 0; border-bottom: 1px solid var(--light-line); transition: padding-left 0.4s var(--ease); }
.build h3 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3.4rem); }
.build p { color: var(--ink-muted); max-width: 44ch; }
.build .glyph { width: 56px; height: 56px; border-radius: 16px; background: var(--light-2); display: grid; place-items: center; border: 1px solid var(--light-line); transition: background-color 0.3s, transform 0.4s var(--ease); }
.build .glyph svg { width: 24px; height: 24px; }
.build li:hover { padding-left: 14px; }
.build li:hover .glyph { background: var(--accent); transform: rotate(-8deg); }
@media (max-width: 760px) { .build li { grid-template-columns: 1fr 48px; } .build p { grid-column: 1 / -1; grid-row: 2; } .build .glyph { width: 48px; height: 48px; } }

/* Products */
.products { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; }
.prod { position: relative; border-radius: 24px; padding: clamp(22px, 2.6vw, 34px); min-height: 320px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; text-decoration: none; overflow: hidden; }
.prod h3 { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 3rem); }
.prod p { max-width: 34ch; }
.prod .tag { align-self: flex-start; font: 500 0.78rem/1 var(--f-mono); padding: 8px 11px; border-radius: 999px; }
.prod.live-prod { background: var(--ink); color: var(--text); }
.prod.live-prod p { color: var(--muted); }
.prod.live-prod .tag { background: var(--accent); color: var(--accent-ink); }
.prod.live-prod .go { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.prod.live-prod .go svg { width: 20px; height: 20px; transition: transform 0.35s var(--ease); }
.prod.live-prod:hover .go svg { transform: translateX(6px); }
.prod.soon { background: var(--light-2); border: 1px solid var(--light-line); }
.prod.soon p { color: var(--ink-muted); }
.prod.soon .tag { border: 1px solid var(--light-line); color: var(--ink-muted); }
.prod.ask { background: transparent; border: 1.5px dashed rgb(11 11 13 / 0.28); }
.prod.ask p { color: var(--ink-muted); }
.prod.ask .tag { background: var(--ink); color: #fff; }
.prod-ticker { font: 500 clamp(1.2rem, 0.9rem + 1vw, 1.7rem)/1 var(--f-mono); color: var(--accent); display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 900px) { .products { grid-template-columns: 1fr; } .prod { min-height: 240px; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--light-line); }
.steps li { padding: 28px clamp(0px, 2vw, 28px) 0 0; }
.steps li + li { padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--light-line); }
.steps .n { font: 700 clamp(3rem, 2rem + 3vw, 5rem)/1 var(--f-display); letter-spacing: -0.04em; color: rgb(11 11 13 / 0.5); }
.steps h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.8rem); margin: 18px 0 10px; line-height: 1.05; }
.steps p { color: var(--ink-muted); font-size: 0.98rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; } .steps li:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .steps li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--light-line); } }

/* Promise (dark) */
.promise { padding: clamp(80px, 11vw, 160px) 0; }
.promise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.promise h3 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.8rem); margin-bottom: 14px; }
.promise p { color: var(--muted); max-width: 34ch; }
.promise .mark { width: 44px; height: 44px; color: var(--accent); margin-bottom: 26px; }
@media (max-width: 860px) { .promise-grid { grid-template-columns: 1fr; } }

/* Final call */
.final { padding: 0 0 clamp(24px, 4vw, 40px); }
.final-card { position: relative; overflow: hidden; border-radius: 32px; background: var(--accent); color: var(--accent-ink); padding: clamp(32px, 6vw, 88px); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 32px; align-items: end; }
.final h2 { font-size: clamp(2.6rem, 1.4rem + 5vw, 6.6rem); max-width: 12ch; }
.final p { font-size: 1.08rem; max-width: 36ch; margin-bottom: 22px; }
.final .btn-primary { background: var(--accent-ink); color: var(--accent); }
.final .btn-primary:hover { background: #222; }
.final .btn-ghost { color: var(--accent-ink); border-color: rgb(10 10 11 / 0.4); }
.final .btn-ghost:hover { border-color: var(--accent-ink); }
.contact { list-style: none; margin: 26px 0 0; padding: 0; font: 400 0.92rem/1.7 var(--f-mono); }
.contact span { opacity: 0.65; margin-right: 8px; }
@media (max-width: 860px) { .final-card { grid-template-columns: 1fr; } }

.foot { padding: 28px 0 40px; color: var(--muted); font-size: 0.88rem; }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 20px; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* Overflow guards and small phones */
.transform { overflow-x: clip; }
.logo { white-space: nowrap; }
@media (max-width: 900px) { .t-stage .frag { white-space: normal; max-width: 44%; } }
@media (max-width: 420px) {
  .logo { font-size: 1rem; padding: 9px 13px; }
  .nav-in { padding: 6px; }
  .nav-in .btn-sm { padding: 0 13px; }
}
