:root {
  --green: #6BBF59;
  --green-lt: #9DD988;
  --green-dk: #3A7A28;
  --purple: #4A3267;
  --purple-lt: #6a4d8f;
  --charcoal: #16102a;
  --surface: #1f1738;
  --surface-2: #271d44;
  --surface-3: #312355;
  --border: rgba(107, 191, 89, 0.18);
  --border-p: rgba(74, 50, 103, 0.45);
  --text: #ede5f8;
  --text-muted: #a79abf;
  --radius: 8px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  --container: 1200px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--charcoal);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(calc(100% - 2rem), var(--container)); margin: 0 auto; }

h1, h2, h3, .brand-wordmark {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.04em;
  line-height: 1;
  margin: 0;
}
.text-muted-site,
.lead,
.section-head p,
.hero-card-copy p,
.card-theme p,
.card p,
.panel p,
.site-footer p,
.footer-links a,
.subtle,
.muted { color: var(--text-muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22, 16, 42, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(107, 191, 89, 0.03) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(107, 191, 89, 0.03) 40px);
  pointer-events: none;
}
.site-header-inner,
.hero-grid,
.spotlight,
.use-cases,
.template-grid,
.three-up,
.footer-grid { display: grid; gap: 1.5rem; }
.site-header-inner {
  position: relative;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  padding: 1rem 0;
}
.brand { display: inline-flex; align-items: center; gap: 0.9rem; min-width: 0; }
.brand-logo { width: auto; height: 60px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.18)); }
.brand-mark { display: flex; flex-direction: column; line-height: 1; }
.brand-wordmark { font-size: 1.9rem; color: var(--purple-lt); }
.brand-wordmark span, .brand small { color: var(--green); }
.brand small { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.68rem; margin-top: 0.25rem; }
.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.site-nav a {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a:focus { color: var(--green); }

.btn-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.18s, background 0.18s, border-color 0.18s, color 0.18s;
}
.btn:hover, .btn:focus { transform: translateY(-1px); }
.btn-brand {
  background: var(--green);
  color: #1a1428;
  border-color: var(--green);
}
.btn-brand:hover, .btn-brand:focus {
  background: var(--green-lt);
  border-color: var(--green-lt);
  color: #1a1428;
}
.btn-outline-brand {
  background: transparent;
  color: var(--green);
  border-color: var(--border);
}
.btn-outline-brand:hover, .btn-outline-brand:focus {
  color: var(--green-lt);
  border-color: var(--green);
}
.text-green { color: var(--green); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 4.75rem 0 3.5rem;
  min-height: 74vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(74, 50, 103, 0.18) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(74, 50, 103, 0.18) 40px);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  right: -8rem;
  top: 50%;
  width: 34rem;
  height: 34rem;
  transform: translateY(-50%);
  border: 1px solid rgba(107, 191, 89, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(74, 50, 103, 0.06), 0 0 0 120px rgba(107, 191, 89, 0.03);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: start;
  gap: 3rem;
}
.hero-copy { max-width: 38rem; padding-top: 1.25rem; }
.hero-visual { display: flex; justify-content: flex-end; align-items: flex-start; }
.eyebrow, .section-label {
  display: inline-block;
  background: rgba(107, 191, 89, 0.12);
  border: 1px solid var(--border);
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.42rem 0.95rem;
  border-radius: 2px;
}
.eyebrow { margin-bottom: 1.2rem; }
.display-hero, h1 { font-size: clamp(3rem, 7.2vw, 5.75rem); color: var(--text); max-width: 9.5ch; margin-bottom: 1rem; }
h2 { font-size: clamp(2.3rem, 5vw, 4rem); color: var(--text); margin-bottom: 0.45rem; }
h3 { font-size: 1.5rem; color: var(--text); margin-bottom: 0.4rem; }
.lead { max-width: 34rem; font-size: 1.08rem; margin: 0 0 1.75rem; font-weight: 300; }

.hero-card-stack { display: grid; gap: 0.9rem; max-width: 30rem; width: 100%; margin-left: auto; margin-top: 0.75rem; }
.hero-flow-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.hero-flow-label::before, .hero-flow-label::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(107, 191, 89, 0), rgba(107, 191, 89, 0.45));
}
.hero-flow-label::after { background: linear-gradient(90deg, rgba(107, 191, 89, 0.45), rgba(107, 191, 89, 0)); }
.hero-arrow {
  width: 1px;
  height: 1.25rem;
  margin: 0.15rem auto;
  background: rgba(107, 191, 89, 0.35);
  position: relative;
}
.hero-arrow::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -0.15rem;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 1px solid var(--green);
  border-bottom: 1px solid var(--green);
  transform: translateX(-50%) rotate(45deg);
}

.hero-card, .card-theme, .card, .spotlight-visual, .panel, .note, .mini, .tag {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.hero-card, .card-theme, .card, .spotlight-visual, .panel { border-radius: var(--radius); }
.card-theme-alt { background: var(--surface-2); }
.hero-card {
  padding: 1rem;
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 1rem;
  align-items: center;
  position: relative;
}
.hero-card-step {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.hero-card-step strong, .icon-box {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  background: rgba(107, 191, 89, 0.08);
  color: var(--green);
}
.hero-card-step strong { width: 1.5rem; height: 1.5rem; font-size: 0.7rem; line-height: 1; }
.hero-card-copy h3 { margin-bottom: 0.28rem; font-size: 1.45rem; }
.hero-card-copy p { margin: 0; color: var(--text-muted); font-size: 0.98rem; line-height: 1.52; max-width: 30rem; }
.hero-card-image {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-p);
  background: linear-gradient(135deg, #2d214c, #1d1535);
}
.hero-card-image img { width: 100%; height: 100%; object-fit: cover; }

section { padding: 2.5rem 0 1.25rem; }
.section-head { margin-bottom: 1.5rem; display: grid; gap: 0.5rem; }
.section-head p { margin: 0; max-width: 62ch; }
.spotlight { grid-template-columns: 1fr 1fr; align-items: stretch; }
.spotlight-visual, .spotlight-copy, .card, .panel { padding: 1.25rem; }
.spotlight-preview,
.template-art,
.mini .swatch {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-p);
  background: linear-gradient(135deg, #2d214c, #1d1535);
}
.spotlight-preview { aspect-ratio: 5 / 4; border-radius: 6px; margin-bottom: 1rem; }
.spotlight-copy { display: grid; gap: 1rem; background: transparent; padding: 0; box-shadow: none; border: 0; }
.spotlight-image img, .spotlight-preview img, .template-art img { width: 100%; height: 100%; object-fit: cover; }

.mini-grid, .template-grid, .three-up { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.mini { padding: 0.75rem; }
.mini .swatch { aspect-ratio: 1.15 / 1; border-radius: 4px; margin-bottom: 0.6rem; }
.mini .swatch::before, .variation-swatch::before { content: ''; position: absolute; inset: 22%; border-radius: 999px; border: 7px solid var(--green); }
.mini:nth-child(2) .swatch::before { border-color: var(--purple-lt); }
.mini:nth-child(3) .swatch::before { border-color: var(--green-lt); }
.mini:nth-child(4) .swatch::before { border-color: var(--text); }
.mini:nth-child(5) .swatch::before { border-color: var(--green-dk); }
.mini:nth-child(6) .swatch::before { border-color: var(--purple); }
.mini strong { display: block; color: var(--text); font-size: 0.96rem; margin-bottom: 0.2rem; }

.badge-row, .tag-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag {
  display: inline-block;
  border-radius: 2px;
  padding: 0.42rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(107, 191, 89, 0.08);
  border: 1px solid var(--border);
}

.use-cases, .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.icon-box {
  width: 46px;
  height: 46px;
  border-radius: 4px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.template-art { aspect-ratio: 16 / 9; border-radius: 6px; margin-bottom: 0.9rem; }
.quote-label, .quote {
  color: var(--green);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
  font-weight: 700;
}
.note { border-radius: var(--radius); padding: 1rem 1.15rem; background: var(--surface-2); }

.cta-band {
  margin: 2.5rem 0 1.5rem;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: white;
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(74, 50, 103, 0.15) 15px),
    repeating-linear-gradient(-45deg, transparent, transparent 14px, rgba(74, 50, 103, 0.15) 15px);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band p { color: rgba(255, 255, 255, 0.75); max-width: 58ch; }

.site-footer, footer {
  padding: 1rem 0 3rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  background: #120d22;
}
.footer-grid { grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr; align-items: start; }
.footer-title, footer h3 { color: var(--text); font-size: 1.4rem; margin-bottom: 0.75rem; }
.footer-links, ul.clean { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; color: var(--text-muted); }

@media (max-width: 980px) {
  .hero-copy { max-width: none; padding-top: 0; }
  .hero-visual { justify-content: stretch; }
  .hero-card-stack { max-width: none; margin-top: 0; }
  .brand-logo { height: 52px; }
  .brand-wordmark { font-size: 1.45rem; }
  .hero-grid,
  .spotlight,
  .use-cases,
  .footer-grid,
  .three-up,
  .template-grid,
  .mini-grid,
  .site-header-inner { grid-template-columns: 1fr; }
  .site-nav { justify-content: flex-start; }
  .site-header-inner { gap: 0.85rem; }
  .hero-card { grid-template-columns: 80px 1fr; }
  h1, .display-hero { max-width: 10ch; }
}
