/* Services homepage only. The legal and support pages keep styles.css. */
:root {
  /* Original site/brand colours (app/lib/brand.js). Gradients use a lighter
     pair than the app's #6d4ae6 -> #8b3fe8. */
  --brand: #6d4ae6;
  --brand-dark: #5335c4;
  --g1: #8f72f2;
  --g2: #b27ff3;
  --bg: #ffffff;
  --surface-2: #f7f6fb;
  --soft: #efeafc;
  --ink: #14121f;
  --ink-2: #3a3552;
  --muted: #6b6880;
  --line: #e7e4f0;
  --panel: #ffffff;
  --ok: #0f9d76;
  --ok-soft: #e3f6ef;
  --ok-ink: #0b7a5b;
  --amber-soft: #fff1d6;
  --amber-ink: #8a5a00;
  --head-bg: rgba(255, 255, 255, .85);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --maxw: 1160px;
  --pad: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141221;
    --surface-2: #1a1730;
    --soft: #241d47;
    --ink: #f4f2fb;
    --ink-2: #cfcae3;
    --muted: #a09ab8;
    --line: #2b2740;
    --panel: #1f1b36;
    --ok-soft: #12332a;
    --ok-ink: #6fe0bb;
    --amber-soft: #3a2c10;
    --amber-ink: #ffcf73;
    --head-bg: rgba(20, 18, 33, .85);
  }
  .sticker { color: #cdbfff; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); margin: 0; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: var(--head-bg); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.is-stuck { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; height: 66px; gap: 28px; }
.mark { font: 700 1.2rem var(--display); color: var(--ink); text-decoration: none; letter-spacing: -.02em; display: flex; align-items: center; gap: 9px; }
.mark img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.top nav { margin-left: auto; display: flex; gap: 26px; align-items: center; }
.top nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .96rem; }
.top nav a:hover { color: var(--brand); }
.top nav a.btn-main, .top nav a.btn-main:hover { color: #fff; }
@media (max-width: 720px) { .top nav .opt { display: none; } }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font: 600 1rem var(--body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-main { background: var(--brand); color: #fff; }
.btn-main:hover { background: var(--brand-dark); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-sm { padding: 9px 16px; font-size: .92rem; }

/* hero: the logo on a light brand glow */
.hero { position: relative; overflow: hidden; background:
    radial-gradient(900px 520px at 75% -10%, color-mix(in srgb, var(--g1) 26%, transparent), transparent 70%),
    radial-gradient(600px 420px at 0% 110%, color-mix(in srgb, var(--g2) 16%, transparent), transparent 70%),
    var(--bg);
  padding: clamp(48px, 8vw, 100px) 0 clamp(64px, 9vw, 120px); border-radius: 0 0 44px 44px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.6vw, 5.2rem); line-height: 1; letter-spacing: -.045em; color: var(--ink); }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .ln span { display: block; }
.hero-foot { margin-top: 28px; display: grid; gap: 28px; }
.hero-foot p { font-size: 1.18rem; color: var(--ink-2); max-width: 44ch; }
.hero-foot .acts { display: flex; gap: 12px; flex-wrap: wrap; }
.art { position: relative; aspect-ratio: 1; max-width: 440px; justify-self: center; width: 100%; }
.art img { width: 78%; height: auto; margin: 11% auto 0; border-radius: 22%; transform: rotate(-6deg); box-shadow: 0 40px 70px -30px rgba(83, 53, 196, .55), 0 0 0 10px color-mix(in srgb, var(--soft) 80%, transparent); position: relative; z-index: 1; }
.sticker { position: absolute; left: -4%; bottom: 4%; z-index: 3; background: var(--panel); color: var(--brand); font: 700 .95rem/1.15 var(--display); width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; text-align: center; padding: 14px; transform: rotate(-10deg); box-shadow: 0 14px 30px -12px rgba(83, 53, 196, .45); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .art { max-width: 190px; order: -1; justify-self: start; }
  .sticker { width: 76px; height: 76px; font-size: .7rem; padding: 8px; left: auto; right: -30%; bottom: 10%; }
}

/* load moment: hero lines rise once */
.js .hero h1 .ln span, .js .hero-foot { transform: translateY(105%); opacity: 0; }
.js .hero-foot { transform: translateY(16px); }
.ready .hero h1 .ln span, .ready .hero-foot { transform: none; opacity: 1; transition: transform .9s var(--ease), opacity .9s var(--ease); }
.ready .hero h1 .ln:nth-child(2) span { transition-delay: .08s; }
.ready .hero-foot { transition-delay: .25s; }

.js .art img { opacity: 0; transform: rotate(-14deg) scale(.9); }
.ready .art img { opacity: 1; transform: rotate(-6deg); transition: transform 1.1s var(--ease) .1s, opacity .6s .1s; }
.js .sticker { opacity: 0; transform: scale(.6) rotate(-10deg); }
.ready .sticker { opacity: 1; transform: rotate(-10deg); transition: transform .7s var(--ease) .8s, opacity .4s .8s; }

/* services: list + pinned stage */
.services { padding: clamp(64px, 9vw, 110px) 0; }
.services h2, .steps h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.03em; line-height: 1.08; max-width: 18ch; }
.services .intro { color: var(--ink-2); margin-top: 14px; max-width: 52ch; }
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); margin-top: 48px; }
.svc ol { list-style: none; margin: 0; padding: 0; }
.svc li { padding: 26px 0 26px 22px; border-left: 2px solid var(--line); min-height: 34vh; display: flex; flex-direction: column; justify-content: center; transition: border-color .4s; }
.svc li h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.02em; color: var(--muted); transition: color .4s; }
.svc li p { color: var(--ink-2); margin-top: 10px; max-width: 42ch; opacity: .55; transition: opacity .4s; }
.svc li.on { border-left-color: var(--brand); }
.svc li.on h3 { color: var(--ink); }
.svc li.on p { opacity: 1; }
.stage-col { position: relative; }
.stage { position: sticky; top: max(84px, calc(50vh - 230px)); height: min(460px, calc(100vh - 104px)); min-height: 400px; border-radius: 28px; background: linear-gradient(150deg, var(--g1), var(--g2)); overflow: hidden; box-shadow: 0 40px 70px -34px rgba(83, 53, 196, .6); }
.scene { position: absolute; inset: 0; padding: 30px; display: flex; flex-direction: column; justify-content: center; gap: 14px; opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .5s var(--ease), transform .6s var(--ease); pointer-events: none; }
.scene.on { opacity: 1; transform: none; }
.scene .cap { font-size: .86rem; color: var(--muted); }
.scene > .cap { color: rgba(255, 255, 255, .9); }
.mini { display: none; }
@media (max-width: 860px) {
  .svc { grid-template-columns: 1fr; }
  .stage-col { display: none; }
  .svc li { min-height: 0; padding: 22px 0 22px 18px; }
  .svc li h3 { color: var(--ink); }
  .svc li p { opacity: 1; }
}

/* scene parts */
.panel { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .95rem; }
.row + .row { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.sw { width: 38px; height: 22px; border-radius: 99px; background: var(--line); position: relative; flex: none; transition: background .4s .3s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .4s .3s var(--ease); }
.on .sw.go { background: var(--ok); }
.on .sw.go::after { transform: translateX(16px); }
.tag { font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--ok-soft); color: var(--ok-ink); }
.tag.p { background: var(--amber-soft); color: var(--amber-ink); }
.code { font: 500 .84rem/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; background: #1e1840; border: 1px solid rgba(255,255,255,.1); color: #e9e5ff; border-radius: 14px; padding: 14px 16px; }
.code b { color: #a8f0cf; font-weight: 500; }
.code em { color: #c9bbff; font-style: normal; }

.browser { background: var(--panel); border-radius: 14px; overflow: hidden; }
.browser .bar { height: 30px; background: var(--surface-2); display: flex; gap: 6px; align-items: center; padding: 0 12px; }
.browser .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px; }
.ph { border-radius: 12px; background: linear-gradient(135deg, var(--soft), color-mix(in srgb, var(--g2) 45%, var(--soft))); aspect-ratio: 1; }
.lines { display: grid; gap: 9px; align-content: start; }
.lines span { height: 10px; border-radius: 6px; background: var(--line); }
.lines .t { height: 16px; width: 80%; background: var(--ink); opacity: .8; }
.lines .buy { height: 36px; border-radius: 99px; background: var(--brand); margin-top: 8px; }
.edit { outline: 2px dashed var(--brand); outline-offset: 4px; border-radius: 8px; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { outline-color: transparent; } }

.bar-fill { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar-fill span { display: block; height: 100%; width: 35%; background: var(--ok); border-radius: inherit; transition: width 1.2s .3s var(--ease); }
.on .bar-fill span { width: 100%; }

.net { position: relative; height: 300px; }
.net svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.net path { stroke: rgba(255, 255, 255, .75); stroke-width: 2; fill: none; stroke-dasharray: 6 6; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.node { position: absolute; transform: translate(-50%, -50%); background: var(--panel); border: 0; color: var(--ink); border-radius: 12px; padding: 8px 14px; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.node.hub { background: var(--brand-dark); color: #fff; border-color: transparent; padding: 12px 18px; }

.gauge { display: flex; align-items: center; gap: 26px; }
.gauge svg { width: 150px; height: 150px; transform: rotate(-90deg); flex: none; }
.gauge circle { fill: none; stroke-width: 12; }
.gauge .trk { stroke: rgba(255, 255, 255, .25); }
.gauge .val { stroke: #fff; stroke-linecap: round; stroke-dasharray: 377; stroke-dashoffset: 222; transition: stroke-dashoffset 1.4s .2s var(--ease); }
.on .gauge .val { stroke-dashoffset: 15; }
.gauge strong { font: 700 3rem/1 var(--display); letter-spacing: -.04em; color: #fff; }
.gauge .cap { color: rgba(255, 255, 255, .9); }

.ticket { display: grid; gap: 10px; }
.ticket .st { transition: opacity .4s .9s; }
.ticket .was { text-decoration: line-through; color: var(--muted); transition: color .4s .6s; }
.scene:not(.on) .ticket .st.after { opacity: 0; }

/* steps: a real sequence */
.steps { background: var(--soft); border-radius: 44px; margin: 0 var(--pad); padding: clamp(56px, 8vw, 96px) 0; }
.steps .wrap { padding-inline: clamp(8px, 3vw, 24px); }
.steps ol { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(s); font: 700 2.6rem/1 var(--display); color: var(--brand); display: block; margin-bottom: 14px; }
.steps h3 { font-size: 1.3rem; }
.steps li p { color: var(--ink-2); margin-top: 8px; }
@media (max-width: 760px) { .steps ol { grid-template-columns: 1fr; } }

/* contact */
.contact { background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff; border-radius: 36px; margin: clamp(20px, 3vw, 32px) var(--pad) 0; padding: clamp(48px, 8vw, 96px) var(--pad); text-align: left; }
.contact .wrap { padding: 0; }
.contact h2 { font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -.04em; line-height: 1.02; max-width: 16ch; }
.contact p { color: rgba(255, 255, 255, .92); margin-top: 16px; max-width: 48ch; }
.mailrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; }
.mailrow .btn-main { background: #fff; color: var(--brand-dark); }
.mailrow .btn-main:hover { background: #f4f0ff; }
.copy { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.copy.done { border-color: #fff; background: rgba(255, 255, 255, .18); }

footer { padding: 36px 0 44px; color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
footer nav { display: flex; gap: 22px; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--brand); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .hero h1 .ln span, .js .hero-foot { transform: none; opacity: 1; }
}
