/* Codec website — tokens from the Codec design system (dark first, light via prefers-color-scheme). */
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg-000: #08090C; --bg-100: #0E1117; --bg-200: #151A22; --bg-300: #1C222C;
  --border-subtle: rgba(255, 255, 255, 0.06); --border: rgba(255, 255, 255, 0.10); --border-strong: rgba(255, 255, 255, 0.16); --border-control: #646D7D;
  --fg-100: #F4F6F9; --fg-200: #A3ACBA; --fg-300: #838C9B; --fg-400: #5A6372;
  --cyan: #00BED2; --accent-text: #3DD5E5; --accent-soft: rgba(0, 190, 210, 0.12); --glow: rgba(0, 190, 210, 0.16);
  --primary-bg: #00BED2; --primary-bg-hover: #2FD0E1; --primary-fg: #061F3E; --focus-ring: #00BED2;
  --success: #4CC38A; --danger: #F2665E;
  --shadow-primary: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 1px 2px rgba(0, 0, 0, 0.40);
  --iso-top: var(--bg-200);
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg-000: #FFFFFF; --bg-100: #F6F8FA; --bg-200: #FFFFFF; --bg-300: #EEF1F5;
    --border-subtle: rgba(6, 31, 62, 0.07); --border: rgba(6, 31, 62, 0.12); --border-strong: rgba(6, 31, 62, 0.20); --border-control: #7A879A;
    --fg-100: #061F3E; --fg-200: #46566C; --fg-300: #5A687D; --fg-400: #8592A3;
    --accent-text: #007A87; --accent-soft: rgba(0, 190, 210, 0.10); --glow: rgba(0, 190, 210, 0.14);
    --primary-bg: #061F3E; --primary-bg-hover: #0C2C55; --primary-fg: #FFFFFF; --focus-ring: #007A87;
    --success: #1A7F4E; --danger: #C9302C;
    --shadow-primary: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 2px rgba(6, 31, 62, 0.24);
    --iso-top: var(--bg-300);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg-000); color: var(--fg-100); font: 400 15px/24px var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
img, svg { max-width: 100%; }

/* type */
.display-l { font-size: 52px; line-height: 56px; font-weight: 560; letter-spacing: -0.028em; }
.title-1 { font-size: 32px; line-height: 38px; font-weight: 560; letter-spacing: -0.02em; }
.title-3 { font-size: 18px; line-height: 24px; font-weight: 560; letter-spacing: -0.01em; }
.body-lg { font-size: 18px; line-height: 28px; letter-spacing: -0.005em; }
.body-sm { font-size: 13px; line-height: 20px; }
.label { font-size: 13px; line-height: 16px; font-weight: 510; }
.caption { font-size: 12px; line-height: 16px; font-weight: 510; letter-spacing: 0.01em; }
.muted { color: var(--fg-300); }
.soft { color: var(--fg-200); }
h1, h2, h3, p { margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
.grad { background: linear-gradient(180deg, var(--fg-100) 45%, var(--fg-200)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* layout */
.col { max-width: 1120px; margin: 0 auto; padding-inline: max(24px, env(safe-area-inset-left, 0px)); }
.section { padding-bottom: 128px; }
.stack { display: flex; flex-direction: column; }
.head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }

/* nav */
.navwrap { position: sticky; top: 0; z-index: 10; padding-top: 16px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 52px; padding: 0 8px 0 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--bg-100) 85%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.nav-home { display: flex; border-radius: var(--radius-sm); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: var(--radius-md); color: var(--fg-200); text-decoration: none; font-size: 13px; font-weight: 510; transition: background .12s ease-out, color .12s ease-out; }
.nav-links a:hover { background: var(--bg-300); color: var(--fg-100); }
.logo-word { fill: var(--fg-100); }
.logo-mark { fill: var(--cyan); }

/* button */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 32px; padding: 0 12px; border: 1px solid transparent; border-radius: var(--radius-md); font: 510 13px/1 var(--font-sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .12s ease-out; }
.btn-sm { height: 28px; }
.btn-lg { height: 40px; padding: 0 16px; font-size: 15px; }
.btn-primary { background: var(--primary-bg); color: var(--primary-fg); box-shadow: var(--shadow-primary); }
.btn-primary:hover { background: var(--primary-bg-hover); }
.btn svg { transition: transform .12s ease-out; }
.btn:hover svg { transform: translateX(2px); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; padding-block: 112px 128px; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }

/* services */
.svc { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-100); }
.svc .icon { width: 72px; height: 48px; margin-bottom: 8px; }
.svc-link { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; color: var(--accent-text); text-decoration: none; }
.svc-link:hover { color: var(--fg-100); }
.svc-more { margin-top: 24px; }
.svc-more strong { color: var(--fg-100); font-weight: 400; }

/* cases */
.case { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-100); }
.spot { display: flex; align-items: flex-end; justify-content: center; height: 200px; padding: 24px; border-bottom: 1px solid var(--border-subtle); }
.spot .art { width: auto; height: 100%; max-width: 100%; }
.case-body { display: flex; flex-direction: column; gap: 8px; padding: 24px; flex-grow: 1; }
.case-result { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border-subtle); display: flex; gap: 8px; align-items: center; color: var(--accent-text); }

/* steps */
.step { display: flex; flex-direction: column; gap: 12px; }
.step .icon { width: 60px; height: 40px; }
.step h3 { margin-top: 8px; }

/* contact */
.contact-card { width: 100%; max-width: 480px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-100); }
.contact-card p { margin: 0; }

/* footer */
.footer { padding-bottom: 48px; }
.footer-in { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; border-top: 1px solid var(--border-subtle); }

/* isometric illustrations */
.art { display: block; width: 100%; height: auto; overflow: visible; }
.art * { vector-effect: non-scaling-stroke; }
.art .f { fill: var(--bg-000); stroke: var(--fg-300); stroke-width: 1.5; stroke-linejoin: round; }
.art .t { fill: var(--iso-top); stroke: var(--fg-300); stroke-width: 1.5; stroke-linejoin: round; }
.art .a1 { fill: #00BED2; stroke: #00BED2; stroke-width: 1; stroke-linejoin: round; }
.art .a2 { fill: #009DB0; stroke: #009DB0; stroke-width: 1; stroke-linejoin: round; }
.art .a3 { fill: #007F8F; stroke: #007F8F; stroke-width: 1; stroke-linejoin: round; }
.art .ghost { fill: none; stroke: var(--fg-400); stroke-width: 1.5; stroke-dasharray: 4 4; }
.art .ln { fill: none; stroke: var(--fg-300); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.art .ui { stroke: var(--fg-400); stroke-width: 1.5; stroke-linecap: round; }
.art .onacc .ui { stroke: #061F3E; stroke-opacity: .45; }
.art .dash { stroke: var(--cyan); stroke-width: 1.25; stroke-dasharray: 3 4; }
.art .grid { stroke: var(--border); stroke-width: 1; }
.art .dimln { stroke: var(--fg-400); stroke-width: 1; }
.art .lbl { font: 500 11px var(--font-mono); fill: var(--fg-300); }
.art .check { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon { display: block; }

@media (max-width: 900px) {
  .hero, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { display: none; }
  .display-l { font-size: 40px; line-height: 44px; }
  .hero { padding-block: 72px 96px; }
  .section { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
