/* Smart Production — site styles */

@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --void: #0A0F0C;
  --panel: #111A15;
  --line: #1F2E25;
  --line-strong: #3C5446;
  --text: #E8F5EC;
  --body: #C4D9CB;
  --soft: #B5CBBD;
  --moss: #8DBB9F;
  --phosphor: #39FF88;

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

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--phosphor); }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--phosphor); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -100px;
  padding: 10px 16px; background: var(--phosphor); color: var(--void);
  font-family: var(--font-prompt); font-weight: 600; text-decoration: none; z-index: 10;
}
.skip-link:focus { top: 16px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }

/* Prompt lines */
.prompt { font-family: var(--font-prompt); font-size: 14px; color: var(--moss); margin: 0; }
.prompt .sigil { color: var(--phosphor); }

/* Header */
.site-header {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.08em; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-family: var(--font-prompt); font-size: 14px; }
.site-nav a.link { padding: 12px; color: var(--soft); text-decoration: none; }
.site-nav a.link:hover { color: var(--phosphor); }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 22px; border-radius: 4px;
  font-family: var(--font-prompt); font-size: 15px; font-weight: 600; text-decoration: none;
  background: var(--phosphor); color: var(--void); border: 1px solid var(--phosphor);
}
.btn:hover { background: var(--text); border-color: var(--text); color: var(--void); }
.btn-sm { padding: 11px 18px; font-size: 14px; margin-left: 8px; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); font-weight: 400; }
.btn-ghost:hover { background: transparent; border-color: var(--phosphor); color: var(--phosphor); }

/* Hero */
.hero { padding: clamp(72px, 11vw, 150px) 0 clamp(64px, 9vw, 120px); display: flex; flex-direction: column; gap: 22px; }
.wordmark {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 6.6vw, 92px); line-height: 1.05; letter-spacing: 0.08em;
}
.cursor {
  display: inline-block; width: 1ch; height: 0.71em; background: var(--phosphor);
  vertical-align: baseline; animation: blink 1.06s steps(1, end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }
.hero .tagline { font-size: clamp(16px, 1.6vw, 20px); }
.hero .lede { margin: 18px 0 0; max-width: 640px; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; color: var(--body); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* Sections */
.section { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 36px; }
.section-head { display: flex; flex-direction: column; gap: 12px; }
.section-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3vw, 38px); letter-spacing: 0.06em; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card .index { font-family: var(--font-prompt); font-size: 13px; color: var(--phosphor); }
.card h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.3; letter-spacing: 0.04em; }
.card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--soft); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0; }
.stat { border-top: 2px solid var(--phosphor); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; margin: 0; }
.stat dt { order: 2; font-size: 15px; line-height: 1.5; color: var(--soft); }
.stat dd { order: 1; margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 4vw, 50px); color: var(--phosphor); white-space: nowrap; }

.lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; font-family: var(--font-prompt); }
.lists h3 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; color: var(--moss); }
.lists ul { margin: 0; padding: 0; list-style: none; font-size: 17px; line-height: 1.9; }
.lists li::before { content: "> "; color: var(--phosphor); }

/* Contact */
.contact-panel { border: 1px solid var(--line-strong); padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; gap: 20px; }
.contact-panel h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4.4vw, 56px); line-height: 1.1; letter-spacing: 0.06em; }
.contact-panel p { margin: 0; max-width: 560px; font-size: 18px; line-height: 1.6; color: var(--body); }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 8px; }
.contact-row .place { font-family: var(--font-prompt); font-size: 15px; color: var(--moss); }
.contact-panel .btn { overflow-wrap: anywhere; }

/* Footer */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  padding: 28px 0 40px; border-top: 1px solid var(--line);
  font-family: var(--font-prompt); font-size: 13px; color: var(--moss);
}
.site-footer .left { display: flex; align-items: center; gap: 10px; }

/* 404 */
.notfound { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 64px 0; }
.notfound h1 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 6vw, 72px); letter-spacing: 0.08em; }
.nowrap { white-space: nowrap; }
