/* ─────────────────────────────────────────
   Design Tokens
   ───────────────────────────────────────── */
:root {
  --bg:           #0b0b0b;
  --surface:      #111111;
  --surface-2:    #161616;
  --border:       #1c1c1c;
  --border-hover: #2a2a2a;
  --text:         #e8e8e8;
  --muted:        #606060;
  --muted-2:      #404040;
  --accent:       #00b4d8;
  --accent-dim:   rgba(0, 180, 216, 0.08);
  --error:        #ff4d4d;

  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', ui-monospace, monospace;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --max-width:  960px;
  --gap:        2rem;
  --section-py: 5rem;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

/* ─────────────────────────────────────────
   Layout
   ───────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─────────────────────────────────────────
   Header
   ───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 11, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

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

.entity {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─────────────────────────────────────────
   Hero
   ───────────────────────────────────────── */
.hero {
  padding: 7rem 0 6rem;
  border-bottom: 1px solid var(--border);
}

.hero-headline {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.hero-headline .accent {
  color: var(--accent);
}

.hero-descriptor {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.7;
}

/* ─────────────────────────────────────────
   Section Label
   ───────────────────────────────────────── */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

/* ─────────────────────────────────────────
   Focus Section
   ───────────────────────────────────────── */
.focus {
  padding: var(--section-py) 0;
  border-bottom: 1px solid var(--border);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.focus-card {
  background: var(--bg);
  padding: 2rem;
  position: relative;
  transition: background 0.15s ease;
}

.focus-card:hover {
  background: var(--surface);
}

.focus-card-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted-2);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.focus-card h3 {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

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

/* ─────────────────────────────────────────
   Stack Section
   ───────────────────────────────────────── */
.stack {
  padding: var(--section-py) 0;
  border-bottom: 1px solid var(--border);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
}

.stack-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stack-cat {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stack-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ─────────────────────────────────────────
   Contact Section
   ───────────────────────────────────────── */
.contact {
  padding: var(--section-py) 0;
}

/* honeypot — visually hidden, not in tab order, bots fill it */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-descriptor {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 460px;
}

.contact-form {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-row label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-row input,
.form-row textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.7rem 0.85rem;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
  width: 100%;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  background: var(--surface-2);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--muted-2);
}

.field-error {
  font-size: 0.75rem;
  color: var(--error);
  font-family: var(--font-mono);
  min-height: 1rem;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.form-actions button {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.65rem 1.5rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.form-actions button:hover:not(:disabled) {
  background: var(--accent-dim);
}

.form-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-status {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.form-status.success { color: #4caf88; }
.form-status.error   { color: var(--error); }

/* ─────────────────────────────────────────
   Footer
   ───────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.footer-domain {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-2);
}

/* ─────────────────────────────────────────
   Responsive
   ───────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 4rem 0; }
  .focus-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
}

@media (max-width: 480px) {
  .stack-grid { grid-template-columns: 1fr; }
  .entity { display: none; }
}
