/* Codepth 2026 · premium preview */
:root {
  --ink: #0b0b0d;
  --text: #16161a;
  --muted: #5d5d66;
  --faint: #8a8a94;
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --line: rgba(15, 15, 20, .09);
  --line-strong: rgba(15, 15, 20, .16);
  --card: #ffffff;
  --accent: #2f5bff;
  --accent-ink: #1f45e0;
  --accent-soft: rgba(47, 91, 255, .08);
  --tile: #ffffff;
  --shadow: 0 1px 2px rgba(16, 16, 24, .04), 0 8px 28px rgba(16, 16, 24, .06);
  --shadow-lg: 0 2px 6px rgba(16, 16, 24, .05), 0 24px 60px rgba(16, 16, 24, .12);
  --r: 18px;
  --display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f4f4f6;
    --text: #ececf0;
    --muted: #a3a3ad;
    --faint: #7c7c86;
    --bg: #09090b;
    --bg-soft: #111114;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .16);
    --card: #121215;
    --accent: #6d8bff;
    --accent-ink: #8aa2ff;
    --accent-soft: rgba(109, 139, 255, .12);
    --tile: #f4f4f6;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 28px rgba(0, 0, 0, .35);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 24px 60px rgba(0, 0, 0, .5);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body); color: var(--text); background: var(--bg);
  font-size: 17px; line-height: 1.7; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, .section-title { font-family: var(--display); color: var(--ink); }

/* Icons */
.ic { width: 22px; height: 22px; flex: none; color: var(--accent); }
.ic-arrow { width: 16px; height: 16px; flex: none; transition: transform .2s; vertical-align: -3px; }
.ic-sm { width: 16px; height: 16px; vertical-align: -3px; }
a:hover .ic-arrow { transform: translateX(3px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font: 500 15px/1 var(--body); border-radius: 999px; padding: 14px 22px;
  border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
  cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(16, 16, 24, .18); }
.btn-ghost { color: var(--ink); border-color: var(--line-strong); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-light { background: #fff; color: #0b0b0d; }
.btn-light:hover { transform: translateY(-1px); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-outline-light:hover { border-color: #fff; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 15px; color: var(--ink); }
.link:hover { color: var(--accent); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
nav { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 12px 24px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font: 600 18px/1 var(--display); color: var(--ink); letter-spacing: -.01em; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn-primary { color: var(--bg); }
@media (max-width: 640px) {
  nav { padding: 10px 16px; }
  .nav-links { gap: 18px; }
  .nav-links .hide-sm { display: none; }
}

/* Layout */
section { padding: 112px 24px; }
.container { max-width: 1200px; margin: 0 auto; }
.container > * + * { margin-top: 56px; }
.blk.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }
@media (max-width: 768px) { section { padding: 72px 20px; } .container > * + * { margin-top: 40px; } }

.eyebrow { font: 600 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.section-title { font-size: clamp(32px, 4.2vw, 48px); font-weight: 700; line-height: 1.08; letter-spacing: -.035em; margin-bottom: 16px; }
.sub-title { font-size: 24px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; margin-bottom: 10px; }
.lead { font-size: 18px; color: var(--muted); line-height: 1.65; max-width: 640px; }
.kicker { color: var(--faint); font-weight: 500; margin: -4px 0 10px; }
.sec-head { max-width: 760px; }
.row-head { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.item { max-width: 760px; }
.group-title { padding-top: 8px; }
.group-title .sub-title { font-size: 28px; }

/* Hero */
.hero {
  position: relative; overflow: hidden; padding: 120px 24px 104px;
  background:
    radial-gradient(60% 70% at 85% 0%, var(--accent-soft) 0%, transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(140, 90, 255, .06) 0%, transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 64px; align-items: center; }
.hero-split .hero-grid { grid-template-columns: .95fr 1.05fr; }
.hero-text { max-width: 640px; }
.hero-title { font-size: clamp(40px, 5.6vw, 68px); font-weight: 700; line-height: 1.02; letter-spacing: -.045em; margin-bottom: 22px; }
.hero-subtitle { font-size: 19px; line-height: 1.6; color: var(--muted); margin-bottom: 36px; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-text .more { margin-top: 28px; }
.hero-media .frame img { max-height: 520px; }
@media (max-width: 960px) {
  .hero-split .hero-grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 640px) {
  .hero { padding: 64px 20px 64px; }
  .hero-subtitle { font-size: 17px; }
  .hero-cta .btn { flex: 1 1 auto; }
}

/* Frames */
.frame {
  border-radius: 20px; border: 1px solid var(--line); background: var(--bg-soft);
  padding: 20px; box-shadow: var(--shadow); overflow: hidden;
}
.frame img { margin: 0 auto; width: auto; max-width: 100%; max-height: 420px; object-fit: contain; }
.browser {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong);
  background: var(--card); box-shadow: var(--shadow-lg); transition: transform .35s ease, box-shadow .35s ease;
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.browser-bar span { margin-left: 10px; font-size: 12px; color: var(--faint); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: top; }
.hero-media .browser { transform: perspective(1600px) rotateY(-4deg) rotateX(2deg); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split:nth-of-type(even) .split-media { order: -1; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split:nth-of-type(even) .split-media { order: 0; }
  .frame img { max-height: 300px; }
}

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid, .grid.cols-2, .grid.cols-4 { grid-template-columns: 1fr; } }
.card {
  position: relative; padding: 28px; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--card); box-shadow: 0 1px 2px rgba(16, 16, 24, .03);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; min-width: 0; overflow-wrap: anywhere;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card h3 { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; margin-bottom: 8px; }
.card p { font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.card.feat .ic { margin-bottom: 18px; width: 26px; height: 26px; }
.card-media { margin: -28px -28px 22px; background: var(--bg-soft); border-bottom: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; overflow: hidden; }
.card-media img { width: 100%; height: 220px; object-fit: contain; padding: 16px; }
.link-card { color: inherit; display: block; padding-right: 56px; }
.card-go { position: absolute; right: 24px; top: 30px; color: var(--faint); }
.link-card:hover .card-go { color: var(--accent); }

/* Work + templates */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 40px; }
.tpl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 800px) { .work-grid, .tpl-grid { grid-template-columns: 1fr; gap: 40px; } }
.work-card:hover .browser, .tpl-card:hover .browser { transform: translateY(-4px); }
.work-meta { padding: 22px 4px 0; }
.work-meta h3 { font-size: 21px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 6px; }
.work-meta p { color: var(--muted); font-size: 15.5px; line-height: 1.6; margin-bottom: 12px; }
.work-meta .eyebrow { margin-bottom: 8px; font-size: 12px; }
.tpl-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* Trust strip */
.trust { padding: 28px 24px; border-bottom: 1px solid var(--line); background: var(--bg); }
.trust-row { display: flex; align-items: center; gap: 20px 40px; flex-wrap: wrap; justify-content: space-between; }
.trust-row > * + * { margin-top: 0; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item strong { display: block; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.trust-item span { display: block; font-size: 13px; color: var(--faint); line-height: 1.3; font-variant-numeric: tabular-nums; }
.trust-link { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 500; color: var(--ink); border: 1px solid var(--line-strong); padding: 8px 14px; border-radius: 999px; }
.trust-link:hover { border-color: var(--ink); }
@media (max-width: 640px) { .trust-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } .trust-link { grid-column: 1 / -1; justify-content: center; } }

.verify-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .verify-grid { grid-template-columns: 1fr; } }
.v-item { padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.v-item .ic { margin-bottom: 14px; }
.v-item strong { display: block; font-size: 14px; color: var(--faint); font-weight: 500; margin-bottom: 4px; }
.v-item span { color: var(--ink); font-weight: 500; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); }
.steps li { padding: 28px 28px 0 0; }
.step-n { display: block; font: 600 14px/1 var(--display); color: var(--accent); margin-bottom: 18px; letter-spacing: .02em; }
.steps h3 { font-size: 20px; letter-spacing: -.02em; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 0 20px; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* Chips */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chips li { font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); }
.chips.lg li { font-size: 16px; padding: 10px 18px; }

/* Logo strip */
.logo-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.logo-tile { background: var(--tile); border: 1px solid var(--line); border-radius: 14px; padding: 18px 10px 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.logo-tile img { height: 40px; width: auto; max-width: 100%; object-fit: contain; }
.logo-name { font-size: 12.5px; font-weight: 500; color: #3a3a42; line-height: 1.3; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 800px) { .gallery { grid-template-columns: 1fr; } }
.more-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 12px; }
.more-gallery img { max-height: 220px; width: auto; object-fit: contain; }

/* Read more */
.more { max-width: 820px; }
.more summary {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
  font-size: 14px; font-weight: 500; color: var(--muted); padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  transition: color .2s, border-color .2s;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font-size: 16px; line-height: 1; }
.more[open] summary::after { content: "\2212"; }
.more summary:hover { color: var(--ink); border-color: var(--line-strong); }
.more-body { padding-top: 22px; color: var(--muted); font-size: 16px; }
.more-body p + p, .more-body ul + p, .more-body p + ul { margin-top: 12px; }
.more-body .more-title { font-size: 17px; margin: 22px 0 6px; color: var(--ink); }
.more-body ul { padding-left: 20px; }
.more-body .grid, .more-body .logo-strip { margin-top: 16px; }
.more-img { margin: 16px 0; max-height: 300px; width: auto; border-radius: 12px; }

/* FAQ */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 24px; color: var(--faint); font-weight: 300; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary h3 { display: inline; font: 500 17px/1.45 var(--body); color: var(--ink); }
.faq-a { padding: 0 0 22px; color: var(--muted); }
.faq-a p + p { margin-top: 10px; }

/* Legal prose */
.legal { max-width: 780px; }
.legal > * + * { margin-top: 14px; }
.legal .sub-title { margin-top: 36px; font-size: 22px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 22px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
td { border: 1px solid var(--line); padding: 10px 12px; vertical-align: top; color: var(--muted); }

/* CTA */
.cta { padding: 40px 24px 112px; }
.cta-box {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background: radial-gradient(70% 120% at 50% 0%, rgba(80, 120, 255, .45) 0%, transparent 60%), #0b0b0d;
  border-radius: 28px; padding: 88px 32px; border: 1px solid rgba(255, 255, 255, .08);
}
.cta-box > * + * { margin-top: 0; }
.cta .section-title { color: #fff; }
.cta .lead { color: rgba(255, 255, 255, .72); margin: 0 auto 32px; }
.cta .hero-cta { justify-content: center; }
@media (max-width: 640px) { .cta { padding: 0 16px 72px; } .cta-box { padding: 56px 20px; border-radius: 22px; } }

/* Footer */
footer { background: #0b0b0d; color: #f5f5f7; padding: 72px 24px 32px; }
footer .container > * + * { margin-top: 0; }
.footer-content { max-width: 1200px; margin: 0 auto 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-section h4 { font: 600 12px/1 var(--body); color: #fff; margin-bottom: 18px; text-transform: uppercase; letter-spacing: .08em; }
.footer-section a, .footer-section p, .footer-section address { font-size: 14px; color: #9d9da6; line-height: 2; font-style: normal; }
.footer-section a:hover { color: #fff; }
.footer-section .cin { font-size: 12.5px; color: #85858f; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 28px; }
.footer-legal { font-size: 13px; color: #85858f; }
@media (max-width: 768px) { footer { padding: 56px 20px 28px; } .footer-content { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 640px) {
  .trust { padding: 22px 20px; }
  .trust-row { gap: 16px 14px; }
  .trust-item { flex-direction: column; align-items: flex-start; gap: 6px; }
  .trust-item .ic { width: 20px; height: 20px; }
  .work-meta h3 { font-size: 19px; }
}

/* capability console (hero visual) */
.console{border:1px solid var(--line,rgba(127,127,127,.22));border-radius:20px;background:linear-gradient(160deg,rgba(47,91,255,.10),rgba(127,127,127,.04) 45%,transparent);box-shadow:0 30px 80px -30px rgba(20,30,80,.45),inset 0 1px 0 rgba(255,255,255,.06);overflow:hidden;backdrop-filter:blur(6px)}
.console-bar{display:flex;align-items:center;gap:7px;padding:12px 16px;border-bottom:1px solid var(--line,rgba(127,127,127,.18));font-size:12px;opacity:.85}
.console-bar span{width:10px;height:10px;border-radius:50%;background:rgba(127,127,127,.35)}
.console-bar b{margin-left:10px;font-weight:500;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.02em}
.console-body{padding:10px 14px 14px}
.layer{display:flex;gap:14px;align-items:flex-start;padding:13px 10px;border-radius:12px;transition:background .25s}
.layer:hover{background:var(--accent-soft)}
.layer i{font-style:normal;font-family:ui-monospace,Menlo,monospace;font-size:12px;color:var(--accent);padding-top:3px;min-width:22px}
.layer h4{margin:0 0 3px;font-size:15.5px;font-weight:600;letter-spacing:-.01em}
.layer p{margin:0;font-size:13px;opacity:.68;line-height:1.45}
.console-foot{display:flex;align-items:center;gap:8px;margin-top:6px;padding:12px 10px 2px;border-top:1px dashed var(--line,rgba(127,127,127,.22));font-size:12px;opacity:.75;font-family:ui-monospace,Menlo,monospace}
.dot-live{width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.18)}
@media (max-width:720px){.layer p{display:none}.layer{padding:9px 6px}}

/* about: animated "atom" core graphic (hand-built SVG, no AI art) */
.atom-art{display:block;width:100%;max-width:520px;height:auto;margin:0 auto;font-family:var(--body)}
.atom-art .aa-dot{fill:var(--line-strong)}
.atom-art .aa-orbit{fill:none;stroke:var(--accent);stroke-opacity:.55;stroke-width:1.3;stroke-dasharray:3 5}
.atom-art .aa-electron{fill:var(--accent);filter:drop-shadow(0 0 6px rgba(47,91,255,.9))}
.atom-art .aa-link{stroke:var(--line-strong);stroke-width:1}
.atom-art .aa-packet{fill:var(--accent)}
.atom-art .aa-chip line{stroke:var(--accent);stroke-width:2.4;stroke-linecap:round}
.atom-art .aa-core{fill:var(--card);stroke:var(--accent);stroke-width:1.6}
.atom-art .aa-die{fill:var(--accent-soft);stroke:var(--line-strong)}
.atom-art .aa-code{fill:var(--accent);font:700 17px/1 ui-monospace,SFMono-Regular,Menlo,monospace}
.atom-art .aa-ring{fill:none;stroke:var(--accent);stroke-width:1.2}
.atom-art .aa-node rect{fill:var(--card);stroke:var(--line-strong)}
.atom-art .aa-node text{fill:var(--text);font-size:13px;font-weight:600}
.atom-art .aa-breathe{animation:aa-breathe 5s ease-in-out infinite;transform-origin:260px 210px;transform-box:view-box}
@keyframes aa-breathe{50%{opacity:.55;transform:scale(1.08)}}
@media (prefers-reduced-motion:reduce){.atom-art .aa-breathe{animation:none}}
