/* Mitta Labs — themitta.com */
:root {
  --ink: #0B1220;
  --ink-2: #141D2E;
  --ink-3: #1E293B;
  --paper: #FAFAF7;
  --paper-2: #F1F1EC;
  --line: #E4E4DD;
  --line-dark: rgba(255, 255, 255, 0.10);
  --text: #0B1220;
  --muted: #5B6473;
  --muted-2: #8A93A3;
  --muted-dark: #AEB6C4;
  --accent: #F4A21C;
  --accent-deep: #D9880A;
  --accent-soft: rgba(244, 162, 28, 0.14);
  --slate: #6B7A90;
  --slate-soft: rgba(107, 122, 144, 0.18);
  --ok: #2EA36B;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1160px;
  --font-head: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
p { margin: 0; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow { color: var(--accent-deep); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.dark .eyebrow { color: var(--accent); }
.muted { color: var(--muted); }
.dark .muted { color: var(--muted-dark); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #FFB335; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); }
.dark .btn-ghost, .hero .btn-ghost, .contact-box .btn-ghost { color: #fff; border-color: var(--line-dark); }
.dark .btn-ghost:hover, .hero .btn-ghost:hover, .contact-box .btn-ghost:hover { border-color: #fff; }
.btn svg { width: 16px; height: 16px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.brand span { font-weight: 500; color: var(--muted); }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(244,162,28,0.18), transparent 60%),
    radial-gradient(700px 500px at 5% 100%, rgba(107,122,144,0.22), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; padding: 96px 0 88px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: 19px; line-height: 1.55; color: var(--muted-dark); margin: 24px 0 34px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 28px; margin-top: 44px; flex-wrap: wrap; }
.hero-meta div { border-left: 2px solid var(--accent); padding-left: 12px; }
.hero-meta strong { display: block; font-family: var(--font-head); font-size: 22px; font-weight: 800; }
.hero-meta small { color: var(--muted-dark); font-size: 13px; }

/* Score visual */
.score-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--line-dark); border-radius: 22px; padding: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
.score-card .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; color: var(--muted-dark); }
.score-row { margin-bottom: 18px; }
.score-row .label { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.score-row .label b { font-family: var(--font-head); font-size: 20px; }
.bar { height: 14px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; position: relative; }
.bar i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.bar .llm { background: var(--slate); }
.bar .stack { background: linear-gradient(90deg, var(--slate) 0 55%, var(--accent) 55% 100%); }
.bar .tick { position: absolute; top: -4px; bottom: -4px; width: 2px; background: rgba(255,255,255,0.35); left: 55%; }
.score-legend { display: flex; gap: 18px; font-size: 13px; color: var(--muted-dark); margin-top: 8px; flex-wrap: wrap; }
.score-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.score-card .note { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-dark); font-size: 13.5px; color: var(--muted-dark); line-height: 1.5; }

/* Sections */
section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; }
.section-head p { font-size: 17.5px; color: var(--muted); margin-top: 16px; }
.dark { background: var(--ink); color: #fff; }
.dark .section-head p { color: var(--muted-dark); }
.alt { background: var(--paper-2); }

/* Thesis */
.thesis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.tile .num { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); letter-spacing: 0.1em; }
.tile h3 { font-size: 22px; margin: 14px 0 10px; }
.tile p { color: var(--muted); font-size: 15px; }
.tile .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; }
.icon.large { background: var(--slate-soft); color: var(--slate); }
.icon.small { background: var(--accent-soft); color: var(--accent-deep); }
.icon.vertical { background: rgba(46,163,107,0.14); color: var(--ok); }
.tile .icon svg { width: 22px; height: 22px; }
.formula {
  margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  font-family: var(--font-head); font-weight: 800; font-size: clamp(18px, 2.6vw, 28px); letter-spacing: -0.02em;
  padding: 26px; border-radius: var(--radius); background: var(--ink); color: #fff;
}
.formula .op { color: var(--muted-dark); font-weight: 500; }
.formula .pill { padding: 6px 14px; border-radius: 999px; }
.formula .p-large { background: var(--slate-soft); color: #D7DEE8; }
.formula .p-small { background: var(--accent-soft); color: var(--accent); }
.formula .p-vert { background: rgba(46,163,107,0.18); color: #6FD59F; }
.formula .result { color: var(--accent); }

/* Method / pipeline */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { background: rgba(255,255,255,0.04); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-mono); color: var(--accent); font-size: 12px; letter-spacing: .1em; }
.step h3 { font-size: 18px; margin: 12px 0 8px; }
.step p { font-size: 14.5px; color: var(--muted-dark); }
.step .tag { display: inline-block; margin-top: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,0.06); color: var(--muted-dark); }
.step .tag.small { background: var(--accent-soft); color: var(--accent); }
.step .tag.large { background: var(--slate-soft); color: #D7DEE8; }
.method-quote { margin-top: 44px; padding: 28px 32px; border-left: 3px solid var(--accent); background: rgba(255,255,255,0.03); border-radius: 0 var(--radius) var(--radius) 0; font-size: 18px; line-height: 1.55; color: #E6E9EF; max-width: 860px; }
.method-quote b { color: #fff; }

/* Products */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.product:hover { transform: translateY(-3px); box-shadow: 0 18px 50px rgba(11,18,32,0.10); border-color: #D6D6CE; }
.product .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.product .glyph { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 20px; color: #fff; }
.product .status { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; background: rgba(46,163,107,0.12); color: var(--ok); }
.product h3 { font-size: 22px; }
.product .domain { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted-2); margin-top: 2px; }
.product .desc { color: var(--muted); font-size: 15px; }
.product .stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.product .stack span { font-size: 12px; padding: 4px 9px; border-radius: 6px; background: var(--paper-2); color: var(--muted); border: 1px solid var(--line); }
.product .stack span.hi { background: var(--accent-soft); color: var(--accent-deep); border-color: transparent; }
.product .link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--text); }
.product .link svg { width: 14px; height: 14px; transition: transform .15s ease; }
.product:hover .link svg { transform: translate(2px, -2px); }
.g-chaptrio { background: #2F6BFF; }
.g-certtwin { background: #0F766E; }
.g-kaigaola { background: #E11D48; }
.g-memorial { background: #6D5BD0; }

/* Why it works / principles */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 48px; }
.principle { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.principle .n { font-family: var(--font-head); font-weight: 800; font-size: 28px; color: var(--accent); line-height: 1; }
.principle h3 { font-size: 20px; margin-bottom: 8px; }
.principle p { color: var(--muted); font-size: 15px; }

/* Partners */
.partners .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.ask-list { display: grid; gap: 14px; margin-top: 8px; }
.ask { display: flex; gap: 14px; padding: 18px 20px; background: rgba(255,255,255,0.04); border: 1px solid var(--line-dark); border-radius: var(--radius-sm); }
.ask .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-top: 8px; flex: none; }
.ask h4 { font-size: 16px; margin-bottom: 4px; }
.ask p { font-size: 14px; color: var(--muted-dark); }
.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fact { padding: 20px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.04); border: 1px solid var(--line-dark); }
.fact b { display: block; font-family: var(--font-head); font-size: 26px; font-weight: 800; }
.fact small { color: var(--muted-dark); font-size: 13px; }

/* Contact */
.contact-box { background: var(--ink); color: #fff; border-radius: 24px; padding: 56px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.contact-box::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 360px; height: 360px; border-radius: 80px; border: 28px solid rgba(255,255,255,0.06); transform: rotate(12deg); }
.contact-box::before { content: ""; position: absolute; right: 60px; bottom: -40px; width: 180px; height: 180px; border-radius: 44px; background: rgba(244,162,28,0.35); transform: rotate(12deg); }
.contact-box h2 { font-size: clamp(28px, 3.4vw, 40px); }
.contact-box p { color: var(--muted-dark); margin-top: 14px; font-size: 17px; max-width: 520px; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.contact-actions .btn { justify-content: center; }
.contact-actions small { color: var(--muted-dark); text-align: center; font-size: 13px; }

/* Footer */
footer { padding: 40px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
footer .links a:hover { color: var(--text); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding: 72px 0 64px; }
  .thesis-grid { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .partners .wrap { grid-template-columns: 1fr; }
  .contact-box { grid-template-columns: 1fr; padding: 40px; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--paper); padding: 20px 24px; border-bottom: 1px solid var(--line); gap: 16px; }
  section { padding: 64px 0; }
  .products, .principles, .pipeline, .fact-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 18px; }
  .contact-box::after, .contact-box::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .bar i { transition: none; }
}

/* Measured case (Method section) */
.case { margin-top: 20px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: rgba(255,255,255,0.03); display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; padding: 28px 32px; align-items: center; }
.case-head h3 { font-size: 22px; margin-bottom: 10px; }
.case-head p { font-size: 14.5px; color: var(--muted-dark); }
.case-grid { display: grid; gap: 12px; }
.stat { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--ink-2); border: 1px solid var(--line-dark); }
.stat small { color: var(--muted-dark); font-size: 13.5px; }
.stat b { font-family: var(--font-head); font-size: 22px; font-weight: 800; white-space: nowrap; display: inline-flex; align-items: baseline; gap: 10px; }
.stat .from { color: var(--slate); }
.stat .arrow { color: var(--muted-2); font-weight: 500; font-size: 18px; }
.stat .to { color: var(--accent); }
@media (max-width: 1000px) { .case { grid-template-columns: 1fr; } }
