/* ═══════════════════════════════════════════════════
   WRTG × INVISALIGN — Proposal System
   Light Mode Redesign
   ═══════════════════════════════════════════════════ */

:root {
  --bg: #FAFAF8;
  --bg-alt: #F2F1EE;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text-secondary: #555550;
  --text-muted: #8A8A85;
  --border: #E0DED8;
  --border-light: #EEEDEA;

  /* Accent — consistent blue throughout */
  --accent: #0077B6;
  --accent-light: #E8F2FA;
  --accent-hover: #005C8F;

  /* Card gradient — rich navy/teal for the hub card */
  --card-gradient: linear-gradient(160deg, #001f3f 0%, #003d7a 50%, #0077B6 100%);
  --card-border: rgba(0,194,255,.2);
  --card-border-hover: rgba(0,194,255,.5);
  --card-badge-bg: rgba(0,194,255,.15);
  --card-badge-color: #00C2FF;
  --card-cta: #00C2FF;

  /* Hub card background — dark blue image */
  --hub-bg: #0A1628;
}

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

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

body {
  font-family: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

/* ─── HUB / HOMEPAGE ─── */

.hub {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  overflow: hidden;
  background: var(--hub-bg);
}
.hub-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.hub-header { margin-bottom: 48px; }
.wrtg-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: 'Clash Grotesk', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.hub-subtitle {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

.hub-title {
  font-family: 'Clash Grotesk', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #fff;
}
.hub-desc {
  max-width: 620px;
  margin: 0 auto 48px;
  font-size: 1rem;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
}

.hub-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 28px;
  min-height: 280px;
  border-radius: 16px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  text-align: left;
  color: #fff;
}
.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
}

.hub-card--smile-social {
  background: var(--card-gradient);
  border: 1px solid var(--card-border);
}
.hub-card--smile-social:hover { border-color: var(--card-border-hover); }

.hub-card-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  width: fit-content;
  background: var(--card-badge-bg);
  color: var(--card-badge-color);
}
.hub-card-brand {
  font-family: 'Clash Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.hub-card-tagline {
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
  margin-bottom: 20px;
}
.hub-card-cta {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--card-cta);
}
.hub-card-cta span { transition: transform .2s; }
.hub-card:hover .hub-card-cta span { transform: translateX(4px); }

.hub-footer { font-size: 12px; color: rgba(255,255,255,.35); }

/* ─── TOP BAR ─── */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(10,10,10,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Clash Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
}
.topbar-back {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  transition: color .2s;
}
.topbar-back:hover { color: #fff; }

/* ─── ONE-SHEET BASE ─── */

.one-sheet { padding-top: 60px; }

/* HERO — stays dark because image is dark */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero--image { min-height: 80vh; }
.hero-image-wrap { position: absolute; inset: 0; }
.hero-image { width: 100%; height: 100%; object-fit: cover; }
.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,.5) 40%, rgba(10,10,10,.15) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 40px 48px;
  max-width: 800px;
  color: #fff;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: #00C2FF;
}
.hero-title {
  font-family: 'Clash Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 20px;
  color: #fff;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  max-width: 560px;
}

/* Transition from dark hero to light body */
.one-sheet .hero + .section,
.one-sheet .hero + .divider + .section {
  /* seamless transition handled via first section special treatment */
}

/* DIVIDER */
.divider { height: 1px; background: var(--border-light); margin: 0 40px; }

/* SECTIONS — light mode */
.section {
  padding: 64px 40px;
  background: var(--bg);
}
.section-inner {
  max-width: 800px;
  margin: 0 auto;
}
.section-label {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--accent);
}

.section-heading {
  font-family: 'Clash Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text);
}
.section-body {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 640px;
}

/* First section after hero — dark bg for smooth transition */
.hero + .section {
  background: #0a0a0a;
  color: #fff;
}
.hero + .section .section-label { color: #00C2FF; }
.hero + .section .section-heading { color: #fff; }
.hero + .section .section-body { color: rgba(255,255,255,.75); }
.hero + .section .stat-number { color: #00C2FF; }
.hero + .section .stat-card {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
}
.hero + .section .stat-label { color: rgba(255,255,255,.55); }

/* Transition strip from dark to light */
.hero + .section + .divider {
  background: transparent;
  height: 0;
  margin: 0;
  border: none;
}
.hero + .section + .divider + .section {
  background: var(--bg);
  position: relative;
}
.hero + .section + .divider + .section::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, #0a0a0a, var(--bg));
  pointer-events: none;
}

/* STAT GRID */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.stat-number {
  font-family: 'Clash Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--accent);
}
.stat-label {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* SECTION IMAGE */
.section-image { margin: 28px 0; border-radius: 12px; overflow: hidden; }
.full-image { width: 100%; border-radius: 12px; }

/* PILLARS — 4 pillar layout (2×2 grid) */
.pillars { margin-top: 36px; }
.pillars.pillars--four {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.pillar {
  padding: 24px;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.pillar-number {
  font-family: 'Clash Grotesk', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  margin-bottom: 10px;
  color: var(--accent);
}
.pillar-title {
  font-family: 'Clash Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text);
}
.pillar-desc {
  font-size: .85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* CTA BLOCK */
.cta-block {
  margin-top: 48px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.cta-overlap {
  padding: 28px 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
}
.cta-overlap-label {
  font-family: 'Clash Grotesk', sans-serif;
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.cta-overlap-text {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.cta-overlap-text strong {
  color: var(--text);
  font-weight: 600;
}
.cta-action {
  padding: 28px 32px;
  background: var(--accent);
  text-align: center;
}
.cta-action-text {
  font-size: 1rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 16px;
}
.cta-button {
  display: inline-block;
  padding: 12px 32px;
  background: #fff;
  color: var(--accent);
  font-family: 'Clash Grotesk', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  border-radius: 8px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.cta-email {
  display: block;
  margin-top: 10px;
  font-size: .8rem;
  color: rgba(255,255,255,.55);
}

/* FOOTER */
.one-sheet-footer {
  text-align: center;
  padding: 40px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  background: var(--bg);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .pillars.pillars--four {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .hero-content { padding: 40px 24px 36px; }
  .section { padding: 48px 24px; }
  .divider { margin: 0 24px; }
  .topbar { padding: 12px 20px; }
  .hub { padding: 40px 20px; }
  .hub-cards { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .pillars.pillars--four { grid-template-columns: 1fr; }
}
