/* ============================================
   Devlac LLC — Precision / "Linear-clean" (dark)
   Deep charcoal canvas · hairline borders ·
   Inter tight tracking · one indigo accent.
   Elevation from lines + subtle lift, not heavy shadows.
   Spacing ladder: 8 / 12 / 24 / 96
   Radii: 6 (button) / 12 (card) / pill
   ============================================ */

:root {
  --bg:        #17181C;   /* deep charcoal-gray base */
  --surface:   #1E2025;   /* cards sit slightly LIGHTER than base */
  --surface-2: #24262C;   /* raised / active fill */
  --ink:       #F3F4F6;   /* near-white text */
  --ink-2:     #A3A8B2;   /* secondary text */
  --ink-3:     #71767F;   /* muted / captions */
  --line:      #2A2D33;   /* hairline */
  --line-2:    #34383F;   /* slightly stronger hairline */
  --accent:    #7C88F0;   /* indigo, brightened to hold up on dark */
  --accent-h:  #8F99F5;   /* hover (lighter on dark) */
  --accent-t:  rgba(124,136,240,.14);
  --r-btn: 6px;
  --r-card: 12px;
  --r-pill: 9999px;
  --maxw: 1120px;
  --gutter: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-feature-settings: 'cv02' on, 'cv03' on, 'cv04' on, 'ss01' on;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type scale (tight tracking, low weights) ---------- */
h1,h2,h3,h4 { font-weight: 600; letter-spacing: -0.022em; line-height: 1.05; color: var(--ink); }
.display { font-size: clamp(2.6rem, 5.4vw, 4.25rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 500; color: var(--ink-2);
  letter-spacing: -0.01em;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-pill); padding: 5px 12px 5px 10px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.kicker { font-size: .82rem; font-weight: 500; color: var(--accent); letter-spacing: -0.01em; margin-bottom: 14px; display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: inherit; font-weight: 500; font-size: .94rem; letter-spacing: -0.01em;
  padding: 10px 17px; border-radius: var(--r-btn); border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.14); }
.btn-primary:hover { background: var(--accent-h); }
.btn-primary:active { transform: translateY(.5px); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.btn-secondary:hover { background: var(--surface-2); border-color: #40454D; }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); background: var(--surface-2); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(23,24,28,.72);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line-2); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand .mark { width: 26px; height: 26px; }
.brand .name { font-weight: 600; font-size: 1.14rem; letter-spacing: -0.03em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { font-size: .92rem; font-weight: 450; color: var(--ink-2); padding: 7px 12px; border-radius: var(--r-btn); transition: color .15s ease, background .15s ease; letter-spacing: -0.01em; }
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-btn); padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 4px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; position: relative; text-align: center; }
.hero .eyebrow { margin-bottom: 26px; }
.hero h1 { max-width: 16ch; margin: 0 auto 24px; }
.hero .lede { font-size: 1.2rem; font-weight: 400; color: var(--ink-2); max-width: 56ch; margin: 0 auto 34px; line-height: 1.5; letter-spacing: -0.01em; }
.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-sub { margin-top: 20px; font-size: .86rem; color: var(--ink-3); letter-spacing: -0.01em; }

/* product-frame: the "screenshot as hero" device, rendered as a clean UI panel */
.frame {
  margin: 64px auto 0; max-width: 940px;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-card); overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.3), 0 20px 48px -16px rgba(0,0,0,.5);
}
.frame-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.frame-bar .dots { display: flex; gap: 6px; }
.frame-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: block; }
.frame-bar .path { font-size: .8rem; color: var(--ink-3); letter-spacing: -0.01em; }
.frame-body { display: grid; grid-template-columns: 210px 1fr; min-height: 320px; }
.frame-side { border-right: 1px solid var(--line); padding: 16px 12px; background: var(--surface-2); }
.frame-side .si { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: var(--r-btn); font-size: .85rem; color: var(--ink-2); letter-spacing: -0.01em; margin-bottom: 2px; }
.frame-side .si.active { background: var(--surface-2); color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.frame-side .si .ico { width: 15px; height: 15px; border-radius: 4px; background: var(--line-2); flex: none; }
.frame-side .si.active .ico { background: var(--accent); }
.frame-main { padding: 22px; text-align: left; }
.frame-main .fm-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; background: var(--surface); }
.frame-main .fm-row .l { display: flex; align-items: center; gap: 11px; }
.frame-main .fm-row .tick { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; position: relative; }
.frame-main .fm-row.done .tick { background: var(--accent); border-color: var(--accent); }
.frame-main .fm-row.done .tick::after { content: ""; position: absolute; left: 4.5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.frame-main .fm-row .nm { font-size: .9rem; letter-spacing: -0.01em; }
.frame-main .fm-row.done .nm { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-2); }
.frame-main .fm-row .badge { font-size: .72rem; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 2px 9px; letter-spacing: -0.01em; }
.frame-main .fm-row .badge.a { color: var(--accent); border-color: var(--accent-t); background: var(--accent-t); }

/* ---------- Logo strip ---------- */
.trust { padding: 40px 0 8px; }
.trust p { text-align: center; font-size: .82rem; color: var(--ink-3); letter-spacing: -0.005em; margin-bottom: 22px; }
.trust-row { display: flex; align-items: center; justify-content: center; gap: 44px; flex-wrap: wrap; opacity: .7; }
.trust-row span { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.03em; color: var(--ink-3); }

/* ---------- Section ---------- */
.section { padding: 96px 0; }
.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); margin-bottom: 16px; letter-spacing: -0.028em; }
.section-head p { font-size: 1.12rem; font-weight: 400; color: var(--ink-2); letter-spacing: -0.01em; line-height: 1.5; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ---------- Services (bento-ish clean cards) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-card);
  padding: 26px 24px; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.svc:hover { border-color: #3F444C; box-shadow: 0 1px 2px rgba(0,0,0,.3), 0 20px 40px -20px rgba(0,0,0,.55); transform: translateY(-2px); }
.svc .ic { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 18px; }
.svc .ic svg { width: 19px; height: 19px; stroke: var(--accent); }
.svc h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.02em; }
.svc p { font-size: .95rem; font-weight: 400; color: var(--ink-2); line-height: 1.5; letter-spacing: -0.005em; }
.svc .tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.svc .tags span { font-size: .74rem; color: var(--ink-3); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px 10px; letter-spacing: -0.005em; }

/* ---------- Process (numbered, minimal) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { position: relative; }
.step .no { font-size: .8rem; font-weight: 500; color: var(--accent); margin-bottom: 16px; letter-spacing: -0.01em; }
.step h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.02em; }
.step p { font-size: .92rem; font-weight: 400; color: var(--ink-2); line-height: 1.5; letter-spacing: -0.005em; }
.step-divider { height: 1px; background: var(--line-2); margin-bottom: 20px; }

/* ---------- Why (split with feature list + clean panel) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feat-list { display: flex; flex-direction: column; gap: 8px; }
.feat { display: flex; gap: 14px; padding: 16px; border-radius: var(--r-card); transition: background .15s ease; }
.feat:hover { background: var(--surface); }
.feat .chk { flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--accent-t); display: grid; place-items: center; margin-top: 1px; }
.feat .chk svg { width: 13px; height: 13px; stroke: var(--accent); }
.feat h4 { font-size: 1.02rem; font-weight: 600; margin-bottom: 3px; letter-spacing: -0.015em; }
.feat p { font-size: .92rem; font-weight: 400; color: var(--ink-2); line-height: 1.5; letter-spacing: -0.005em; }

.panel {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-card);
  padding: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.3), 0 20px 48px -22px rgba(0,0,0,.55);
}
.panel-inner { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.panel-head .t { font-size: .82rem; font-weight: 500; color: var(--ink-2); letter-spacing: -0.01em; }
.panel-head .live { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--ink-3); }
.panel-head .live .d { width: 6px; height: 6px; border-radius: 50%; background: #3DBB77; }
.panel-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.panel-row:last-child { border-bottom: none; }
.panel-row .rl { font-size: .88rem; color: var(--ink); font-weight: 450; letter-spacing: -0.01em; }
.panel-row .rv { font-size: .82rem; font-weight: 500; color: var(--accent); background: var(--accent-t); border-radius: var(--r-pill); padding: 3px 11px; letter-spacing: -0.01em; white-space: nowrap; }
.panel-row .rv.n { color: var(--ink-2); font-weight: 500; background: var(--surface-2); border: 1px solid var(--line-2); }

/* ---------- Stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-card); padding: 28px 26px; }
.stat .n { font-size: 2.2rem; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 6px; }
.stat .l { font-size: .92rem; color: var(--ink-2); letter-spacing: -0.01em; }

/* ---------- Stack ---------- */
.stack { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 760px; margin: 0 auto; }
.stack span { font-size: .88rem; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 8px 16px; letter-spacing: -0.01em; transition: border-color .15s ease, color .15s ease; }
.stack span:hover { border-color: #D4D7DE; color: var(--ink); }

/* ---------- CTA ---------- */
.cta {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px;
  padding: 64px 48px; text-align: center;
  box-shadow: 0 1px 2px rgba(0,0,0,.3), 0 24px 56px -26px rgba(0,0,0,.6);
}
.cta h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); margin-bottom: 14px; letter-spacing: -0.028em; }
.cta p { font-size: 1.12rem; color: var(--ink-2); max-width: 48ch; margin: 0 auto 28px; letter-spacing: -0.01em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.contact-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-card); padding: 26px; transition: border-color .18s ease; }
.contact-card:hover { border-color: #D9DCE3; }
.contact-card .k { font-size: .8rem; font-weight: 500; color: var(--accent); margin-bottom: 12px; letter-spacing: -0.01em; }
.contact-card .v { font-size: 1.1rem; font-weight: 500; letter-spacing: -0.02em; }
.contact-card .v a:hover { color: var(--accent); }
.contact-card address { font-style: normal; color: var(--ink-2); line-height: 1.6; font-size: 1rem; letter-spacing: -0.005em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-2); padding: 64px 0 36px; background: var(--surface); }
.footer-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 52px; }
.footer .brand { margin-bottom: 14px; }
.footer .tagline { color: var(--ink-2); font-size: .94rem; max-width: 32ch; line-height: 1.55; letter-spacing: -0.005em; }
.footer .startup-badge { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-size: .78rem; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 5px 12px; letter-spacing: -0.01em; }
.footer .startup-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.footer h5 { font-size: .8rem; font-weight: 600; color: var(--ink); margin-bottom: 16px; letter-spacing: -0.01em; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--ink-2); font-size: .92rem; transition: color .15s ease; letter-spacing: -0.005em; }
.footer ul a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 28px; border-top: 1px solid var(--line); }
.footer-bottom p { color: var(--ink-3); font-size: .84rem; letter-spacing: -0.005em; }
.footer-bottom .legal-links { display: flex; gap: 20px; }
.footer-bottom .legal-links a { color: var(--ink-3); font-size: .84rem; }
.footer-bottom .legal-links a:hover { color: var(--ink); }

/* ---------- Legal / doc pages ---------- */
.page-hero { padding: 72px 0 40px; border-bottom: 1px solid var(--line-2); }
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); margin-bottom: 14px; letter-spacing: -0.03em; }
.page-hero p { color: var(--ink-2); font-size: 1.08rem; max-width: 60ch; letter-spacing: -0.01em; line-height: 1.5; }
.page-hero .updated { font-size: .84rem; color: var(--ink-3); margin-top: 16px; letter-spacing: -0.005em; }

.doc { padding: 56px 0 40px; }
.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 60px; align-items: start; }
.toc { position: sticky; top: 88px; }
.toc h6 { font-size: .78rem; font-weight: 600; color: var(--ink); margin-bottom: 14px; letter-spacing: -0.01em; }
.toc ul { list-style: none; }
.toc li { margin-bottom: 2px; }
.toc a { display: block; color: var(--ink-2); font-size: .88rem; padding: 6px 12px; border-radius: var(--r-btn); transition: color .15s ease, background .15s ease; letter-spacing: -0.005em; }
.toc a:hover { color: var(--ink); background: var(--surface-2); }

.doc-body h2 { font-size: 1.5rem; font-weight: 600; margin: 40px 0 14px; scroll-margin-top: 88px; letter-spacing: -0.02em; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 1.14rem; font-weight: 600; margin: 26px 0 10px; letter-spacing: -0.015em; }
.doc-body p { color: var(--ink-2); margin-bottom: 15px; line-height: 1.6; letter-spacing: -0.005em; }
.doc-body ul, .doc-body ol { color: var(--ink-2); margin: 0 0 17px 22px; }
.doc-body li { margin-bottom: 9px; line-height: 1.55; letter-spacing: -0.005em; }
.doc-body a { color: var(--accent); }
.doc-body a:hover { text-decoration: underline; }
.doc-body strong { color: var(--ink); font-weight: 600; }
.doc-body .note { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-card); padding: 18px 22px; margin: 22px 0; }
.doc-body .note p:last-child { margin-bottom: 0; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .55s cubic-bezier(.16,1,.3,1), transform .55s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.err { text-align: center; padding: 120px 0; }
.err .code { font-size: clamp(4.5rem, 14vw, 9rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--ink); }
.err .code span { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 44px; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px 28px; }
  .stats { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .toc { position: static; margin-bottom: 8px; }
  .frame-body { grid-template-columns: 1fr; }
  .frame-side { display: none; }
  .nav-links { display: none; }
  .nav-right .btn-secondary { display: none; }
  .menu-btn { display: block; }
  .nav-links.open { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 2px; background: var(--surface); border-bottom: 1px solid var(--line-2); padding: 10px var(--gutter) 16px; }
  .nav-links.open a { padding: 12px; width: 100%; }
}
@media (max-width: 560px) {
  .svc-grid, .steps, .contact-grid, .footer-top { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
  .cta { padding: 44px 24px; }
  .frame { margin-top: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
