/* ==========================================================================
   Dhisa — design system
   Learn · Solve · Scale
   ========================================================================== */

html { color-scheme: light; }
:root {
  /* Brand colours (pulled from the logo ribbon) */
  --blue: #4f7cff;
  --violet: #8b5cf6;
  --magenta: #e5457c;
  --coral: #f97362;
  --orange: #ffa63d;
  --orange-deep: #f7862c;

  --grad: linear-gradient(120deg, var(--blue) 0%, var(--violet) 32%, var(--magenta) 64%, var(--orange) 100%);
  --grad-soft: linear-gradient(120deg, rgba(79,124,255,.18), rgba(139,92,246,.18), rgba(229,69,124,.18), rgba(255,166,61,.18));

  /* Surfaces — light theme (default) */
  --bg: #f7f7fc;
  --bg-rgb: 247,247,252;
  --bg-2: #ffffff;
  --bg-3: #ecebf7;
  --fg-rgb: 20,18,46;
  --ink: #14122e;
  --line: rgba(20,18,46,.09);
  --line-strong: rgba(20,18,46,.18);
  --card: #ffffff;
  --card-hover: #ffffff;
  --card-shadow: 0 1px 2px rgba(20,18,46,.04), 0 12px 32px -18px rgba(20,18,46,.18);
  --card-shadow-hover: 0 2px 4px rgba(20,18,46,.05), 0 24px 48px -20px rgba(20,18,46,.28);
  --glow: .22;
  --orb: .45;

  /* Text */
  --text: #14122e;
  --text-2: #4d4f70;
  --text-3: #7c7f9f;

  /* Type */
  --font-head: "Sora", "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-brand: "Poppins", "Sora", system-ui, sans-serif;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 18px;
  --radius-lg: 28px;
  --nav-h: 76px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.3, .64, 1);
}
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] {
  --grad-soft: linear-gradient(120deg, rgba(79,124,255,.28), rgba(139,92,246,.28), rgba(229,69,124,.28), rgba(255,166,61,.28));
  --bg: #0b0a1f;
  --bg-rgb: 11,10,31;
  --bg-2: #110f2a;
  --bg-3: #171436;
  --fg-rgb: 255,255,255;
  --ink: #ffffff;
  --line: rgba(var(--fg-rgb),.08);
  --line-strong: rgba(var(--fg-rgb),.16);
  --card: rgba(var(--fg-rgb),.035);
  --card-hover: rgba(var(--fg-rgb),.06);
  --card-shadow: none;
  --card-shadow-hover: none;
  --glow: .45;
  --orb: .55;
  --text: #f1f1fb;
  --text-2: #b8bad6;
  --text-3: #7f82a6;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1.1em; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--violet); color: #fff; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 130px); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  padding: 10px 16px; background: var(--orange); color: #1a0f00; font-weight: 600; border-radius: 10px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Text helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-2); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%;
}
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text-2); max-width: 62ch; }
.muted { color: var(--text-2); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 44px; height: 32px; object-fit: contain; }
.brand__name {
  font-family: var(--font-brand); font-weight: 700; font-size: 1.55rem; letter-spacing: -.02em; line-height: 1;
  color: var(--ink); position: relative; display: inline-block;
}
/* the "i" is rendered dotless and gets an orange dot, matching the logo */
.brand__name .dot { position: relative; display: inline-block; }
.brand__name .dot::after {
  content: ""; position: absolute; left: 50%; top: -.02em; width: .2em; height: .2em; transform: translateX(-50%);
  border-radius: 50%; background: var(--orange-deep);
}
.brand__tag { font-family: var(--font-head); font-size: .62rem; letter-spacing: .34em; text-transform: uppercase; color: var(--text-2); margin-top: 6px; display: block; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--grad);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: 1rem; line-height: 1;
  position: relative; isolation: isolate; white-space: nowrap;
  transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease), background .3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); flex: none; }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--primary { color: var(--ink); background: var(--grad); background-size: 200% 100%; box-shadow: 0 10px 30px -10px rgba(139,92,246,.7); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(229,69,124,.6); background-position: 100% 0; }
.btn--ghost { color: var(--text); border: 1px solid var(--line-strong); background: rgba(var(--fg-rgb),.03); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(var(--fg-rgb),.08); border-color: rgba(var(--fg-rgb),.3); transform: translateY(-2px); }
.btn--light { color: var(--bg); background: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -14px rgba(var(--fg-rgb),.5); }
.btn--sm { padding: 11px 18px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow:hover { color: var(--orange); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  transition: background .35s, border-color .35s, backdrop-filter .35s, transform .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(var(--bg-rgb),.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 10px 14px; border-radius: 999px; font-weight: 500; color: var(--text-2); font-size: .97rem; transition: color .25s, background .25s; position: relative; }
.nav a:hover { color: var(--text); background: rgba(var(--fg-rgb),.06); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--grad); }
.header__cta { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-strong); place-items: center; position: relative; z-index: 120; }
.menu-btn span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease), opacity .25s; position: absolute; left: 12px; }
.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 22px; }
.menu-btn span:nth-child(3) { top: 29px; }
body.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 110; background: rgba(var(--bg-rgb),.96); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gutter) 40px;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s;
}
body.menu-open .mobile-nav { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.mobile-nav a:not(.btn) { font-family: var(--font-head); font-size: clamp(1.9rem, 8vw, 2.6rem); font-weight: 600; letter-spacing: -.02em; padding: 10px 0; color: var(--text-2); display: flex; align-items: baseline; gap: 16px;
  transform: translateY(20px); opacity: 0; transition: transform .5s var(--ease), opacity .5s; }
.mobile-nav a:not(.btn) small { font-family: var(--font-body); font-size: .8rem; letter-spacing: .1em; color: var(--text-3); }
.mobile-nav a:not(.btn)[aria-current="page"], .mobile-nav a:not(.btn):hover { color: var(--ink); }
body.menu-open .mobile-nav a { transform: none; opacity: 1; }
.mobile-nav .btn { transform: translateY(20px); opacity: 0; transition: transform .5s var(--ease) .3s, opacity .5s .3s; }
body.menu-open .mobile-nav .btn { transform: none; opacity: 1; }
body.menu-open .mobile-nav a:nth-child(2) { transition-delay: .05s; }
body.menu-open .mobile-nav a:nth-child(3) { transition-delay: .1s; }
body.menu-open .mobile-nav a:nth-child(4) { transition-delay: .15s; }
body.menu-open .mobile-nav a:nth-child(5) { transition-delay: .2s; }
body.menu-open .mobile-nav a:nth-child(6) { transition-delay: .25s; }
.mobile-nav .btn { margin-top: 30px; align-self: flex-start; }
body.menu-open { overflow: hidden; }

/* ---------- Backgrounds ---------- */
.bg-orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bg-orbs span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: var(--orb); animation: drift 18s ease-in-out infinite alternate; }
.bg-orbs span:nth-child(1) { width: 520px; height: 520px; left: -140px; top: -120px; background: rgba(79,124,255,.45); }
.bg-orbs span:nth-child(2) { width: 460px; height: 460px; right: -120px; top: 10%; background: rgba(229,69,124,.35); animation-delay: -6s; }
.bg-orbs span:nth-child(3) { width: 380px; height: 380px; left: 40%; bottom: -160px; background: rgba(255,166,61,.25); animation-delay: -12s; }
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(40px, 30px, 0) scale(1.12); } }
.bg-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(var(--fg-rgb),.045) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--fg-rgb),.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}
.section > .container { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding-top: calc(var(--nav-h) + 40px); padding-bottom: 60px; position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 70px); align-items: center; position: relative; z-index: 1; }
.hero__pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(var(--fg-rgb),.04); font-size: .85rem; color: var(--text-2); margin-bottom: 26px;
}
.hero__pill b { color: #fff; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--grad); font-size: .72rem; letter-spacing: .06em; }
.hero h1 { margin-bottom: 22px; max-width: 14ch; font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
.hero h1 .line { display: inline; }
.hero .lead { margin-bottom: 34px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 46px; color: var(--text-3); font-size: .9rem; }
.hero__meta b { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--ink); letter-spacing: -.02em; }


/* ---------- Logo strip / marquee ---------- */
.trusted { border-block: 1px solid var(--line); padding: 26px 0; background: rgba(var(--fg-rgb),.015); }
.trusted .container { display: flex; align-items: center; gap: 30px; }
.trusted__label { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; flex: none; }
.marquee { overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 60px; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--text-2); letter-spacing: -.01em; white-space: nowrap; }
.wordmark i { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; font-style: normal; font-size: .75rem; color: #fff; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; padding: 30px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--card-shadow);
  transition: transform .5s var(--ease), background .35s, border-color .35s, box-shadow .5s var(--ease); overflow: hidden;
}
.card::before { /* mouse-following highlight */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--fg-rgb),.09), transparent 45%);
}
.card:hover { transform: translateY(-4px); background: var(--card-hover); border-color: var(--line-strong); box-shadow: var(--card-shadow-hover); }
.card:hover::before { opacity: 1; }
.card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px; background: var(--grad-soft); border: 1px solid var(--line-strong); }
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-2); margin-bottom: 0; }
.card__list { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.card__list li { font-size: .8rem; padding: 6px 11px; border-radius: 999px; background: rgba(var(--fg-rgb),.06); color: var(--text-2); }
.card--accent { background: linear-gradient(160deg, rgba(79,124,255,.16), rgba(229,69,124,.1) 60%, rgba(255,166,61,.12)); border-color: rgba(var(--fg-rgb),.14); }
.card__num { font-family: var(--font-head); font-size: .85rem; color: var(--text-3); letter-spacing: .1em; margin-bottom: 14px; }

/* ---------- Pillars (Learn Solve Scale) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--card); }
.pillar { padding: clamp(26px, 3vw, 40px); position: relative; }
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar__word { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; margin-bottom: 14px; }
.pillar:nth-child(1) .pillar__word { color: var(--blue); }
.pillar:nth-child(2) .pillar__word { color: var(--magenta); }
.pillar:nth-child(3) .pillar__word { color: var(--orange); }
.pillar p { color: var(--text-2); margin: 0; }
.pillar__step { position: absolute; top: 22px; right: 26px; font-family: var(--font-head); color: var(--text-3); font-size: .8rem; letter-spacing: .14em; }

/* ---------- Work / snapshots ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-card { display: block; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--card); box-shadow: var(--card-shadow); transition: transform .5s var(--ease), border-color .35s, box-shadow .5s var(--ease); }
.work-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.work-card__media { padding: 26px 26px 0; background: var(--wc-bg, #1a1740); position: relative; overflow: hidden; }
.work-card__media::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(0,0,0,.25)); pointer-events: none; }
.work-card__body { padding: 22px 26px 26px; }
.work-card__body h3 { margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between; }
.work-card__body h3 svg { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.work-card:hover h3 svg { transform: translate(3px, -3px); }
.work-card__body p { color: var(--text-2); margin: 0; font-size: .95rem; }
.work-card__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.work-card__tags span { font-size: .75rem; padding: 5px 10px; border-radius: 999px; background: rgba(var(--fg-rgb),.06); color: var(--text-2); }

/* Browser frame that holds a snapshot */
.snap { border-radius: 14px 14px 0 0; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); transform: translateY(6px); transition: transform .6s var(--ease); font-family: var(--font-body); color: #1a1a2e; }
.work-card:hover .snap, .case__visual:hover .snap { transform: translateY(0); }
.snap__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #f0f0f5; border-bottom: 1px solid #e4e4ee; }
.snap__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d9d9e3; }
.snap__bar i:nth-child(1) { background: #ff5f57; } .snap__bar i:nth-child(2) { background: #febc2e; } .snap__bar i:nth-child(3) { background: #28c840; }
.snap__url { margin-left: 10px; flex: 1; height: 16px; border-radius: 6px; background: #fff; border: 1px solid #e4e4ee; font-size: 9px; line-height: 14px; padding: 0 8px; color: #6b6b80; }
.snap__body { padding: 0; aspect-ratio: 16 / 10.5; overflow: hidden; position: relative; font-size: 8px; }
.snap__body * { line-height: 1.3; }

.snap--img .snap__body { aspect-ratio: 16 / 10; }
.snap--img .snap__body img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.case__visual .snap--img .snap__body { aspect-ratio: 16 / 11; }

/* mini-site primitives used inside snapshots */
.ms-nav { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; }
.ms-logo { font-family: var(--font-head); font-weight: 700; font-size: 10px; display: flex; align-items: center; gap: 5px; }
.ms-logo i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.ms-links { display: flex; gap: 8px; }
.ms-links span { width: 22px; height: 4px; border-radius: 2px; background: currentColor; opacity: .25; }
.ms-btn { padding: 4px 8px; border-radius: 999px; font-size: 7px; font-weight: 600; color: #fff; }
.ms-hero { padding: 12px 14px 8px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 10px; align-items: center; }
.ms-hero h4 { font-family: var(--font-head); font-size: 13px; line-height: 1.15; margin: 0 0 5px; letter-spacing: -.02em; }
.ms-hero p { font-size: 7.5px; opacity: .7; margin: 0 0 7px; }
.ms-hero .ms-btn { display: inline-block; }
.ms-pill { display: inline-block; font-size: 6.5px; font-weight: 600; padding: 2px 6px; border-radius: 999px; margin-bottom: 5px; }
.ms-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 4px 14px 14px; }
.ms-card { border-radius: 6px; background: #fff; border: 1px solid #ececf3; padding: 6px; }
.ms-card .ms-img { height: 34px; border-radius: 4px; margin-bottom: 5px; position: relative; overflow: hidden; }
.ms-card b { display: block; font-size: 7px; }
.ms-card small { font-size: 6.5px; opacity: .65; display: block; }
.ms-card .ms-price { font-weight: 700; font-size: 7.5px; margin-top: 3px; display: block; }
.ms-line { height: 4px; border-radius: 2px; background: currentColor; opacity: .18; margin: 3px 0; }
.ms-line.w60 { width: 60%; } .ms-line.w40 { width: 40%; } .ms-line.w80 { width: 80%; }
.ms-stats { display: flex; gap: 8px; padding: 0 14px 10px; }
.ms-stats div { flex: 1; border-radius: 6px; padding: 6px 8px; background: rgba(255,255,255,.7); border: 1px solid #ececf3; }
.ms-stats b { font-size: 10px; font-family: var(--font-head); display: block; }
.ms-stats small { font-size: 6.5px; opacity: .65; }
.ms-panel { border-radius: 8px; padding: 8px; }
.ms-row { display: flex; align-items: center; gap: 6px; font-size: 6.5px; padding: 4px 0; border-bottom: 1px dashed rgba(0,0,0,.08); }
.ms-row:last-child { border-bottom: 0; }
.ms-row i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.ms-row b { margin-left: auto; }

/* ---------- Platform section ---------- */
.platform { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%); }
.platform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.feature-list { display: grid; gap: 14px; margin-top: 26px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list svg { width: 22px; height: 22px; flex: none; margin-top: 3px; }
.feature-list b { display: block; color: var(--ink); margin-bottom: 2px; }
.feature-list span { color: var(--text-2); font-size: .95rem; }


/* ---------- Process (timeline) ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.process__step { position: relative; padding: 28px 26px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--card); }
.process__step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; letter-spacing: -.04em; line-height: 1; display: block; margin-bottom: 18px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.process__step h3 { font-size: 1.15rem; }
.process__step p { color: var(--text-2); font-size: .95rem; margin: 0; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { padding: 26px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; margin-bottom: 8px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat > span { color: var(--text-2); font-size: .95rem; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: 20px; }
.quote__stars { display: flex; gap: 3px; color: var(--orange); }
.quote__stars svg { width: 16px; height: 16px; }
.quote p { font-size: 1.05rem; color: var(--text); margin: 0; flex: 1; }
.quote footer { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--text-2); }
.quote footer i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; color: #fff; flex: none; }
.quote footer b { display: block; color: var(--ink); }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; }
.cta__box { position: relative; padding: clamp(44px, 7vw, 90px) clamp(24px, 5vw, 80px); border-radius: var(--radius-lg); overflow: hidden; text-align: center; border: 1px solid var(--line-strong); background: var(--bg-2); }
.cta__box::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 180deg at 50% 50%, var(--blue), var(--violet), var(--magenta), var(--orange), var(--blue)); filter: blur(90px); opacity: var(--glow); animation: spin 24s linear infinite; }
.cta__box > * { position: relative; }
.cta__box h2 { max-width: 18ch; margin-inline: auto; }
.cta__box .lead { margin-inline: auto; margin-bottom: 34px; }
.cta__box .btn-row { justify-content: center; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 120px)); padding-bottom: clamp(40px, 6vw, 80px); position: relative; overflow: hidden; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { max-width: 56ch; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--text-3); margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb svg { width: 14px; height: 14px; }

/* ---------- Case study layout ---------- */
.case { padding-block: clamp(56px, 8vw, 110px); border-top: 1px solid var(--line); scroll-margin-top: var(--nav-h); overflow-x: clip; }
.case__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.case:nth-of-type(even) .case__grid > .case__visual { order: -1; }
.case__visual { position: relative; padding: clamp(20px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--case-bg, #1a1740); overflow: hidden; }
.case__visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 10%, rgba(var(--fg-rgb),.14), transparent 45%); pointer-events: none; }
.case__visual .snap { border-radius: 14px; transform: none; }
.case__visual .snap__body { aspect-ratio: 16 / 11; }
.case__badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .04em; background: rgba(var(--fg-rgb),.08); border: 1px solid var(--line-strong); margin-bottom: 20px; }
.case__badge i { width: 8px; height: 8px; border-radius: 50%; }
.case__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0; }
.case__facts div { padding: 14px 16px; border-radius: 14px; background: rgba(var(--fg-rgb),.04); border: 1px solid var(--line); }
.case__facts b { display: block; font-family: var(--font-head); font-size: 1.5rem; letter-spacing: -.03em; line-height: 1.1; }
.case__facts span { font-size: .8rem; color: var(--text-3); }
.case__points { display: grid; gap: 10px; margin: 0 0 26px; }
.case__points li { display: flex; gap: 12px; color: var(--text-2); }
.case__points li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--grad); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 6px; padding: 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); width: max-content; max-width: 100%; overflow-x: auto; margin: 0 auto 40px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { padding: 10px 18px; border-radius: 999px; color: var(--text-2); font-weight: 500; white-space: nowrap; transition: background .3s, color .3s; font-size: .95rem; }
.tabs button[aria-selected="true"] { background: rgba(var(--fg-rgb),.1); color: var(--ink); }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Accordion (FAQ) ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: var(--line-strong); background: var(--card-hover); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(45deg); transition: transform .3s var(--ease); margin-right: 4px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .faq__body { padding: 0 24px 22px; color: var(--text-2); }
.faq .faq__body p:last-child { margin-bottom: 0; }

/* ---------- Values / about ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.timeline { position: relative; display: grid; gap: 26px; max-width: 760px; margin-inline: auto; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--blue), var(--magenta), var(--orange)); border-radius: 2px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -34px; top: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 3px solid var(--violet); box-shadow: 0 0 0 5px rgba(139,92,246,.18); }
.timeline b { display: block; font-family: var(--font-head); font-size: 1.1rem; color: var(--ink); }
.timeline span { color: var(--text-2); }
.timeline small { display: block; color: var(--text-3); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.contact-info { display: grid; gap: 16px; }
.contact-info a.card { display: flex; gap: 16px; align-items: center; padding: 22px 24px; }
.contact-info a.card .card__icon { margin: 0; width: 46px; height: 46px; flex: none; }
.contact-info a.card b { display: block; color: var(--ink); }
.contact-info a.card span { color: var(--text-2); font-size: .95rem; }
.form { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--card); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .9rem; font-weight: 500; color: var(--text-2); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: 12px; background: rgba(var(--fg-rgb),.04); border: 1px solid var(--line-strong); color: var(--ink); font: inherit; transition: border-color .25s, box-shadow .25s, background .25s;
}
.field select option { color: #111; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139,92,246,.22); background: rgba(var(--fg-rgb),.06); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--coral); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; }
.chips span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .9rem; color: var(--text-2); cursor: pointer; transition: all .25s; }
.chips input:checked + span { background: var(--grad); border-color: transparent; color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.form__note { font-size: .85rem; color: var(--text-3); margin: 0; }
.form__status { display: none; padding: 14px 16px; border-radius: 12px; background: rgba(40,200,64,.12); border: 1px solid rgba(40,200,64,.4); color: var(--text); font-size: .95rem; }
.form__status.is-visible { display: block; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(50px, 7vw, 80px) 0 30px; background: var(--bg-2); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 50px; }
.footer__brand p { color: var(--text-2); max-width: 34ch; margin-top: 18px; font-size: .95rem; }
.footer h4 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; font-weight: 600; }
.footer ul { display: grid; gap: 10px; }
.footer ul a { color: var(--text-2); transition: color .25s; font-size: .97rem; }
.footer ul a:hover { color: var(--ink); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-3); font-size: .85rem; }
.footer__bottom .tagline { font-family: var(--font-head); letter-spacing: .3em; text-transform: uppercase; font-size: .7rem; }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-2); transition: all .25s; }
.social a:hover { color: var(--ink); border-color: var(--line-strong); background: rgba(var(--fg-rgb),.06); transform: translateY(-2px); }
.social svg { width: 17px; height: 17px; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-24px); }
[data-reveal="right"] { transform: translateX(24px); }
[data-reveal="scale"] { transform: scale(.94); }

/* ---------- Back-to-top / progress ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 200; transition: width .1s linear; }
.to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; z-index: 90;
  background: rgba(var(--bg-rgb),.9); border: 1px solid var(--line-strong); color: var(--ink); backdrop-filter: blur(10px); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 18px; height: 18px; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.tech-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-cloud span { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: .9rem; color: var(--text-2); transition: all .25s; }
.tech-cloud span:hover { color: var(--ink); border-color: var(--line-strong); transform: translateY(-2px); }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.badge-row span { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-2); padding: 8px 12px; border-radius: 999px; background: rgba(var(--fg-rgb),.04); border: 1px solid var(--line); }
.badge-row svg { width: 16px; height: 16px; color: var(--orange); }
.error-page { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 60px; }
.error-page h1 { font-size: clamp(5rem, 20vw, 12rem); line-height: 1; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .grid--4, .stats, .process { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav, .header__cta .btn { display: none; }
  .menu-btn { display: grid; }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 40px); }
  .hero__grid { grid-template-columns: 1fr; }
  .grid--3, .work-grid, .quotes, .values, .pillars { grid-template-columns: 1fr; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--line); }
  .platform__grid, .case__grid, .contact-grid, .two-col { grid-template-columns: 1fr; }
  .case:nth-of-type(even) .case__grid > .case__visual { order: 0; }
  .trusted .container { flex-direction: column; align-items: flex-start; gap: 14px; }
  .marquee { width: 100%; }
  .process { grid-template-columns: 1fr 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

/* ==========================================================================
   Order-flow canvas (hero visual)
   ========================================================================== */
.flow { position: relative; width: 100%; max-width: 560px; margin-inline: auto; border-radius: 22px; border: 1px solid var(--line-strong); background: linear-gradient(180deg, #171436, #100e28); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.03) inset; overflow: hidden; }
.flow__bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .78rem; color: var(--text-2); }
.flow__bar b { color: #fff; font-weight: 600; }
.flow__bar .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.18); }
.flow__bar .tag { margin-left: auto; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.07); font-size: .7rem; letter-spacing: .04em; }
.flow__bar .tag--live { background: rgba(52,211,153,.14); color: #a7f3d0; }
.flow__canvas { position: relative; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.2px); background-size: 22px 22px; }
.flow__canvas svg { width: 100%; height: auto; display: block; }
.flow__canvas text { font-family: var(--font-body); }
.flow__canvas .n-title { font-weight: 600; fill: #fff; font-size: 12px; }
.flow__canvas .n-sub { fill: #a3a6c7; font-size: 9.5px; }
.flow__canvas .n-box { fill: rgba(23,20,54,.92); stroke: rgba(255,255,255,.18); stroke-width: 1; }
.flow__canvas .n-box--done { stroke: rgba(52,211,153,.7); }
.flow__canvas .n-box--active { stroke: url(#flowGrad); stroke-width: 1.6; }
.flow__canvas .n-icon { fill: rgba(255,255,255,.08); }
.flow__canvas .edge { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1.5; }
.flow__canvas .edge--done { stroke: rgba(52,211,153,.6); }
.flow__canvas .edge--flow { stroke: url(#flowGrad); stroke-width: 1.8; stroke-dasharray: 5 6; animation: dash 3s linear infinite; }
.flow__canvas .lbl { fill: #7f82a6; font-size: 9px; letter-spacing: .04em; }
.flow__canvas .pill { fill: rgba(255,166,61,.14); stroke: rgba(255,166,61,.5); }
.flow__canvas .pill-text { fill: #ffc98a; font-size: 9px; font-weight: 600; }
.flow__palette { position: absolute; left: 12px; top: 12px; display: grid; gap: 6px; padding: 8px; border-radius: 12px; background: rgba(11,10,31,.8); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.flow__palette span { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; }
.flow__palette svg { width: 12px; height: 12px; }
.flow__foot { display: flex; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: .74rem; color: var(--text-3); flex-wrap: wrap; }
.flow__foot b { color: var(--text-2); font-weight: 500; }
@keyframes dash { to { stroke-dashoffset: -44; } }

/* ==========================================================================
   Feature bento (home)
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bento .card { display: flex; flex-direction: column; }
.bento .card--wide { grid-column: span 2; }
.bento .card h3 { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; }
.bento .card h3 i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--grad-soft); border: 1px solid var(--line-strong); font-style: normal; }
.bento .card h3 svg { width: 17px; height: 17px; }
.bento .card p { font-size: .97rem; }
.bento .spec { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.bento .spec li { font-size: .76rem; padding: 5px 10px; border-radius: 999px; background: rgba(var(--fg-rgb),.06); color: var(--text-2); }
.bento .mini-flow { margin-top: 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(11,10,31,.6) radial-gradient(rgba(255,255,255,.1) 1px, transparent 1.2px); background-size: 18px 18px; padding: 14px; overflow: hidden; }
.bento .mini-flow svg { width: 100%; height: auto; display: block; }
.card--dark { background: linear-gradient(160deg, rgba(79,124,255,.18), rgba(139,92,246,.1) 50%, rgba(229,69,124,.12)); border-color: rgba(var(--fg-rgb),.14); }
.count { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }

/* ==========================================================================
   Subscription calendar (platform hero visual)
   ========================================================================== */
.subcal { width: 100%; max-width: 440px; margin-inline: auto; border-radius: 22px; border: 1px solid var(--line-strong); background: linear-gradient(180deg, #171436, #100e28); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); overflow: hidden; }
.subcal__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.subcal__head b { display: block; color: #fff; font-family: var(--font-head); font-size: .95rem; }
.subcal__head small { color: var(--text-3); font-size: .74rem; }
.subcal__plan { padding: 4px 10px; border-radius: 999px; background: var(--grad); color: #fff; font-size: .72rem; font-weight: 600; }
.subcal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 14px 18px 8px; }
.subcal__grid span { aspect-ratio: 1; border-radius: 9px; display: grid; place-items: center; font-size: .76rem; color: var(--text-3); position: relative; }
.subcal__grid .dow { aspect-ratio: auto; font-size: .62rem; letter-spacing: .1em; color: var(--text-3); padding-bottom: 2px; }
.subcal__grid .d { background: rgba(255,255,255,.035); color: var(--text-2); }
.subcal__grid .d.del { background: rgba(79,124,255,.18); color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(79,124,255,.5); }
.subcal__grid .d.del::after { content: ""; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.subcal__grid .d.skip { background: rgba(255,255,255,.03); color: var(--text-3); text-decoration: line-through; }
.subcal__grid .d.moved { background: rgba(255,166,61,.16); color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255,166,61,.55); }
.subcal__grid .d.moved::after { content: ""; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.subcal__grid .d.cutoff { box-shadow: inset 0 0 0 1px dashed rgba(255,255,255,.3); }
.subcal__legend { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 18px 14px; }
.subcal__legend span { font-size: .72rem; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.05); }
.subcal__legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.subcal__events { border-top: 1px solid var(--line); padding: 8px 18px 14px; display: grid; gap: 8px; }
.subcal__events div { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--text-2); }
.subcal__events div b { color: #fff; font-weight: 600; }
.subcal__events div em { margin-left: auto; font-style: normal; font-size: .7rem; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.07); }
.subcal__events svg { width: 16px; height: 16px; flex: none; }

/* ==========================================================================
   Feature index (platform page)
   ========================================================================== */
.featindex { display: grid; grid-template-columns: 250px 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.featnav { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 4px; align-self: start; }
.featnav a { padding: 9px 14px; border-radius: 10px; color: var(--text-2); font-size: .93rem; border-left: 2px solid transparent; transition: all .25s; }
.featnav a:hover { color: var(--ink); background: rgba(var(--fg-rgb),.05); }
.featnav a.is-active { color: var(--ink); border-left-color: var(--orange); background: rgba(var(--fg-rgb),.05); border-radius: 0 10px 10px 0; }
.featgroup { padding: 30px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 16px); }
.featgroup:first-child { border-top: 0; padding-top: 0; }
.featgroup__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.featgroup__head h3 { margin: 0; font-size: 1.35rem; }
.featgroup__head span { font-family: var(--font-head); font-size: .75rem; letter-spacing: .14em; color: var(--text-3); }
.featgroup > p { color: var(--text-2); max-width: 64ch; }
.featlist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 18px; }
.featlist li { display: flex; gap: 12px; color: var(--text-2); font-size: .95rem; line-height: 1.5; }
.featlist li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%; background: var(--grad); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; }
.featlist li b { color: var(--ink); font-weight: 600; }
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.roadmap .card { border-style: dashed; }
.roadmap .card__num { color: var(--orange); }

@media (max-width: 1080px) { .bento { grid-template-columns: 1fr 1fr; } .bento .card--wide { grid-column: span 2; } }
@media (max-width: 960px) {
  .featindex { grid-template-columns: 1fr; }
  .featnav { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 8px; scrollbar-width: none; margin-bottom: 10px; }
  .featnav::-webkit-scrollbar { display: none; }
  .featnav a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; border-radius: 10px 10px 0 0; }
  .featnav a.is-active { border-left: 0; border-bottom-color: var(--orange); border-radius: 10px 10px 0 0; }
  .roadmap { grid-template-columns: 1fr; }
  .flow { max-width: 100%; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bento .card--wide { grid-column: auto; }
  .featlist { grid-template-columns: 1fr; }
  .flow__palette { display: none; }
  .flow__bar { font-size: .7rem; padding: 10px 12px; }
  .subcal__grid { padding: 12px 12px 6px; gap: 4px; }
}

/* ---------- Theme toggle ---------- */
.theme-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--text-2); background: rgba(var(--fg-rgb),.03); transition: all .25s; }
.theme-btn:hover { color: var(--ink); background: rgba(var(--fg-rgb),.08); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .ico-moon { display: none; }
html[data-theme="dark"] .theme-btn .ico-sun { display: none; }
html[data-theme="dark"] .theme-btn .ico-moon { display: block; }

/* ---------- Client logo strip ---------- */
.logo-strip { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.logo-strip img { height: 38px; width: auto; max-width: 190px; object-fit: contain; }
.logo-strip .wordmark { font-size: 1.05rem; }
html[data-theme="dark"] .logo-strip img { background: #fff; padding: 5px 10px; border-radius: 10px; height: 40px; }
html[data-theme="dark"] .logo-strip .dc-mark, .logo-strip .dc-mark { background: none; padding: 0; height: 26px; }

/* ---------- Flow canvas details ---------- */
.flow__bar { flex-wrap: wrap; row-gap: 6px; }
.flow__meta { color: #a3a6c7; }
.flow__canvas .pill--muted { fill: rgba(255,255,255,.06); stroke: rgba(255,255,255,.18); }
.flow__canvas .pill-text--muted { fill: #b8bad6; font-weight: 500; }
.flow__canvas .edge { stroke-linejoin: round; }
.hero .flow { box-shadow: 0 40px 80px -30px rgba(20,18,46,.45), 0 0 0 1px rgba(255,255,255,.04) inset; }
@media (max-width: 960px) { .hero .flow { margin-top: 8px; } }
@media (max-width: 640px) {
  .flow__bar .tag:last-child { display: none; }
  .flow__foot { gap: 10px; padding: 8px 12px; }
  .logo-strip img { height: 28px; }
}

/* ---------- Phone (restored) ---------- */
@media (max-width: 640px) {
  :root { --nav-h: 66px; --radius-lg: 22px; }
  body { font-size: 1rem; }
  .grid--2, .grid--4, .stats, .process, .form__row, .case__facts { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .hero__meta { gap: 18px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .tabs { justify-content: flex-start; width: 100%; border-radius: 18px; }
  .btn-row .btn { flex: 1 1 auto; }
  .to-top { right: 14px; bottom: 14px; }
  .case__facts { grid-template-columns: 1fr; gap: 10px; }
  .case__facts div { padding: 12px 14px; display: flex; align-items: baseline; gap: 12px; }
  .case__facts b { font-size: 1.25rem; flex: none; min-width: 64px; }
  .case__facts span { font-size: .82rem; }
  .hero { padding-bottom: 40px; }
}

/* ---------- Logo avatars in testimonials ---------- */
.quote__logo { width: 48px; height: 48px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; padding: 5px; flex: none; }
.quote__logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
