@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/jetbrains-mono-400.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/jetbrains-mono-500.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/jetbrains-mono-700.woff2) format('woff2'); }

:root {
  --bg: #0B1220;
  --bg-2: #0F1830;
  --panel: #111B2E;
  --grid: #17223A;
  --text: #E7ECF3;
  --text-muted: #8B96AC;
  --green: #4ADE80;
  --amber: #F5C451;
  --blue: #62B6F5;
  --red: #F16057;
  --border: #1E2A44;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

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

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

h1, h2, h3 { font-weight: 700; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }

.eyebrow { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }

.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--green);
  color: var(--green);
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

/* ---------- Nav ---------- */

.nav { border-bottom: 1px solid var(--border); position: sticky; top: 0; background: rgba(11,18,32,0.92); backdrop-filter: blur(8px); z-index: 50; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; font-weight: 700; font-size: 1.1rem; color: var(--text); }
.brand-badge {
  background: var(--green);
  color: #0B1220;
  width: 32px; height: 32px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.88rem;
  flex-shrink: 0;
}
.nav-links { display: flex; gap: 2.1rem; list-style: none; margin: 0; padding: 0; font-size: 0.92rem; }
.nav-links a { text-decoration: none; color: var(--text-muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

.btn {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.72rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--green); color: #0B1220; }
.btn-primary:hover { opacity: 0.88; }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--green); }

.nav-toggle { display: none; background: none; border: none; color: var(--text); padding: 0.4rem; cursor: pointer; }
.mobile-menu { display: none; }
.mobile-menu.open { display: flex; flex-direction: column; border-top: 1px solid var(--border); background: var(--bg); }
.mobile-menu a { padding: 1rem clamp(1.25rem, 4vw, 2.5rem); text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.mobile-menu .btn { margin: 1rem clamp(1.25rem, 4vw, 2.5rem); align-self: flex-start; }
@media (max-width: 860px) {
  .nav-links, .nav-right .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; }
}
.nav-right { display: flex; align-items: center; gap: 1.25rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 42px 42px;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 960px) { .hero-inner { grid-template-columns: 1fr; } }

.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin: 1.1rem 0 0; }
.hero h1 .accent { color: var(--green); }
.hero .lede { margin-top: 1.5rem; max-width: 46ch; color: var(--text-muted); font-size: 1.02rem; }
.hero-ctas { margin-top: 2.25rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Page hero (interior pages, no terminal) ---------- */

.page-hero {
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--border);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 42px 42px;
}
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); margin-top: 0.9rem; }
.page-hero .lede { margin-top: 1.25rem; max-width: 58ch; font-size: 1.02rem; color: var(--text-muted); }

/* ---------- Terminal window ---------- */

.term { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.term-bar { display: flex; gap: 8px; padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); }
.term-dot { width: 12px; height: 12px; border-radius: 50%; }
.term-body {
  padding: 1.5rem;
  font-size: 0.9rem;
  height: 320px;
  overflow-y: auto;
  scrollbar-width: none;
}
.term-body::-webkit-scrollbar { display: none; }
.term-line { margin-bottom: 0.6rem; }
.ok { color: var(--green); }
.warn { color: var(--amber); }
.info { color: var(--blue); }
.dim { color: var(--text-muted); }
.cursor-blink { display: inline-block; width: 0.5em; height: 1em; background: var(--green); vertical-align: -0.15em; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Service bar (home) ---------- */

.service-bar { border-top: 1px solid var(--border); background: var(--bg-2); }
.service-bar .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .service-bar .wrap { grid-template-columns: repeat(2, 1fr); } }
.service-item { display: flex; align-items: center; gap: 0.7rem; padding: 1.5rem; border-right: 1px solid var(--border); font-size: 0.9rem; text-decoration: none; color: var(--text); }
.service-item:last-child { border-right: none; }
.service-item svg { color: var(--green); flex-shrink: 0; }
.service-item:hover { background: var(--panel); }

/* ---------- Section shell ---------- */

section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
section + section { border-top: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: clamp(2.25rem, 5vw, 3.25rem); }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 0.8rem; }
.section-head p { margin-top: 1rem; color: var(--text-muted); font-size: 1.02rem; }

/* ---------- Card grids ---------- */

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
@media (max-width: 800px) { .cards-grid { grid-template-columns: 1fr; } }
.card { background: var(--panel); padding: 1.85rem 1.6rem; }
.card-icon { width: 34px; height: 34px; color: var(--green); margin-bottom: 1rem; }
.card-icon svg { width: 100%; height: 100%; }
.card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.card p.desc { color: var(--text-muted); font-size: 0.9rem; }
.card-list { list-style: none; margin: 0.9rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.82rem; color: var(--text-muted); }
.card-list li { display: flex; gap: 0.55rem; }
.card-list li::before { content: ">"; color: var(--green); flex-shrink: 0; }

.hosting-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
@media (max-width: 980px) { .hosting-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hosting-grid { grid-template-columns: 1fr; } }
.hosting-item { background: var(--panel); padding: 1.6rem 1.4rem; }
.hosting-icon { width: 28px; height: 28px; color: var(--green); margin-bottom: 0.85rem; }
.hosting-icon svg { width: 100%; height: 100%; }
.hosting-item h3 { font-size: 0.95rem; margin-bottom: 0.5rem; }
.hosting-item p { color: var(--text-muted); font-size: 0.85rem; }

/* ---------- Teaser cards (home) ---------- */

.teaser-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
@media (max-width: 700px) { .teaser-grid { grid-template-columns: 1fr; } }
.teaser-card { background: var(--panel); padding: clamp(1.75rem, 4vw, 2.5rem); display: flex; flex-direction: column; gap: 1rem; text-decoration: none; color: inherit; transition: background 0.15s ease; }
.teaser-card:hover { background: var(--bg-2); }
.teaser-icon { width: 36px; height: 36px; color: var(--green); }
.teaser-icon svg { width: 100%; height: 100%; }
.teaser-card h3 { font-size: 1.25rem; }
.teaser-card p { color: var(--text-muted); font-size: 0.92rem; }
.teaser-link { margin-top: 0.15rem; font-size: 0.82rem; color: var(--green); }

/* ---------- Approach ---------- */

.approach-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; }
.approach-track::before { content: ""; position: absolute; top: 14px; left: 0; right: 0; height: 1px; background: var(--border); }
@media (max-width: 760px) { .approach-track { grid-template-columns: 1fr; gap: 2rem; } .approach-track::before { display: none; } }
.approach-step { position: relative; }
.approach-num {
  font-size: 0.78rem; color: #0B1220; background: var(--green);
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1; margin-bottom: 1rem; font-weight: 700;
}
.approach-step h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.approach-step p { color: var(--text-muted); font-size: 0.88rem; }

/* ---------- About / origin ---------- */

.origin-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 800px) { .origin-grid { grid-template-columns: 1fr; } }
.body-copy { color: var(--text-muted); font-size: 1rem; margin-top: 1.1rem; }
.body-copy + .body-copy { margin-top: 0.9rem; }
.origin-marks { display: flex; flex-direction: column; gap: 1.4rem; font-size: 0.85rem; color: var(--text-muted); border-left: 1px solid var(--border); padding-left: 1.5rem; }
.origin-marks strong { display: block; color: var(--text); font-size: 0.95rem; margin-bottom: 0.25rem; }

/* ---------- CTA band ---------- */

.cta-band { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: clamp(2rem, 5vw, 3rem); display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); }
.cta-band p { color: var(--text-muted); margin-top: 0.5rem; font-size: 0.95rem; }

/* ---------- Contact form ---------- */

.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-side .lede { margin-top: 1.1rem; color: var(--text-muted); font-size: 1.02rem; max-width: 40ch; }
.contact-email { margin-top: 1.5rem; display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.95rem; color: var(--green); text-decoration: none; }
.contact-email:hover { text-decoration: underline; }

.form-card { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: clamp(1.5rem, 4vw, 2.25rem); }
.field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.3rem; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field .hint { font-size: 0.76rem; color: var(--text-muted); }
.field input, .field textarea {
  font-family: var(--mono); font-size: 0.92rem; padding: 0.7rem 0.85rem;
  border: 1px solid var(--border); border-radius: 5px; background: var(--bg);
  color: var(--text); resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--green); }
.field-honeypot { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 1rem 1.2rem; border-radius: 6px; font-size: 0.92rem; margin-bottom: 1.4rem; }
.form-status.success { background: rgba(74,222,128,0.1); border: 1px solid var(--green); }
.form-status.error { background: rgba(241,96,87,0.1); border: 1px solid var(--red); }

/* ---------- Footer ---------- */

footer { border-top: 1px solid var(--border); padding: 2.25rem 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.78rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
