/* =============================================
   GREENPRINT — DESIGN SYSTEM
   ============================================= */

:root {
  --green: #4ade80;
  --green-deep: #16a34a;
  --green-dim: rgba(74, 222, 128, 0.12);
  --teal: #2dd4bf;
  --amber: #fbbf24;
  --red: #f87171;

  --bg: #0a0f0d;
  --bg-card: #111a14;
  --bg-elevated: #162019;
  --border: rgba(74, 222, 128, 0.12);
  --border-hover: rgba(74, 222, 128, 0.3);

  --text: #f0faf2;
  --text-muted: #7a9e82;
  --text-faint: #3d5c42;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --shadow: 0 4px 32px rgba(0,0,0,0.4);
  --shadow-green: 0 0 40px rgba(74, 222, 128, 0.08);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { cursor: pointer; font-family: var(--font-body); }

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

/* ===== CONTAINER ===== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 15, 13, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.3px;
}

.logo-icon { display: flex; align-items: center; }

.nav-cta {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.nav-cta:hover {
  background: rgba(74, 222, 128, 0.2);
  border-color: var(--border-hover);
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #0a0f0d;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  border: none;
  letter-spacing: -0.01em;
}

.btn-primary:hover {
  background: #6ee7a0;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(74, 222, 128, 0.25);
}

.btn-primary.btn-large {
  padding: 18px 40px;
  font-size: 17px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-muted);
  padding: 14px 20px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--green-dim);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  padding-top: 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  gap: 60px;
  position: relative;
}

.hero-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
}

.blob-1 {
  width: 500px; height: 500px;
  background: var(--green);
  top: -100px; left: -100px;
  animation: blobFloat 8s ease-in-out infinite;
}

.blob-2 {
  width: 400px; height: 400px;
  background: var(--teal);
  bottom: 100px; right: -50px;
  animation: blobFloat 10s ease-in-out infinite reverse;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.97); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74, 222, 128, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 222, 128, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeUp 0.8s ease both;
}

.hero-visual {
  position: relative;
  z-index: 1;
  animation: fadeUp 0.8s 0.2s ease both;
  display: flex;
  justify-content: center;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-dim);
  border: 1px solid var(--border);
  color: var(--green);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1.08;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-title em {
  font-style: italic;
  color: var(--text-muted);
}

.title-green {
  color: var(--green);
  position: relative;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 36px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.stat { text-align: left; }

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-faint);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

/* ===== SCORE PREVIEW CARD ===== */
.score-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 340px;
  box-shadow: var(--shadow), var(--shadow-green);
  position: relative;
  overflow: hidden;
}

.score-preview::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.score-ring {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.ring-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.ring-num {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--text);
  line-height: 1;
}

.ring-unit {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.ring-anim {
  stroke-dashoffset: 314;
  animation: ringDraw 2s 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes ringDraw {
  to { stroke-dashoffset: 66; }
}

.score-breakdown-preview { display: flex; flex-direction: column; gap: 14px; }

.breakdown-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.brow-icon { font-size: 16px; }
.brow-label { width: 68px; color: var(--text-muted); font-size: 13px; }

.brow-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
}

.brow-fill {
  height: 100%;
  border-radius: 3px;
  width: 0;
  animation: barGrow 1.5s 0.8s ease forwards;
}

@keyframes barGrow {
  to { width: var(--w, 100%); }
}

.breakdown-row:nth-child(1) .brow-fill { --w: 68%; }
.breakdown-row:nth-child(2) .brow-fill { --w: 45%; }
.breakdown-row:nth-child(3) .brow-fill { --w: 50%; }

.brow-val {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  min-width: 30px;
  text-align: right;
}

/* ===== HOW IT WORKS ===== */
.how {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 50px);
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 60px;
  color: var(--text);
}

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

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-green);
}

.step-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

.step-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 80px 0 120px;
  position: relative;
  z-index: 1;
}

.cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-blob {
  position: absolute;
  width: 400px; height: 400px;
  background: var(--green);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.05;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 16px;
}

.cta-card p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-note {
  font-size: 13px;
  color: var(--text-faint);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 120px;
    padding-bottom: 80px;
  }

  .hero-visual { display: none; }

  .hero-desc { max-width: 100%; }

  .hero-actions { justify-content: center; }

  .hero-stats { justify-content: center; }

  .steps-grid { grid-template-columns: 1fr; }

  .cta-card { padding: 48px 28px; }
}

@media (max-width: 600px) {
  .hero-title { letter-spacing: -1px; }
  .nav-cta { display: none; }
}
