/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0D0D0F;
  --surface: #141418;
  --surface2: #1C1C22;
  --amber: #E8943A;
  --amber-dim: rgba(232, 148, 58, 0.15);
  --blue: #4AA3E8;
  --blue-dim: rgba(74, 163, 232, 0.12);
  --text: #F0EDE6;
  --text-muted: #8A8680;
  --text-dim: #5A5855;
  --border: rgba(240, 237, 230, 0.08);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  background: rgba(13, 13, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}
.nav-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 8rem 2rem 5rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 148, 58, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 148, 58, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 148, 58, 0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}
.hero-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(74, 163, 232, 0.08) 0%, transparent 70%);
  bottom: -80px;
  left: -80px;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 2rem;
  font-weight: 500;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 700px;
  margin-bottom: 1.75rem;
}
.hero-headline em {
  font-style: italic;
  color: var(--amber);
}
.hero-lede {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.65;
  font-weight: 300;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.badge {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--amber-dim);
  border-radius: 3px;
  color: var(--amber);
  background: var(--amber-dim);
}

/* === STATS === */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 3.5rem 2rem;
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
}
.stat {
  padding: 0 2rem;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.4rem;
  font-weight: 300;
}
.stat-source {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  margin: 0.5rem 0;
}

/* === OPPORTUNITY === */
.opportunity {
  padding: 7rem 2rem;
  position: relative;
}
.opportunity::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 80% 50%, rgba(74, 163, 232, 0.04) 0%, transparent 70%);
  pointer-events: none;
}
.opportunity-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.opp-tag {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.opp-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 600px;
}
.opp-body {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 3.5rem;
  font-weight: 300;
}
.opp-body strong { color: var(--text); font-weight: 500; }
.opp-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.opp-stat {
  background: var(--surface);
  padding: 2rem;
}
.opp-stat-val {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 0.5rem;
}
.opp-stat-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* === SOLUTIONS === */
.solutions {
  padding: 7rem 2rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.solutions-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.solutions-tag {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.solutions-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 620px;
  margin-bottom: 0.75rem;
}
.solutions-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 3.5rem;
  font-weight: 300;
}
.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.solution-card {
  background: var(--bg);
  padding: 2.5rem;
  transition: background 0.2s;
}
.solution-card:hover { background: var(--surface2); }
.solution-icon {
  margin-bottom: 1.25rem;
}
.solution-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  color: var(--text);
}
.solution-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  font-weight: 300;
}
.solution-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.solution-list li {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
  font-weight: 300;
}
.solution-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--amber);
}

/* === FRAMEWORK === */
.framework {
  padding: 7rem 2rem;
  position: relative;
}
.framework::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 20% 50%, rgba(232, 148, 58, 0.04) 0%, transparent 70%);
  pointer-events: none;
}
.framework-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.fw-tag {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.fw-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.fw-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 4rem;
  font-weight: 300;
}
.fw-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.fw-step {
  padding: 2rem;
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: relative;
}
.fw-step:last-child { border-right: none; }
.fw-step::after {
  content: '';
  position: absolute;
  top: 2rem;
  right: -1px;
  width: 1px;
  height: calc(100% - 4rem);
  background: var(--border);
}
.fw-step:last-child::after { display: none; }
.fw-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--amber-dim);
  margin-bottom: 1rem;
  line-height: 1;
}
.fw-step-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.fw-step-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

/* === CLOSING === */
.closing {
  padding: 7rem 2rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.closing-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.closing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--amber-dim);
  background: var(--amber-dim);
  padding: 0.4rem 1rem;
  border-radius: 2px;
  margin-bottom: 2.5rem;
  font-weight: 500;
}
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.closing-body {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 3.5rem;
  line-height: 1.7;
  font-weight: 300;
}
.closing-pillars {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.pillar {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  text-align: left;
  max-width: 220px;
}
.pillar-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pillar-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text);
}
.pillar-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 300;
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.footer-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.5;
  font-weight: 300;
}
.footer-meta {
  text-align: right;
}
.footer-built {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.footer-built a { color: var(--amber); text-decoration: none; }
.footer-built a:hover { text-decoration: underline; }
.footer-copy {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* === SIGNUP PAGE === */
.signup-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.signup-container {
  width: 100%;
  max-width: 460px;
}
.signup-brand {
  text-align: center;
  margin-bottom: 3rem;
}
.signup-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.signup-container h1 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
}
.signup-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.6;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--amber);
}
.form-group input::placeholder {
  color: var(--text-dim);
}
.btn-primary {
  width: 100%;
  padding: 0.85rem;
  background: var(--amber);
  color: var(--bg);
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 0.5rem;
}
.btn-primary:hover { opacity: 0.88; }
.signup-privacy {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 1rem;
  font-weight: 300;
}
.form-error {
  font-size: 0.82rem;
  color: #e05a5a;
  text-align: center;
  margin-top: 1rem;
}
.form-success {
  font-size: 0.82rem;
  color: var(--blue);
  text-align: center;
  margin-top: 1rem;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .stats-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .stat-divider { display: none; }
  .stat { padding: 0; }
  .solution-grid { grid-template-columns: 1fr; }
  .fw-steps { grid-template-columns: 1fr 1fr; }
  .fw-step:nth-child(2)::after { display: none; }
  .fw-step { border-right: none; border-bottom: 1px solid var(--border); }
  .fw-step:nth-child(1), .fw-step:nth-child(2) { border-bottom: 1px solid var(--border); }
  .opp-stats-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}
@media (max-width: 600px) {
  .hero { padding: 7rem 1.5rem 4rem; }
  .stats { padding: 2.5rem 1.5rem; }
  .opportunity { padding: 5rem 1.5rem; }
  .solutions { padding: 5rem 1.5rem; }
  .framework { padding: 5rem 1.5rem; }
  .closing { padding: 5rem 1.5rem; }
  .fw-steps { grid-template-columns: 1fr; }
  .fw-step { border-bottom: 1px solid var(--border); }
  .fw-step:last-child { border-bottom: none; }
  .fw-step::after { display: none; }
  .closing-pillars { flex-direction: column; align-items: center; }
  .pillar { max-width: 100%; text-align: center; justify-content: center; }
  .stats-inner { grid-template-columns: 1fr; }
}