/* AI Accelerator Hub: calm, aligned, neat. */

:root {
  --bg: #fafaf7;
  --bg-alt: #f2f1ec;
  --surface: #ffffff;
  --text: #16161a;
  --muted: #5e5e66;
  --subtle: #8a8a92;
  --line: #e6e4de;
  --line-strong: #cfccc3;
  --accent: #4f46e5;
  --accent-ink: #3730a3;
  --btn-bg: #16161a;
  --btn-text: #fafaf7;
  --btn2-bg: rgba(22, 22, 26, .05);
  --btn2-bg-hover: rgba(22, 22, 26, .09);
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-display: clamp(2.75rem, 1.6rem + 4.2vw, 5rem);
  --fs-h1: clamp(2.5rem, 1.7rem + 3vw, 4rem);
  --fs-h2: clamp(2rem, 1.5rem + 1.8vw, 3rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.125rem, 1rem + .4vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-label: .75rem;

  --max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(80px, 10vw, 136px);
  --radius: 14px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-std: cubic-bezier(.4, 0, .2, 1);
  --dur-1: 150ms;
  --dur-2: 250ms;
  --dur-3: 600ms;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e10;
    --bg-alt: #141416;
    --surface: #18181b;
    --text: #ededea;
    --muted: #a1a1a8;
    --subtle: #75757d;
    --line: #26262a;
    --line-strong: #3a3a41;
    --accent: #8b85ff;
    --accent-ink: #a5a0ff;
    --btn-bg: #ededea;
    --btn-text: #0e0e10;
    --btn2-bg: rgba(237, 237, 234, .07);
    --btn2-bg-hover: rgba(237, 237, 234, .12);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0e10;
  --bg-alt: #141416;
  --surface: #18181b;
  --text: #ededea;
  --muted: #a1a1a8;
  --subtle: #75757d;
  --line: #26262a;
  --line-strong: #3a3a41;
  --accent: #8b85ff;
  --accent-ink: #a5a0ff;
  --btn-bg: #ededea;
  --btn-text: #0e0e10;
  --btn2-bg: rgba(237, 237, 234, .07);
  --btn2-bg-hover: rgba(237, 237, 234, .12);
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a, button, input, select, textarea, .card {
  transition: color var(--dur-1) var(--ease-std), background-color var(--dur-1) var(--ease-std),
    border-color var(--dur-2) var(--ease-std), box-shadow var(--dur-2) var(--ease-std);
}
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 8px 14px; border-radius: 8px; background: var(--btn-bg); color: var(--btn-text);
}
.skip-link:focus { top: 12px; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.kicker::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2) var(--ease-std);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.brand img { width: 26px; height: 26px; transition: transform var(--dur-2) var(--ease-out); }
.brand:hover img { transform: rotate(-8deg); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 28px; }
.nav ul a { font-size: var(--fs-small); color: var(--muted); }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--text); }
@media (max-width: 720px) {
  .nav ul { display: none; }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border: 0; border-radius: 10px;
  font: 500 var(--fs-small)/1 var(--font); cursor: pointer; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-sm { height: 36px; padding: 0 14px; font-size: .875rem; border-radius: 8px; }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover { background: color-mix(in srgb, var(--btn-bg) 84%, var(--bg)); }
.btn-ghost { background: var(--btn2-bg); color: var(--text); }
.btn-ghost:hover { background: var(--btn2-bg-hover); }
.arrow { display: inline-block; transition: transform var(--dur-2) var(--ease-out); }
.btn:hover .arrow, .link-u:hover .arrow { transform: translateX(3px); }

.link-u {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 500;
  background: linear-gradient(currentColor, currentColor) left bottom / 0% 1px no-repeat;
  transition: background-size var(--dur-2) var(--ease-out), color var(--dur-1) var(--ease-std);
  padding-bottom: 2px;
}
.link-u:hover { background-size: 100% 1px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(72px, 11vw, 152px) 0 clamp(64px, 8vw, 112px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--line-strong);
  -webkit-mask-image: url("zellige.svg"), radial-gradient(ellipse 60% 85% at 82% 8%, #000 10%, transparent 72%);
  -webkit-mask-size: 128px 128px, 100% 100%;
  -webkit-mask-position: right -32px top -32px, 0 0;
  -webkit-mask-composite: source-in;
  mask-image: url("zellige.svg"), radial-gradient(ellipse 60% 85% at 82% 8%, #000 10%, transparent 72%);
  mask-size: 128px 128px, 100% 100%;
  mask-position: right -32px top -32px, 0 0;
  mask-composite: intersect;
  opacity: .9;
}
.hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 560px; height: 560px; right: -120px; top: -220px; border-radius: 50%;
  background: var(--accent); opacity: .07; filter: blur(90px);
}
.hero-inner { max-width: 820px; }
.hero h1 {
  margin-top: 24px; font-size: var(--fs-display); line-height: 1.02; letter-spacing: -.035em;
}
.hero h1 em { font-style: normal; color: var(--subtle); }
.lead { margin-top: 24px; max-width: 60ch; font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 40px; }
.proof {
  display: flex; flex-wrap: wrap; margin-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--line);
}
.proof li {
  flex: 1 1 200px; padding: 18px 24px 0 0;
  font-family: var(--mono); font-size: .8125rem; color: var(--muted);
}
.proof li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.proof strong { display: block; font-family: var(--font); font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em; color: var(--text); margin-bottom: 2px; }
@media (max-width: 640px) {
  .proof li { flex-basis: 100%; padding: 16px 0; }
  .proof li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section > .container { border-top: 1px solid var(--line); padding-top: 28px; }
.section-alt { background: var(--bg-alt); }
.section-alt > .container { border-top-color: var(--line-strong); }
.section-head {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 16px;
  margin-bottom: 56px;
}
.section-head .kicker { grid-column: 1 / -1; }
.section-head h2 { grid-column: 1 / span 7; font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.025em; }
.section-head p { grid-column: 8 / -1; align-self: end; color: var(--muted); max-width: 46ch; }
@media (max-width: 900px) {
  .section-head h2, .section-head p { grid-column: 1 / -1; }
}

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.card .num { font-family: var(--mono); font-size: var(--fs-label); color: var(--subtle); letter-spacing: .04em; }
.card h3, .h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -.01em; font-weight: 500; }
.service h3 { margin-top: 40px; }
.service > p { margin-top: 10px; color: var(--muted); }
.service ul { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.service li { font-size: var(--fs-small); color: var(--muted); display: flex; gap: 10px; align-items: baseline; }
.service li::before { content: "—"; color: var(--subtle); }
.service:hover { border-color: var(--line-strong); }
.service .corner {
  position: absolute; top: 24px; right: 24px; color: var(--subtle); opacity: .5;
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-2) var(--ease-out), color var(--dur-1);
}
.service:hover .corner { opacity: 1; color: var(--accent); transform: translate(2px, -2px); }

/* Steps: text columns on a hairline */
.steps { counter-reset: none; }
.step { position: relative; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.step::before {
  content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--text);
  transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-1);
}
.step:hover::before { transform: scale(1.5); background: var(--accent); }
.step .num { font-family: var(--mono); font-size: var(--fs-label); color: var(--subtle); letter-spacing: .04em; }
.step h3 { margin-top: 12px; font-size: 1.5rem; letter-spacing: -.02em; }
.step p { margin-top: 10px; color: var(--muted); max-width: 36ch; }

/* App tiles */
.app { padding: 12px; display: flex; flex-direction: column; }
.app:hover { border-color: var(--line-strong); }
.app-art {
  aspect-ratio: 4 / 3; border-radius: 9px; background: var(--bg-alt);
  display: grid; place-items: center; overflow: hidden;
  transition: background-color var(--dur-2) var(--ease-std);
}
.app:hover .app-art { background: color-mix(in srgb, var(--bg-alt) 94%, var(--text)); }
.app-mark {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 600; font-size: 1.5rem; color: #fff; letter-spacing: -.02em;
  transition: transform 400ms var(--ease-out);
}
.app:hover .app-mark { transform: scale(1.06) rotate(-3deg); }
.a1 { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.a2 { background: linear-gradient(135deg, #06b6d4, #0f766e); }
.a3 { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.a4 { background: linear-gradient(135deg, #60a5fa, #4f46e5); }
.app-body { padding: 18px 8px 8px; }
.app h3 { font-size: 1.0625rem; }
.app p { margin-top: 4px; font-size: var(--fs-small); color: var(--muted); }
.app .meta { margin-top: 14px; font-family: var(--mono); font-size: .75rem; color: var(--subtle); }

/* Closing CTA */
.cta {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 48px;
}
.cta h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.025em; }
.cta p { margin-top: 14px; color: var(--muted); max-width: 52ch; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Inner pages ---------- */
.page-hero { padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 5vw, 64px); }
.page-hero h1 { margin-top: 20px; font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -.03em; }
.page-hero p { margin-top: 20px; max-width: 58ch; font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); }

.contact-grid {
  display: grid; grid-template-columns: 5fr 7fr; gap: 24px; align-items: start;
  padding-bottom: var(--section);
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid .card > p { margin-top: 10px; color: var(--muted); }
.email-big {
  display: inline-block; margin-top: 20px; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 500; letter-spacing: -.02em; word-break: break-word;
  background: linear-gradient(currentColor, currentColor) left bottom / 0% 1px no-repeat;
  transition: background-size var(--dur-2) var(--ease-out), color var(--dur-1);
}
.email-big:hover { background-size: 100% 1px; color: var(--accent-ink); }
.meta-list { margin-top: 28px; border-top: 1px solid var(--line); }
.meta-list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); color: var(--muted); }
.meta-list strong {
  display: block; margin-bottom: 2px; font-family: var(--mono); font-size: var(--fs-label);
  font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle);
}

.form { display: grid; gap: 18px; margin-top: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: .875rem; font-weight: 500; }
.hint { color: var(--subtle); font-weight: 400; }
input, select, textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--text); font: inherit; font-size: var(--fs-small);
}
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
textarea { min-height: 150px; resize: vertical; }
.form .btn { justify-self: start; }
.form-note { font-size: .8125rem; color: var(--subtle); }

.prose { padding-bottom: var(--section); }
.prose .updated { font-family: var(--mono); font-size: .8125rem; color: var(--subtle); }
.prose h2 { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 1.375rem; letter-spacing: -.015em; }
.prose p, .prose ul { margin-top: 14px; color: var(--muted); }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose li { margin-top: 6px; }
.prose li::marker { color: var(--subtle); }
.prose strong { color: var(--text); font-weight: 500; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent); color: var(--accent-ink); }

.notfound { min-height: 60vh; display: grid; align-items: center; }
.notfound .code { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .08em; color: var(--subtle); }
.notfound .btn { margin-top: 32px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: var(--fs-small); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-top .brand { font-size: 1rem; }
.footer-top p { margin-top: 10px; color: var(--muted); max-width: 36ch; }
.footer-cols { display: flex; gap: 64px; }
.footer-cols h2 { font-family: var(--mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }
.footer-cols ul { margin-top: 14px; display: grid; gap: 10px; }
.footer-cols a { color: var(--muted); }
.footer-cols a:hover { color: var(--text); }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; color: var(--subtle); font-size: .8125rem; }

/* ---------- Motion ---------- */
.js .reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity 450ms ease-out, transform var(--dur-3) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero .reveal { transition-duration: 500ms, 800ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; transition-delay: 0ms !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.d1 { --i: 1; } .d2 { --i: 2; } .d3 { --i: 3; } .d4 { --i: 4; }

/* Tweaks */
.hero { padding-bottom: clamp(32px, 4vw, 56px); }
@media (max-width: 520px) {
  .app { flex-direction: row; align-items: center; gap: 4px; }
  .app-art { aspect-ratio: auto; width: 80px; height: 80px; flex: none; }
  .app-mark { width: 44px; height: 44px; border-radius: 11px; font-size: 1.2rem; }
  .app-body { padding: 4px 8px 4px 12px; }
  .app .meta { margin-top: 8px; }
}
.brand-sub { color: var(--muted); font-weight: 500; }
.contact-single { max-width: 760px; padding-bottom: var(--section); }
.contact-single .card > p { margin-top: 10px; color: var(--muted); }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 20px; }
.email-row .email-big { margin-top: 0; }
[hidden] { display: none !important; }

/* Logo (inline SVG, follows the theme) */
.logo { width: 26px; height: 26px; flex: none; transition: transform var(--dur-2) var(--ease-out); }
.site-footer .logo { width: 22px; height: 22px; }
.brand:hover .logo { transform: rotate(-8deg); }
.logo .bg { fill: var(--text); }
.logo .fg { stroke: var(--bg); }
.logo .dot { fill: var(--accent); }

/* Theme toggle */
.theme-toggle {
  display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer;
}
.theme-toggle:hover { color: var(--text); border-color: var(--line-strong); background: var(--btn2-bg); }
.theme-toggle svg { width: 18px; height: 18px; transition: transform 400ms var(--ease-out); }
.theme-toggle:hover svg { transform: rotate(20deg); }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.nav { gap: 20px; }
.nav ul { margin-right: 8px; }
@media (max-width: 480px) { .nav .btn { display: none; } }
