/* ==========================================
   CHANTIEROS — Theme CSS
   Industrial precision. French construction.
   ========================================== */

:root {
  --bg-primary: #0e0e1a;
  --bg-secondary: #141428;
  --bg-card: #1a1a30;
  --bg-card-hover: #1f1f38;
  --fg-primary: #f0ede6;
  --fg-secondary: #9e9baa;
  --fg-muted: #5e5a70;
  --accent: #e8a838;
  --accent-dim: rgba(232, 168, 56, 0.12);
  --border: rgba(240, 237, 230, 0.08);
  --border-strong: rgba(240, 237, 230, 0.15);
  --section-pad: 120px 80px;
  --container-max: 1200px;
  --radius: 4px;
  --radius-md: 8px;
}

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

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

body {
  background: var(--bg-primary);
  color: var(--fg-primary);
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-tag {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-tag.light { color: var(--accent); opacity: 0.7; }

/* ---- HERO ---- */
.hero {
  padding: 100px 80px 80px;
  position: relative;
  background: var(--bg-primary);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(232,168,56,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-secondary);
  margin-bottom: 48px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-content {
  max-width: var(--container-max);
  margin: 0 auto;
}

.hero-headline {
  font-size: clamp(3rem, 6vw, 5.5rem);
  color: var(--fg-primary);
  margin-bottom: 28px;
  max-width: 680px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--fg-secondary);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 60px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  width: fit-content;
  overflow: hidden;
}

.stat-block {
  padding: 24px 40px;
  text-align: center;
}

.stat-value {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border-strong);
  flex-shrink: 0;
}

.hero-metric-stripe {
  display: flex;
  gap: 48px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--fg-secondary);
  font-weight: 500;
}

.metric-icon {
  color: var(--accent);
  font-size: 0.7rem;
}

/* ---- OUTCOMES ---- */
.outcomes {
  padding: var(--section-pad);
  background: var(--bg-secondary);
}

.outcomes-header {
  max-width: var(--container-max);
  margin: 0 auto 64px;
}

.outcomes-header h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--fg-primary);
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: var(--container-max);
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.outcome-card {
  background: var(--bg-card);
  padding: 48px 40px;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}

.outcome-card:last-child { border-right: none; }
.outcome-card:hover { background: var(--bg-card-hover); }

.outcome-icon {
  color: var(--accent);
  margin-bottom: 24px;
}

.outcome-card h3 {
  font-size: 1.25rem;
  color: var(--fg-primary);
  margin-bottom: 14px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
}

.outcome-card p {
  font-size: 0.9rem;
  color: var(--fg-secondary);
  line-height: 1.7;
}

/* ---- MANIFESTO ---- */
.manifesto {
  padding: 120px 80px;
  background: var(--bg-primary);
  position: relative;
}

.manifesto::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(232,168,56,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.manifesto-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
}

.manifesto-body blockquote {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-style: italic;
  color: var(--fg-primary);
  line-height: 1.55;
  font-weight: 400;
  padding-left: 32px;
  border-left: 3px solid var(--accent);
  margin-bottom: 40px;
}

.manifesto-resolution {
  font-size: 1.05rem;
  color: var(--fg-secondary);
  line-height: 1.8;
  max-width: 680px;
}

/* ---- FEATURES ---- */
.features {
  padding: var(--section-pad);
  background: var(--bg-secondary);
}

.features-header {
  max-width: var(--container-max);
  margin: 0 auto 64px;
}

.features-header h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--fg-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  max-width: var(--container-max);
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.feature-item {
  background: var(--bg-card);
  padding: 48px 44px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.feature-item:hover { background: var(--bg-card-hover); }

.feature-num {
  font-family: 'Fraunces', serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--accent);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 24px;
}

.feature-item h3 {
  font-size: 1.15rem;
  color: var(--fg-primary);
  margin-bottom: 14px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
}

.feature-item p {
  font-size: 0.88rem;
  color: var(--fg-secondary);
  line-height: 1.75;
}

/* ---- PROCESS ---- */
.process {
  padding: var(--section-pad);
  background: var(--bg-primary);
}

.process-header {
  max-width: var(--container-max);
  margin: 0 auto 80px;
}

.process-header h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--fg-primary);
}

.process-steps {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 0;
}

.step-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-primary);
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}

.step-line, .step-line-last {
  width: 2px;
  background: var(--border-strong);
  flex: 1;
  min-height: 80px;
}

.step-line-last { background: transparent; }

.step-content {
  padding-bottom: 72px;
  flex: 1;
}

.step-content h3 {
  font-size: 1.3rem;
  color: var(--fg-primary);
  margin-bottom: 12px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
}

.step-content p {
  font-size: 0.92rem;
  color: var(--fg-secondary);
  line-height: 1.75;
  max-width: 520px;
}

/* ---- CLOSING ---- */
.closing {
  padding: 140px 80px 120px;
  background: var(--bg-secondary);
}

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

.closing-ruling-block {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 40px;
}

.ruling-line {
  flex: 1;
  height: 1px;
  background: var(--border-strong);
}

.closing-statement {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-style: italic;
  color: var(--fg-primary);
  line-height: 1.3;
  font-weight: 500;
  white-space: nowrap;
}

.closing-sub {
  font-size: 1rem;
  color: var(--fg-secondary);
  line-height: 1.7;
}

/* ---- FOOTER ---- */
.footer {
  padding: 40px 80px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg-primary);
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-left: 12px;
}

.footer-meta {
  font-size: 0.78rem;
  color: var(--fg-muted);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero, .outcomes, .features, .process, .closing, .manifesto, .footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero { padding-top: 80px; }

  .outcomes, .features, .process { padding-top: 80px; padding-bottom: 80px; }

  .hero-stats { flex-wrap: wrap; }
  .stat-block { padding: 16px 24px; }
  .hero-metric-stripe { flex-direction: column; gap: 16px; }

  .outcomes-grid { grid-template-columns: 1fr; }
  .outcome-card { border-right: none; border-bottom: 1px solid var(--border); }
  .outcome-card:last-child { border-bottom: none; }

  .features-grid { grid-template-columns: 1fr; }
  .feature-item { border-right: none; }

  .closing-statement { white-space: normal; }
  .closing-ruling-block { flex-direction: column; gap: 16px; }
  .ruling-line { display: none; }

  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2.4rem; }
  .manifesto-body blockquote { font-size: 1.1rem; padding-left: 16px; }
  .process-step { gap: 20px; }
}