:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #1a1a25;
  --bg-input: #0f0f18;
  --fg: #e8e8ed;
  --fg-muted: #8888a0;
  --accent: #f59e0b;
  --accent-bright: #fbbf24;
  --accent-glow: rgba(245, 158, 11, 0.12);
  --accent-border: rgba(245, 158, 11, 0.35);
  --green: #10b981;
  --green-dim: rgba(16, 185, 129, 0.12);
  --green-border: rgba(16, 185, 129, 0.3);
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, 0.1);
  --red-border: rgba(239, 68, 68, 0.3);
  --warning: #f59e0b;
  --border: #2a2a3a;
  --font-main: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 8px;
  --shadow: 0 8px 32px rgba(0,0,0,0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* HERO */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 60%);
  animation: pulse 8s ease-in-out infinite;
}

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

.hero-badge {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--accent-bright);
  border: 1px solid var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 2.5rem;
}

.hero h1 {
  position: relative;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-sub {
  position: relative;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--fg-muted);
  max-width: 600px;
  margin-bottom: 3rem;
}

.hero-stat-row {
  position: relative;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-bright);
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* PROBLEM */
.problem {
  padding: 6rem 2rem;
  background: var(--bg-elevated);
}

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

.problem h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 3rem;
  letter-spacing: -0.01em;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.problem-card.highlight-card {
  border-color: var(--warning);
  background: rgba(245, 158, 11, 0.05);
}

.problem-icon {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--fg-muted);
  font-weight: 500;
}

.highlight-card .problem-icon {
  color: var(--warning);
}

.problem-card p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

.highlight-card p {
  color: var(--warning);
}

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

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

.features h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 3rem;
  letter-spacing: -0.01em;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.feature-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.feature-marker {
  width: 12px;
  height: 12px;
  min-width: 12px;
  background: var(--accent);
  border-radius: 3px;
  margin-top: 0.5rem;
}

.feature-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.feature-content p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* CLOSING */
.closing {
  padding: 8rem 2rem;
  text-align: center;
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}

.closing h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.closing-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

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

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

.footer-brand {
  font-weight: 700;
  font-size: 1.1rem;
}

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

/* RESPONSIVE */
@media (max-width: 640px) {
  .hero {
    min-height: 80vh;
    padding: 3rem 1.5rem;
  }

  .hero-stat-row {
    gap: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .problem, .features, .closing {
    padding: 4rem 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* ── GLOBAL OVERRIDES FOR NEW THEME ── */

/* Override accent from blue to amber */
.hero-badge {
  border-color: var(--accent-border) !important;
  color: var(--accent-bright) !important;
}

.stat-number { color: var(--accent-bright) !important; }

.feature-marker { background: var(--accent) !important; }

.price-us {
  background: var(--accent-glow) !important;
  border-color: var(--accent) !important;
}

.price-us .price-label,
.price-us .price-amount { color: var(--accent-bright) !important; }

/* ── NAV ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--fg-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  border: none;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: #080810;
}
.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  text-decoration: none;
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--fg-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--fg);
  text-decoration: none;
}

.btn-full { width: 100%; justify-content: center; }

/* ── AUTH PAGES ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(245,158,11,0.06) 0%, transparent 60%), var(--bg);
  padding: 2rem;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}

.auth-logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 2rem;
  display: block;
  text-decoration: none;
}

.auth-card h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.auth-card .auth-sub {
  font-size: 0.875rem;
  color: var(--fg-muted);
  margin-bottom: 2rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--fg-muted);
}

.error-msg {
  background: var(--red-dim);
  border: 1px solid var(--red-border);
  color: var(--red);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
}

.success-msg {
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  color: var(--green);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
}

/* ── FORM INPUTS ── */
.form-group { margin-bottom: 1.1rem; }

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-muted);
  margin-bottom: 0.35rem;
}

input[type="number"],
input[type="text"],
input[type="email"],
input[type="password"],
select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

input:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

input::placeholder { color: var(--fg-muted); opacity: 0.5; }

select option {
  background: var(--bg-card);
  color: var(--fg);
}

.input-hint {
  font-size: 0.74rem;
  color: var(--fg-muted);
  margin-top: 0.25rem;
  opacity: 0.65;
}

/* ── CALCULATOR PAGE ── */
.calc-page { min-height: 100vh; background: var(--bg); }

.calc-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
}

.calc-header {
  padding: 1.5rem 0 1.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.calc-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.calc-header p { font-size: 0.85rem; color: var(--fg-muted); }

.calc-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.75rem;
  align-items: start;
}

@media (max-width: 720px) {
  .calc-layout { grid-template-columns: 1fr; }
}

.calc-inputs-col { display: flex; flex-direction: column; gap: 1.25rem; }

.calc-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.calc-panel-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .two-col { grid-template-columns: 1fr; } }

/* Results */
.calc-results {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: 5.5rem;
}

.results-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(42,42,58,0.5);
  font-size: 0.85rem;
}
.result-row:last-of-type { border-bottom: none; }

.result-label { color: var(--fg-muted); }
.result-value {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.85rem;
}
.result-value.neg { color: var(--red); }
.result-value.pos { color: var(--green); }

.result-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.5rem 0;
}

.result-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  font-size: 0.925rem;
  font-weight: 600;
}
.result-total .result-value {
  font-size: 0.925rem;
  font-weight: 600;
}

/* Net profit box */
.net-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1.25rem;
  text-align: center;
}

.net-box.is-positive {
  border-color: var(--green-border);
  background: var(--green-dim);
}

.net-box.is-negative {
  border-color: var(--red-border);
  background: var(--red-dim);
}

.net-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.35rem;
}

.net-amount {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}

.net-box.is-positive .net-amount { color: var(--green); }
.net-box.is-negative .net-amount { color: var(--red); }

.net-period {
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin-top: 0.25rem;
}

.net-annual {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border);
}

/* Verdict */
.verdict {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 1rem;
  transition: all 0.2s;
}

.verdict.worth-it {
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  color: var(--green);
}

.verdict.not-worth-it {
  background: var(--red-dim);
  border: 1px solid var(--red-border);
  color: var(--red);
}

.verdict.neutral {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--fg-muted);
}

/* Margin % badge */
.margin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
}

.margin-badge.good { background: var(--green-dim); color: var(--green); }
.margin-badge.ok { background: rgba(245,158,11,0.1); color: var(--accent); }
.margin-badge.bad { background: var(--red-dim); color: var(--red); }

/* Welcome banner */
.welcome-banner {
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  border-radius: var(--radius);
  padding: 0.9rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--green);
}


@media (max-width: 600px) {
  .calc-container { padding: 1rem; }
  .calc-header { padding: 1rem 0 1.25rem; }
  nav { padding: 0.9rem 1rem; }
}