/* ===================================
   CloseRate — Theme CSS
   Dark, electric, outcome-focused
   =================================== */

:root {
  --bg: #0C0C0E;
  --surface: #141416;
  --surface-2: #1C1C1F;
  --fg: #F5F5F0;
  --fg-dim: #8A8A8A;
  --accent: #F5F200;
  --accent-dim: rgba(245, 242, 0, 0.12);
  --border: rgba(255,255,255,0.07);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

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

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

/* ---- Custom scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 3px; }

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 48px;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(12,12,14,0.85);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.nav-tag {
  font-size: 0.8rem;
  color: var(--fg-dim);
  font-weight: 300;
  letter-spacing: 0.04em;
}

/* ---- Section eyebrow ---- */
.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 48px 80px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
}

.label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--fg);
}

.hero-highlight {
  color: var(--accent);
  display: inline-block;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--fg-dim);
  max-width: 560px;
  line-height: 1.7;
  font-weight: 300;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 16px;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: fit-content;
}

.proof-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 32px;
}

.proof-item:first-child { padding-left: 0; }

.proof-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.proof-label {
  font-size: 0.75rem;
  color: var(--fg-dim);
  line-height: 1.4;
  font-weight: 300;
}

.proof-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ---- Geometry ---- */
.hero-geometry {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.geo-block {
  position: absolute;
  border: 1px solid var(--border);
}

.geo-1 {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  top: -140px;
  right: 80px;
  border-color: rgba(245,242,0,0.08);
  animation: rotate-slow 30s linear infinite;
}

.geo-2 {
  width: 400px;
  height: 400px;
  top: -200px;
  right: 0;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  background: rgba(245,242,0,0.03);
  border-color: rgba(245,242,0,0.06);
}

.geo-3 {
  width: 120px;
  height: 120px;
  top: -60px;
  right: 240px;
  transform: rotate(15deg);
  background: rgba(245,242,0,0.05);
  border-color: rgba(245,242,0,0.15);
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---- Problem ---- */
.problem {
  padding: 120px 48px;
  border-top: 1px solid var(--border);
}

.problem-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.problem-header {
  max-width: 680px;
}

.problem-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.problem-card:hover {
  border-color: rgba(245,242,0,0.2);
  transform: translateY(-4px);
}

.problem-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.problem-text {
  font-size: 0.95rem;
  color: var(--fg-dim);
  line-height: 1.6;
  font-weight: 300;
}

.problem-quote {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 24px 28px;
  border-radius: 0 12px 12px 0;
}

.problem-quote p {
  font-size: 1rem;
  font-style: italic;
  color: var(--fg);
  margin-bottom: 8px;
  font-weight: 300;
}

.problem-quote span {
  font-size: 0.75rem;
  color: var(--fg-dim);
  font-style: normal;
}

/* ---- Offer ---- */
.offer {
  padding: 120px 48px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.offer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.offer-header {
  max-width: 680px;
}

.offer-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.offer-sub {
  font-size: 1rem;
  color: var(--fg-dim);
  line-height: 1.7;
  font-weight: 300;
}

.offer-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.offer-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: start;
  padding: 28px 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0;
  transition: background 0.2s ease;
}

.offer-item:first-child { border-radius: 12px 12px 0 0; }
.offer-item:last-child { border-radius: 0 0 12px 12px; }

.offer-item:hover { background: var(--surface-2); }

.offer-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  padding-top: 4px;
}

.offer-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--fg);
}

.offer-body p {
  font-size: 0.875rem;
  color: var(--fg-dim);
  font-weight: 300;
  line-height: 1.6;
}

.offer-cta {
  padding: 32px;
  background: var(--accent-dim);
  border: 1px solid rgba(245,242,0,0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cta-price {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.cta-from {
  font-size: 0.8rem;
  color: var(--fg-dim);
  font-weight: 300;
}

.cta-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
}

.cta-amount span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--fg-dim);
}

.cta-note {
  font-size: 0.8rem;
  color: var(--fg-dim);
  font-weight: 300;
}

/* ---- Manifesto ---- */
.manifesto {
  padding: 120px 48px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.manifesto-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 40px;
}

.manifesto-headline em {
  font-style: normal;
  color: var(--accent);
}

.manifesto-body p {
  font-size: 1.05rem;
  color: var(--fg-dim);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 20px;
}

.manifesto-punch {
  font-family: var(--font-display);
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--fg) !important;
  margin-top: 32px !important;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.manifesto-aside {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 60px;
  min-width: 280px;
}

.manifesto-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.manifesto-stat:last-child { border-bottom: none; }

.stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
}

.stat-desc {
  font-size: 0.8rem;
  color: var(--fg-dim);
  line-height: 1.5;
  font-weight: 300;
}

/* ---- Niches ---- */
.niches {
  padding: 120px 48px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.niches-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.niches-header {
  max-width: 640px;
}

.niches-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.niches-sub {
  font-size: 0.95rem;
  color: var(--fg-dim);
  font-weight: 300;
}

.niches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.niche-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
  position: relative;
}

.niche-card:hover {
  border-color: rgba(245,242,0,0.2);
  transform: translateY(-2px);
}

.niche-active {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.niche-icon {
  color: var(--accent);
  width: 40px;
}

.niche-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
}

.niche-card p {
  font-size: 0.85rem;
  color: var(--fg-dim);
  font-weight: 300;
  line-height: 1.5;
}

.niche-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--bg);
  padding: 3px 8px;
  border-radius: 4px;
  width: fit-content;
}

.niches-note {
  font-size: 0.8rem;
  color: var(--fg-dim);
  font-style: italic;
  font-weight: 300;
}

/* ---- Closing ---- */
.closing {
  padding: 120px 48px;
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.closing-block {
  margin-bottom: 48px;
}

.closing-block:last-child { margin-bottom: 0; }

.math-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.math-formula {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg-dim);
}

.math-equals {
  font-size: 1.4rem;
  color: var(--accent);
}

.math-result {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.math-note {
  font-size: 0.8rem;
  color: var(--fg-dim);
  font-weight: 300;
  line-height: 1.5;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.tl-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tl-phase {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.tl-desc {
  font-size: 0.85rem;
  color: var(--fg-dim);
  font-weight: 300;
  line-height: 1.4;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.closing-headline em {
  font-style: normal;
  color: var(--accent);
}

.closing-body {
  font-size: 1rem;
  color: var(--fg-dim);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 32px;
}

.closing-vision {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  border-left: 3px solid var(--accent);
}

.closing-vision p {
  font-size: 0.95rem;
  color: var(--fg-dim);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 12px;
}

.closing-vision p:last-child { margin-bottom: 0; }

/* ---- Footer ---- */
.footer {
  padding: 48px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--fg-dim);
  font-weight: 300;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--fg-dim);
  font-weight: 300;
  flex-wrap: wrap;
}

.footer-dot {
  color: var(--border);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
  font-weight: 300;
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
  .hero { padding: 100px 24px 64px; }
  .hero-geometry { display: none; }
  .hero-proof { flex-direction: column; gap: 20px; width: 100%; }
  .proof-divider { width: 100%; height: 1px; }
  .proof-item { padding: 0; }
  .problem { padding: 80px 24px; }
  .offer { padding: 80px 24px; }
  .manifesto { grid-template-columns: 1fr; padding: 80px 24px; gap: 48px; }
  .manifesto-aside { padding-top: 0; min-width: unset; }
  .niches { padding: 80px 24px; }
  .niches-grid { grid-template-columns: 1fr; }
  .closing { padding: 80px 24px; }
  .closing-inner { grid-template-columns: 1fr; gap: 48px; }
  .offer-item { grid-template-columns: 48px 1fr; }
  .offer-cta { flex-direction: column; align-items: flex-start; gap: 16px; }
  .nav { padding: 0 24px; }
  .footer { padding: 40px 24px; }
}
