@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --black:       #0A0A0A;
  --white:       #FFFFFF;
  --gray-600:    #666666;
  --gray-400:    #999999;
  --gray-100:    #F5F5F5;
  --gray-200:    #E8E8E8;
  --green:       #16A34A;
  --green-dark:  #0D7535;
  --green-pale:  #DCFCE7;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --pad-x:       clamp(24px, 5vw, 80px);
  --max:         1200px;
  --radius:      6px;
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:    cubic-bezier(0.0, 0, 0.2, 1);
}

html { scroll-behavior: smooth; cursor: none; }

body {
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-loading { overflow: hidden; }

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

/* ─── Custom Cursor ─────────────────────────────────────────── */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.15s var(--ease), height 0.15s var(--ease), background 0.15s;
  will-change: transform;
}

.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(22, 163, 74, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.2s;
  will-change: transform;
}

.cursor-dot.hover  { width: 6px; height: 6px; }
.cursor-ring.hover { width: 52px; height: 52px; border-color: rgba(22,163,74,0.8); }
.cursor-dot.click  { width: 12px; height: 12px; }
.cursor-ring.click { width: 28px; height: 28px; }

/* ─── Loader ─────────────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.loader-logo-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.2s ease infinite;
}

.loader-count {
  font-size: 72px;
  font-weight: 300;
  letter-spacing: -0.05em;
  color: var(--white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.loader-bar {
  width: 200px;
  height: 1px;
  background: rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}

.loader-bar-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  background: var(--green);
  width: 0%;
  transition: width 0.05s linear;
}

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

/* ─── Utility ───────────────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
}

/* ─── Scroll Reveal ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease) var(--reveal-delay, 0s),
              transform 0.8s var(--ease) var(--reveal-delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { --reveal-delay: 0.1s; }
.reveal-delay-2 { --reveal-delay: 0.2s; }
.reveal-delay-3 { --reveal-delay: 0.3s; }
.reveal-delay-4 { --reveal-delay: 0.4s; }

/* ─── Navigation ─────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,10,10,0);
  transition: background 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(255,255,255,0.06);
}

.nav-logo {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: pulse 2s ease infinite;
}

/* 3D flip nav CTA */
.nav-cta-wrap {
  perspective: 600px;
  height: 38px;
  display: flex;
  align-items: center;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 9px 18px;
  border-radius: 100px;
  transition: border-color 0.25s, background 0.25s;
  transform-style: preserve-3d;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}

.nav-cta:hover {
  border-color: var(--green);
  background: rgba(22,163,74,0.12);
  transform: rotateX(-8deg) translateY(-1px);
}

/* ─── Hero ───────────────────────────────────────────────────── */
#hero {
  background: var(--black);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 100px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

/* WebGL-style canvas */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.45;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0) 0%,
    rgba(10,10,10,0.3) 60%,
    rgba(10,10,10,0.85) 100%
  );
  pointer-events: none;
}

.hero-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 40px;
  opacity: 0;
  animation: heroFadeUp 0.8s var(--ease) 0.2s forwards;
}

.hero-headline {
  font-size: clamp(36px, 5.5vw, 78px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--white);
  max-width: 920px;
  margin-bottom: 40px;
}

/* Headline line reveal animation */
.hero-line {
  display: block;
  overflow: hidden;
}

.hero-line-inner {
  display: block;
  opacity: 0;
  transform: translateY(110%);
}

.hero-line:nth-child(1) .hero-line-inner { animation: lineReveal 0.9s var(--ease) 0.35s forwards; }
.hero-line:nth-child(2) .hero-line-inner { animation: lineReveal 0.9s var(--ease) 0.5s forwards; }
.hero-line:nth-child(3) .hero-line-inner { animation: lineReveal 0.9s var(--ease) 1.3s forwards; }

.hero-line em {
  font-style: normal;
  color: var(--green);
}

@keyframes lineReveal {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-body {
  max-width: 500px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
  margin-bottom: 52px;
  opacity: 0;
  animation: heroFadeUp 0.8s var(--ease) 0.65s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroFadeUp 0.8s var(--ease) 0.8s forwards;
}

/* Animated stroke button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 100px;
  position: relative;
  overflow: hidden;
  transition: background 0.25s, transform 0.25s var(--ease);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.btn-primary:hover::before { opacity: 1; }

.btn-primary:active { transform: translateY(0); }

.btn-primary .btn-arrow {
  transition: transform 0.25s var(--ease);
}

.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.hero-note {
  font-size: 13px;
  color: rgba(255,255,255,0.28);
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
  opacity: 0;
  animation: heroFadeUp 0.8s var(--ease) 0.95s forwards;
}

.hero-stat-value {
  font-size: 30px;
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-value span { color: var(--green); }

.hero-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
}

/* Floating score badges */
.hero-score-float {
  position: absolute;
  bottom: 80px;
  right: var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  opacity: 0;
  animation: heroFadeUp 0.8s var(--ease) 1.1s forwards;
}

@media (max-width: 900px) { .hero-score-float { display: none; } }

.score-sample-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  text-align: right;
  margin-bottom: 6px;
}

.score-badge {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(8px);
  transition: transform 0.4s var(--ease), border-color 0.3s;
}

.score-badge:hover {
  transform: translateX(-4px);
  border-color: rgba(255,255,255,0.16);
}

.score-num {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -0.04em;
  color: #F87171;
  line-height: 1;
}

.score-num.ok   { color: #FBBF24; }
.score-num.good { color: var(--green); }

.score-meta { display: flex; flex-direction: column; gap: 1px; }

.score-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
}

.score-bar {
  width: 60px;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}

.score-fill {
  height: 100%;
  border-radius: 2px;
  background: #F87171;
  width: 0%;
  transition: width 1s var(--ease) 0.2s;
}

.score-fill.ok   { background: #FBBF24; }
.score-fill.good { background: var(--green); }

/* ─── Section Shared ─────────────────────────────────────────── */
section { padding: 120px 0; }

.section-head { margin-bottom: 72px; }

.section-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: 14px;
  color: var(--black);
}

/* ─── How It Works ───────────────────────────────────────────── */
#how { background: var(--white); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

@media (max-width: 768px) { .steps { grid-template-columns: 1fr; } }

/* 3D tilt card */
.step {
  padding: 48px 40px;
  border: 1px solid var(--gray-200);
  position: relative;
  cursor: none;
  transform-style: preserve-3d;
  transition: border-color 0.25s, box-shadow 0.4s var(--ease);
  will-change: transform;
}

.step + .step { border-left: none; }

@media (max-width: 768px) {
  .step + .step { border-left: 1px solid var(--gray-200); border-top: none; }
}

.step::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(22,163,74,0.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.step:hover {
  border-color: rgba(22,163,74,0.3);
  box-shadow: 0 16px 48px rgba(0,0,0,0.06);
  z-index: 1;
}

.step:hover::after { opacity: 1; }

.step-num {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 32px;
}

.step-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--black);
  transform: translateZ(20px);
  transition: transform 0.3s var(--ease);
}

.step:hover .step-title { transform: translateZ(30px); }

.step-body {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ─── Audit Breakdown ─────────────────────────────────────────── */
#audit { background: var(--gray-100); }

.audit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.audit-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 36px 32px;
  cursor: none;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.1s, box-shadow 0.4s var(--ease), border-color 0.25s;
}

.audit-card:hover {
  border-color: rgba(22,163,74,0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.audit-icon {
  width: 44px; height: 44px;
  margin-bottom: 24px;
  transform: translateZ(16px);
  transition: transform 0.3s var(--ease);
}

.audit-card:hover .audit-icon { transform: translateZ(28px) scale(1.05); }

.audit-card-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--black);
}

.audit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.audit-list li {
  font-size: 13px;
  color: var(--gray-600);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}

.audit-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--green);
}

/* ─── Pricing ─────────────────────────────────────────────────── */
#pricing { background: var(--white); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 760px;
}

.pricing-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 44px 40px;
  position: relative;
  cursor: none;
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.25s;
}

.pricing-card:hover {
  transform: translateY(-6px) rotateX(2deg);
  box-shadow: 0 24px 64px rgba(0,0,0,0.09);
}

.pricing-card.featured {
  border-color: rgba(22,163,74,0.4);
  background: var(--black);
  color: var(--white);
}

.pricing-card.featured:hover {
  box-shadow: 0 24px 64px rgba(22,163,74,0.15);
}

.pricing-badge {
  position: absolute;
  top: -12px; left: 40px;
  background: var(--green);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

.pricing-name {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.pricing-card.featured .pricing-name { color: rgba(255,255,255,0.35); }

.pricing-price {
  font-size: 52px;
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}

.pricing-period {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 32px;
}

.pricing-card.featured .pricing-period { color: rgba(255,255,255,0.3); }

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 40px;
}

.pricing-features li {
  font-size: 14px;
  color: var(--gray-600);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.pricing-card.featured .pricing-features li { color: rgba(255,255,255,0.6); }

.pricing-features li::before {
  content: '';
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--green);
  flex-shrink: 0;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8l2.5 2.5L12 5' stroke='%2316A34A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: cover;
}

.btn-pricing {
  display: block;
  width: 100%;
  text-align: center;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid var(--green);
  color: var(--green);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.25s;
}

.btn-pricing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
  z-index: -1;
}

.btn-pricing:hover { color: var(--white); }
.btn-pricing:hover::before { transform: scaleX(1); }

.pricing-card.featured .btn-pricing {
  background: var(--green);
  color: var(--white);
}

.pricing-card.featured .btn-pricing::before { background: var(--green-dark); }

.pricing-note {
  margin-top: 32px;
  font-size: 14px;
  color: var(--gray-400);
}

/* ─── About ──────────────────────────────────────────────────── */
#about { background: var(--gray-100); }

.about-grid {
  display: grid;
  gap: 80px;
  max-width: 680px;
}

@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: auto 1fr;
    max-width: 100%;
    align-items: start;
  }
}

.about-avatar {
  width: 120px; height: 120px;
  border-radius: var(--radius);
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 300;
  color: var(--green);
  letter-spacing: -0.05em;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.about-avatar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--green);
}

.about-avatar:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

.about-meta { margin-top: 16px; }

.about-name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
}

.about-role { font-size: 12px; color: var(--gray-400); }

.about-text {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--black);
  max-width: 580px;
}

.about-text p + p { margin-top: 24px; }
.about-text strong { font-weight: 500; }

/* ─── CTA Footer ─────────────────────────────────────────────── */
#cta-footer {
  background: var(--black);
  padding: 160px 0;
  position: relative;
  overflow: hidden;
}

/* Animated radial glow */
#cta-footer::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(22,163,74,0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: ctaGlow 4s ease infinite alternate;
}

@keyframes ctaGlow {
  from { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  to   { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

.cta-inner {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  position: relative;
}

.cta-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 28px;
}

.cta-headline {
  font-size: clamp(26px, 4vw, 52px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
}

.cta-subhead {
  font-size: 15px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 48px;
  line-height: 1.7;
}

/* ─── Footer Bar ─────────────────────────────────────────────── */
footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 28px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy  { font-size: 13px; color: rgba(255,255,255,0.2); }
.footer-email {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
}
.footer-email:hover { color: var(--green); }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  section { padding: 80px 0; }
  .hero-headline { letter-spacing: -0.025em; }
  .audit-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  #cta-footer { padding: 100px 0; }
  nav { padding: 16px var(--pad-x); }
  .about-grid { gap: 48px; }
  .step { padding: 36px 28px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
