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

:root {
  --bg: #080a12;
  --bg-alt: #0d1020;
  --surface: #111526;
  --surface-raised: #161a2e;
  --border: rgba(255,255,255,0.07);
  --border-accent: rgba(0,229,195,0.25);
  --teal: #00e5c3;
  --teal-dim: rgba(0,229,195,0.12);
  --teal-glow: rgba(0,229,195,0.35);
  --amber: #f59e0b;
  --amber-dim: rgba(245,158,11,0.12);
  --crit: #ff4d6d;
  --crit-dim: rgba(255,77,109,0.12);
  --warn: #f59e0b;
  --warn-dim: rgba(245,158,11,0.12);
  --text: #e8eaf2;
  --text-muted: #7a8299;
  --text-subtle: #4a5168;
  --radius: 10px;
  --radius-sm: 6px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 clamp(24px, 5vw, 80px);
  background: rgba(8,10,18,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Cardo', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo-suffix {
  color: var(--teal);
  font-weight: 400;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }
.nav-link-cta {
  background: var(--teal-dim);
  color: var(--teal) !important;
  padding: 8px 18px;
  border-radius: 6px;
  border: 1px solid var(--border-accent);
  transition: background 0.2s, border-color 0.2s !important;
}
.nav-link-cta:hover {
  background: rgba(0,229,195,0.2) !important;
  border-color: var(--teal) !important;
}

@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(100px, 15vh, 160px) clamp(24px, 5vw, 80px) clamp(80px, 12vh, 120px);
  position: relative;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,195,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,195,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 100%);
}
.hero-bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(0,229,195,0.06) 0%, transparent 60%),
              radial-gradient(ellipse 40% 40% at 20% 80%, rgba(245,158,11,0.04) 0%, transparent 50%);
}
.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}
.hero-headline {
  font-family: 'Cardo', serif;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* === SCORE VISUAL === */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.score-ring-wrap {
  position: relative;
  width: 220px;
  height: 220px;
}
.score-ring {
  width: 100%;
  height: 100%;
}
.score-ring-arc {
  animation: score-pulse 3s ease-in-out infinite;
}
.score-ring-arc-amber {
  animation: score-pulse-amber 3s ease-in-out infinite 0.5s;
}
@keyframes score-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
@keyframes score-pulse-amber {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.score-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.score-number {
  font-family: 'Cardo', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}
.score-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 8px 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero-finding {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  width: 100%;
  max-width: 360px;
}
.finding-severity {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}
.finding-crit {
  background: var(--crit-dim);
  color: var(--crit);
  border: 1px solid rgba(255,77,109,0.3);
}
.finding-warn {
  background: var(--warn-dim);
  color: var(--warn);
  border: 1px solid rgba(245,158,11,0.3);
}
.finding-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { order: -1; }
  .score-ring-wrap { width: 180px; height: 180px; }
  .score-number { font-size: 2.5rem; }
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--teal);
  color: #080a12;
  border-color: var(--teal);
}
.btn-primary:hover {
  background: #00d4b0;
  border-color: #00d4b0;
  box-shadow: 0 0 24px rgba(0,229,195,0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--surface);
  color: var(--text);
  border-color: rgba(255,255,255,0.15);
}
.btn-large {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* === STATS === */
.stats {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px clamp(24px, 5vw, 80px);
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  flex: 1;
  min-width: 200px;
  padding: 16px 32px;
}
.stat-number {
  font-family: 'Cardo', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal);
  display: block;
  margin-bottom: 6px;
}
.stat-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.stat-desc em {
  font-style: normal;
  color: var(--text-subtle);
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .stats-inner { gap: 32px; }
  .stat-divider { display: none; }
  .stat-item { min-width: 140px; padding: 8px 16px; }
}

/* === SERVICES === */
.services {
  padding: clamp(80px, 12vh, 120px) clamp(24px, 5vw, 80px);
}
.services-header {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}
.services-title {
  font-family: 'Cardo', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.services-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}
.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}
.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-dim);
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  color: var(--teal);
  margin-bottom: 20px;
}
.service-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.service-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.service-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal);
}
.services-cta {
  text-align: center;
  margin-top: 48px;
}
.services-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.services-link:hover { color: var(--teal); }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* === PRICING === */
.pricing {
  padding: clamp(80px, 12vh, 120px) clamp(24px, 5vw, 80px);
  background: var(--bg-alt);
}
.pricing-header {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}
.pricing-title {
  font-family: 'Cardo', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.pricing-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}
.pricing-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.price-card-core {
  border-color: var(--border-accent);
  background: linear-gradient(160deg, var(--surface-raised) 0%, var(--surface) 100%);
  box-shadow: 0 0 0 1px rgba(0,229,195,0.2), 0 24px 48px rgba(0,0,0,0.4);
}
.price-tier-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.price-tier-accent { color: var(--teal); }
.price-name {
  font-family: 'Cardo', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.price-amount {
  font-family: 'Cardo', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.price-amount .price-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
}
.price-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}
.price-features {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-features li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}
.price-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-size: 0.8rem;
}
.price-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}
.price-btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.price-btn-outline:hover {
  background: var(--surface-raised);
  color: var(--text);
}
.price-btn-primary {
  background: var(--teal);
  color: #080a12;
  border: 1px solid var(--teal);
}
.price-btn-primary:hover {
  background: #00d4b0;
  box-shadow: 0 0 20px rgba(0,229,195,0.3);
}

@media (max-width: 800px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .price-card-core { box-shadow: none; }
}

/* === MANIFESTO === */
.manifesto {
  padding: clamp(80px, 12vh, 120px) clamp(24px, 5vw, 80px);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.manifesto-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.manifesto-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 24px;
}
.manifesto-quote {
  font-family: 'Cardo', serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 64px;
  position: relative;
}
.manifesto-quote::before {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), transparent);
  margin: 0 auto 24px;
}
.manifesto-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: left;
}
.pillar {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.pillar-icon {
  font-size: 1.5rem;
  color: var(--teal);
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}
.pillar strong { font-size: 0.9rem; display: block; margin-bottom: 4px; }
.pillar p { font-size: 0.825rem; color: var(--text-muted); line-height: 1.5; }

@media (max-width: 640px) {
  .manifesto-pillars { grid-template-columns: 1fr; }
}

/* === CLOSING === */
.closing {
  padding: clamp(80px, 12vh, 120px) clamp(24px, 5vw, 80px);
  background: var(--bg-alt);
  text-align: center;
}
.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}
.closing-headline {
  font-family: 'Cardo', serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text);
}
.closing-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 40px;
}
.closing-fine {
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-top: 16px;
}

/* === FOOTER === */
.footer {
  padding: 48px clamp(24px, 5vw, 80px);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
}
.footer-logo {
  font-family: 'Cardo', serif;
  font-size: 1.1rem;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}
.footer-logo-suffix { color: var(--teal); font-weight: 400; }
.footer-tagline {
  font-size: 0.825rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-link {
  color: var(--text-subtle);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--text-muted); }
.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.775rem;
  color: var(--text-subtle);
}

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-subtle); border-radius: 3px; }
