/* ═══════════════════════════════════════════
   TALENT FORGE — Shared Design System
   LoopStack AI | loopstack.co.uk
   ═══════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  --black: #0f0e0c;
  --white: #f2ede4;
  --cream: #e8e0d0;
  --accent: #e8622a;
  --accent2: #f0a050;
  --mid: #181612;
  --surface: #1e1b16;
  --border: rgba(242,237,228,0.1);
  --text-muted: rgba(242,237,228,0.48);
  --font-display: 'Bebas Neue', sans-serif;
  --font-serif: 'Instrument Serif', serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--black);
  background-image: radial-gradient(ellipse 120% 60% at 50% -10%, rgba(232,98,42,0.04) 0%, transparent 60%);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 48px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: all 0.4s;
}
nav.scrolled {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 26px; letter-spacing: 2px;
  color: var(--white);
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  color: var(--text-muted); font-size: 13px; letter-spacing: 0.5px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--accent); color: var(--black) !important;
  padding: 10px 22px; border-radius: 4px;
  font-weight: 500 !important; font-size: 13px !important;
}
.nav-cta:hover { opacity: 0.85; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--accent); color: var(--black);
  padding: 16px 36px; border-radius: 4px;
  font-size: 15px; font-weight: 500;
  font-family: var(--font-body);
  display: inline-flex; align-items: center; gap: 10px;
  transition: all 0.2s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-secondary {
  color: var(--white); padding: 16px 28px; border-radius: 4px;
  font-size: 15px; font-family: var(--font-body);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: rgba(245,240,232,0.3); }

/* ── SECTION SHARED ── */
.section { padding: 120px 48px; }
.section-label {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 80px); line-height: 0.95;
  margin-bottom: 60px; max-width: 700px;
}
.section-title em { font-family: var(--font-serif); font-style: italic; color: var(--text-muted); }

/* ── HERO MINI (inner pages) ── */
.page-hero {
  padding: 160px 48px 80px;
  position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 50%, rgba(232,98,42,0.07) 0%, transparent 70%);
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 100px);
  line-height: 0.92; letter-spacing: 2px;
  max-width: 800px; margin-bottom: 24px;
}
.page-hero h1 em { font-family: var(--font-serif); font-style: italic; color: var(--accent); }
.page-hero p {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-muted);
  max-width: 560px; line-height: 1.7;
}

/* ── CONTENT BLOCKS ── */
.content-block {
  max-width: 800px; margin: 0 auto 80px;
}
.content-block:last-child { margin-bottom: 0; }
.content-block h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 0.95; margin-bottom: 20px;
}
.content-block h2 em { font-family: var(--font-serif); font-style: italic; color: var(--accent); }
.content-block h3 {
  font-family: var(--font-display);
  font-size: 22px; letter-spacing: 1px;
  margin-bottom: 12px; margin-top: 40px;
}
.content-block p {
  font-size: 15px; color: var(--text-muted);
  line-height: 1.8; margin-bottom: 16px;
}
.content-block ul { list-style: none; margin-bottom: 16px; }
.content-block ul li {
  font-size: 15px; color: var(--text-muted);
  padding: 8px 0; padding-left: 24px;
  position: relative; line-height: 1.6;
}
.content-block ul li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--accent); font-weight: 500;
}

/* ── COMPARISON TABLE ── */
.comparison-table {
  width: 100%; border-collapse: collapse;
  margin: 40px 0; font-size: 14px;
}
.comparison-table th {
  font-family: var(--font-display);
  font-size: 15px; letter-spacing: 1px;
  text-align: left; padding: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--white); font-weight: 400;
}
.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.comparison-table tr:hover td { color: var(--white); }
.comparison-table .highlight td {
  color: var(--accent); font-weight: 500;
}
.comparison-table .highlight td:first-child::before {
  content: '→ '; color: var(--accent);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 22px; letter-spacing: 2px;
  color: var(--white);
}
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  font-size: 13px; color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-links .social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  transition: color 0.2s;
}
.footer-links .social-icon:hover { color: var(--accent); }
.footer-links .social-icon svg { width: 18px; height: 18px; display: block; }
.footer-note { font-size: 13px; color: var(--text-muted); }

/* ── CTA BANNER ── */
.cta-banner {
  padding: 120px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(232,98,42,0.08) 0%, transparent 70%);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 100px); line-height: 0.95;
  margin-bottom: 24px;
}
.cta-banner h2 em { font-family: var(--font-serif); font-style: italic; color: var(--accent); }
.cta-banner p {
  font-size: 18px; color: var(--text-muted);
  margin-bottom: 48px; max-width: 500px;
  margin-left: auto; margin-right: auto;
}

/* ── FEATURE GRID (used on features & for-agencies) ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 60px 0;
}
.feature-card {
  background: var(--black);
  padding: 40px;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 0%, rgba(232,98,42,0.06) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover { background: var(--mid); }
.feature-card:hover::before { opacity: 1; }
.feature-card .icon { font-size: 28px; margin-bottom: 16px; display: block; }
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 20px; letter-spacing: 1px;
  margin-bottom: 10px;
}
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ── IMAGE WRAPPER ── */
.img-wrap {
  border-radius: 4px; overflow: hidden;
  border: 1px solid var(--border);
  margin: 40px 0;
}
.img-wrap img { width: 100%; height: auto; display: block; }

/* ── STATS BAR ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 40px; max-width: 1000px; margin: 60px auto;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 52px; line-height: 1;
  color: var(--accent); margin-bottom: 8px;
}
.stat-label { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .section, .page-hero, .cta-banner { padding: 80px 24px; }
  footer { padding: 32px 24px; flex-direction: column; text-align: center; }
  .comparison-table { font-size: 12px; }
  .comparison-table th,
  .comparison-table td { padding: 10px 8px; }
}
@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; gap: 24px; }
}
