/* =========================================================
   Workflash Automation – Brand stylesheet
   Palette taken from the logo: deep navy, royal blue, cyan
   ========================================================= */
:root {
  --navy-950: #030820;
  --navy-900: #050C2A;
  --navy-800: #0A1440;
  --navy-700: #122057;
  --ink: #0A1440;            /* headings on light */
  --text: #3A4568;           /* body on light */
  --muted: #6A7596;
  --line: #E2E8F4;
  --bg: #FFFFFF;
  --bg-soft: #F4F7FD;
  --blue: #0B5CFF;
  --brand: #0047AB;
  --cyan: #1BC8F5;
  --green: #16C98D;
  --red: #F0506E;
  --grad: linear-gradient(120deg, #1BC8F5 0%, #0B5CFF 55%, #2A3BD6 100%);
  --grad-soft: linear-gradient(120deg, rgba(27,200,245,.12), rgba(11,92,255,.12));
  --d-text: #C9D3F0;         /* body on dark */
  --d-muted: #8391BB;
  --d-line: rgba(140, 170, 255, .14);
  --d-card: rgba(255, 255, 255, .035);
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(10,20,64,.06), 0 4px 16px rgba(10,20,64,.06);
  --shadow: 0 2px 4px rgba(10,20,64,.04), 0 18px 48px rgba(10,20,64,.12);
  --f-head: 'Sora', 'Inter', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { font-family: var(--f-body); color: var(--text); background: var(--bg); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(860px, 100% - 32px); }
.mono { font-family: var(--f-mono); }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3, h4, h5 { font-family: var(--f-head); color: var(--ink); letter-spacing: -.02em; line-height: 1.2; }
h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 100; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid rgba(27,200,245,.5); outline-offset: 2px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(11,92,255,.3); }
.btn-primary:hover { box-shadow: 0 12px 32px rgba(11,92,255,.42); }
.btn-outline { border-color: rgba(255,255,255,.28); color: #fff; background: rgba(255,255,255,.04); backdrop-filter: blur(6px); }
.btn-outline:hover { border-color: var(--cyan); background: rgba(27,200,245,.08); }
.btn-ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost-dark { border-color: var(--d-line); background: rgba(255,255,255,.05); color: #fff; }
.btn-ghost-dark:hover { border-color: var(--cyan); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn .ic { width: 18px; height: 18px; }
.full { width: 100%; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand-mark { width: 30px; height: auto; filter: drop-shadow(0 0 10px rgba(27,200,245,.45)); }
.brand-word { width: 150px; height: auto; }
.brand .on-light { display: none; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14.5px; font-weight: 500; }
.nav-links a:not(.btn) { color: rgba(255,255,255,.78); transition: color .2s; position: relative; }
.nav-links a:not(.btn):hover, .nav-links a.active { color: #fff; }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--grad); border-radius: 2px; }
.nav.scrolled { background: rgba(255,255,255,.92); backdrop-filter: blur(14px); border-color: var(--line); box-shadow: 0 4px 24px rgba(10,20,64,.06); }
.nav.scrolled .on-dark { display: none; }
.nav.scrolled .on-light { display: block; }
.nav.scrolled .brand-mark { filter: none; }
.nav.scrolled .nav-links a:not(.btn) { color: var(--text); }
.nav.scrolled .nav-links a:not(.btn):hover, .nav.scrolled .nav-links a.active { color: var(--blue); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.nav.scrolled .nav-toggle span, .nav.open .nav-toggle span { background: var(--ink); }

/* ---------- Dark sections ---------- */
.dark { background: var(--navy-900); color: var(--d-text); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark .head p { color: var(--d-muted); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 140px 0 0; background: radial-gradient(1100px 600px at 80% -10%, rgba(11,92,255,.35), transparent 60%), radial-gradient(800px 500px at -10% 30%, rgba(27,200,245,.14), transparent 60%), linear-gradient(180deg, var(--navy-950), var(--navy-900)); }
#net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.hero-glow { position: absolute; inset: auto 0 0; height: 200px; background: linear-gradient(180deg, transparent, rgba(3,8,32,.9)); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-bottom: 80px; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid rgba(27,200,245,.35); background: rgba(27,200,245,.08); color: #BFEFFF; font-size: 13px; font-weight: 600; letter-spacing: .01em; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(22,201,141,.6); animation: ping 2s infinite; display: inline-block; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(22,201,141,0); } 100% { box-shadow: 0 0 0 0 rgba(22,201,141,0); } }
.hero h1 { font-size: clamp(36px, 5vw, 62px); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; margin: 22px 0 14px; }
.hero-rotate { font-family: var(--f-mono); font-size: 17px; color: var(--cyan); margin-bottom: 16px; min-height: 28px; }
.caret { animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.lead { font-size: 18px; color: var(--d-text); max-width: 580px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 38px; }
.hero-proof { display: flex; gap: 36px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--d-line); }
.hero-proof strong { display: block; font-family: var(--f-head); font-size: 28px; color: #fff; font-weight: 700; }
.hero-proof span { font-size: 13px; color: var(--d-muted); }

.hero-visual { position: relative; }
.console { background: linear-gradient(180deg, rgba(18,32,87,.72), rgba(5,12,42,.85)); border: 1px solid var(--d-line); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(12px); overflow: hidden; }
.console-head, .editor-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--d-line); font-size: 12px; color: var(--d-muted); }
.console-head .status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-weight: 600; font-size: 12px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.dots i:nth-child(2) { background: #FEBC2E; } .dots i:nth-child(3) { background: #28C840; }
.pipe { width: 100%; height: auto; padding: 8px 12px 0; }
.wire { fill: none; stroke: url(#gLine); stroke-width: 2; stroke-dasharray: 5 6; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.pulse-dot { fill: #7FE3FF; }
.node rect { fill: rgba(10,20,64,.9); stroke: rgba(120,160,255,.35); stroke-width: 1; }
.node.core rect { stroke: #1BC8F5; stroke-width: 1.5; fill: rgba(11,92,255,.22); }
.n-t { fill: #fff; font: 600 13px var(--f-body); }
.n-s { fill: #8FA3D6; font: 500 11px var(--f-mono); }
.console-log { border-top: 1px solid var(--d-line); padding: 12px 16px; font-size: 12px; color: #9FB0DD; display: grid; gap: 4px; height: 86px; overflow: hidden; }
.console-log div { animation: rise .4s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.ok { color: var(--green); }
.chip-float { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; box-shadow: 0 16px 40px rgba(0,0,0,.35); animation: bob 5s ease-in-out infinite; }
.chip-float .ic { color: var(--blue); width: 17px; height: 17px; }
.cf-1 { top: -18px; right: 130px; }
.cf-2 { bottom: 70px; left: -34px; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

.marquee { position: relative; border-top: 1px solid var(--d-line); background: rgba(3,8,32,.6); overflow: hidden; padding: 20px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scroll 40s linear infinite; }
.marquee span { font-family: var(--f-head); font-weight: 600; font-size: 16px; color: #6F80B3; white-space: nowrap; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Strip ---------- */
.strip { padding: 44px 0 28px; border-bottom: 1px solid var(--line); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.strip-item { display: flex; gap: 14px; align-items: flex-start; }
.strip-item > .ic { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--grad-soft); color: var(--blue); }
.strip-item strong { display: block; font-family: var(--f-head); font-size: 26px; color: var(--ink); line-height: 1.1; }
.strip-item div > span { font-size: 14px; color: var(--muted); }
.note { font-size: 12px; color: var(--muted); margin-top: 16px; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.soft { background: var(--bg-soft); }
.head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.head p { font-size: 17px; color: var(--muted); margin-top: 16px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--blue); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--grad); border-radius: 2px; }
.dark .eyebrow { color: var(--cyan); }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: transform .25s, box-shadow .25s, border-color .25s; overflow: hidden; }
.svc::after { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.svc:hover::after { transform: scaleX(1); }
.svc-ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); color: var(--blue); margin-bottom: 18px; }
.svc-ic .ic { width: 24px; height: 24px; }
.svc h3 { margin-bottom: 8px; font-size: 17.5px; }
.svc p { font-size: 14.5px; color: var(--muted); }
.tag { display: inline-block; margin-top: 16px; font-family: var(--f-mono); font-size: 11.5px; font-weight: 600; color: var(--blue); background: rgba(11,92,255,.08); padding: 4px 9px; border-radius: 6px; }

/* Journey */
.journey-sec { background: radial-gradient(900px 500px at 100% 0%, rgba(11,92,255,.22), transparent 60%), var(--navy-900); }
.journey { display: grid; grid-template-columns: 340px 1fr; gap: 28px; }
.levels { display: grid; gap: 10px; position: relative; }
.lvl { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--d-line); background: var(--d-card); color: var(--d-text); cursor: pointer; transition: background .25s, border-color .25s; }
.lvl:hover { border-color: rgba(27,200,245,.4); }
.lvl .n { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; font-family: var(--f-mono); font-weight: 600; background: rgba(255,255,255,.06); color: var(--d-muted); transition: .25s; }
.lvl b { display: block; color: #fff; font-family: var(--f-head); font-weight: 600; font-size: 15px; }
.lvl small { color: var(--d-muted); font-size: 12.5px; }
.lvl.active { background: linear-gradient(120deg, rgba(27,200,245,.14), rgba(11,92,255,.2)); border-color: rgba(27,200,245,.55); }
.lvl.active .n { background: var(--grad); color: #fff; }
.level-panel { border: 1px solid var(--d-line); border-radius: 20px; background: linear-gradient(180deg, rgba(18,32,87,.55), rgba(5,12,42,.6)); padding: 34px; min-height: 100%; }
.lp-top { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.lp-top h3 { font-size: 26px; margin: 6px 0 8px; }
.lp-top p { color: var(--d-text); max-width: 560px; }
.lp-kicker { font-family: var(--f-mono); font-size: 12px; color: var(--cyan); letter-spacing: .1em; text-transform: uppercase; }
.lp-for { font-size: 13px; background: rgba(255,255,255,.06); border: 1px solid var(--d-line); padding: 8px 12px; border-radius: 10px; color: var(--d-text); }
.lp-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; margin-top: 28px; }
.lp-grid h4 { font-size: 13px; font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--d-muted); margin-bottom: 12px; font-weight: 600; }
.lp-list { list-style: none; display: grid; gap: 10px; }
.lp-list li { display: flex; gap: 10px; align-items: flex-start; color: #E3E9FB; font-size: 15px; }
.lp-list .ic { color: var(--cyan); width: 18px; height: 18px; margin-top: 3px; }
.meter { margin-bottom: 16px; }
.meter div { display: flex; justify-content: space-between; font-size: 13px; color: var(--d-text); margin-bottom: 6px; }
.meter i { display: block; height: 8px; border-radius: 8px; background: rgba(255,255,255,.08); overflow: hidden; }
.meter i b { display: block; height: 100%; background: var(--grad); border-radius: 8px; width: 0; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tools span { font-size: 12px; font-family: var(--f-mono); padding: 5px 10px; border-radius: 6px; border: 1px solid var(--d-line); color: #BFD0FF; }
.lp-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--d-line); }
.lp-foot span { color: var(--d-muted); font-size: 14px; }
.lp-foot strong { color: #fff; }
.fade-in { animation: rise .45s ease; }

/* Tiers */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.tier { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; transition: box-shadow .25s, transform .25s; }
.tier:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.tier.featured { border: 1.5px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: var(--shadow); }
.ribbon { position: absolute; top: -13px; left: 28px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.tier-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--navy-800); color: var(--cyan); margin-bottom: 18px; }
.tier-ic .ic { width: 24px; height: 24px; }
.tier h3 { font-size: 21px; }
.tier-sub { font-size: 14px; color: var(--muted); margin: 6px 0 20px; }
.tier ul { list-style: none; display: grid; gap: 11px; margin-bottom: 24px; flex: 1; }
.tier li { display: flex; gap: 10px; font-size: 15px; color: var(--text); }
.tier li .ic { color: var(--green); width: 18px; height: 18px; margin-top: 3px; stroke-width: 2.4; }
.tier-foot { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px dashed var(--line); margin-bottom: 18px; font-size: 14px; }
.tier-foot span { color: var(--muted); }
.tier-foot strong { color: var(--ink); }

/* Departments */
.dept { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); overflow: hidden; }
.dept-tabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.dept-tabs::-webkit-scrollbar { display: none; }
.dtab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 0; background: none; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: .2s; }
.dtab .ic { width: 17px; height: 17px; }
.dtab:hover { color: var(--ink); background: var(--bg-soft); }
.dtab.active { background: var(--navy-800); color: #fff; }
.dept-body { padding: 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.task { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); animation: rise .4s ease both; }
.task h4 { font-size: 15.5px; font-family: var(--f-body); font-weight: 600; }
.task p { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.saving { align-self: start; font-family: var(--f-mono); font-size: 12px; font-weight: 600; color: #0B8F63; background: rgba(22,201,141,.12); padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.task .time { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 13px; margin-top: 6px; }
.time s { color: var(--red); text-decoration-thickness: 1.5px; }
.time .ic { width: 15px; height: 15px; color: var(--muted); }
.time b { color: var(--blue); }

/* Python Lab */
.lab-sec { background: radial-gradient(900px 500px at 0% 100%, rgba(27,200,245,.12), transparent 60%), var(--navy-950); }
.lab { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.editor, .output { border: 1px solid var(--d-line); border-radius: 16px; background: #060D2E; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.editor-head .btn { margin-left: auto; }
.py-status { margin-left: auto; color: var(--d-muted); }
.py-status.run { color: #FEBC2E; } .py-status.done { color: var(--green); } .py-status.err { color: var(--red); }
#pyCode { flex: 1; min-height: 460px; width: 100%; resize: vertical; border: 0; outline: 0; padding: 18px 20px; background: transparent; color: #D6E2FF; font: 13px/1.65 var(--f-mono); tab-size: 4; white-space: pre; overflow: auto; }
#pyOut { padding: 18px 20px; font-size: 12.5px; line-height: 1.7; color: #A9F5D0; white-space: pre-wrap; min-height: 200px; max-height: 280px; overflow: auto; }
.py-chart { padding: 6px 20px 22px; display: grid; gap: 10px; }
.py-row { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; font-size: 12.5px; color: var(--d-text); }
.py-bars { display: grid; gap: 4px; }
.py-bars span { display: flex; align-items: center; height: 14px; border-radius: 4px; font: 600 10.5px var(--f-mono); color: #fff; padding-left: 6px; width: 0; transition: width .9s cubic-bezier(.2,.8,.2,1); white-space: nowrap; }
.py-bars .m { background: #3A4A80; }
.py-bars .a { background: var(--grad); }
.py-legend { display: flex; gap: 16px; font-size: 12px; color: var(--d-muted); margin-bottom: 4px; }
.py-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.stack { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; justify-content: center; }
.stack span { color: var(--d-muted); font-size: 14px; margin-right: 4px; }
.stack b { font-weight: 500; font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--d-line); background: var(--d-card); color: #D6E2FF; }

/* ROI */
.roi { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.roi-copy > p { color: var(--muted); font-size: 17px; margin: 14px 0 32px; }
.roi-controls { display: grid; gap: 24px; }
.roi-controls label { display: grid; grid-template-columns: 1fr auto; gap: 10px; font-size: 15px; font-weight: 500; color: var(--ink); }
.roi-controls output { font-family: var(--f-mono); font-weight: 600; color: var(--blue); }
.roi-controls input { grid-column: 1 / -1; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--blue) var(--p, 50%), var(--line) var(--p, 50%)); outline: none; cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); box-shadow: 0 2px 8px rgba(11,92,255,.35); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); }
.roi-card { background: var(--navy-900); color: var(--d-text); border-radius: 22px; padding: 32px; box-shadow: 0 30px 70px rgba(5,12,42,.35); position: relative; overflow: hidden; }
.roi-card::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(11,92,255,.45), transparent 70%); top: -160px; right: -120px; }
.roi-main { position: relative; }
.roi-main small, .roi-kpis small { color: var(--d-muted); font-size: 13px; }
.roi-main strong { display: block; font-family: var(--f-head); font-size: clamp(36px, 4vw, 48px); color: #fff; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.roi-3y { font-size: 14px; }
.roi-3y b { color: var(--cyan); }
.roi-kpis { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.roi-kpis div { padding: 16px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--d-line); }
.roi-kpis strong { display: block; font-family: var(--f-head); font-size: 24px; color: #fff; font-variant-numeric: tabular-nums; }
.roi-bars { display: grid; gap: 10px; margin-bottom: 8px; }
.roi-bars > div { display: grid; grid-template-columns: 52px 1fr 70px; gap: 10px; align-items: center; font-size: 13px; }
.roi-bars em { font-style: normal; font-family: var(--f-mono); font-size: 12px; text-align: right; }
.rb { height: 10px; border-radius: 10px; background: rgba(255,255,255,.06); overflow: hidden; }
.rb i { display: block; height: 100%; background: #F0506E; border-radius: 10px; transition: width .4s; }
.rb i.after { background: var(--grad); }
.roi-card .note { color: var(--d-muted); margin-bottom: 18px; }

/* Quiz */
.quiz { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 34px; }
.quiz-top { display: flex; align-items: center; gap: 18px; font-family: var(--f-mono); font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.qbar { flex: 1; height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; }
.qbar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .35s; }
.q h3 { font-size: 21px; margin-bottom: 20px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt { text-align: left; padding: 16px 18px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-size: 15px; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.opt:hover { border-color: var(--blue); background: rgba(11,92,255,.04); transform: translateY(-1px); }
.q-back { margin-top: 18px; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 14px; }
.result { display: grid; grid-template-columns: 170px 1fr; gap: 30px; align-items: center; }
.gauge { position: relative; width: 170px; height: 170px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 12; }
.gauge .bg { stroke: var(--line); }
.gauge .fg { stroke: url(#gBrand); stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1); }
.gauge div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge strong { font-family: var(--f-head); font-size: 40px; color: var(--ink); line-height: 1; }
.gauge span { font-size: 12px; color: var(--muted); }
.result h3 { font-size: 24px; margin: 6px 0 10px; }
.result p { color: var(--text); }
.result ul { list-style: none; margin: 14px 0 20px; display: grid; gap: 8px; }
.result li { display: flex; gap: 10px; font-size: 15px; }
.result li .ic { color: var(--green); width: 18px; height: 18px; margin-top: 3px; stroke-width: 2.4; }
.result-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Timeline */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 22px; left: 4%; right: 4%; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--blue)); opacity: .35; }
.timeline li { position: relative; }
.timeline span { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); color: var(--blue); font-family: var(--f-mono); font-weight: 600; font-size: 14px; margin-bottom: 18px; box-shadow: 0 0 0 6px #fff; }
.timeline h4 { font-size: 16.5px; margin-bottom: 6px; }
.timeline p { font-size: 14px; color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: 420px 1fr; gap: 64px; align-items: center; }
.about-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 34px; box-shadow: var(--shadow); }
.about-logo { width: 78%; margin: 0 auto 20px; }
.since { position: absolute; top: 20px; right: 20px; text-align: center; background: var(--navy-800); color: #fff; border-radius: 12px; padding: 8px 12px; line-height: 1.1; }
.since span { display: block; font-size: 10.5px; color: var(--cyan); text-transform: uppercase; letter-spacing: .12em; font-family: var(--f-mono); }
.since strong { font-family: var(--f-head); font-size: 20px; }
.founder { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-family: var(--f-head); font-weight: 700; font-size: 19px; flex: none; }
.founder h3 { font-size: 18px; }
.founder p { font-size: 14px; color: var(--muted); }
.founder-links { display: grid; gap: 8px; }
.founder-links a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px; background: var(--bg-soft); font-size: 14.5px; color: var(--ink); font-weight: 500; transition: background .2s, color .2s; word-break: break-all; }
.founder-links a:hover { background: rgba(11,92,255,.08); color: var(--blue); }
.founder-links .ic { color: var(--blue); width: 17px; height: 17px; }
.about-copy p { font-size: 16.5px; margin-top: 16px; }
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.why div { padding: 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.why .ic { color: var(--blue); width: 22px; height: 22px; margin-bottom: 8px; }
.why strong { display: block; color: var(--ink); font-family: var(--f-head); font-weight: 600; }
.why span { font-size: 14px; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: rgba(11,92,255,.4); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; color: var(--ink); font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--blue); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 12px; color: var(--muted); }

/* Quote */
.quote-sec { background: radial-gradient(900px 500px at 10% 0%, rgba(11,92,255,.28), transparent 60%), radial-gradient(700px 400px at 100% 100%, rgba(27,200,245,.12), transparent 60%), var(--navy-900); }
.quote { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.quote-copy > p { color: var(--d-text); font-size: 17px; margin: 14px 0 28px; }
.contact-list { display: grid; gap: 10px; }
.c-item { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-radius: 12px; background: var(--d-card); border: 1px solid var(--d-line); color: #fff; font-weight: 600; transition: border-color .2s, transform .2s; word-break: break-all; }
.c-item:hover { border-color: var(--cyan); transform: translateX(4px); }
.c-item .ic { width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: rgba(27,200,245,.1); color: var(--cyan); }
.c-item.wa .ic { background: rgba(37,211,102,.14); color: #25D366; stroke: none; }
.c-item small { display: block; font-size: 12px; color: var(--d-muted); font-weight: 500; }
.promise { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; font-size: 14px; }
.promise li { display: flex; align-items: center; gap: 6px; }
.promise .ic { color: var(--green); width: 16px; height: 16px; stroke-width: 2.4; }
.form { background: #fff; color: var(--text); border-radius: 22px; padding: 34px; display: grid; gap: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.form h3 { font-size: 22px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.form input:not([type=checkbox]), .form select, .form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); font: 400 15px var(--f-body); color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(11,92,255,.12); }
.form .invalid { border-color: var(--red) !important; }
.form fieldset { border: 0; }
.form legend { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; cursor: pointer; }
.checks input { position: absolute; opacity: 0; pointer-events: none; }
.checks span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; color: var(--text); transition: .2s; background: #fff; }
.checks input:checked + span { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.checks input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.form-actions { display: flex; gap: 12px; }
.form-actions .btn { flex: 1; }
.form-actions .btn-ghost-dark { background: var(--navy-800); }
.form-note { font-size: 14px; min-height: 20px; color: #0B8F63; }
.form-note.err { color: var(--red); }

/* Footer */
.footer { background: var(--navy-950); color: var(--d-muted); padding: 70px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 40px; }
.f-brand img { width: 210px; margin-bottom: 16px; }
.f-brand p { font-size: 14px; max-width: 320px; }
.footer h5 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-inner > div > a:not(.btn) { display: block; font-size: 14px; margin-bottom: 9px; transition: color .2s; word-break: break-all; }
.footer-inner > div > a:not(.btn):hover { color: #fff; }
.f-cta { margin-top: 8px; }
.copyright { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--d-line); font-size: 13px; }

/* Floating */
.wa-float { position: fixed; right: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(37,211,102,.45); z-index: 60; transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }
.to-top { position: fixed; right: 30px; bottom: 90px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .3s; }
.to-top .ic { transform: rotate(-90deg); width: 18px; height: 18px; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner, .roi, .quote, .about, .lab { grid-template-columns: 1fr; }
  .hero-visual { max-width: 620px; margin-inline: auto; width: 100%; }
  .journey { grid-template-columns: 1fr; }
  .levels { grid-template-columns: repeat(5, 1fr); }
  .lvl { flex-direction: column; text-align: center; padding: 14px 8px; gap: 8px; }
  .lvl small { display: none; }
  .lvl b { font-size: 13px; }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .timeline::before { display: none; }
  .about-card { max-width: 480px; margin-inline: auto; width: 100%; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .cf-2 { left: 8px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links { position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 8px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(10,20,64,.12); transform: translateY(-130%); transition: transform .35s; }
  .nav-links a:not(.btn) { color: var(--text) !important; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-links a.active::after { display: none; }
  .nav-links .btn { margin-top: 14px; }
  .nav.open { background: #fff; }
  .nav.open .on-dark { display: none; }
  .nav.open .on-light { display: block; }
  .nav.open .nav-links { transform: none; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .tiers { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .lp-grid { grid-template-columns: 1fr; }
  .dept-body { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .hero { padding-top: 112px; }
  .hero-proof { gap: 22px; }
  .hero-cta .btn { width: 100%; }
  .chip-float { display: none; }
  .svc-grid, .why, .form .row, .opts, .roi-kpis { grid-template-columns: 1fr; }
  .levels { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .lvl b { display: none; }
  .lvl .n { width: 36px; height: 36px; }
  .level-panel, .quiz, .form, .roi-card, .about-card { padding: 22px; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .result { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .result li { text-align: left; }
  .form-actions { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; }
  .brand-word { width: 128px; }
  #pyCode { min-height: 360px; font-size: 12px; }
  .lp-foot .btn { width: 100%; white-space: normal; }
  .editor-head .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .editor-head .dots { display: none; }
}
