/* ============================================================
   CloudHub — cloudhub.lk
   Shared stylesheet for index / procurement / cloudyy
   tokens → base → components → sections → responsive
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  --hub:      #0FB5AE;
  --hub-deep: #0A8C87;
  --procure:  #6D5BF6;
  --cloudyy:  #FF7A45;

  /* --accent is what components actually consume. Each product page
     re-points it, so one set of rules themes every page. */
  --accent:      var(--hub);
  --accent-deep: var(--hub-deep);

  --bg:       #F6F7FB;
  --surface:  #FFFFFF;
  --surface-2:#EFF1F7;
  --ink:      #0D1220;
  --ink-2:    #2B3346;
  --muted:    #616C85;
  --line:     #E1E5EF;
  --line-2:   #CDD4E4;

  --shadow-1: 0 1px 2px rgba(13,18,32,.05), 0 2px 6px rgba(13,18,32,.05);
  --shadow-2: 0 4px 12px rgba(13,18,32,.07), 0 12px 32px rgba(13,18,32,.07);
  --shadow-3: 0 12px 28px rgba(13,18,32,.10), 0 30px 70px rgba(13,18,32,.12);
  --ring: 0 0 0 3px color-mix(in srgb, var(--accent) 38%, transparent);

  --r-sm: 8px; --r: 13px; --r-lg: 20px; --r-xl: 28px;
  --wrap: 1200px;
  --pad: clamp(20px, 5vw, 40px);

  --f-display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --f-body:    "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

body.p-procure { --accent: var(--procure); --accent-deep: #5344d6; }
body.p-cloudyy { --accent: var(--cloudyy); --accent-deep: #e05e2c; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg:#0A0E18; --surface:#121826; --surface-2:#1A2132;
    --ink:#EEF1F8; --ink-2:#C4CCDD; --muted:#8C97AF;
    --line:#232B3D; --line-2:#313A50;
    --shadow-1: 0 1px 2px rgba(0,0,0,.30), 0 2px 6px rgba(0,0,0,.26);
    --shadow-2: 0 4px 12px rgba(0,0,0,.36), 0 12px 32px rgba(0,0,0,.32);
    --shadow-3: 0 12px 28px rgba(0,0,0,.44), 0 30px 70px rgba(0,0,0,.40);
  }
}
:root[data-theme="dark"] {
  --bg:#0A0E18; --surface:#121826; --surface-2:#1A2132;
  --ink:#EEF1F8; --ink-2:#C4CCDD; --muted:#8C97AF;
  --line:#232B3D; --line-2:#313A50;
  --shadow-1: 0 1px 2px rgba(0,0,0,.30), 0 2px 6px rgba(0,0,0,.26);
  --shadow-2: 0 4px 12px rgba(0,0,0,.36), 0 12px 32px rgba(0,0,0,.32);
  --shadow-3: 0 12px 28px rgba(0,0,0,.44), 0 30px 70px rgba(0,0,0,.40);
}
:root[data-theme="light"] {
  --bg:#F6F7FB; --surface:#FFFFFF; --surface-2:#EFF1F7;
  --ink:#0D1220; --ink-2:#2B3346; --muted:#616C85;
  --line:#E1E5EF; --line-2:#CDD4E4;
  --shadow-1: 0 1px 2px rgba(13,18,32,.05), 0 2px 6px rgba(13,18,32,.05);
  --shadow-2: 0 4px 12px rgba(13,18,32,.07), 0 12px 32px rgba(13,18,32,.07);
  --shadow-3: 0 12px 28px rgba(13,18,32,.10), 0 30px 70px rgba(13,18,32,.12);
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.62;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

h1,h2,h3,h4,h5 { font-family: var(--f-display); font-weight: 700; line-height: 1.1; letter-spacing: -.022em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 800; letter-spacing: -.032em; }
h2 { font-size: clamp(1.85rem, 3.7vw, 2.75rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.95rem); }
h4 { font-size: 1.09rem; letter-spacing: -.012em; }
h5 { font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; }

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { left: 12px; }

/* ---------- 3. TYPE HELPERS ---------- */
.eyebrow { font-size: .77rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lede { font-size: clamp(1.03rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 58ch; }
.sec-sub { color: var(--muted); font-size: 1.04rem; max-width: 64ch; margin-top: 14px; }

.hl { position: relative; white-space: nowrap; color: var(--accent); }
.hl-line { position: absolute; left: 0; right: 0; bottom: -.14em; width: 100%; height: .34em; overflow: visible; }
.hl-line path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; opacity: .42; stroke-dasharray: 210; stroke-dashoffset: 210; animation: draw 1.1s .55s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- 4. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .94rem;
  transition: transform .18s ease, box-shadow .22s ease, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform .22s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-lg { padding: 15px 30px; font-size: 1.01rem; }
.btn-solid { background: var(--ink); color: var(--bg); box-shadow: var(--shadow-1); }
.btn-solid:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: var(--shadow-1); }
.btn-accent:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.btn-line { border: 1.5px solid var(--line-2); color: var(--ink); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-ghost { color: var(--ink-2); padding: 9px 16px; }
.btn-ghost:hover { color: var(--accent); }

/* ---------- 5. NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6);
  border-bottom: 1px solid transparent; transition: border-color .25s, background .25s;
}
.nav.stuck { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 30px; height: 30px; overflow: visible; }
.bm-hub { fill: var(--hub); } .bm-a { fill: var(--procure); } .bm-b { fill: var(--cloudyy); }
.bm-link { stroke: var(--line-2); stroke-width: 2.2; stroke-linecap: round; }
.bm-a, .bm-b { transform-box: fill-box; transform-origin: center; }
.brand:hover .bm-a { animation: bob .6s ease; }
.brand:hover .bm-b { animation: bob .6s .08s ease; }
@keyframes bob { 50% { transform: translateY(-3px); } }
.brand-word { font-family: var(--f-display); font-weight: 800; font-size: 1.26rem; letter-spacing: -.03em; }
.brand-word-b { color: var(--hub); }

.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-size: .93rem; font-weight: 500; color: var(--ink-2); position: relative; padding: 4px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .26s cubic-bezier(.4,0,.2,1); }
.nav-links a:hover, .nav-links a.here { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.here::after { transform: scaleX(1); transform-origin: left; }

.nav-act { display: flex; align-items: center; gap: 8px; }
.theme-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); border: 1px solid var(--line); transition: color .2s, border-color .2s; }
.theme-btn:hover { color: var(--accent); border-color: var(--accent); }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ic-moon { display: none; }
:root[data-theme="dark"] .ic-sun { display: none; }
:root[data-theme="dark"] .ic-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ic-sun { display: none; }
  :root:not([data-theme="light"]) .ic-moon { display: block; }
}

.burger { display: none; width: 40px; height: 40px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .28s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: flex; flex-direction: column; gap: 2px; padding: 10px var(--pad) 22px; border-top: 1px solid var(--line); background: var(--surface); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 13px 4px; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: 0; }
.mm-cta { color: var(--accent); font-weight: 700; }

/* ---------- 6. ATMOSPHERE ---------- */
.hero-field, .cta-field { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(78px); opacity: .32; }
.blob-1 { width: 460px; height: 460px; background: var(--accent); top: -140px; right: -60px; animation: float1 19s ease-in-out infinite; }
.blob-2 { width: 380px; height: 380px; background: var(--hub); bottom: -150px; left: -110px; animation: float2 23s ease-in-out infinite; }
.blob-3 { width: 280px; height: 280px; background: var(--cloudyy); top: 42%; right: 34%; opacity: .16; animation: float3 27s ease-in-out infinite; }
.blob-4 { width: 400px; height: 400px; background: var(--accent); top: -160px; left: -80px; opacity: .24; animation: float1 21s ease-in-out infinite; }
.blob-5 { width: 340px; height: 340px; background: var(--hub); bottom: -170px; right: -70px; opacity: .2; animation: float2 25s ease-in-out infinite; }
@media (prefers-color-scheme: dark) { .blob { opacity: .2; } .blob-3 { opacity: .1; } }
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-42px,40px) scale(1.09); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(48px,-34px) scale(1.12); } }
@keyframes float3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px,-46px); } }

.grid-veil {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 62px 62px; opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 78%);
}

/* ---------- 7. HERO (home) ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px,9vw,100px) 0 clamp(58px,9vw,104px); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(30px,5vw,64px); align-items: center; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 34px; font-size: .89rem; color: var(--muted); font-weight: 500; }
.hero-meta li { display: inline-flex; align-items: center; gap: 9px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dot-p { background: var(--procure); box-shadow: 0 0 0 4px color-mix(in srgb, var(--procure) 18%, transparent); }
.dot-c { background: var(--cloudyy); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cloudyy) 18%, transparent); }

.hero-art { display: grid; place-items: center; }
.hub { width: min(100%, 440px); height: auto; overflow: visible; }
.orb-ring { fill: none; stroke: var(--line-2); stroke-width: 1.2; stroke-dasharray: 3 8; opacity: .8; transform-origin: 210px 210px; animation: spin 46s linear infinite; }
.orb-ring-2 { opacity: .45; animation-duration: 68s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.wire path { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw 1.3s .35s ease forwards; }
.wire-p { stroke: var(--procure); opacity: .55; }
.wire-c { stroke: var(--cloudyy); opacity: .55; }
.wire-n { stroke: var(--line-2); }
.sat circle { stroke-width: 1.5; }
.sat-p circle { fill: color-mix(in srgb, var(--procure) 12%, var(--surface)); stroke: color-mix(in srgb, var(--procure) 40%, transparent); }
.sat-c circle { fill: color-mix(in srgb, var(--cloudyy) 12%, var(--surface)); stroke: color-mix(in srgb, var(--cloudyy) 40%, transparent); }
.sat-p { animation: orbP 9s ease-in-out infinite; }
.sat-c { animation: orbC 11s ease-in-out infinite; }
@keyframes orbP { 0%,100% { transform: translate(0,0); } 50% { transform: translate(7px,-9px); } }
@keyframes orbC { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-8px,7px); } }
.node { fill: var(--line-2); animation: twinkle 4s ease-in-out infinite; }
.node-2 { animation-delay: 1.6s; }
@keyframes twinkle { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
.core circle { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.core .core-in { fill: color-mix(in srgb, var(--hub) 14%, var(--surface)); stroke: color-mix(in srgb, var(--hub) 40%, transparent); }
.core text { font-family: var(--f-display); font-weight: 800; font-size: 21px; fill: var(--hub); letter-spacing: -.02em; }
.pulse { fill: none; stroke: var(--hub); stroke-width: 2; opacity: 0; transform-origin: 210px 210px; animation: pulse 3.4s ease-out infinite; }
@keyframes pulse { 0% { opacity: .55; transform: scale(1); } 70%,100% { opacity: 0; transform: scale(1.65); } }

/* product marks */
.pf-stem { stroke: var(--procure); stroke-width: 6.5; stroke-linecap: round; fill: none; }
.pf-bowl { fill: none; stroke: var(--procure); stroke-width: 6.5; stroke-dasharray: 51.05 7.85; }
.pf-tip  { fill: var(--procure); }
.cy-doc, .cy-fold { fill: none; stroke: var(--cloudyy); stroke-width: 2.6; stroke-linejoin: round; }
.cy-bolt { fill: var(--cloudyy); }

/* ---------- 8. PAGE HERO (product pages) ---------- */
.phero { position: relative; overflow: hidden; padding: clamp(50px,7vw,86px) 0 clamp(46px,6vw,72px); border-bottom: 1px solid var(--line); }
.phero-in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px,5vw,58px); align-items: center; }
.phero h1 { margin-bottom: 20px; }
.phero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.crumb { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); margin-bottom: 20px; }
.crumb a:hover { color: var(--accent); }
.crumb span { opacity: .5; }

.pbadge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 11%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  font-family: var(--f-display); font-weight: 700; font-size: .97rem;
  color: var(--accent); margin-bottom: 20px;
}
.pbadge svg { width: 21px; height: 21px; overflow: visible; }

/* ---------- 9. MARQUEE ---------- */
.strip { border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.marquee { display: flex; width: max-content; }
.marquee-row { display: flex; align-items: center; gap: 26px; padding: 17px 13px; white-space: nowrap; font-size: .87rem; font-weight: 600; color: var(--ink-2); animation: slide 42s linear infinite; }
.marquee:hover .marquee-row { animation-play-state: paused; }
.marquee-row i { color: var(--accent); font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 10. SECTIONS ---------- */
.section { padding: clamp(60px,8vw,110px) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.sec-head { max-width: 720px; margin-bottom: clamp(36px,5vw,58px); }
.sec-head-c { margin-inline: auto; text-align: center; }
.sec-head-c .sec-sub { margin-inline: auto; }

/* ---------- 11. PRODUCT TEASERS (home) ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(26px,3.4vw,38px);
  transition: transform .28s cubic-bezier(.4,0,.2,1), box-shadow .28s, border-color .28s;
}
.tile::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 60% at 85% 0%, var(--tint) 0%, transparent 60%); opacity: .12; }
.tile-p { --tint: var(--procure); }
.tile-c { --tint: var(--cloudyy); }
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-3); border-color: color-mix(in srgb, var(--tint) 35%, var(--line)); }
.tile-head { position: relative; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.tile-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--tint) 12%, transparent); flex-shrink: 0; }
.tile-mark svg { width: 22px; height: 22px; overflow: visible; }
.tile-name { font-family: var(--f-display); font-weight: 800; font-size: 1.32rem; letter-spacing: -.02em; color: var(--tint); }
.tile-kicker { display: block; font-family: var(--f-body); font-weight: 500; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.tile h3 { position: relative; margin-bottom: 12px; }
.tile > p { position: relative; color: var(--ink-2); font-size: .99rem; }
.tile-list { position: relative; margin: 20px 0 0; display: grid; gap: 8px; }
.tile-list li { position: relative; padding-left: 26px; font-size: .93rem; color: var(--muted); }
.tile-list li::before { content: ""; position: absolute; left: 6px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--tint); }
.tile-foot { position: relative; margin-top: auto; padding-top: 26px; }
.tile-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; color: var(--tint); }
.tile-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .22s; }
.tile:hover .tile-link svg { transform: translateX(4px); }

/* ---------- 12. FEATURE ROWS (product pages) ---------- */
.frow { padding: clamp(44px,6vw,74px) 0; border-bottom: 1px solid var(--line); }
.frow:last-of-type { border-bottom: 0; }
.frow-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,64px); align-items: center; }
.frow-flip .frow-copy { order: 2; }
.frow-flip .frow-art { order: 1; }
.frow-copy h3 { margin-bottom: 14px; }
.frow-copy > p { color: var(--ink-2); max-width: 52ch; }
.fnum { display: inline-block; font-family: var(--f-mono); font-size: .76rem; font-weight: 500; color: var(--accent); letter-spacing: .08em; margin-bottom: 12px; }

.ticks { margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); font-size: .95rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .44em; width: 17px; height: 17px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, transparent); }
.ticks li::after { content: ""; position: absolute; left: 5px; top: .72em; width: 6px; height: 3.4px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* panel used to hold illustrations */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(20px,3vw,30px); box-shadow: var(--shadow-2); min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.panel-title { font-family: var(--f-display); font-weight: 700; font-size: .98rem; }
.panel-tag { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); }

/* generic mini rows inside panels */
.mrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .89rem; }
.mrow:last-child { border-bottom: 0; }
.mrow b { font-weight: 600; }
.mrow small { color: var(--muted); display: block; font-size: .8rem; }
.pill { padding: 3px 11px; border-radius: 999px; font-size: .73rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.pill-ok   { background: color-mix(in srgb, #16A34A 15%, transparent); color: #16A34A; }
.pill-wait { background: color-mix(in srgb, #F59E0B 18%, transparent); color: #B45309; }
.pill-acc  { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
@media (prefers-color-scheme: dark) { .pill-wait { color: #FBBF24; } }

/* budget bar */
.bar { height: 9px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }

/* flow (procurement) */
.flow { display: grid; }
.flow-step { display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; column-gap: 15px; align-items: center; padding: 10px 0; }
.fs-i { grid-row: 1 / 3; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-family: var(--f-display); font-weight: 800; font-size: .93rem; }
.flow-step b { font-size: .98rem; font-weight: 700; }
.flow-step small { color: var(--muted); font-size: .84rem; }
.flow-arrow { width: 2px; height: 15px; margin-left: 18px; background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 25%, transparent)); border-radius: 2px; opacity: .5; }

/* code windows */
.win { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); overflow: hidden; min-width: 0; }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 11px 15px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-family: var(--f-mono); font-size: .75rem; color: var(--muted); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.win-bar i:nth-child(1) { background: #FF5F57; }
.win-bar i:nth-child(2) { background: #FEBC2E; }
.win-bar i:nth-child(3) { background: #28C840; }
.win-bar span { margin-left: 6px; }
.win pre { margin: 0; padding: 16px 18px; overflow-x: auto; }
.win code { font-family: var(--f-mono); font-size: .77rem; line-height: 1.75; color: var(--ink-2); white-space: pre; }
.win .t { color: var(--cloudyy); } .win .a { color: var(--procure); }
.win .s { color: var(--hub); } .win .v { color: var(--procure); font-weight: 500; }
.win .c { color: var(--muted); font-style: italic; } .win .k { color: var(--cloudyy); font-weight: 500; }
.copy-btn { margin-left: auto; font-family: var(--f-body); font-size: .73rem; font-weight: 600; color: var(--muted); padding: 3px 10px; border-radius: 6px; border: 1px solid var(--line-2); transition: color .2s, border-color .2s; }
.copy-btn:hover, .copy-btn.done { color: var(--accent); border-color: var(--accent); }
.code-note { padding: 0 18px 15px; font-size: .77rem; color: var(--muted); }

/* rendered page mock */
.render-out { position: relative; display: grid; place-items: center; padding: 6px; }
.page { width: 100%; max-width: 240px; aspect-ratio: 1/1.28; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 18px 16px; display: grid; gap: 9px; align-content: start; box-shadow: var(--shadow-1); }
.pg-h { height: 13px; width: 55%; border-radius: 3px; background: var(--cloudyy); opacity: .85; }
.pg-l { height: 6px; border-radius: 3px; background: #DFE3EE; }
.w70 { width: 70%; } .w90 { width: 90%; } .w50 { width: 50%; }
.pg-tbl { display: grid; gap: 5px; margin-top: 5px; }
.pg-tbl i { height: 7px; border-radius: 2px; background: #E9ECF4; display: block; }
.pg-tbl i:nth-child(odd) { background: #F1F3F9; }
.pg-tot { height: 9px; width: 38%; justify-self: end; border-radius: 3px; background: color-mix(in srgb, var(--cloudyy) 55%, #DFE3EE); margin-top: 6px; }

/* ---------- 13. CARD GRID ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px 28px; transition: transform .26s cubic-bezier(.4,0,.2,1), box-shadow .26s, border-color .26s; }
.section-alt .card { background: var(--bg); }
.section:not(.section-alt) .card { background: var(--surface); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.card h4 { margin-bottom: 9px; }
.card p { color: var(--muted); font-size: .94rem; }
.card-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 17px; background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent); }
.card-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 14. SPEC GRID ---------- */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.specs div { background: var(--surface); padding: 22px 20px; }
.specs dt { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.specs dd { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; }

/* ---------- 15. CHIPS ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips li { padding: 6px 15px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: .77rem; color: var(--ink-2); transition: border-color .2s, color .2s, transform .2s; }
.chips li:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- 16. STEPS ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps li { position: relative; padding-top: 25px; border-top: 2px solid var(--line); }
.steps li::after { content: ""; position: absolute; top: -2px; left: 0; height: 2px; width: 0; background: var(--accent); transition: width .8s cubic-bezier(.4,0,.2,1); }
.steps li.in::after { width: 100%; }
.step-n { font-family: var(--f-display); font-weight: 800; font-size: 1.03rem; color: var(--accent); display: block; margin-bottom: 11px; }
.steps h4 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .92rem; }

/* ---------- 17. FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 840px; margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 1rem; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-display); font-size: 1.4rem; color: var(--accent); line-height: 1; transition: transform .25s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 22px 20px; color: var(--muted); font-size: .95rem; max-width: 72ch; }

/* ---------- 18. CTA ---------- */
.cta { position: relative; overflow: hidden; padding: clamp(60px,8vw,104px) 0; background: var(--surface); border-top: 1px solid var(--line); }
.cta-in { position: relative; text-align: center; max-width: 720px; margin-inline: auto; }
.cta-in p { color: var(--muted); font-size: 1.06rem; margin-top: 18px; }
.cta-act { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; margin-top: 32px; }

/* ---------- 19. FOOTER ---------- */
.foot { background: var(--bg); border-top: 1px solid var(--line); padding: clamp(44px,6vw,66px) 0 26px; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; }
.foot-brand p { color: var(--muted); font-size: .91rem; margin-top: 14px; max-width: 34ch; }
.foot-col { display: flex; flex-direction: column; gap: 11px; }
.foot-col h5 { color: var(--ink); margin-bottom: 3px; }
.foot-col a { color: var(--muted); font-size: .92rem; transition: color .2s; width: fit-content; }
.foot-col a:hover { color: var(--accent); }
.foot-btm { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }

/* ---------- 20. REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .68s cubic-bezier(.4,0,.2,1), transform .68s cubic-bezier(.4,0,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
.reveal[data-delay="4"] { transition-delay: .36s; }
.reveal[data-delay="5"] { transition-delay: .45s; }

/* ---------- 21. RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav-links, .nav-hide-sm { display: none; }
  .burger { display: flex; }
  .nav-in { gap: 12px; }
  .hero-in, .phero-in { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 330px; margin-inline: auto; }
  .tiles { grid-template-columns: 1fr; }
  .frow-in { grid-template-columns: 1fr; }
  .frow-flip .frow-copy, .frow-flip .frow-art { order: 0; }
  .cards-2 { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-cta .btn, .phero-cta .btn, .cta-act .btn { flex: 1 1 100%; }
  .foot-btm { flex-direction: column; }
  .win code { font-size: .71rem; }
}

/* ---------- 22. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hl-line path, .wire path { stroke-dashoffset: 0; }
  .steps li::after { width: 100%; }
}

/* ---------- 23. PRINT ---------- */
@media print {
  .nav, .mobile-menu, .hero-field, .cta-field, .strip, .theme-btn, .burger { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
}
