/* HomeGen landing — minimal, dark-mode, fast.
   No frameworks, no JS dependencies. Stays small + edge-cached. */

:root {
  --bg: #0a0a0a;
  --panel: #141414;
  --panel-border: #1f1f1f;
  --text: #ffffff;
  --text-muted: #a0a0a0;
  --text-dim: #666;
  --accent: #3b82f6;
  --accent-dim: #1d3a6b;
  --max-width: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Inter", "Helvetica Neue", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

/* --- nav --- */
.nav {
  padding: 22px 0;
  border-bottom: 1px solid var(--panel-border);
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- hero --- */
.hero {
  padding: 100px 0 80px;
  border-bottom: 1px solid var(--panel-border);
}
.hero h1 {
  font-size: 64px;
  line-height: 1.06;
  letter-spacing: -2px;
  font-weight: 800;
  margin-bottom: 28px;
  max-width: 12ch;
}
.hero .accent { color: var(--accent); }
.lede {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: 36px;
  line-height: 1.55;
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.cta {
  display: inline-block;
  padding: 16px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  min-width: 140px;
  text-align: center;
}
.cta.primary {
  background: #fff;
  color: #0a0a0a;
}
.cta.primary:hover { background: #f0f0f0; color: #0a0a0a; }
.cta.ghost {
  border: 1px solid var(--panel-border);
  color: var(--text);
}
.cta.ghost:hover { background: var(--panel); color: var(--text); }
.microcopy {
  font-size: 13px;
  color: var(--text-dim);
}

/* --- how it works --- */
.how {
  padding: 80px 0;
  border-bottom: 1px solid var(--panel-border);
}
.how h2,
.pricing h2,
.cta-section h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 40px;
}
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.steps li {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.steps h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.steps p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* --- pricing --- */
.pricing {
  padding: 80px 0;
  border-bottom: 1px solid var(--panel-border);
}
.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.plan {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 32px;
}
.plan-team {
  border-color: var(--accent-dim);
  background: #0d1525;
}
.plan h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}
.price {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 6px;
}
.price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}
.renders {
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 20px;
}
.plan ul {
  list-style: none;
}
.plan li {
  color: var(--text-muted);
  font-size: 15px;
  padding: 8px 0;
  border-top: 1px solid var(--panel-border);
}
.plan li:first-child { border-top: 0; }

/* --- cta section --- */
.cta-section {
  padding: 80px 0;
  text-align: center;
}
.cta-section p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 50ch;
  margin: 0 auto 32px;
}

/* --- footer --- */
.footer {
  padding: 40px 0 60px;
  border-top: 1px solid var(--panel-border);
}
.footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.copyright, .contact { color: var(--text-dim); font-size: 14px; }
.contact a { color: var(--text-muted); }

/* --- legal pages (privacy/terms) --- */
.legal {
  padding: 60px 0 100px;
}
.legal .wrap {
  max-width: 760px;
}
.legal h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.legal .meta {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 32px;
}
.legal h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 48px 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--panel-border);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 10px;
}
.legal p, .legal li {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 14px;
}
.legal ul, .legal ol { padding-left: 24px; margin-bottom: 14px; }
.legal li { padding: 4px 0; margin: 0; }
.legal strong { color: var(--text); font-weight: 600; }
.legal hr { border: 0; border-top: 1px solid var(--panel-border); margin: 32px 0; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 15px;
}
.legal th, .legal td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--panel-border);
}
.legal th {
  font-weight: 600;
  color: var(--text);
  background: var(--panel);
}
.legal td { color: var(--text-muted); }

/* --- responsive --- */
@media (max-width: 720px) {
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 40px; letter-spacing: -1.2px; }
  .lede { font-size: 17px; }
  .how, .pricing, .cta-section { padding: 50px 0; }
  .how h2, .pricing h2, .cta-section h2 { font-size: 28px; }
  .steps, .plans { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; font-size: 14px; }
  .nav-links a:nth-child(2) { display: none; } /* hide Pricing on mobile */
  .footer .wrap { flex-direction: column; align-items: flex-start; }
  .legal h1 { font-size: 32px; }
}
