/* Day0 Solution — site styles. No external fonts or frameworks: fast first paint, no layout shift. */

:root {
  --paper: #fafaf7;
  --paper-2: #f1f0ea;
  --card: #ffffff;
  --ink: #0e1116;
  --ink-2: #3b4250;
  --muted: #5b6372;
  --line: #e2e1da;
  --accent: #c2410c;        /* text-safe orange: 5.2:1 on white */
  --accent-strong: #ff6a2b; /* decorative only */
  --accent-soft: #fff1e8;
  --ok: #15803d;
  --focus: #2563eb;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(14, 17, 22, .06), 0 8px 24px rgba(14, 17, 22, .06);
  --max: 1160px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang HK", "Microsoft JhengHei", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1116;
    --paper-2: #151a22;
    --card: #161b23;
    --ink: #f2f1ec;
    --ink-2: #c9ccd3;
    --muted: #9aa1ad;
    --line: #262d38;
    --accent: #ff8a57;
    --accent-soft: #2a1a12;
    --ok: #4ade80;
    --focus: #7aa2ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 .5em; font-weight: 750; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.25rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand svg { width: 34px; height: 34px; }
.brand b { font-weight: 800; color: var(--ink); }
.brand span { font-weight: 450; color: var(--ink-2); }

.nav-menu { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: .96rem; font-weight: 550; }
.nav-menu a:hover { color: var(--ink); background: var(--paper-2); }
.nav-menu a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.nav-menu .btn { display: inline-flex; min-height: 42px; padding: 8px 18px; border-radius: 999px; margin-left: 8px; color: #fff; background: #c2410c; }
.nav-menu .btn:hover { background: #9a3412; }
.nav-menu .btn:hover { color: #fff; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 20px 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { padding: 12px; font-size: 1.05rem; }
  .nav-menu .btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 1px solid transparent;
  font: 650 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: #c2410c; color: #fff; }
.btn-primary:hover { background: #9a3412; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font: 600 .8rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
  opacity: .6;
}
.hero-grid > *, .split > *, .grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 22px; font-size: .92rem; color: var(--muted); }
.hero-note a { color: var(--ink-2); font-weight: 600; }

.terminal {
  background: #0e1116; color: #e6e6e1; border-radius: var(--radius-lg); box-shadow: 0 30px 60px -20px rgba(14,17,22,.45);
  font: 400 .92rem/1.75 var(--mono); overflow: hidden; border: 1px solid #262d38;
}
.terminal-bar { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid #262d38; }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3b4250; }
.terminal-bar i:first-child { background: #ff6a2b; }
.terminal-body { padding: 18px 22px 22px; }
.terminal-body p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-dim { color: #8b93a1; }
.t-ok { color: #4ade80; }
.t-acc { color: #ff8a57; }
.t-cursor { display: inline-block; width: 9px; height: 1.1em; vertical-align: -3px; background: #ff8a57; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 900px) {
  .hero { padding: 56px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Proof strip ---------- */
.proof { padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof .container { display: flex; flex-wrap: wrap; gap: 14px 36px; align-items: center; justify-content: center; color: var(--muted); font-size: .95rem; }
.proof strong { color: var(--ink); font-weight: 650; }
.proof .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card p { color: var(--ink-2); margin-bottom: 0; }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 18px;
}
.card .icon svg { width: 22px; height: 22px; }
.card ul { margin: 14px 0 0; color: var(--ink-2); font-size: .96rem; }
.card ul li { margin-bottom: 4px; }

/* ---------- Products ---------- */
.product {
  display: grid; grid-template-rows: auto 1fr; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.product-visual { padding: 28px; background: var(--paper-2); border-bottom: 1px solid var(--line); min-height: 230px; display: grid; place-items: center; }
.product-body { padding: 28px 30px 30px; display: flex; flex-direction: column; }
.product-body h3 { font-size: 1.6rem; margin-bottom: 4px; }
.product-tag { font: 600 .78rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.product-body p { color: var(--ink-2); }
.product-body ul { color: var(--ink-2); margin: 0 0 22px; }
.product-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }

/* Mini UI mockups (decorative, aria-hidden) */
.mock { width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 18px; font-size: .85rem; }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); }
.mock-row:last-child { border-bottom: 0; }
.mock-head { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.mock-head strong { display: block; color: var(--ink); font-size: 1rem; }
.mock-head span { color: var(--muted); font-size: .8rem; }
.ring { width: 64px; height: 64px; flex: none; }
.pill { font: 600 .72rem/1 var(--mono); padding: 5px 8px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.pill.warn { background: #fef3c7; color: #92400e; }
.pill.bad { background: #fee2e2; color: #991b1b; }
.pill.good { background: #dcfce7; color: #166534; }
.mock-amount { font-family: var(--mono); color: var(--ink); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font: 700 .85rem/1 var(--mono); color: var(--accent); margin-bottom: 16px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-2); margin: 0; font-size: .97rem; }

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: 0 0 14px 34px; color: var(--ink-2); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23c2410c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center/16px no-repeat;
}
.checklist strong { color: var(--ink); }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat b { display: block; font-size: 2rem; letter-spacing: -0.03em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-weight: 650; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font: 400 1.6rem/1 var(--font); color: var(--accent);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 22px; color: var(--ink-2); }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 96px; }
.cta-box {
  background: #0e1116; color: #f2f1ec; border-radius: 28px; padding: clamp(36px, 6vw, 72px);
  display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden;
}
.cta-box::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  border: 36px solid rgba(255, 106, 43, .18); pointer-events: none;
}
.cta-box h2 { color: #fff; margin-bottom: 10px; }
.cta-box p { color: #c9ccd3; margin: 0; max-width: 56ch; }
.cta-box .btn-ghost { color: #fff; border-color: #3b4250; }
@media (max-width: 760px) { .cta-box { grid-template-columns: 1fr; } }

/* ---------- Page header (inner pages) ---------- */
.page-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); max-width: 20ch; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 22px; font-size: .9rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

.prose { max-width: 72ch; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-2); }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.avatar {
  width: 220px; height: 220px; border-radius: 28px; display: grid; place-items: center;
  background: linear-gradient(135deg, #0e1116, #2a2f3a); color: #fff; font: 800 4.5rem/1 var(--font); letter-spacing: -0.04em;
}
.avatar span { color: #ff8a57; }
@media (max-width: 720px) { .founder { grid-template-columns: 1fr; } .avatar { width: 140px; height: 140px; font-size: 3rem; border-radius: 22px; } }

/* ---------- Forms ---------- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-weight: 550; }
.form-status:empty { display: none; }
.form-status.ok { background: #dcfce7; color: #14532d; }
.form-status.err { background: #fee2e2; color: #7f1d1d; }
.form-fine { font-size: .88rem; color: var(--muted); margin-top: 14px; }

.contact-aside .card + .card { margin-top: 16px; }
.contact-aside h2 { font-size: 1.15rem; margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 36px; font-size: .95rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h2 { font-size: .8rem; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-about p { max-width: 36ch; margin-top: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.center-actions { justify-content: center; }
.notfound .code { font: 800 clamp(5rem, 16vw, 9rem)/1 var(--mono); letter-spacing: -0.05em; color: var(--accent); }
