:root {
  --bg: #0c0a09;
  --bg-alt: #13100d;
  --surface: #1a1511;
  --border: #2e251d;
  --text: #f5efe9;
  --muted: #b0a59b;
  --accent: #ff7a1a;
  --accent-2: #ffb547;
  --ok: #34d399;
  --radius: 14px;
  --wrap: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px;
  background: linear-gradient(135deg, #ff9a3c, #ff5a00);
  color: #fff; font-weight: 600; text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(255, 122, 26, .6); }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); box-shadow: none; }
.btn--sm { padding: .5em 1em; font-size: .9rem; }
.btn--lg { padding: 1em 1.8em; font-size: 1.1rem; word-break: break-all; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 10, 9, .8);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; line-height: 1.1; text-decoration: none; font-family: var(--display); font-size: 1.1rem; font-weight: 600; }
.brand b { color: var(--muted); font-weight: 500; }
.brand i { color: var(--accent); font-style: normal; }
.nav__links { display: none; list-style: none; margin: 0; padding: 0; gap: 28px; }
.nav__links a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.nav__links a:hover { color: var(--text); }
@media (min-width: 820px) { .nav__links { display: flex; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 88px; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  opacity: .5;
}
.hero::after {
  content: ""; position: absolute; width: 640px; height: 640px; right: -200px; top: -260px;
  background: radial-gradient(circle, rgba(255, 122, 26, .25), transparent 60%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 860px; }
.hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.25rem); }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 640px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 40px; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.hero__tags li { border: 1px solid var(--border); background: var(--surface); color: var(--muted); padding: 4px 12px; border-radius: 999px; font-size: .85rem; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--accent-2); margin-bottom: 16px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52, 211, 153, .15); }

/* Sections */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section__head { max-width: 640px; margin-bottom: 48px; }
.section__head p:not(.eyebrow) { color: var(--muted); }

/* Service cards */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: #4a3a2c; transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; }
.card--accent { border-color: rgba(255, 122, 26, .45); background: linear-gradient(160deg, rgba(255, 122, 26, .12), var(--surface) 60%); }
.card__icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 122, 26, .12); margin-bottom: 18px; }
.card__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* AI Lab */
.lab { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .lab { grid-template-columns: 1.1fr 1fr; } }
.lab__copy > p:not(.eyebrow) { color: var(--muted); }
.badge { background: rgba(52, 211, 153, .12); color: #34d399; border: 1px solid rgba(52, 211, 153, .35); padding: 2px 8px; border-radius: 999px; letter-spacing: .06em; }
.checks { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 181, 71, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffb547' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }

.term { background: #0e0b09; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.term__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.term__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a2f26; }
.term__bar span { margin-left: 8px; font: 500 .8rem ui-monospace, "Cascadia Code", Menlo, monospace; color: var(--muted); }
.roadmap { list-style: none; margin: 0; padding: 24px; display: grid; gap: 4px; }
.roadmap li { position: relative; padding: 0 0 20px 32px; }
.roadmap li:last-child { padding-bottom: 0; }
.roadmap li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #4a3d31; background: #0e0b09; }
.roadmap li:not(:last-child)::after { content: ""; position: absolute; left: 9px; top: 22px; bottom: 2px; width: 2px; background: var(--border); }
.roadmap b { display: block; font-family: var(--display); }
.roadmap span { color: var(--muted); font-size: .92rem; }
.roadmap .done::before { background: var(--ok); border-color: var(--ok); }
.roadmap .active::before { border-color: var(--accent-2); background: var(--accent-2); box-shadow: 0 0 0 5px rgba(255, 181, 71, .18); animation: pulse 2s ease-in-out infinite; }
.roadmap .active b::after { content: "  ← now"; color: var(--accent-2); font: 500 .8rem ui-monospace, Menlo, monospace; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(255, 181, 71, 0); } }
@media (prefers-reduced-motion: reduce) { .roadmap .active::before { animation: none; } }

/* Process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.steps li { border-top: 2px solid var(--border); padding-top: 20px; }
.steps li:first-child { border-top-color: var(--accent); }
.steps__n { font: 600 .85rem ui-monospace, Menlo, monospace; color: var(--accent-2); display: block; margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; }

/* Company */
.company { display: grid; gap: 40px; }
@media (min-width: 900px) { .company { grid-template-columns: 1fr 1.3fr; align-items: start; } }
.company p:not(.eyebrow) { color: var(--muted); }
.facts { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.facts div { display: grid; gap: 4px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.facts div:last-child { border-bottom: 0; }
@media (min-width: 560px) { .facts div { grid-template-columns: 180px 1fr; gap: 16px; } }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; font-weight: 500; }

/* Contact */
.contact { text-align: center; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 80% at 50% 100%, rgba(255, 122, 26, .18), transparent 70%); pointer-events: none; }
.contact__inner { position: relative; }
.contact p { color: var(--muted); margin-bottom: 28px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: .88rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer p { margin: 0; }
