/* SELYO design tokens (subset used by this page) */
:root {
  --amber-500: #d97706;
  --amber-600: #b45309;
  --amber-100: #fbdcb4;
  --indigo-deep: #31237a;
  --brand-primary: var(--amber-500);
  --brand-primary-active: var(--amber-600);
  --brand-luxe: var(--indigo-deep);
  --canvas: #ffffff;
  --surface-soft: #f7f7f7;
  --surface-strong: #f2f2f2;
  --text-heading: #1f1f1f;
  --text-body: #3f3f3f;
  --text-muted: #6a6a6a;
  --line-300: #c1c1c1;
  --border-hairline: #dddddd;
  --border-strong: #c1c1c1;
  --border-focus: #1f1f1f;
  --shadow-float: rgba(0, 0, 0, 0.02) 0 0 0 1px, rgba(0, 0, 0, 0.04) 0 2px 6px 0,
    rgba(0, 0, 0, 0.1) 0 4px 8px 0;
  --ease: cubic-bezier(0.2, 0, 0.2, 1);
  --night: oklch(0.2 0.045 265);
  --pad-x: clamp(20px, 5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text-heading);
  font-family: "Figtree", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-primary); }
::selection { background: var(--brand-primary); color: #fff; }
:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.dark :focus-visible { outline-color: #fff; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; color: var(--text-heading); padding: 10px 12px; border-radius: 8px; }
.skip-link:focus { left: 14px; top: 14px; }

.mask { overflow-x: visible; overflow-y: clip; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--pad-x); }

/* Lucide icon rendered as a CSS mask so it inherits currentColor */
.i {
  display: inline-block; flex: none; width: 20px; height: 20px;
  background-color: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
}

/* Buttons & badges (SELYO Button / Badge) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 14px 24px; border-radius: 8px; border: 1px solid transparent;
  font: 500 16px/1.25 inherit; font-family: inherit; white-space: nowrap;
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}
.btn .i { width: 18px; height: 18px; }
.btn-primary { background: var(--brand-primary); color: #fff; }
.btn-primary:hover { background: var(--brand-primary-active); color: #fff; }
.btn-secondary { background: var(--canvas); color: var(--text-heading); border-color: var(--text-heading); padding: 13px 23px; }
.btn-secondary:hover { background: var(--surface-soft); color: var(--text-heading); }
.btn-ghost { padding: 0 22px; border-color: rgba(255, 255, 255, 0.5); color: #fff; font-weight: 600; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.badge {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 9999px;
  font-size: 11px; font-weight: 600; line-height: 1.18; white-space: nowrap;
}
.badge-solid { background: var(--brand-primary); color: #fff; }
.badge-quiet { background: var(--surface-strong); color: var(--text-body); }
.badge-beta { background: #fdf6ec; color: var(--amber-600); box-shadow: inset 0 0 0 1px var(--amber-100); }

/* Nav */
.site-header {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center; padding: 0 clamp(12px, 3vw, 40px); pointer-events: none;
}
.nav {
  pointer-events: auto; width: 100%; max-width: 1280px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 10px 12px 10px 20px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background 220ms var(--ease), color 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}
.scrolled .nav { background: rgba(255, 255, 255, 0.96); color: var(--text-heading); border-color: transparent; box-shadow: var(--shadow-float); }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; }
.brand:hover { color: inherit; }
/* Light logo over dark sections, dark logo once the nav turns white */
.brand-logo { display: grid; }
.brand-logo img { grid-area: 1 / 1; display: block; height: 36px; width: auto; transition: opacity 220ms var(--ease); }
.brand-logo .logo-b, .scrolled .brand-logo .logo-w { opacity: 0; }
.scrolled .brand-logo .logo-b { opacity: 1; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 14px; font-weight: 700; }
.brand-text span { font-size: 12px; opacity: 0.72; }
.nav-links { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; }
.nav-links a { padding: 10px 14px; border-radius: 999px; }
.nav-links a.nav-cta, .nav-links a.nav-cta:hover { padding: 10px 18px; background: var(--brand-primary); color: #fff; font-weight: 600; }
.nav-links a.nav-cta:hover { background: var(--brand-primary-active); }
@media (max-width: 899px) {
  .nav-links a:not(.nav-cta) { display: none; }
}
@media (max-width: 520px) {
  .brand-text span { display: none; }
}

/* Dark sections with drifting colour blobs */
.dark { position: relative; background: var(--night); color: #fff; overflow: hidden; isolation: isolate; }
.dark a:hover { color: #fff; }
.blobs { position: absolute; inset: -20%; z-index: -1; pointer-events: none; }
.blobs div { position: absolute; border-radius: 50%; }

/* Hero */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; }
.glow {
  position: absolute; left: 0; top: 0; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 65%);
  pointer-events: none; z-index: -1; transform: translate(-600px, -600px);
  transition: transform 400ms var(--ease);
}
.hero .wrap { padding-top: 160px; padding-bottom: 56px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; font-weight: 500; opacity: 0.8; margin-bottom: 32px; }
.hero h1 {
  font-size: clamp(44px, 7.6vw, 128px); line-height: 0.96; letter-spacing: -0.045em;
  font-weight: 700; max-width: 15ch; text-wrap: balance;
}
/* Clip only vertically: negative tracking pushes glyph edges past the box horizontally */
.hero h1 > span { display: inline-flex; overflow-x: visible; overflow-y: clip; padding: 0.06em 0 0.16em; margin: -0.06em 0.22em -0.08em 0; }
.hero h1 > span:last-child { margin-right: 0; }
.hero h1 > span > span { display: inline-block; }
.hero h1 .hl { color: var(--amber-100); }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: 48px; }
.hero-copy { max-width: 600px; display: flex; flex-direction: column; gap: 28px; }
.hero-copy p { font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, 0.88); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.now {
  min-width: 260px; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.08);
}
.now-head { padding: 14px 18px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.75); border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.now a { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.now a:hover { background: rgba(255, 255, 255, 0.08); }
.now-name { display: flex; align-items: baseline; gap: 12px; }
.now-name small { font-size: 13px; opacity: 0.6; }
.now-name b { font-size: 18px; }
.now-status { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-live { background: oklch(0.78 0.15 160); }
.dot-soon { background: var(--amber-100); }
.dot-beta { background: oklch(0.78 0.12 230); }
.marquee { border-top: 1px solid rgba(255, 255, 255, 0.18); overflow: hidden; padding: 18px 0; }
.marquee-track {
  display: flex; width: max-content; gap: 40px; white-space: nowrap;
  font-size: clamp(20px, 2.4vw, 32px); font-weight: 700; letter-spacing: -0.02em;
}
.marquee-track span { display: flex; align-items: center; gap: 40px; color: rgba(255, 255, 255, 0.55); }
.marquee-track span.on { color: #fff; }
.marquee-track span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-primary); }

/* Section heads */
.section { padding: clamp(96px, 12vw, 160px) 0; }
.section-head {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 32px 80px; align-items: end; margin-bottom: 56px;
}
.h-xl { font-size: clamp(48px, 7vw, 104px); line-height: 0.92; letter-spacing: -0.05em; font-weight: 700; }
.lead { font-size: 18px; line-height: 1.55; color: var(--text-body); max-width: 52ch; text-wrap: pretty; }
.rule { border-top: 1px solid var(--text-heading); }

/* Portfolio index */
.index-row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 48px; align-items: center; gap: 24px;
  padding: 28px 8px; border-bottom: 1px solid var(--border-hairline); color: var(--text-heading);
  transition: background 150ms var(--ease);
}
a.index-row:hover { background: var(--surface-soft); color: var(--text-heading); }
.index-num { font-size: 15px; font-weight: 600; color: var(--brand-primary); }
.index-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px; min-width: 0; }
.index-name b { font-size: clamp(36px, 5vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.index-name span { font-size: 16px; color: var(--text-muted); }
.circle { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border-hairline); display: flex; align-items: center; justify-content: center; }
.index-row.next { color: var(--text-muted); }
.index-row.next .index-num { color: var(--text-muted); }
.index-row.next b { color: var(--line-300); }
.index-row.next .circle { border: 1px dashed var(--border-strong); }
@media (max-width: 640px) {
  .index-row { grid-template-columns: 40px minmax(0, 1fr) 48px; }
  .index-row .badge, .index-row > span:empty { display: none; }
}

/* Product detail */
.product { padding: clamp(72px, 9vw, 128px) 0; }
.product-top { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.product-top .index-num { font-weight: 700; }
.line { flex: 1; height: 1px; background: var(--text-heading); transform-origin: left center; }
.product-name {
  font-size: clamp(56px, 19vw, 260px); line-height: 0.86; letter-spacing: -0.07em;
  font-weight: 700; padding-bottom: 0.06em;
}
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 56px; margin-top: 48px; align-items: start; }
.product-copy { display: flex; flex-direction: column; gap: 24px; max-width: 520px; }
.product-tagline { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; text-wrap: balance; }
.product-copy .btn { align-self: flex-start; }
.note { font-size: 14px; color: var(--text-muted); }
.checks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border-hairline); }
.checks li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border-hairline); line-height: 1.5; color: var(--text-body); }
.checks .i { width: 16px; height: 16px; margin-top: 4px; color: var(--text-heading); }
.detail { background: var(--surface-soft); border-radius: 20px; padding: clamp(24px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 28px; }
.detail-head { display: flex; flex-direction: column; gap: 10px; }
.detail h3 { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
.detail-head p { color: var(--text-body); text-wrap: pretty; }
.panel {
  background: var(--text-heading); color: #fff; border-radius: 14px; padding: 28px; min-height: 190px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-primary); display: flex; align-items: center; justify-content: center; }
.panel-icon .i { width: 24px; height: 24px; }
.panel-name { font-size: clamp(40px, 5vw, 64px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: rgba(255, 255, 255, 0.16); }
.panel-body { display: flex; flex-direction: column; gap: 8px; }
.panel-body b { font-size: 22px; letter-spacing: -0.01em; }
.panel-body span { color: rgba(255, 255, 255, 0.78); }
.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.module {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 6px;
  padding: 16px; border-radius: 14px; font-family: inherit;
  transition: background 220ms var(--ease), box-shadow 220ms var(--ease);
}
.module:focus-visible { outline: 2px solid var(--border-focus); }
.module[aria-pressed="true"] { background: var(--canvas); box-shadow: var(--shadow-float); }
.module-title { display: flex; align-items: baseline; gap: 10px; }
.module-title small { font-size: 13px; font-weight: 700; color: var(--text-muted); }
.module[aria-pressed="true"] small { color: var(--brand-primary); }
.module-title b { font-size: 18px; color: var(--text-heading); }
.module > span:last-child { font-size: 14px; line-height: 1.43; color: var(--text-muted); }
.phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 24px; }
.phase { display: flex; flex-direction: column; gap: 14px; }
.phase-top { display: flex; align-items: center; gap: 10px; }
.phase-n {
  width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--text-heading);
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700;
}
.phase:first-child .phase-n { background: var(--text-heading); color: #fff; }
.phase b { font-size: 18px; }
.phase > span { font-size: 15px; line-height: 1.47; color: var(--text-body); }

/* On-demand work */
.soft { background: var(--surface-soft); }
.work-row {
  display: grid; grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1fr) 40px; gap: 24px; align-items: center;
  padding: 32px 8px; border-bottom: 1px solid var(--border-hairline); color: var(--text-heading);
  transition: background 150ms var(--ease);
}
.work-row:hover { background: var(--canvas); color: var(--text-heading); }
.work-row .circle { background: var(--canvas); }
.work-row b { font-size: clamp(24px, 3vw, 40px); letter-spacing: -0.03em; line-height: 1.05; }
.work-row > span:nth-child(3) { color: var(--text-body); }
.work-row > .i { width: 24px; height: 24px; }
@media (max-width: 760px) {
  .work-row { grid-template-columns: 48px minmax(0, 1fr) 24px; }
  .work-row > span:nth-child(3) { grid-column: 2; grid-row: 2; }
}

/* Trust */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px 80px; align-items: start; }
.trust-head { display: flex; flex-direction: column; gap: 24px; }
.shield { width: 64px; height: 64px; border-radius: 50%; background: var(--text-heading); color: #fff; display: flex; align-items: center; justify-content: center; }
.shield .i { width: 24px; height: 24px; }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border-hairline); }
.facts dt { font-size: 14px; color: var(--text-muted); }
.facts dd { margin: 0; font-size: 17px; font-weight: 600; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.facts dd.num { font-variant-numeric: tabular-nums; }
.facts .u { text-decoration: underline; text-underline-offset: 3px; }

/* Contact */
.contact .wrap { padding-top: clamp(96px, 12vw, 160px); padding-bottom: 40px; }
.eyebrow { font-size: 15px; font-weight: 600; opacity: 0.8; margin-bottom: 20px; }
.contact-lead { margin-bottom: 24px; font-size: clamp(20px, 2vw, 26px); line-height: 1.35; max-width: 32ch; color: rgba(255, 255, 255, 0.9); }
.big-mail {
  display: inline-block; color: #fff; font-size: clamp(36px, 10.5vw, 168px); font-weight: 700;
  letter-spacing: -0.06em; line-height: 1; padding-bottom: 0.08em; transition: color 150ms var(--ease);
}
.dark a.big-mail:hover { color: var(--amber-100); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-top: 64px; }
.card {
  padding: 24px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.22);
  background: oklch(0.2 0.045 265 / 0.45); display: flex; flex-direction: column; gap: 8px;
}
.card > span:first-child { font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.card > :last-child { font-size: 18px; font-weight: 600; }
.footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 96px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px; color: rgba(255, 255, 255, 0.8);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 30px; width: auto; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills a { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; }
.pills a:hover { background: rgba(255, 255, 255, 0.12); }

/* Legal pages */
.page-hero .wrap { padding-top: 168px; padding-bottom: clamp(56px, 7vw, 96px); }
.page-hero h1 { font-size: clamp(48px, 8vw, 128px); line-height: 0.92; letter-spacing: -0.05em; font-weight: 700; }
.page-hero p { margin-top: 24px; max-width: 60ch; font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, 0.85); }
.doc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.doc-tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3); font-size: 14px; }
.doc-tabs a:hover { background: rgba(255, 255, 255, 0.12); }
.doc-tabs a[aria-current="page"] { background: #fff; color: var(--text-heading); border-color: #fff; }
.doc { padding: clamp(64px, 8vw, 112px) 0; }
.doc-body { max-width: 760px; }
.doc-body section { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px 24px; padding: 32px 0; border-bottom: 1px solid var(--border-hairline); }
.doc-body section:first-child { border-top: 1px solid var(--text-heading); }
.doc-body .index-num { padding-top: 6px; }
.doc-body h2 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; margin-bottom: 12px; }
.doc-body p, .doc-body li { font-size: 17px; line-height: 1.6; color: var(--text-body); }
.doc-body ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.doc-body a { text-decoration: underline; text-underline-offset: 3px; }
.doc-foot { margin-top: 40px; font-size: 14px; color: var(--text-muted); }
.dark.compact .wrap { padding-top: 8px; padding-bottom: 40px; }
.dark.compact .footer { margin-top: 0; border-top: 0; }
@media (max-width: 640px) {
  .doc-body section { grid-template-columns: minmax(0, 1fr); }
}
