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

:root {
  --bg: #080810;
  --bg-card: #0e0e1a;
  --bg-card-alt: #12121f;
  --fg: #e8e8f0;
  --fg-muted: #7a7a9a;
  --accent: #00E887;
  --accent-dim: rgba(0, 232, 135, 0.12);
  --amber: #FFB547;
  --amber-dim: rgba(255, 181, 71, 0.12);
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(0, 232, 135, 0.2);
  --radius: 8px;
}

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1, h2, h3 { font-family: 'Syne', sans-serif; line-height: 1.1; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }

.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-headline {
  margin-bottom: 1.5rem;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 2rem;
  background: rgba(8, 8, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

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

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}

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

.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-left { }

.hero-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.label-tag {
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hero-headline {
  margin-bottom: 1.5rem;
  color: var(--fg);
}

.hero-accent { color: var(--accent); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 420px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.stat-value {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

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

/* === GAUGE === */
.hero-right {
  display: flex;
  justify-content: center;
}

.gauge-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 360px;
}

.gauge-ring {
  width: 180px;
  height: 180px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: conic-gradient(
    var(--accent) 0deg 220deg,
    rgba(255,255,255,0.08) 220deg 360deg
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gauge-ring::before {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: var(--bg-card);
}

.gauge-fill {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(
    var(--accent) 0deg 220deg,
    transparent 220deg
  );
  animation: gauge-sweep 3s ease-out;
  mask-image: radial-gradient(circle at center, transparent 65%, black 66%);
  -webkit-mask-image: radial-gradient(circle at center, transparent 65%, black 66%);
}

@keyframes gauge-sweep {
  from { opacity: 0; transform: rotate(-90deg); }
  to { opacity: 1; transform: rotate(0deg); }
}

.gauge-center {
  position: relative;
  text-align: center;
}

.gauge-score {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.gauge-label {
  display: block;
  font-size: 0.7rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
}

.gauge-meta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.gauge-meta-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.gauge-meta-row span:first-child { margin-right: 0.4rem; }
.meta-val {
  margin-left: auto;
  color: var(--fg);
  font-weight: 500;
  font-size: 0.75rem;
}

.dot-green {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.dot-amber {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.dot-red {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4d6d;
}

.dot-red.pulse { animation: pulse 2s infinite; }

/* === PROBLEM === */
.problem {
  padding: 6rem 2rem;
  background: var(--bg-card-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.problem-body {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 640px;
  margin: 0 auto 3rem;
  font-weight: 300;
  line-height: 1.8;
}

.problem-triggers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.trigger {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: left;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.trigger-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trigger-title {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.trigger-desc {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* === FEATURES === */
.features {
  padding: 6rem 2rem;
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: var(--border-accent);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1rem;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.feature-tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

/* === HOW IT WORKS === */
.howitworks {
  padding: 6rem 2rem;
  background: var(--bg-card-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 3rem;
  text-align: left;
}

.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem 0;
}

.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.05em;
  padding-top: 0.3rem;
}

.step-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

.step-connector {
  grid-column: 1 / -1;
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* === SCORE SECTION === */
.score-section {
  padding: 6rem 2rem;
}

.score-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.score-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: start;
}

.score-card-main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
}

.score-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}

.score-count {
  color: var(--accent);
  font-size: 0.8rem;
}

.score-bars {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.score-bar-row {
  display: grid;
  grid-template-columns: 200px 1fr 36px;
  gap: 0.75rem;
  align-items: center;
}

.account-name {
  font-size: 0.78rem;
  color: var(--fg-muted);
  font-family: 'DM Sans', monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  height: 6px;
  background: var(--bg-card-alt);
  border-radius: 3px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease-out;
}

.bar-green { background: var(--accent); }
.bar-amber { background: var(--amber); }

.bar-score {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--fg);
  text-align: right;
}

.score-card-footer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--fg-muted);
}

.score-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.score-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}

.ssc-label {
  font-size: 0.72rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.ssc-val {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.ssc-change {
  font-size: 0.78rem;
  font-weight: 500;
}

.ssc-change.up { color: var(--accent); }
.ssc-change.down { color: #ff4d6d; }

/* === CLOSING === */
.closing {
  padding: 8rem 2rem;
  background: var(--bg-card-alt);
  border-top: 1px solid var(--border);
}

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

.closing-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  color: var(--fg);
}

.closing-sub {
  font-size: 1.4rem;
  color: var(--accent);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  margin-bottom: 2.5rem;
}

.closing-statement {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  background: var(--accent-dim);
}

.closing-statement p {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.8;
}

/* === FOOTER === */
.footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--fg);
  margin-bottom: 0.25rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--fg-muted);
}

.footer-meta {
  font-size: 0.78rem;
  color: var(--fg-muted);
  opacity: 0.6;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-right { display: none; }
  .problem-triggers { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .score-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.25rem; }
  .stat-value { font-size: 1.3rem; }
}