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

:root {
  --navy:     #0A1628;
  --navy-mid: #0F2040;
  --navy-lit: #15274E;
  --amber:    #F5A623;
  --amber-dim: #C8861A;
  --success:  #4ADE80;
  --danger:   #E63946;
  --text:     #E8ECF1;
  --text-dim: #8B9BB4;
  --surface:  #F8F9FB;
  --surface2: #F0F2F6;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Fraunces', serif; font-weight: 700; line-height: 1.15; }

/* ─── Navigation ───────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245, 166, 35, 0.12);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-name {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--amber);
  letter-spacing: -0.5px;
}

.nav-tagline {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* ─── Hero ─────────────────────────────────────────── */
.hero {
  padding: 160px 48px 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(245,166,35,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(245,166,35,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
}

.hero-headline {
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 900;
  color: var(--text);
  max-width: 720px;
  margin-bottom: 28px;
  letter-spacing: -2px;
}

.hero-highlight {
  color: var(--amber);
  font-style: italic;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 60px;
}

/* ─── Funnel Visual ────────────────────────────────── */
.hero-visual {
  position: relative;
}

.funnel-system {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.funnel-stage {
  background: var(--navy-mid);
  border: 1px solid rgba(245,166,35,0.15);
  border-radius: 16px;
  padding: 28px 24px;
  width: 200px;
  text-align: center;
  position: relative;
}

.funnel-stage.stage-source { border-color: rgba(245,166,35,0.2); }
.funnel-stage.stage-leak   { border-color: rgba(230,57,70,0.3); background: rgba(230,57,70,0.06); }
.funnel-stage.stage-recovered { border-color: rgba(74,222,128,0.25); background: rgba(74,222,128,0.04); }

.stage-icon {
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
}

.stage-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}

.stage-label.danger  { color: var(--danger); }
.stage-label.success { color: var(--success); }

.stage-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.4;
}

.stage-pulse {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 2s infinite;
}

.stage-pulse-green {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-green 2s infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

@keyframes pulse-green {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.funnel-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 4px;
  position: relative;
}

.arrow-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 6px;
}

/* ─── Leak drip animation ─────────────────────────── */
.leak-drip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
}

.drip-drop {
  width: 4px;
  height: 8px;
  background: var(--danger);
  border-radius: 0 0 4px 4px;
  animation: drip 1.8s infinite;
  opacity: 0.6;
}

.drip-drop:nth-child(2) { animation-delay: 0.3s; }
.drip-drop:nth-child(3) { animation-delay: 0.6s; }

@keyframes drip {
  0%   { transform: translateY(-6px); opacity: 0; }
  20%  { opacity: 0.6; }
  100% { transform: translateY(8px); opacity: 0; }
}

/* ─── Stats ─────────────────────────────────────────── */
.stats {
  background: var(--navy-mid);
  border-top: 1px solid rgba(245,166,35,0.1);
  border-bottom: 1px solid rgba(245,166,35,0.1);
  padding: 48px 48px;
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.stat-item { text-align: center; }

.stat-number {
  font-family: 'Fraunces', serif;
  font-size: 56px;
  font-weight: 900;
  color: var(--amber);
  line-height: 1;
  letter-spacing: -2px;
}

.stat-unit {
  font-size: 36px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 8px;
  max-width: 160px;
}

.stat-divider {
  width: 1px;
  height: 64px;
  background: rgba(245,166,35,0.15);
}

/* ─── How It Works ──────────────────────────────────── */
.how {
  padding: 100px 48px;
  background: var(--navy);
}

.section-header {
  max-width: 640px;
  margin-bottom: 64px;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.section-eyebrow.light { color: var(--amber); }

.section-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -1px;
}

.section-title em {
  font-style: italic;
  color: var(--amber);
}

/* ─── Leak Flow Diagram ────────────────────────────── */
.leak-diagram {
  max-width: 800px;
  margin-bottom: 64px;
}

.leak-flow {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.leak-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  background: var(--navy-mid);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.2s;
}

.leak-step:hover { border-color: rgba(245,166,35,0.2); }

.leak-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(245,166,35,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leak-text {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.6;
}

.leak-text strong { color: var(--text); }

/* ─── Quote ─────────────────────────────────────────── */
.how-quote {
  display: flex;
  gap: 20px;
  max-width: 680px;
}

.quote-bar {
  flex-shrink: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--amber), rgba(245,166,35,0.3));
  border-radius: 2px;
}

blockquote {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
}

/* ─── Services ──────────────────────────────────────── */
.services {
  padding: 100px 48px;
  background: var(--surface);
  color: var(--navy);
}

.services .section-title { color: var(--navy); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  background: #fff;
  border: 1px solid #E5E9F0;
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(10,22,40,0.1);
}

.service-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--amber);
}

.service-num {
  font-family: 'Fraunces', serif;
  font-size: 42px;
  font-weight: 900;
  color: #E8ECF1;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.service-name {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-desc {
  font-size: 14px;
  color: #5A6B85;
  line-height: 1.6;
}

/* ─── Process ───────────────────────────────────────── */
.process {
  padding: 100px 48px;
  background: var(--navy);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(245,166,35,0.1);
  border: 2px solid var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--amber);
  flex-shrink: 0;
}

.step-title {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.step-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ─── Closing ───────────────────────────────────────── */
.closing {
  padding: 100px 48px 120px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center bottom, rgba(245,166,35,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.closing-inner { max-width: 760px; margin: 0 auto; text-align: center; }

.closing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.04em;
  background: rgba(245,166,35,0.08);
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: 100px;
  padding: 8px 16px;
  margin-bottom: 36px;
}

.closing-headline {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -1px;
  margin-bottom: 24px;
  line-height: 1.1;
}

.closing-sub {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 48px;
}

.closing-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
}

.closing-stat { padding: 0 32px; }
.closing-sep  { width: 1px; height: 40px; background: rgba(245,166,35,0.15); }

.closing-stat-val {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--amber);
  letter-spacing: -1px;
}

.closing-stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
}

.closing-note {
  font-size: 14px;
  color: var(--text-dim);
  padding: 16px 24px;
  background: rgba(245,166,35,0.05);
  border: 1px solid rgba(245,166,35,0.1);
  border-radius: 10px;
  display: inline-block;
}

/* ─── Footer ───────────────────────────────────────── */
.footer {
  padding: 48px 48px 32px;
  background: var(--navy-mid);
  border-top: 1px solid rgba(245,166,35,0.1);
}

.footer-top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-name {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--amber);
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-dim);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .nav-tagline { display: none; }
  .hero { padding: 120px 24px 60px; }
  .hero-headline { font-size: 40px; letter-spacing: -1px; }
  .funnel-system { gap: 12px; flex-direction: column; align-items: center; }
  .funnel-arrow { transform: rotate(90deg); }
  .stats { padding: 40px 24px; }
  .stats-inner { flex-direction: column; gap: 24px; }
  .stat-divider { width: 80px; height: 1px; }
  .how, .services, .process, .closing { padding: 60px 24px; }
  .leak-flow { gap: 12px; }
  .service-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .closing-stats { flex-direction: column; gap: 20px; }
  .closing-sep { display: none; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
