/* IRONBORNE INDUSTRIES -- Global Styles */
/* Matches pitch deck video: dark iron bg, forge gold accents, ember particles */

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

:root {
  --iron: #1C1C1E;
  --gold: #C4942B;
  --gold-light: #E8C560;
  --gold-dark: #8A6518;
  --steel: #3A5A7C;
  --ember: #8B2500;
  --sand: #D4C5A9;
  --ash: #F2F0EC;
  --bg: #0D0D0E;
  --text: #F2F0EC;
  --text-muted: rgba(242, 240, 236, 0.55);
  --text-dim: rgba(242, 240, 236, 0.3);
  --border: rgba(255, 255, 255, 0.06);
  --border-gold: rgba(196, 148, 43, 0.25);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

a { color: var(--gold); text-decoration: none; transition: opacity 0.3s; }
a:hover { opacity: 0.8; }

img { max-width: 100%; display: block; }

/* Typography */
.font-display { font-family: Georgia, 'Times New Roman', serif; }
.text-gold { color: var(--gold); }
.text-sand { color: var(--sand); }
.text-muted { color: var(--text-muted); }

/* Scroll animation base states */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Stagger children */
.stagger > * { transition-delay: calc(var(--i, 0) * 120ms); }

/* Divider line (matches video HorizontalLine component) */
.gold-line {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 32px auto;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}
.gold-line.visible { width: 160px; }

/* Forge glow (matches video ForgeGlow component) */
.forge-glow {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 148, 43, 0.15) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

/* Ember particles canvas */
#ember-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* Content layers above particles */
.content-layer { position: relative; z-index: 1; }

/* Navigation */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, rgba(13, 13, 14, 0.95) 0%, transparent 100%);
  transition: background 0.3s;
}

.nav.scrolled {
  background: rgba(13, 13, 14, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
}

.nav-links { display: flex; gap: 24px; align-items: center; }

.nav-links a {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold); opacity: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--iron);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(196, 148, 43, 0.3);
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  opacity: 1;
}

.btn-sm { padding: 10px 20px; font-size: 12px; }

/* Section base */
.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 32px;
  position: relative;
  overflow: hidden;
}

.section-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: Georgia, serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

.section-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
}

/* Hero section (matches Slide01 cold open) */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  position: relative;
  background:
    linear-gradient(180deg, rgba(13,13,14,0.45) 0%, rgba(13,13,14,0.55) 40%, rgba(13,13,14,0.8) 75%, var(--bg) 100%),
    url('/images/hero-bg.jpg') center center / cover no-repeat;
}

.hero-logo-ring {
  width: 100px;
  height: 100px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(196, 148, 43, 0.15); }
  50% { box-shadow: 0 0 40px rgba(196, 148, 43, 0.3); }
}

.hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 900;
  letter-spacing: 8px;
  color: var(--gold);
  text-transform: uppercase;
  text-shadow: 0 0 60px rgba(196, 148, 43, 0.2);
  line-height: 1;
  margin-bottom: 8px;
}

.hero-sub {
  font-family: Georgia, serif;
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--sand);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-tagline {
  font-family: Georgia, serif;
  font-size: clamp(16px, 2vw, 22px);
  font-style: italic;
  color: var(--sand);
  opacity: 0.75;
  margin-bottom: 48px;
}

.hero-horizon {
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin-bottom: 48px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  background: var(--bg);
  padding: 48px 24px;
  text-align: center;
}

.stat-value {
  font-family: Georgia, serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 8px;
}

/* Feature cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.card {
  padding: 36px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  transition: border-color 0.4s, transform 0.4s;
}
.card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
}

.card-icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: block;
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* Margin table (matches Slide14) */
.margin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
}

.margin-table th {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-gold);
}

.margin-table td {
  padding: 14px 16px;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.margin-table td:last-child {
  color: var(--gold);
  font-weight: 700;
  font-family: Georgia, serif;
  font-size: 18px;
}

/* Comparison bars (matches Slide15) */
.compare-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.compare-label {
  width: 140px;
  font-size: 13px;
  text-align: right;
  color: var(--text-muted);
  flex-shrink: 0;
}

.compare-bar-wrap {
  flex: 1;
  height: 32px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.compare-bar {
  height: 100%;
  border-radius: 2px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  padding-left: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--iron);
}

.compare-bar.visible { /* width set by inline style */ }

.compare-bar.gold { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.compare-bar.muted { background: rgba(255, 255, 255, 0.1); color: var(--text-muted); }

/* CTA section */
.cta-section {
  text-align: center;
  background: radial-gradient(ellipse at 50% 50%, rgba(196, 148, 43, 0.05) 0%, transparent 60%);
}

/* Footer */
.footer {
  padding: 64px 32px 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-links a {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.footer-links a:hover { color: var(--gold); }

.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.8;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links a:not(.btn) { display: none; }
  .section { padding: 80px 20px; min-height: auto; }
  .hero h1 { letter-spacing: 4px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 300px; }
  .compare-label { width: 80px; font-size: 11px; }
  .card-grid { grid-template-columns: 1fr; }
  .section-inner > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}
