/* ========================
   ToolForge — Dark Industrial Theme
   ======================== */

:root {
  --bg: #0A0A0A;
  --surface: #111111;
  --surface-raised: #161616;
  --accent: #F5A623;
  --accent-dim: #b87a10;
  --text: #E8E4DC;
  --text-dim: #8A8780;
  --text-muted: #4A4845;
  --border: #2A2A2A;
  --border-accent: #3D2E0A;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

/* ---- Navigation ---- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 64px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  letter-spacing: 0.02em;
}

.nav-tagline {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---- Hero ---- */
.hero {
  min-height: calc(100vh - 81px);
  padding: 80px 64px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.hero-accent-line {
  position: absolute;
  top: 80px;
  left: -40px;
  width: 3px;
  height: 320px;
  background: linear-gradient(180deg, transparent 0%, var(--accent) 40%, var(--accent) 80%, transparent 100%);
  opacity: 0.6;
}

.hero-accent-block {
  position: absolute;
  bottom: 200px;
  right: -60px;
  width: 400px;
  height: 400px;
  border: 1px solid var(--border-accent);
  transform: rotate(15deg);
  opacity: 0.4;
}

.hero-accent-block::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid var(--border-accent);
  opacity: 0.6;
}

.hero-content {
  max-width: 860px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 500;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(52px, 7vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 28px;
}

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

.hero-body {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-dim);
  max-width: 580px;
  line-height: 1.65;
  font-weight: 300;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 80px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 48px 0 0;
}

.stat:first-child { padding-left: 0; }

.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--text);
}

.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  margin-right: 48px;
  flex-shrink: 0;
}

/* ---- Section Shared ---- */
.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 16px;
}

.section-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 20px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 520px;
  font-weight: 300;
}

/* ---- The Stack ---- */
.thestack {
  padding: 120px 64px;
  background: var(--surface);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.stack-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 36px 32px;
  position: relative;
  transition: border-color 0.2s;
}

.stack-card:hover { border-color: var(--border-accent); }

.stack-card--featured {
  border-color: var(--accent);
  border-width: 1px;
  background: var(--surface-raised);
}

.stack-card--featured::before {
  content: 'Core category';
  position: absolute;
  top: -1px;
  right: 24px;
  background: var(--accent);
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
}

.stack-icon {
  margin-bottom: 20px;
}

.stack-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 12px;
}

.stack-card-body {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 20px;
}

.stack-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stack-card-list li {
  font-size: 13px;
  color: var(--text-dim);
  padding-left: 16px;
  position: relative;
}

.stack-card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ---- The Standard ---- */
.thestandard {
  padding: 120px 64px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.standard-inner {
  max-width: 860px;
}

.standard-quote-mark {
  font-family: var(--font-display);
  font-size: 120px;
  color: var(--accent);
  line-height: 0.6;
  margin-bottom: 24px;
  opacity: 0.5;
}

.standard-statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.3;
  color: var(--text);
  font-style: italic;
  margin-bottom: 32px;
}

.standard-rule {
  width: 80px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 32px;
}

.standard-sub {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 64px;
  max-width: 600px;
  font-weight: 300;
}

.standard-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.pillar-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.pillar-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 10px;
}

.pillar-body {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ---- The Source ---- */
.thesource {
  padding: 120px 64px;
  background: var(--surface);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.source-steps {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 48px;
}

.source-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.step-marker {
  flex-shrink: 0;
  margin-top: 2px;
}

.step-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 6px;
}

.step-body {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Source diagram */
.source-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.source-diagram {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.source-diagram .diagram-arrow {
  transform: rotate(90deg);
  margin: 4px 0;
}

.diagram-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  padding: 16px 24px;
  width: 200px;
  justify-content: center;
}

.diagram-box span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}

/* ---- Closing ---- */
.closing {
  padding: 120px 64px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: 800px;
}

.closing-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 28px;
}

.closing-body {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 580px;
  font-weight: 300;
}

.closing-vision {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 48px;
  font-weight: 300;
}

.closing-accent {
  display: flex;
  align-items: center;
  gap: 20px;
}

.closing-line {
  width: 48px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.closing-accent span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* ---- Footer ---- */
.footer {
  padding: 40px 64px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.footer-note {
  font-size: 12px;
  color: var(--text-muted);
  flex: 1;
}

.footer-powered {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .stack-grid { grid-template-columns: 1fr 1fr; }
  .standard-pillars { grid-template-columns: 1fr 1fr; }
  .thesource { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav { padding: 20px 24px; }
  .hero { padding: 48px 24px 0; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .stat-divider { display: none; }
  .stat { padding: 0; }
  .thestack, .thestandard, .thesource, .closing { padding: 72px 24px; }
  .stack-grid { grid-template-columns: 1fr; }
  .standard-pillars { grid-template-columns: 1fr; }
  .footer { padding: 32px 24px; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 42px; }
  .stat-number { font-size: 22px; }
  .nav-tagline { display: none; }
}