/* ZTECHsolutions — same palette as the CRM (dark default, light via html[data-theme="light"]) */
:root {
  --page: #060a14;
  --surface: rgba(12, 18, 42, 0.72);
  --surface-solid: #0b1127;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --t0: #fff;
  --t1: #e2e8f0;
  --t2: #94a3b8;
  --t3: #64748b;
  --grid: rgba(148, 163, 184, 0.055);
  --glow-1: rgba(99, 102, 241, 0.22);
  --glow-2: rgba(139, 92, 246, 0.16);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --chip: rgba(255, 255, 255, 0.05);
  --nav: rgba(6, 10, 20, 0.72);

  --indigo: #6366f1; --violet: #8b5cf6; --green: #10b981; --amber: #f59e0b;
  --cyan: #06b6d4;   --pink: #ec4899;   --red: #ef4444;
  --indigo-t: #818cf8; --violet-t: #a78bfa; --green-t: #34d399; --amber-t: #fbbf24;
  --cyan-t: #22d3ee;   --pink-t: #f472b6;

  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --r: 18px;
}
:root[data-theme="light"] {
  --page: #f1f5f9;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --line: rgba(15, 23, 42, 0.08);
  --line-2: rgba(15, 23, 42, 0.14);
  --t0: #0f172a;
  --t1: #0f172a;
  --t2: #475569;
  --t3: #64748b;
  --grid: rgba(15, 23, 42, 0.05);
  --glow-1: rgba(99, 102, 241, 0.16);
  --glow-2: rgba(139, 92, 246, 0.12);
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
  --chip: rgba(15, 23, 42, 0.04);
  --nav: rgba(241, 245, 249, 0.8);
  --indigo-t: #4f46e5; --violet-t: #7c3aed; --green-t: #059669; --amber-t: #b45309;
  --cyan-t: #0891b2;   --pink-t: #db2777;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }
body {
  font-family: var(--sans);
  background: var(--page);
  color: var(--t1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* background */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.g1 { width: 620px; height: 620px; background: var(--glow-1); top: -220px; left: -120px; animation: drift 18s ease-in-out infinite alternate; }
.g2 { width: 520px; height: 520px; background: var(--glow-2); top: 120px; right: -160px; animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(80px, 60px); } }

/* type */
h1, h2, h3 { color: var(--t0); letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(42px, 6.4vw, 78px); font-weight: 900; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 850; }
h3 { font-size: 17px; font-weight: 700; }
.grad { background: linear-gradient(135deg, #818cf8, #a78bfa 55%, #c084fc); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.grad-g { background: linear-gradient(135deg, #34d399, #22d3ee); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
:root[data-theme="light"] .grad { background-image: linear-gradient(135deg, #4f46e5, #7c3aed 60%, #9333ea); }
:root[data-theme="light"] .grad-g { background-image: linear-gradient(135deg, #059669, #0891b2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--indigo-t);
}
.lead { font-size: 18px; color: var(--t2); max-width: 540px; }

/* pulse dot */
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); position: relative; display: inline-block; flex-shrink: 0; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: ping 1.8s ease-out infinite; }
@keyframes ping { to { transform: scale(2.8); opacity: 0; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 13px 24px; border-radius: 12px; font-weight: 650; font-size: 15px;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn-primary { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; box-shadow: 0 8px 30px rgba(99, 102, 241, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(99, 102, 241, .5); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--t1); background: var(--chip); }
.btn-ghost:hover { border-color: var(--indigo); color: var(--t0); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }

/* nav */
.nav-wrap { position: sticky; top: 0; z-index: 50; background: var(--nav); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; height: 66px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.logo {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff;
  display: grid; place-items: center; box-shadow: 0 0 16px rgba(99, 102, 241, .45);
}
.logo svg { width: 18px; height: 18px; }
.logo.sm { width: 28px; height: 28px; border-radius: 8px; }
.logo.sm svg { width: 15px; height: 15px; }
.wordmark { font-size: 18px; font-weight: 900; letter-spacing: -.3px; }
.wm-a { background: linear-gradient(135deg, #818cf8, #a78bfa); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wm-b { color: var(--t1); }
.nav-links { display: flex; gap: 28px; margin-left: 24px; }
.nav-links a { color: var(--t2); font-size: 14.5px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--t0); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.theme-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--chip);
  color: var(--t2); cursor: pointer; display: grid; place-items: center; transition: color .2s, border-color .2s;
}
.theme-btn:hover { color: var(--t0); border-color: var(--indigo); }
.theme-btn svg { width: 17px; height: 17px; }
.i-moon { display: none; }
:root[data-theme="light"] .i-sun { display: none; }
:root[data-theme="light"] .i-moon { display: block; }

/* hero */
.hero { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; padding-top: 84px; padding-bottom: 72px; }
.hero h1 { margin: 20px 0 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* console */
.console {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(99, 102, 241, .06), 0 0 80px rgba(99, 102, 241, .12);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); overflow: hidden;
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px); } }
.console-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #ef4444; } .dot.y { background: #f59e0b; } .dot.g { background: #10b981; }
.console-title { font-family: var(--mono); font-size: 12px; color: var(--t3); margin-left: 10px; }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--green-t); letter-spacing: .1em; }
.live.sm .pulse { width: 6px; height: 6px; }

.map { width: 100%; height: auto; padding: 8px 10px 0; }
.map-grid line { stroke: var(--line); stroke-width: 1; }
.route { fill: none; stroke: url(#routeGrad); stroke-width: 1.6; stroke-dasharray: 5 7; opacity: .55; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.truck { fill: #c7d2fe; }
.truck.t-g { fill: #6ee7b7; }
.truck.t-a { fill: #fcd34d; }
:root[data-theme="light"] .truck { fill: #4f46e5; }
:root[data-theme="light"] .truck.t-g { fill: #059669; }
:root[data-theme="light"] .truck.t-a { fill: #d97706; }
.hub { fill: var(--surface-solid); stroke: var(--indigo-t); stroke-width: 2; }
.hub-main { stroke: var(--violet-t); stroke-width: 2.5; }
.hubs text { font-family: var(--mono); font-size: 10.5px; fill: var(--t3); font-weight: 600; }

.feed { list-style: none; padding: 6px 14px 14px; height: 176px; overflow: hidden; display: flex; flex-direction: column; gap: 6px; }
.feed li {
  display: grid; grid-template-columns: 58px 10px 1fr; align-items: center; gap: 10px;
  font-size: 13px; padding: 7px 10px; border-radius: 10px; background: var(--chip); border: 1px solid var(--line);
  animation: slideIn .5s cubic-bezier(.2, .8, .2, 1);
}
.feed time { font-family: var(--mono); font-size: 11px; color: var(--t3); }
.feed .ev-dot { width: 8px; height: 8px; border-radius: 50%; }
.feed .ev-txt { color: var(--t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed .ev-txt b { font-weight: 600; color: var(--t0); }
@keyframes slideIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } }

/* marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--chip); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font-weight: 700; font-size: 15px; color: var(--t3); white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee span::after { content: ""; width: 6px; height: 6px; border-radius: 2px; background: linear-gradient(135deg, #6366f1, #8b5cf6); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* sections */
.section { padding-top: 110px; }
.sec-head { max-width: 680px; margin-bottom: 48px; }
.sec-head h2 { margin: 14px 0 14px; }
.sec-head p:not(.eyebrow) { color: var(--t2); font-size: 17px; }

/* lifecycle */
.flow { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.flow-line { position: absolute; top: 31px; left: 8%; right: 8%; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.flow-fill { height: 100%; width: 0; background: linear-gradient(90deg, #6366f1, #8b5cf6, #10b981); transition: width .9s cubic-bezier(.4, 0, .2, 1); box-shadow: 0 0 12px #8b5cf6; }
.stage { position: relative; text-align: center; padding: 0 4px; }
.st-ic {
  width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 18px; display: grid; place-items: center;
  background: var(--surface-solid); border: 1px solid var(--line-2); color: var(--t3);
  transition: all .5s cubic-bezier(.2, .8, .2, 1);
}
.st-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stage h3 { transition: color .4s; color: var(--t2); }
.stage p { font-size: 13.5px; color: var(--t3); margin-top: 6px; }
.stage.done .st-ic { color: var(--indigo-t); border-color: rgba(99, 102, 241, .4); }
.stage.done h3 { color: var(--t0); }
.stage.on .st-ic {
  color: #fff; background: linear-gradient(135deg, #6366f1, #8b5cf6); border-color: transparent;
  transform: translateY(-4px) scale(1.06); box-shadow: 0 10px 34px rgba(99, 102, 241, .55);
}
.stage.on h3 { color: var(--t0); }
.stage[data-i="5"].on .st-ic { background: linear-gradient(135deg, #10b981, #06b6d4); box-shadow: 0 10px 34px rgba(16, 185, 129, .5); }

/* bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .3s, transform .3s; min-width: 0;
}
.tile:hover { border-color: var(--line-2); transform: translateY(-3px); }
.tile-wide { grid-column: span 2; }
.tile-full { grid-column: 1 / -1; }
.tile-full .streams { height: 170px; }
.tile-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.tile-head p { font-size: 13px; color: var(--t3); }
.tile-ic, .div-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.tile-ic svg, .div-ic svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ic-indigo { background: rgba(99, 102, 241, .14); color: var(--indigo-t); }
.ic-green  { background: rgba(16, 185, 129, .14); color: var(--green-t); }
.ic-cyan   { background: rgba(6, 182, 212, .14);  color: var(--cyan-t); }
.ic-amber  { background: rgba(245, 158, 11, .14); color: var(--amber-t); }
.ic-violet { background: rgba(139, 92, 246, .14); color: var(--violet-t); }
.ic-pink   { background: rgba(236, 72, 153, .14); color: var(--pink-t); }

/* load board */
.board { font-size: 13.5px; }
.board-row { display: grid; grid-template-columns: 1fr 1.3fr 1.1fr 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; }
.board-headrow { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--t3); }
#board { display: flex; flex-direction: column; gap: 6px; height: 262px; overflow: hidden; }
#board .board-row { background: var(--chip); border: 1px solid var(--line); animation: slideIn .5s cubic-bezier(.2, .8, .2, 1); transition: background .4s, border-color .4s; }
#board .board-row.flash { border-color: rgba(99, 102, 241, .45); background: rgba(99, 102, 241, .08); }
#board .board-row.leaving { opacity: 0; transform: translateX(20px); transition: all .4s; }
.mono { font-family: var(--mono); font-size: 12.5px; color: var(--t2); }
.lane { color: var(--t1); font-weight: 600; white-space: nowrap; }
.lane i { font-style: normal; color: var(--t3); margin: 0 5px; }
.equip { color: var(--t2); }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; width: max-content; transition: all .3s; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-tendered { background: rgba(148, 163, 184, .14); color: var(--t2); }
.st-booked   { background: rgba(99, 102, 241, .15);  color: var(--indigo-t); }
.st-transit  { background: rgba(6, 182, 212, .15);   color: var(--cyan-t); }
.st-delivered{ background: rgba(245, 158, 11, .15);  color: var(--amber-t); }
.st-paid     { background: rgba(16, 185, 129, .16);  color: var(--green-t); }

/* payments */
.tile-pay { display: flex; flex-direction: column; }
.tile-pay .bars { flex: 1; min-height: 140px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding: 0 2px; border-bottom: 1px solid var(--line); }
.bars i { flex: 1; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #34d399, rgba(16, 185, 129, .25)); transition: height 1.2s cubic-bezier(.4, 0, .2, 1); min-height: 8px; }
.bars i:nth-child(3n) { background: linear-gradient(180deg, #818cf8, rgba(99, 102, 241, .25)); }
.pay-flow { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 12.5px; color: var(--t2); font-weight: 600; }
.pay-flow i { flex: 1; height: 2px; background: var(--line-2); border-radius: 2px; }
.pay-flow .ok { color: var(--green-t); }
.pay-dot { position: absolute; top: 50%; left: 0; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: #34d399; box-shadow: 0 0 12px #34d399; animation: pay 3.2s ease-in-out infinite; }
@keyframes pay { 0% { left: 18%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 78%; opacity: 0; } }

/* compliance */
.rings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; padding-top: 4px; }
.ring-box { position: relative; max-width: 92px; margin: 0 auto; }
.ring-box svg:first-child { width: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--line-2); stroke-width: 4; }
.ring-fg { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: 113.1; transition: stroke-dashoffset 1.6s cubic-bezier(.4, 0, .2, 1); }
.c-cyan { stroke: #22d3ee; } .c-indigo { stroke: #818cf8; } .c-green { stroke: #34d399; }
.ring-check { position: absolute; top: 50%; left: 50%; width: 30%; height: 30%; transform: translate(-50%, -50%); fill: none; stroke: var(--t0); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .5s; }
.ring.full .ring-check { opacity: .9; }
.ring span { display: block; font-size: 12px; color: var(--t2); margin-top: 10px; font-weight: 600; line-height: 1.3; }

/* disputes kanban */
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kcol h4 { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--t3); margin-bottom: 8px; font-weight: 600; }
.kcards { display: flex; flex-direction: column; gap: 6px; min-height: 170px; }
.kcard { padding: 8px 9px; border-radius: 9px; background: var(--chip); border: 1px solid var(--line); border-left: 3px solid var(--amber); font-size: 11.5px; animation: slideIn .45s cubic-bezier(.2, .8, .2, 1); }
.kcard b { display: block; font-family: var(--mono); font-weight: 600; color: var(--t1); font-size: 11px; }
.kcard span { color: var(--t3); }
#kReview .kcard { border-left-color: var(--indigo); }
#kDone .kcard { border-left-color: var(--green); }

/* support */
.wave { display: flex; align-items: center; gap: 3px; height: 64px; margin-bottom: 14px; }
.wave i { flex: 1; border-radius: 3px; background: linear-gradient(180deg, #a78bfa, #6366f1); animation: wave 1.1s ease-in-out infinite alternate; height: 20%; }
@keyframes wave { to { height: 100%; } }
.calls { list-style: none; display: flex; flex-direction: column; gap: 6px; height: 112px; overflow: hidden; }
.calls li { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 7px 10px; border-radius: 9px; background: var(--chip); border: 1px solid var(--line); animation: slideIn .45s cubic-bezier(.2, .8, .2, 1); }
.calls li span { color: var(--t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calls li em { font-style: normal; color: var(--green-t); font-weight: 600; flex-shrink: 0; }

/* streams */
.streams { width: 100%; height: 150px; overflow: visible; }
.s { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.s1 { stroke: #818cf8; } .s2 { stroke: #f472b6; } .s3 { stroke: #34d399; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; color: var(--t2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 3px; border-radius: 2px; }
.l1 { background: #818cf8; } .l2 { background: #f472b6; } .l3 { background: #34d399; }

/* divisions */
.divisions { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.div-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; transition: border-color .3s, transform .3s; overflow: hidden; }
.div-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.div-card h3 { font-size: 19px; margin: 18px 0 10px; }
.div-card p { color: var(--t2); font-size: 14.5px; }
.div-card.featured { grid-row: span 2; background: linear-gradient(160deg, rgba(99, 102, 241, .16), rgba(139, 92, 246, .06) 50%, transparent), var(--surface); border-color: rgba(99, 102, 241, .3); display: flex; flex-direction: column; }
.div-card.featured h3 { font-size: 26px; }
.div-card.featured p { font-size: 16px; }
.div-card.featured::after { content: ""; position: absolute; width: 300px; height: 300px; right: -120px; bottom: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(139, 92, 246, .3), transparent 70%); pointer-events: none; }
.tag { position: absolute; top: 22px; right: 22px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--indigo-t); border: 1px solid rgba(99, 102, 241, .35); padding: 4px 10px; border-radius: 99px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 28px; }
.chips li { font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: var(--chip); border: 1px solid var(--line-2); color: var(--t1); }
.divisions .div-card:nth-child(4) { grid-column: 2 / span 2; }

/* principles */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.principles > div { padding: 28px 24px; border-right: 1px solid var(--line); }
.principles > div:last-child { border-right: 0; }
.principles h3 { font-size: 16px; margin-bottom: 8px; }
.principles h3::before { content: ""; display: block; width: 26px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #6366f1, #8b5cf6); margin-bottom: 16px; }
.principles p { font-size: 14px; color: var(--t2); }

/* closing */
.closing { position: relative; text-align: center; padding: 90px 24px; border-radius: 26px; border: 1px solid var(--line-2); overflow: hidden; background: var(--surface); }
.closing-glow { position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(40% 70% at 30% 40%, rgba(99, 102, 241, .28), transparent 70%), radial-gradient(40% 70% at 70% 60%, rgba(139, 92, 246, .24), transparent 70%);
  filter: blur(20px); animation: breathe 9s ease-in-out infinite alternate; }
@keyframes breathe { 0% { transform: translateX(-6%) scale(1); } 100% { transform: translateX(6%) scale(1.12); } }
.closing > *:not(.closing-glow) { position: relative; z-index: 1; }
.closing p { color: var(--t2); font-size: 18px; margin: 14px 0 32px; }

/* footer */
.foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 70px; padding-bottom: 40px; margin-top: 40px; }
.foot .wordmark { font-size: 16px; }
.foot-note { font-size: 12.5px; color: var(--t3); max-width: 560px; text-align: right; }

/* grid children may shrink below their content (long one-line feed rows) */
.hero > *, .bento > *, .divisions > *, .flow > *, .kanban > *, .principles > * { min-width: 0; }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.bento .reveal:nth-child(2), .divisions .reveal:nth-child(2) { transition-delay: .08s; }
.bento .reveal:nth-child(3), .divisions .reveal:nth-child(3) { transition-delay: .16s; }
.bento .reveal:nth-child(4), .divisions .reveal:nth-child(4) { transition-delay: .24s; }
.bento .reveal:nth-child(5) { transition-delay: .08s; }
.bento .reveal:nth-child(6) { transition-delay: .16s; }

/* responsive */
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; gap: 44px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-wide { grid-column: span 2; }
  .divisions { grid-template-columns: 1fr 1fr; }
  .div-card.featured { grid-row: auto; grid-column: span 2; }
  .divisions .div-card:nth-child(4) { grid-column: span 2; }
  .principles { grid-template-columns: 1fr 1fr; }
  .principles > div:nth-child(2) { border-right: 0; }
  .principles > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .nav-links { display: none; }
  .nav { gap: 12px; }
  .section { padding-top: 80px; }
  .flow { grid-template-columns: 1fr 1fr 1fr; row-gap: 30px; }
  .flow-line { display: none; }
  .bento { grid-template-columns: 1fr; }
  .tile-wide, .tile-full { grid-column: auto; }
  .board-row { grid-template-columns: .9fr 1.3fr 1fr; }
  .hide-sm, .board-row .equip { display: none; }
  .divisions { grid-template-columns: 1fr; }
  .div-card.featured, .divisions .div-card:nth-child(4) { grid-column: auto; }
  .principles { grid-template-columns: 1fr; }
  .principles > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .principles > div:last-child { border-bottom: 0; }
  .foot { flex-direction: column; align-items: flex-start; }
  .foot-note { text-align: left; }
  .closing { padding: 64px 20px; }
  .lead { font-size: 16.5px; }
}
@media (max-width: 420px) {
  .btn-ghost.btn-sm { padding: 8px 12px; font-size: 13px; }
  .wordmark { font-size: 16px; }
  .flow { grid-template-columns: 1fr 1fr; }
  .feed li { grid-template-columns: 50px 8px 1fr; gap: 8px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
