/* ═══════════════════════════════════════════════
   FIELDFORGE — Global Components
   Shared across all marketing pages. Requires tokens.css.
   Extracted 2026-07-04 from index.html inline styles —
   new pages link this instead of duplicating <style> blocks.
   ═══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font); background: var(--bg-muted); color: var(--text-primary);
  -webkit-font-smoothing: antialiased; line-height: 1.5;
}
a { text-decoration: none; }
img { max-width: 100%; display: block; }

/* ═══ NAVBAR ═══ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(6, 16, 33, 0.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-dark);
  transition: background 0.3s;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 44px; width: auto; filter: drop-shadow(0 0 8px rgba(255,122,24,0.15)); }
.nav-logo-text { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.nav-logo-text .forge {
  background: linear-gradient(135deg, var(--ember) 0%, var(--molten) 60%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.6); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--forge-green) !important; color: #fff !important;
  padding: 8px 20px; border-radius: 8px; font-weight: 600 !important;
  font-size: 13px !important; transition: all 0.2s;
  box-shadow: 0 0 12px rgba(34,197,94,0.2);
}
.nav-cta:hover { background: var(--forge-green-dark) !important; box-shadow: 0 0 20px rgba(34,197,94,0.3); }
.nav-login {
  background: #38BDF8; color: #061021 !important;
  padding: 8px 22px; border-radius: 999px; font-weight: 700 !important; font-size: 13px !important;
  transition: all 0.2s; box-shadow: 0 0 12px rgba(56,189,248,0.25);
}
.nav-login:hover { background: #5cc9fa; box-shadow: 0 0 20px rgba(56,189,248,0.4); }
.nav-getapp {
  background: linear-gradient(135deg, var(--ember) 0%, var(--molten) 60%); color: #fff !important;
  padding: 8px 18px; border-radius: 999px; font-weight: 700 !important; font-size: 13px !important;
  transition: all 0.2s; box-shadow: 0 0 12px rgba(255,122,24,0.25);
}
.nav-getapp:hover { box-shadow: 0 0 20px rgba(255,122,24,0.4); }
@media (max-width: 768px) {
  .nav-links { gap: 10px; }
  .nav-links a:not(.nav-cta):not(.nav-login) { display: none; }
  .nav-logo img { height: 36px; }
}

/* ═══ BUTTONS ═══ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--forge-green); color: #fff;
  padding: 15px 32px; border-radius: 12px; font-size: 16px;
  font-weight: 600; transition: all 0.2s;
  box-shadow: var(--shadow-glow-green), 0 0 40px rgba(34,197,94,0.15);
}
.btn-primary:hover { background: var(--forge-green-dark); transform: translateY(-1px); box-shadow: var(--shadow-glow-green), 0 0 50px rgba(34,197,94,0.2); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--ember) 0%, var(--molten) 60%); color: #fff;
  border: none; padding: 15px 32px; border-radius: 12px; font-size: 16px;
  font-weight: 600; transition: all 0.2s;
  box-shadow: 0 0 30px rgba(255,122,24,0.18);
}
.btn-secondary:hover { transform: translateY(-1px); box-shadow: 0 0 40px rgba(255,122,24,0.3); }

/* ═══ PAGE HERO (feature/trade subpages) ═══ */
.page-hero {
  background: var(--gradient-hero); color: var(--text-on-dark);
  text-align: center; padding: 130px 24px 64px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 35%, rgba(255,122,24,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.page-hero .hero-badge {
  display: inline-block;
  background: var(--ember-glow); border: 1px solid rgba(255,122,24,0.25);
  color: var(--ember); font-size: 12px; font-weight: 700;
  padding: 6px 16px; border-radius: 24px; margin-bottom: 24px;
  letter-spacing: 1px; text-transform: uppercase;
}
.page-hero h1 {
  font-size: clamp(32px, 5.5vw, 50px); font-weight: 900;
  letter-spacing: -1.2px; line-height: 1.12; margin-bottom: 16px;
}
.page-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--ember) 0%, var(--molten) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero .hero-sub {
  font-size: 18px; color: var(--text-on-dark-muted); max-width: 560px;
  margin: 0 auto 32px; line-height: 1.6;
}
.page-hero .hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ═══ SECTIONS ═══ */
.section { max-width: 1040px; margin: 0 auto; padding: 72px 24px; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-label {
  display: inline-block; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--ember); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 4vw, 36px); font-weight: 800;
  letter-spacing: -0.5px; line-height: 1.2;
}
.section-sub {
  font-size: 16px; color: var(--text-muted); max-width: 540px;
  margin: 12px auto 0; line-height: 1.6;
}
.section-dark {
  background: var(--gradient-dark-section); color: var(--text-on-dark);
  padding: 72px 24px; position: relative;
}
.section-dark::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
}
.section-dark .section-label { color: var(--ember); }
.section-dark .section-title { color: var(--text-on-dark); }
.section-dark .section-sub { color: var(--text-on-dark-muted); }

/* ═══ DIVIDERS ═══ */
.industrial-divider { height: 4px; position: relative; background: var(--gunmetal); }
.industrial-divider::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06) 50%, transparent);
}
.industrial-divider-light {
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--line) 30%, var(--line) 70%, transparent 95%);
}
.industrial-divider-dark {
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--line-dark-strong) 30%, var(--line-dark-strong) 70%, transparent 95%);
}

/* ═══ STORY ROWS ═══ */
.story-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center; max-width: 960px; margin: 0 auto;
}
@media (max-width: 768px) { .story-row { grid-template-columns: 1fr; gap: 40px; } }
.story-row.reverse { direction: rtl; }
.story-row.reverse > * { direction: ltr; }
.story-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; margin-bottom: 12px;
}
.story-label.ember { color: var(--ember); }
.story-label.green { color: var(--forge-green); }
.story-label.steel { color: var(--steel); }
.story-label.blue { color: var(--blue); }
.story-title {
  font-size: 28px; font-weight: 800; letter-spacing: -0.5px;
  line-height: 1.2; margin-bottom: 14px;
}
.story-desc { font-size: 15px; line-height: 1.7; margin-bottom: 20px; }
.story-bullets { list-style: none; padding: 0; }
.story-bullets li {
  font-size: 14px; line-height: 1.6; padding: 6px 0 6px 24px; position: relative;
}
.story-bullets li::before {
  content: ''; position: absolute; left: 0; top: 14px;
  width: 8px; height: 8px; border-radius: 2px;
}
.ember-bullets li::before { background: var(--ember); }
.green-bullets li::before { background: var(--forge-green); }
.steel-bullets li::before { background: var(--steel); }
.blue-bullets li::before { background: var(--blue); }
.section-dark .story-title { color: var(--text-on-dark); }
.section-dark .story-desc { color: var(--text-on-dark-muted); }
.section-dark .story-bullets li { color: var(--steel); }

/* ═══ PHONE MOCKUP ═══ */
.phone-showcase { display: flex; justify-content: center; align-items: center; position: relative; }
.phone-frame {
  position: relative;
  background: linear-gradient(155deg, #3a3a3e 0%, #1a1a1d 55%, #0d0d0f 100%);
  padding: 11px; border-radius: 46px;
  box-shadow: 0 26px 60px rgba(0,0,0,0.45);
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.4s;
  max-width: 282px;
}
.phone-frame::after {
  content: ''; position: absolute; inset: 0; border-radius: 46px;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.13);
  pointer-events: none;
}
.phone-frame:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 34px 80px rgba(0,0,0,0.55); }
.phone-frame img { width: 100%; display: block; border-radius: 35px; }
.phone-glow {
  position: absolute; width: 300px; height: 300px;
  border-radius: 50%; filter: blur(80px); opacity: 0.15;
  pointer-events: none; z-index: -1;
}
.phone-glow.ember-glow { background: var(--ember); }
.phone-glow.green-glow { background: var(--forge-green); }
.section-dark .phone-frame { box-shadow: 0 26px 60px rgba(0,0,0,0.6); }
.section-dark .phone-frame:hover { box-shadow: 0 34px 80px rgba(0,0,0,0.7); }

/* ═══ FEATURE CARDS ═══ */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  max-width: 960px; margin: 0 auto;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; max-width: 420px; } }
.feature-card {
  background: #fff; border-radius: 14px; padding: 28px 24px;
  border: 1px solid rgba(184,195,214,0.25); box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature-card h3 { font-size: 16px; font-weight: 700; margin: 14px 0 8px; letter-spacing: -0.2px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.section-dark .feature-card {
  background: rgba(255,255,255,0.04); border-color: var(--line-dark-strong);
}
.section-dark .feature-card h3 { color: var(--text-on-dark); }
.section-dark .feature-card p { color: var(--text-on-dark-muted); }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 11px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-icon.ember-bg { background: var(--ember-glow); color: var(--ember); }
.feature-icon.green-bg { background: var(--forge-green-glow); color: var(--forge-green); }
.feature-icon.steel-bg { background: rgba(184,195,214,0.15); color: var(--steel-dark); }

/* ═══ WORKFLOW STEPS ═══ */
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  max-width: 860px; margin: 0 auto;
}
@media (max-width: 768px) { .steps-grid { grid-template-columns: 1fr; max-width: 400px; } }
.step { text-align: center; position: relative; }
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ember) 0%, var(--molten) 100%);
  color: #fff; font-size: 20px; font-weight: 800;
  margin-bottom: 16px; box-shadow: 0 4px 16px rgba(255,122,24,0.25);
}
.step-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.3px; }
.step-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.step-arrow { display: none; position: absolute; top: 24px; right: -20px; color: var(--steel-dark); font-size: 20px; }
@media (min-width: 769px) { .step-arrow { display: block; } }

/* ═══ FAQ ═══ */
.faq-section { max-width: 720px; margin: 0 auto; padding: 72px 24px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; font-family: var(--font);
  font-size: 16px; font-weight: 600; color: var(--text-primary);
  text-align: left; line-height: 1.4;
}
.faq-question:hover { color: var(--ember); }
.faq-icon { font-size: 20px; color: var(--text-muted); transition: transform 0.3s; flex-shrink: 0; margin-left: 16px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer-inner { padding: 0 0 20px; font-size: 15px; line-height: 1.7; color: var(--text-muted); }
.faq-item.open .faq-answer { max-height: 300px; }

/* ═══ CTA BANNER ═══ */
.cta-banner {
  background: var(--gradient-hero); color: var(--text-on-dark);
  text-align: center; padding: 72px 24px;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(255,122,24,0.06), transparent);
  pointer-events: none;
}
.cta-banner h2 {
  font-size: clamp(26px, 4vw, 36px); font-weight: 800;
  letter-spacing: -0.5px; margin-bottom: 12px; position: relative;
}
.cta-banner p {
  font-size: 16px; color: var(--text-on-dark-muted);
  margin-bottom: 32px; max-width: 440px; margin-left: auto; margin-right: auto;
  position: relative;
}
.cta-banner .btn-primary, .cta-banner .btn-secondary { position: relative; }

/* ═══ FOOTER ═══ */
.footer {
  background: var(--bg-0); color: var(--text-on-dark);
  border-top: 1px solid var(--line-dark); padding: 40px 24px 32px;
}
.footer-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 32px;
}
.footer-brand-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.footer-brand-logo img { height: 36px; width: auto; }
.footer-brand-logo span { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.footer-tagline { font-size: 13px; color: var(--text-on-dark-muted); }
.footer-col h4 {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--steel); margin-bottom: 12px;
}
.footer-col a {
  display: block; color: var(--text-on-dark-muted); font-size: 14px;
  padding: 3px 0; transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 960px; margin: 24px auto 0;
  padding-top: 20px; border-top: 1px solid var(--line-dark);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 12px; color: var(--text-on-dark-muted); }
.footer-copy a { color: var(--text-on-dark-muted); transition: color 0.2s; }
.footer-copy a:hover { color: #fff; }
.footer-studio-badge { display: inline-flex; align-items: center; gap: 6px; }
.footer-studio-badge img { height: 18px; width: auto; opacity: 0.5; transition: opacity 0.2s; }
.footer-studio-badge:hover img { opacity: 0.8; }
@media (max-width: 640px) {
  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ═══ COMPARISON TABLE ═══ */
.compare-table { width: 100%; border-collapse: collapse; max-width: 760px; margin: 0 auto; }
.compare-table th, .compare-table td {
  padding: 14px 12px; font-size: 14px; text-align: left;
  border-bottom: 1px solid var(--line);
}
.compare-table th { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 700; }
.compare-table td:not(:first-child), .compare-table th:not(:first-child) { text-align: center; }
.compare-yes { color: var(--forge-green); font-weight: 700; white-space: nowrap; }
.compare-no { color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.section-dark .compare-table th, .section-dark .compare-table td { border-color: var(--line-dark-strong); }
.section-dark .compare-table td { color: var(--steel); }
.section-dark .compare-table td:first-child { color: var(--text-on-dark); font-weight: 600; }
