/* ---- Variables ---- */
:root {
  --bg-page: #0d1117;
  --bg-card: #1c2333;
  --bg-card-hover: #222d42;
  --green: #76b900;
  --text: #c9d1d9;
  --text-muted: #8b949e;
  --red: #e74c3c;
  --blue: #42a5f5;
  --purple: #9c27b0;
  --yellow-green: #a0b400;
  --pink: #e91e63;
  --border: rgba(255,255,255,0.08);
  --radius: 12px;
  --max-w: 1200px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-page);
  color: var(--text);
  line-height: 1.6;
}

/* ---- Layout ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }

h2.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--green);
  text-align: center;
  margin-bottom: 12px;
}

.divider {
  border: none;
  border-top: 2px solid var(--red);
  max-width: 800px;
  margin: 0 auto 48px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

/* ---- Hero ---- */
.hero {
  padding: 100px 0 80px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero__content {
  text-align: left;
}
.hero__mascot {
  max-width: 160px;
  margin-bottom: 20px;
  display: block;
  animation: fadeInUp 0.5s ease both;
}
.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.15;
  animation: fadeInUp 0.5s ease 0.1s both;
}
.hero__tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  animation: fadeInUp 0.5s ease 0.2s both;
}

/* Stat pills */
.hero__stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  animation: fadeInUp 0.5s ease 0.3s both;
}
.hero__stat {
  background: var(--bg-card);
  border-left: 3px solid var(--green);
  border-radius: 0 8px 8px 0;
  padding: 8px 16px;
  font-size: 0.9rem;
  color: var(--text);
}
.hero__stat strong {
  font-weight: 700;
  margin-right: 4px;
}
.hero__stat--green { border-left-color: var(--green); }
.hero__stat--green strong { color: var(--green); }
.hero__stat--yellow-green { border-left-color: var(--yellow-green); }
.hero__stat--yellow-green strong { color: var(--yellow-green); }
.hero__stat--blue { border-left-color: var(--blue); }
.hero__stat--blue strong { color: var(--blue); }

/* Hero CTAs */
.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.5s ease 0.4s both;
}
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--green);
  color: #0d1117;
}
.btn--primary:hover { background: #8ad000; }
.btn--ghost {
  background: transparent;
  border: 1px solid var(--green);
  color: var(--green);
}
.btn--ghost:hover {
  background: rgba(118,185,0,0.1);
}

/* Hero diagram */
.hero__diagram {
  animation: fadeInUp 0.6s ease 0.5s both;
}
.hero__svg {
  width: 100%;
  height: auto;
  max-width: 420px;
  display: block;
  margin: 0 auto;
}

/* ---- Entrance animations ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Stats ---- */
.stat-number {
  display: block;
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1.1;
  margin-bottom: 8px;
}
.stat-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.stat-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---- Solution ---- */
.solution__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.solution__features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card--accent-left { border-left: 4px solid var(--green); }
.card--accent-left h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 8px;
}
.card--accent-left p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ---- Comparison ---- */
.comparison { padding-top: 0; }
.comparison .card { text-align: center; padding: 48px 32px; }
.comparison__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.comparison__value {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.comparison__value--red { color: var(--red); }
.comparison__value--green { color: var(--green); }
.comparison__traits {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ---- TCO ---- */
.tco__heading {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
}
.tco__heading--red { color: var(--red); }
.tco__heading--green { color: var(--green); }
.tco__table {
  width: 100%;
  border-collapse: collapse;
}
.tco__table th {
  padding: 10px 12px;
  border-bottom: 2px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
}
.tco__table th:nth-child(2) { color: var(--red); text-align: right; }
.tco__table th:nth-child(3) { color: var(--green); text-align: right; }
.tco__table th:last-child { text-align: right; }
.tco__table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.tco__table td:first-child { color: var(--text-muted); }
.tco__table td:last-child { text-align: right; font-weight: 500; color: #fff; }
.tco__table td:nth-child(2) { text-align: right; font-weight: 500; color: #fff; }
.tco__table td:nth-child(3) { text-align: right; font-weight: 500; color: #fff; }
.tco__advantage {
  display: inline-block;
  background: rgba(118,185,0,0.15);
  color: var(--green);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 2px 10px;
  border-radius: 4px;
}

.tco__summary { margin-top: 32px; }
.tco__cost-card { text-align: center; }
.tco__cost-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.tco__cost-value {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.tco__cost-value--red { color: var(--red); }
.tco__cost-value--green { color: var(--green); }
.tco__cost-card p { font-size: 0.9rem; color: var(--text-muted); }
.tco__cost-card--highlight {
  background: var(--yellow-green);
  border-color: var(--yellow-green);
}
.tco__cost-card--highlight .tco__cost-label { color: #333; }
.tco__cost-card--highlight .tco__cost-value { color: #0d1117; }
.tco__cost-card--highlight p { color: #333; }

/* ---- How It Works ---- */
.how-it-works .grid-2 { align-items: start; }
.how-it-works h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.how-it-works ul {
  list-style: none;
  padding: 0;
}
.how-it-works li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.how-it-works li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.how-it-works .card--traditional li::before { background: var(--red); }
.how-it-works .card--cupug li::before { background: var(--green); }
.how-it-works__result {
  margin-top: 24px;
  padding: 20px 32px;
  background: var(--bg-card);
  border-left: 4px solid var(--yellow-green);
  border-radius: 0 var(--radius) var(--radius) 0;
  text-align: center;
  font-size: 0.95rem;
}
.how-it-works .card img { display: block; margin: 16px auto 0; max-width: 100%; }
.how-it-works__svg {
  display: block;
  margin: 16px auto 0;
  max-width: 100%;
  width: 220px;
  height: auto;
}
.how-it-works__result strong { color: var(--yellow-green); }

/* ---- Storage Types ---- */
.storage__subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-style: italic;
}
.storage__features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.storage__features li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.storage__features li:last-child {
  border-bottom: none;
}
.storage__img-label {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-top: 16px;
}
.storage img {
  display: block;
  margin: 16px auto 0;
  max-width: 100%;
}
.storage__svg {
  display: block;
  margin: 16px auto 0;
  max-width: 100%;
  width: 200px;
  height: auto;
}

/* ---- Use Cases ---- */
.use-cases__list {
  max-width: 700px;
  margin: 0 auto;
}
.use-cases__list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  list-style: none;
}
.use-cases__list li:last-child { border-bottom: none; }

/* ---- Postgres Callout ---- */
.postgres-callout {
  margin-top: 40px;
  padding: 20px 32px;
  background: var(--bg-card);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  text-align: center;
  font-size: 1.05rem;
}
.postgres-callout strong { color: var(--green); }

/* ---- Market ---- */
.market__sizing {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.market__tier {
  border-left: 4px solid var(--blue);
  padding-left: 24px;
}
.market__tier:nth-child(1) { border-left-color: var(--blue); }
.market__tier:nth-child(2) { border-left-color: var(--green); }
.market__tier:nth-child(3) { border-left-color: var(--purple); }
.market__amount {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 4px;
}
.market__amount--tam { color: var(--blue); }
.market__amount--sam { color: var(--green); }
.market__amount--som { color: var(--purple); }
.market__type {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.market__type span {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.market__detail {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.validation__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.validation__list li {
  background: var(--bg-card);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.validation__list li strong {
  color: var(--red);
}
.why-now {
  margin-top: 16px;
  background: var(--bg-card);
  border-left: 4px solid var(--yellow-green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.why-now strong { color: var(--yellow-green); }
.market__sources {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 32px;
}

/* ---- Business Model ---- */
.model__section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ---- Pricing ---- */
.pricing .grid-3 { align-items: start; }
.pricing__card { display: flex; flex-direction: column; }
.pricing__tier {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.pricing__name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.pricing__price {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.pricing__period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.pricing__features {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}
.pricing__features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.pricing__features li:last-child { border-bottom: none; }
.pricing__card--featured {
  border: 1px solid var(--green);
}
.pricing__badge {
  display: inline-block;
  background: var(--green);
  color: #0d1117;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

/* ---- Customers ---- */
.customer__title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.customers .card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---- Funding Ask ---- */
.ask__highlight {
  text-align: center;
  background: var(--yellow-green);
  border-color: var(--yellow-green);
  padding: 48px 32px;
}
.ask__highlight .tco__cost-label { color: #333; }
.ask__amount {
  font-size: 2.75rem;
  font-weight: 800;
  color: #0d1117;
  margin-bottom: 8px;
}
.ask__highlight p { color: #333; font-size: 1rem; }

.budget__table {
  width: 100%;
  border-collapse: collapse;
}
.budget__table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.budget__table td:first-child { color: var(--text-muted); }
.budget__table td:last-child { text-align: right; font-weight: 600; color: #fff; white-space: nowrap; }

/* ---- Bar chart rows ---- */
.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bar-row__label {
  white-space: nowrap;
}
.bar-row__track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  min-width: 20px;
}
.bar-row__fill {
  height: 100%;
  background: var(--green);
  border-radius: 3px;
  min-width: 2px;
}

.milestone__item {
  border-left: 4px solid var(--green);
  padding: 16px 20px;
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.milestone__item + .milestone__item { margin-top: 16px; }
.milestone__item:nth-child(2) { border-left-color: var(--yellow-green); }
.milestone__item:nth-child(3) { border-left-color: var(--blue); }
.milestone__phase {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 4px;
}
.milestone__item:nth-child(2) .milestone__phase { color: var(--yellow-green); }
.milestone__item:nth-child(3) .milestone__phase { color: var(--blue); }
.milestone__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.milestone__meta {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.milestone__gate {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-style: italic;
  border-top: 1px solid var(--border);
  padding-top: 6px;
}

.tco__cost-value--yellow-green { color: var(--yellow-green); }
.tco__cost-value--blue { color: var(--blue); }

.team__table {
  width: 100%;
  border-collapse: collapse;
}
.team__table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.team__table td:first-child { color: var(--text-muted); }
.team__table td:nth-child(2) { text-align: right; font-weight: 600; color: #fff; }
.team__table td:nth-child(3) { text-align: right; color: var(--text-muted); font-size: 0.85rem; }

/* ---- CTA ---- */
.cta { text-align: center; }
.cta h2 { margin-bottom: 12px; }
.cta__sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.cta__form {
  display: flex;
  gap: 12px;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}
.cta__input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
}
.cta__input:focus { border-color: var(--green); }
.cta__input::placeholder { color: var(--text-muted); }
.cta__btn {
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  background: var(--green);
  color: #0d1117;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}
.cta__btn:hover { background: #8ad000; }

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}
.footer__brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green);
}
.footer__links {
  margin: 16px 0;
  display: flex;
  gap: 24px;
  justify-content: center;
}
.footer__links a {
  color: var(--blue);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer__links a:hover { text-decoration: underline; }
.footer__copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  :root { --text-muted: #a8b2bc; }
  section { padding: 56px 0; }
  h2.section-title { font-size: 1.75rem; }
  .hero { padding: 64px 0 56px; }
  .hero .container { grid-template-columns: 1fr; gap: 32px; }
  .hero__content { text-align: left; }
  .hero h1 { font-size: 1.75rem; }
  .hero__tagline { font-size: 1rem; }
  .hero__stats { gap: 8px; }
  .hero__diagram { order: 1; }
  .hero__svg { max-width: 100%; }
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .grid-2, .grid-3, .solution__grid { grid-template-columns: 1fr; }
  .stat-number { font-size: 2.5rem; }
  .comparison__value { font-size: 1.75rem; }
  .tco__cost-value { font-size: 1.75rem; }
  .cta__form { flex-direction: column; }
  .tco__table { font-size: 0.85rem; }
  .tco__table th, .tco__table td { padding: 8px 8px; }
  .market__amount { font-size: 2rem; }
  .ask__amount { font-size: 2rem; }
  .card { overflow-x: auto; }
  .bar-row__label { white-space: normal; }
  .budget__table td:last-child { white-space: normal; }
}
