@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=Barlow+Condensed:wght@300;400;500&display=swap');

/* ================================================================
   steelcitysolutions.io - single stylesheet, no external dependencies
   ================================================================ */

:root {
  --bg:          #0f1922;
  --surface:     #1c2b3a;
  --surface2:    #2e4157;
  --border:      #243444;
  --text:        #f5f0ea;
  --muted:       #4a6278;
  --accent:      #d95f2b;
  --accent-warm: #f0712e;
  --radius:      0;
  --max-w:       900px;
  --font:        'Barlow Condensed', sans-serif;
  --font-code:   "ui-monospace", "Cascadia Code", "SFMono-Regular", "Menlo", "Consolas", monospace;
  --font-serif:  'Rajdhani', sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:          #f5f0ea;
    --surface:     #ece7e0;
    --surface2:    #ddd6ce;
    --border:      #c5bbaf;
    --text:        #1c2b3a;
    --muted:       #4a6278;
    --accent:      #d95f2b;
    --accent-warm: #c04e1a;
  }
}

html[data-theme="dark"] {
  --bg:          #0f1922;
  --surface:     #1c2b3a;
  --surface2:    #2e4157;
  --border:      #243444;
  --text:        #f5f0ea;
  --muted:       #4a6278;
  --accent:      #d95f2b;
  --accent-warm: #f0712e;
}

html[data-theme="light"] {
  --bg:          #f5f0ea;
  --surface:     #ece7e0;
  --surface2:    #ddd6ce;
  --border:      #c5bbaf;
  --text:        #1c2b3a;
  --muted:       #4a6278;
  --accent:      #d95f2b;
  --accent-warm: #c04e1a;
}

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

/* Base */
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Canvas background */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* All content above canvas */
nav, main, footer { position: relative; z-index: 1; }

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

/* ── Fade-in ──────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.10s; }
.delay-2 { transition-delay: 0.20s; }
.delay-3 { transition-delay: 0.30s; }
.delay-4 { transition-delay: 0.40s; }
.delay-5 { transition-delay: 0.50s; }

/* ── Nav ──────────────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}
.nav-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.2;
}
.nav-brand:hover { text-decoration: none; opacity: 0.85; }
.nav-logo-mark {
  width: 32px;
  height: auto;
  flex-shrink: 0;
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.nav-brand-name {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-brand-sub {
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
nav ul { list-style: none; display: flex; gap: 1.5rem; align-items: center; }
nav ul li a {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
nav ul li a:hover { color: var(--text); text-decoration: none; }
nav ul li a.nav-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── Main ─────────────────────────────────────────── */
main {
  flex: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
}

/* ── Footer ───────────────────────────────────────── */
footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.72rem;
  border-top: 1px solid var(--border);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); text-decoration: none; }

/* ── Hero ─────────────────────────────────────────── */
.hero { padding: 3.5rem 0 2rem; }
.hero-eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: normal;
  color: var(--text);
  line-height: 1.18;
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-bio {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 530px;
  line-height: 1.8;
  margin-bottom: 2.25rem;
  border-left: 2px solid var(--border);
  padding-left: 1.1rem;
}
.hero-bio strong { color: var(--text); }
.hero-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.75rem;
  font-family: var(--font);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.85; text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  background: var(--surface2);
  text-decoration: none;
}

/* ── Section label ────────────────────────────────── */
.section-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* ── Cards ────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  color: var(--text);
  transition: background 0.2s, border-color 0.2s;
  cursor: default;
}
.card.card-link { cursor: pointer; }
.card.card-link:hover { background: var(--surface2); border-color: var(--accent); text-decoration: none; }
.card-icon {
  font-size: 0.55rem;
  margin-bottom: 0.85rem;
  display: block;
  color: var(--accent);
  opacity: 0.6;
}
.card h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.card p { font-size: 0.8rem; color: var(--muted); line-height: 1.65; }
.card-arrow {
  display: block;
  margin-top: 1.1rem;
  font-size: 0.75rem;
  color: var(--border);
  transition: color 0.15s;
}
.card.card-link:hover .card-arrow { color: var(--accent); }

/* ── Contact form ─────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 0.65rem 0.8rem;
  width: 100%;
  resize: vertical;
  transition: border-color 0.15s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { outline: none; border-color: var(--accent); }
.contact-form textarea { min-height: 120px; }
.contact-form .full-width { grid-column: 1 / -1; }

/* ── Alert ────────────────────────────────────────── */
.alert {
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  color: var(--text);
  display: none;
}
.alert.visible { display: block; }

/* ── Theme toggle ─────────────────────────────────── */
.theme-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.theme-toggle-track {
  width: 28px;
  height: 15px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  position: relative;
  transition: border-color 0.2s;
}
.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 9px;
  height: 9px;
  background: var(--muted);
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}
.theme-toggle[aria-checked="true"] .theme-toggle-track { border-color: var(--accent); }
.theme-toggle[aria-checked="true"] .theme-toggle-thumb {
  transform: translateX(13px);
  background: var(--accent);
}

/* ── Hero bullets ────────────────────────────────── */
.hero-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 2.25rem;
  max-width: 530px;
  font-size: 0.875rem;
  color: var(--text);
}
.hero-bullets li { padding-left: 1.1rem; position: relative; }
.hero-bullets li::before { content: "›"; position: absolute; left: 0; color: var(--accent); }

/* ── Who this is for ──────────────────────────────── */
.who-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.who-item {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  font-size: 0.84rem;
  color: var(--muted);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.who-item::before {
  content: "›";
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ── Capability ladder ────────────────────────────── */
.ladder {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.ladder-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
}
.ladder-level {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.5rem;
  display: block;
}
.ladder-card h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.ladder-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.ladder-card li { padding-left: 1.1rem; position: relative; }
.ladder-card li::before { content: "-"; position: absolute; left: 0; color: var(--border); }

/* ── Case studies ─────────────────────────────────── */
.proof-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.proof-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.proof-result {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--accent);
  width: 6rem;
  flex-shrink: 0;
  line-height: 1.4;
  letter-spacing: 0.03em;
  padding-top: 0.1rem;
}
.proof-card-link {
  color: var(--text);
  transition: background 0.2s, border-color 0.2s;
}
.proof-card-link:hover {
  background: var(--surface2);
  border-color: var(--accent);
  text-decoration: none;
}
.proof-card-link:hover .proof-result { color: var(--accent); }
.proof-body { display: flex; flex-direction: column; gap: 0.2rem; }
.proof-body strong { font-size: 0.875rem; color: var(--text); }
.proof-body p { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }

/* ── How it works ─────────────────────────────────── */
.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-size: 1.1rem;
  font-family: var(--font-serif);
  color: var(--accent);
  min-width: 2rem;
  line-height: 1;
  padding-top: 0.15rem;
  flex-shrink: 0;
}
.step-body { display: flex; flex-direction: column; gap: 0.2rem; }
.step-body strong { font-size: 0.875rem; color: var(--text); }
.step-body p { font-size: 0.8rem; color: var(--muted); line-height: 1.65; }

/* ── Tech stack ───────────────────────────────────── */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}
.stack-category {
  display: block;
  font-size: 0.65rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}
.stack-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; }
.stack-tags li {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── Nav email ────────────────────────────────────── */
.nav-email {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

/* ── Alert variants ───────────────────────────────── */
.alert-error {
  border-left-color: #e06c75;
}

/* ── Page header ──────────────────────────────────── */
.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: normal;
  margin-bottom: 0.4rem;
}
.page-header p { color: var(--muted); font-size: 0.875rem; margin-top: 0.3rem; }

/* ── Stats grid ───────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.75rem 1rem;
  text-align: center;
}
.stat-label {
  display: block;
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.65rem;
}
.stat-value { display: block; font-size: 1.9rem; font-weight: bold; color: var(--accent); }
.stat-value--sm { font-size: 1.2rem; }

/* ── Homelab card (table wrapper) ─────────────────── */
.homelab-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
}

/* ── Metrics / data tables ────────────────────────── */
.metrics-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.metrics-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  padding: 0.4rem 0.75rem 0.4rem 0;
}
.metrics-table td {
  padding: 0.45rem 0.75rem 0.45rem 0;
  color: var(--muted);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
}
.metrics-table td:first-child { color: var(--text); }
.bench-table th { text-align: left; white-space: nowrap; }
.bench-table td.nc, .bench-table th.nc { text-align: right; padding-left: 0.8rem; }
.bench-table td.muted { color: var(--muted); }
.bench-table td.bright { color: var(--accent); font-weight: 600; }

/* ── Scrollable table containers ─────────────────── */
.scroll-x { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--border) var(--bg); }
.scroll-x::-webkit-scrollbar { height: 6px; }
.scroll-x::-webkit-scrollbar-track { background: var(--bg); }
.scroll-x::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.admin-scroll { max-height: 22rem; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border) var(--bg); }
.admin-scroll::-webkit-scrollbar { width: 6px; }
.admin-scroll::-webkit-scrollbar-track { background: var(--bg); }
.admin-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── HTTP status codes ────────────────────────────── */
.status-code { font-family: var(--font); font-size: 0.8rem; font-weight: bold; }
.status-2xx  { color: #6aab6a; }
.status-3xx  { color: var(--accent-warm); }
.status-4xx  { color: #e06c75; }
.status-5xx  { color: #e06c75; }

/* ── Login ────────────────────────────────────────── */
.login-section { max-width: 420px; margin: 4rem auto; text-align: center; }
.login-section h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: normal;
  margin-bottom: 1.5rem;
}
.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
}
.login-hint { color: var(--muted); font-size: 0.875rem; margin-bottom: 1.5rem; }
.login-error {
  color: #e06c75;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  padding: 0.6rem 1rem;
  border-left: 2px solid #e06c75;
  background: var(--surface);
  text-align: left;
}
.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.25rem;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.15s, background 0.15s;
}
.btn-google:hover { background: #f8f9fa; box-shadow: 0 1px 3px rgba(0,0,0,0.2); text-decoration: none; }

/* ── Inline code ──────────────────────────────────── */
code {
  font-family: var(--font-code);
  font-size: 0.85em;
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 0.1em 0.4em;
  color: var(--accent);
}

/* ── Case Study page ──────────────────────────────── */
.cs-header {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.cs-eyebrow {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.cs-header h1 {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: normal;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.cs-lead {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.8;
  border-left: 2px solid var(--border);
  padding-left: 1.1rem;
}
.cs-section {
  margin-top: 2.5rem;
}
.cs-section p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.cs-section p:last-child { margin-bottom: 0; }
.cs-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.cs-section li { padding-left: 1.25rem; position: relative; }
.cs-section li::before { content: "›"; position: absolute; left: 0; color: var(--accent); }
.cs-section li strong { color: var(--text); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.feature-block {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}
.feature-block h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.feature-block p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}
.cs-screenshot-wrap {
  margin-top: 1.25rem;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}
.cs-screenshot-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
.cs-screenshot-caption {
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--border);
}
.cs-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.cs-cta {
  margin-top: 3rem;
  padding: 1.75rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
}
.cs-cta p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.cs-cta p:last-of-type { margin-bottom: 1.5rem; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 860px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: 1fr; }
  .who-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .cs-screenshot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  nav { flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 1rem; }
  nav ul { gap: 0.75rem; flex-wrap: wrap; }
  main { padding: 2rem 1rem; }
  .hero h1 { font-size: 2.1rem; }
  .cards { grid-template-columns: 1fr; }
  .proof-card { flex-direction: column; gap: 0.75rem; }
  .proof-result { font-size: 1.25rem; }
}
