/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0d0f11;
  --surface:   #161a1f;
  --border:    #262c34;
  --text:      #e2e8f0;
  --muted:     #8899aa;
  --accent:    #4fc3f7;
  --accent-dim:#1e3a4a;
  --link:      #4fc3f7;
  --link-hover:#81d4fa;
  --font-mono: "JetBrains Mono", "Fira Code", "Cascadia Code", ui-monospace, monospace;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:        #f8fafc;
    --surface:   #ffffff;
    --border:    #d1dbe6;
    --text:      #1a2332;
    --muted:     #5a6a7a;
    --accent:    #0277bd;
    --accent-dim:#e1f0fb;
    --link:      #0277bd;
    --link-hover:#01579b;
  }
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Header / Nav ===== */
header {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.wordmark span { color: var(--accent); }

nav { display: flex; gap: 1.75rem; align-items: center; }

nav a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.15s;
}

nav a:hover { color: var(--text); text-decoration: none; }

/* ===== Hero ===== */
.hero {
  padding: 2rem 0 1.5rem;
}

.hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 2.5rem;
}

.cta-group { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--link-hover);
  border-color: var(--link-hover);
  text-decoration: none;
  color: #000;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--muted);
  text-decoration: none;
  color: var(--text);
}

/* ===== Section ===== */
section { padding: 2rem 0; border-top: 1px solid var(--border); }

section h2 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.service-card .icon {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ===== Products ===== */
.product-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
}

.product-card .product-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.product-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.product-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* ===== Contact ===== */
#contact p { color: var(--muted); margin-bottom: 0.75rem; }

#contact .contact-email {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
}

/* ===== Footer ===== */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

footer .copy {
  font-size: 0.8rem;
  color: var(--muted);
}

footer nav { gap: 1.25rem; }

footer nav a {
  font-size: 0.8rem;
  color: var(--muted);
}

footer nav a:hover { color: var(--text); }

/* ===== Legal pages ===== */
.legal { padding: 3rem 0 4rem; }

.legal .container { max-width: 720px; }

.legal h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.legal .updated {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.legal h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 2.25rem 0 0.75rem;
}

.legal h2:first-of-type { margin-top: 0; }

.legal p, .legal li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}

.legal p { margin-bottom: 1rem; }

.legal ul { margin: 0 0 1rem 1.25rem; }
.legal li { margin-bottom: 0.4rem; }

.legal strong { color: var(--text); }

.legal .back-link { display: inline-block; margin-top: 1rem; }

/* ===== Stub pages ===== */
.stub-page {
  padding: 5rem 0;
  text-align: center;
}

.stub-page h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.stub-page p { color: var(--muted); margin-bottom: 2rem; }

/* ===== Responsive ===== */
@media (max-width: 600px) {
  nav { gap: 1rem; }
  .product-card { flex-direction: column; }
  footer .container { flex-direction: column; text-align: center; }
}
