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

:root {
  --bg: #0A0A0B;
  --bg2: #111113;
  --bg3: #18181B;
  --fg: #F0EDE8;
  --fg2: #A8A29E;
  --fg3: #6B6560;
  --accent: #FF5722;
  --accent-dim: #B33B12;
  --amber: #FFB74D;
  --font-display: 'Syne', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--bg); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 3px; }

/* === TYPOGRAPHY === */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 20px;
}

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

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 40px;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 11, 0.8);
  border-bottom: 1px solid rgba(255, 87, 34, 0.08);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.nav-logo-text { font-size: 17px; }

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--fg2);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--accent); }

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 40px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-sparks {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
}

.spark {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0;
}

.s1 { top: 0; left: -60px; animation: sparkFly 2.4s ease-out infinite; }
.s2 { top: -20px; left: 0; animation: sparkFly 1.9s ease-out infinite 0.4s; }
.s3 { top: 10px; left: 50px; animation: sparkFly 2.1s ease-out infinite 0.8s; }
.s4 { top: -10px; left: -30px; animation: sparkFly 2.7s ease-out infinite 1.2s; }
.s5 { top: 5px; left: 30px; animation: sparkFly 1.6s ease-out infinite 0.2s; }
.s6 { top: -30px; left: 10px; animation: sparkFly 2.2s ease-out infinite 1.6s; }

@keyframes sparkFly {
  0% { opacity: 0; transform: translateY(0) scale(1); }
  10% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-120px) scale(0.3); }
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(255, 87, 34, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow { margin-bottom: 24px; }

.eyebrow-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255, 87, 34, 0.1);
  border: 1px solid rgba(255, 87, 34, 0.25);
  padding: 6px 14px;
  border-radius: 100px;
  display: inline-block;
}

.hero-headline {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-highlight {
  color: var(--accent);
  position: relative;
}

.hero-forge-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.forge-svg {
  width: 100%;
  max-width: 320px;
  filter: drop-shadow(0 0 40px rgba(255, 87, 34, 0.2));
}

.hero-sub {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg2);
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.03em;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg3);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
}

/* === WHAT === */
.what {
  padding: 120px 40px;
  background: var(--bg2);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.what-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 80px;
}

.what-label {
  padding-top: 8px;
}

.what-headline {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.what-body {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg2);
  line-height: 1.8;
  margin-bottom: 48px;
  max-width: 540px;
}

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

.pillar {
  padding: 28px;
  background: var(--bg3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: border-color 0.3s;
}

.pillar:hover { border-color: rgba(255, 87, 34, 0.2); }

.pillar-icon {
  margin-bottom: 16px;
}

.pillar h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.pillar p {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg2);
  line-height: 1.7;
}

/* === FORGE === */
.forge {
  padding: 120px 40px;
  background: var(--bg);
}

.forge-inner {
  max-width: 900px;
  margin: 0 auto;
}

.forge-header {
  margin-bottom: 60px;
}

.forge-headline {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 12px;
}

.forge-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.forge-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: start;
  padding: 40px 0;
  position: relative;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.05em;
  padding-top: 4px;
}

.step-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.step-content p {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg2);
  line-height: 1.7;
  max-width: 480px;
}

.step-line {
  position: absolute;
  left: 40px;
  bottom: 0;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 87, 34, 0.3), transparent);
}

.forge-step:last-child .step-line { display: none; }

.forge-rule {
  margin-top: 60px;
  padding: 24px 32px;
  background: rgba(255, 87, 34, 0.05);
  border: 1px solid rgba(255, 87, 34, 0.15);
  border-radius: 8px;
}

.rule-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.rule-content svg { flex-shrink: 0; margin-top: 2px; }

.rule-content span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg2);
  line-height: 1.6;
}

/* === PHILOSOPHY === */
.philosophy {
  padding: 120px 40px;
  background: var(--bg2);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.philosophy-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.philosophy-quote {
  margin-bottom: 60px;
  padding: 48px;
  background: var(--bg3);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
}

.philosophy-quote blockquote p {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.philosophy-quote blockquote p em {
  font-style: normal;
  color: var(--accent);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.phil-card {
  padding: 32px;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
}

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

.phil-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.phil-card p {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg2);
  line-height: 1.7;
}

/* === TOOLS === */
.tools {
  padding: 120px 40px;
  background: var(--bg);
}

.tools-inner {
  max-width: 900px;
  margin: 0 auto;
}

.tools-headline {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 12px 0 24px;
}

.tools-sub {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg2);
  line-height: 1.7;
  margin-bottom: 48px;
  max-width: 580px;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 60px;
}

.tool-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg2);
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s;
}

.tool-tag:hover {
  border-color: rgba(255, 87, 34, 0.4);
  color: var(--accent);
}

.tool-cta {
  padding: 32px;
  background: rgba(255, 87, 34, 0.06);
  border: 1px solid rgba(255, 87, 34, 0.15);
  border-radius: 16px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.cta-box { display: flex; align-items: flex-start; gap: 20px; }
.cta-box svg { flex-shrink: 0; margin-top: 4px; }
.cta-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.cta-sub { font-family: var(--font-mono); font-size: 13px; color: var(--fg2); line-height: 1.6; }

/* === CLOSING === */
.closing {
  padding: 140px 40px;
  background: var(--bg2);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.closing-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.closing-rule {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 48px;
}

.closing-headline {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.closing-body {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg2);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto 48px;
}

.closing-vision {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg2);
}

.vision-tag {
  color: var(--accent);
  font-weight: 600;
  display: inline;
  margin-right: 8px;
}

/* === FOOTER === */
.footer {
  padding: 48px 40px;
  background: var(--bg);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg3);
}

.footer-built {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg3);
}

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

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hero { padding: 100px 20px 60px; }
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-forge-visual { order: -1; }
  .what-inner { grid-template-columns: 1fr; gap: 40px; }
  .what-pillars { grid-template-columns: 1fr; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .forge-step { grid-template-columns: 48px 1fr; gap: 20px; }
  .step-line { left: 20px; }
  .what, .forge, .philosophy, .tools, .closing { padding: 80px 20px; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 16px; }
  .stat-value { font-size: 22px; }
}
