/* LevelKiln: plain CSS, no build step */
:root {
  --bg: #ffffff;
  --bg-2: #f5f7fb;
  --surface: #ffffff;
  --text: #0f1420;
  --muted: #586174;
  --line: #e3e7ef;
  --accent: #2f5bea;
  --accent-2: #6f8cff;
  --accent-soft: #edf1ff;
  --accent-ink: #ffffff;
  --ok: #1f9d6b;
  --shadow: 0 1px 2px rgba(15, 20, 32, .04), 0 8px 24px rgba(15, 20, 32, .06);
  --radius: 16px;
  --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0e15; --bg-2: #11151f; --surface: #151a26; --text: #eef1f7; --muted: #9aa3b5;
    --line: #232a3a; --accent: #5b7dff; --accent-2: #8ea3ff; --accent-soft: #1a2240; --accent-ink: #ffffff;
    --ok: #3cc58f; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0e15; --bg-2: #11151f; --surface: #151a26; --text: #eef1f7; --muted: #9aa3b5;
  --line: #232a3a; --accent: #5b7dff; --accent-2: #8ea3ff; --accent-soft: #1a2240; --accent-ink: #ffffff;
  --ok: #3cc58f; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; 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; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 18px; color: var(--text); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: var(--text); background: var(--bg-2); text-decoration: none; }
.nav .nav-cta { background: var(--accent); color: var(--accent-ink); margin-left: 6px; }
.nav .nav-cta:hover { background: var(--accent); color: var(--accent-ink); filter: brightness(1.08); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.icon-btn:hover { background: var(--bg-2); }
.menu-btn { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 12px; font-weight: 650; font-size: 15px; border: 1px solid transparent; transition: transform .15s ease, filter .15s ease, background .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-2); }

/* Sections */
section { padding: 96px 0; }
.alt { background: var(--bg-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
h1, h2, h3 { letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(36px, 6.4vw, 66px); line-height: 1.04; font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.12; font-weight: 780; margin-bottom: 14px; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 700; margin-bottom: 6px; }
p { margin: 0 0 14px; }
.lead { font-size: clamp(17px, 2.1vw, 20px); color: var(--muted); max-width: 62ch; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.grad { background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Hero */
.hero { position: relative; padding: 88px 0 96px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 18%, transparent), transparent); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 30px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; color: var(--muted); font-size: 14px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* Hero pipeline card (illustration of the process, not live data) */
.pipeline { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 18px; }
.pipeline-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.lights { display: flex; gap: 6px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.pipe-step { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 12px; }
.pipe-step + .pipe-step { margin-top: 4px; }
.pipe-step .n { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--accent-soft); color: var(--accent); }
.pipe-step b { display: block; font-size: 15px; }
.pipe-step small { color: var(--muted); font-size: 13px; }
.pipe-step .st { font-size: 12px; font-weight: 700; color: var(--ok); opacity: 0; }
.pipeline.run .pipe-step { animation: stepOn 10s infinite; }
.pipeline.run .pipe-step .st { animation: stOn 10s infinite; }
.pipeline.run .pipe-step:nth-child(2), .pipeline.run .pipe-step:nth-child(2) .st { animation-delay: 0s; }
.pipeline.run .pipe-step:nth-child(3), .pipeline.run .pipe-step:nth-child(3) .st { animation-delay: 1.2s; }
.pipeline.run .pipe-step:nth-child(4), .pipeline.run .pipe-step:nth-child(4) .st { animation-delay: 2.4s; }
.pipeline.run .pipe-step:nth-child(5), .pipeline.run .pipe-step:nth-child(5) .st { animation-delay: 3.6s; }
.pipeline.run .pipe-step:nth-child(6), .pipeline.run .pipe-step:nth-child(6) .st { animation-delay: 4.8s; }
@keyframes stepOn { 0% { background: transparent; } 4%, 12% { background: var(--accent-soft); } 18%, 100% { background: transparent; } }
@keyframes stOn { 0%, 8% { opacity: 0; } 12%, 90% { opacity: 1; } 100% { opacity: 0; } }
.pipeline .st { opacity: 1; }
.pipeline.run .st { opacity: 0; }

/* Cards */
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card p { color: var(--muted); font-size: 16px; margin: 0; }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }

/* Flow */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; }
.flow::before { content: ""; position: absolute; top: 27px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); opacity: .35; }
.flow li { position: relative; text-align: center; padding: 0 6px; }
.flow .bubble { position: relative; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--accent); color: var(--accent); font-weight: 800; font-size: 18px; box-shadow: var(--shadow); }
.flow p { color: var(--muted); font-size: 15px; margin: 0; }

/* Engines */
.engine { display: flex; flex-direction: column; gap: 10px; }
.engine .tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }

/* Stage strip */
.facts { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); margin: 0; }
.facts div { padding: 22px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 6px 0 0; font-weight: 650; }
.note { margin-top: 18px; color: var(--muted); font-size: 15px; }

/* Team */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.person { display: flex; flex-direction: column; gap: 14px; padding: 30px; }
.person-head { display: flex; align-items: center; gap: 16px; }
.avatar { flex: none; width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; font-weight: 800; font-size: 24px; letter-spacing: .02em; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.avatar-photo { object-fit: cover; padding: 0; background: var(--accent); border-radius: 50% !important; width: 88px; height: 88px; }
.person h3 { font-size: 22px; margin: 0; }
.role { color: var(--accent); font-weight: 650; font-size: 15px; }
.person p { color: var(--muted); }
.person .btn { align-self: flex-start; padding: 10px 16px; }

/* Contact */
.contact-box { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #0b1240)); color: #fff; border-radius: 24px; padding: 48px; box-shadow: var(--shadow); }
.contact-box h2 { color: #fff; }
.contact-box .lead { color: rgba(255,255,255,.85); margin: 0; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.contact-list a, .contact-list span { color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.contact-list small { display: block; font-size: 12px; opacity: .75; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }

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

/* Reveal motion */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pipeline.run .pipe-step, .pipeline.run .pipe-step .st { animation: none; }
  .pipeline.run .st { opacity: 1; }
  .card, .btn { transition: none; }
  .card:hover, .btn:hover { transform: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent), var(--accent-2)); }
  .flow li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; text-align: left; padding: 0 0 22px; }
  .flow .bubble { margin: 0; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div { border-bottom: 1px solid var(--line); }
  .contact-box { grid-template-columns: 1fr; padding: 36px; }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-grid; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 16px; }
  .nav .nav-cta { margin: 6px 0 0; text-align: center; }
  .team, .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .grid-4 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts div { border-right: 0; }
  .person { padding: 22px; }
  .avatar { width: 60px; height: 60px; font-size: 20px; border-radius: 18px; }
  .contact-box { padding: 26px 18px; border-radius: 20px; }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; }
}
