/* PHPScaffolder — product site */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) var(--bg);
}

::-webkit-scrollbar       { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
::-webkit-scrollbar-corner { background: var(--bg); }

:root {
  --bg:           #090c11;
  --surface:      #0e1219;
  --surface2:     #131822;
  --border:       #1e2535;
  --text:         #e8ecf2;
  --muted:        #6b7a8d;
  --radius:       6px;
  --header-h:     72px;
  --font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
  --font-display: 'Fraunces', Georgia, serif;
}

html, body { height: 100%; }

body {
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  background-color: var(--bg);
  color-scheme: dark;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

code {
  font-family: var(--font-mono);
  font-size: .8125em;
  background-color: var(--surface2);
  border: 1px solid var(--border);
  padding: .1em .35em;
  border-radius: 3px;
}

/* ── Header ── */

.site-header {
  background-color: var(--surface2);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  height: var(--header-h);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}

.brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
  flex: 1;
}

.brand-mark img { display: block; }

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-sub {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.brand-product {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.header-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.header-nav a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}

.header-nav a:hover { color: var(--text); }

/* ── Hero ── */

.hero {
  position: relative;
  min-height: max(calc((100vh - var(--header-h)) * .75), 810px);
  margin-top: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
}

/* Single centered glow behind the wordmark */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 48%, var(--primary-a20) 0%, transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 7rem 2rem 8rem;
  text-align: center;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

/* Wordmark — the whole point */
.hero-wordmark {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(6rem, 19vw, 12.5rem);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: .85;
  margin-bottom: 1.75rem;
}

.word-prefix { color: var(--text); }
.word-ple    { color: var(--accent); }

.hero-for {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.hero-tagline {
  font-family: var(--font);
  font-size: clamp(.9375rem, 1.6vw, 1.0625rem);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .01em;
  line-height: 1.6;
  margin-bottom: 2.25rem;
}

.hero-cta {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .625rem 1.375rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  font-family: var(--font);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent);
  color: #0a0500;
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-h);
  border-color: var(--accent-h);
}

.btn-ghost {
  background-color: transparent;
  color: var(--muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--muted);
}

.btn-soon {
  background-color: var(--surface);
  color: var(--muted);
  border-color: var(--border);
  cursor: default;
  pointer-events: none;
}


/* ── Pitch (image banner + 3-column intro cards) ── */

.pitch-section {
  position: relative;
  min-height: 400px;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.pitch-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--surface) 28%,
    rgba(14, 18, 25, 0.92) 50%,
    rgba(14, 18, 25, 0.5) 72%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

.pitch-image {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: max(700px, 52%);
  z-index: 0;
}

.pitch-image img {
  display: block;
  width: 100%;
  height: auto;
}

.pitch-grid {
  position: relative;
  z-index: 2;
  padding: 3rem 2rem 3rem 4rem;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pitch-card {
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  background: rgba(9, 12, 17, 0.88);
  border-radius: 0 6px 6px 0;
}

.pitch-card p {
  font-size: .875rem;
  color: var(--text);
  line-height: 1.75;
}

/* ── Features ── */

.features-section {
  padding: 5rem 2rem;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
}

.section-inner {
  max-width: 880px;
  margin: 0 auto;
}

.section-inner--narrow {
  max-width: 540px;
}

.section-label {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background-color: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-card {
  background-color: var(--surface2);
  padding: 2rem;
  transition: background-color .15s;
}

.feature-card:hover { background-color: var(--surface); }

.feature-num {
  font-family: var(--font-mono);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--accent);
  display: block;
  margin-bottom: .875rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .5rem;
}

.feature-card p {
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Steps + Download ── */

.steps-section {
  padding: 5rem 2rem;
  background-color: var(--surface);
}

.steps { margin-bottom: 2.5rem; }

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.step:first-child { border-top: 1px solid var(--border); }

.step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background-color: var(--accent);
  color: #0a0500;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: .15rem;
}

.step h3 {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .2rem;
}

.step p {
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.5;
}

.download-cards {
  display: grid;
  grid-template-columns: minmax(0, 480px);
}

.download-card {
  background-color: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  transition: border-color .2s;
}

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

.download-card-icon { width: 63px; height: 63px; flex-shrink: 0; }
.download-card-icon img { display: block; }

.download-card-body { flex: 1; }

.download-card h3 {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .25rem;
}

.download-card p {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Adverts ── */

.advert-section {
  padding: 1.5rem 2rem;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  display: none; /* shown by JS when ad fills; stays hidden for ad blockers */
  justify-content: center;
}

.advert {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.advert::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,    var(--surface) 0%, transparent 30%),
    linear-gradient(to bottom, var(--surface) 0%, transparent 25%),
    linear-gradient(to right,  var(--surface) 0%, transparent 25%),
    linear-gradient(to left,   var(--surface) 0%, transparent 25%);
  pointer-events: none;
}

/* ── Footer ── */

.site-footer {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.25rem 2rem;
  margin-top: auto;
}

.site-footer p {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}

.site-footer a:hover { color: var(--text); }

.sep { color: var(--border); }

/* ── Download gate ── */

.gate-wrap { width: 100%; max-width: 480px; }

.steps-section .gate-wrap { margin-top: 2rem; }

.download-gate { width: 100%; }

.gate-row {
  display: flex;
  gap: .5rem;
  align-items: stretch;
  flex-wrap: wrap;
}

.gate-email {
  flex: 1;
  min-width: 0;
  padding: .625rem 1rem;
  background-color: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .875rem;
  font-family: var(--font);
  outline: none;
  transition: border-color .15s;
}

.gate-email::placeholder { color: var(--muted); }
.gate-email:focus        { border-color: var(--accent); }

.gate-note {
  font-size: .8125rem;
  color: var(--muted);
  margin-top: .5rem;
  min-height: 1.25em;
}

.gate-sent {
  font-size: .9375rem;
  color: var(--text);
  text-align: center;
}

/* ── Responsive ── */

@media (max-width: 760px) {
  .site-header     { padding: 0 1.25rem; }
  .hero            { min-height: calc(100svh - var(--header-h)); }
  .hero-wordmark   { font-size: clamp(4.5rem, 22vw, 7rem); }
  .hero-cta        { flex-direction: column; align-items: center; }
  .features-section,
  .steps-section   { padding: 2.5rem 1.25rem; }
  .advert-section  { padding: 1rem 1.25rem; }
  .pitch-grid      { grid-template-columns: 1fr; padding: 2rem 1.25rem; }
  .pitch-image     { right: auto; left: 50%; transform: translate(-50%, -50%); }
  .gate-row        { flex-direction: column; }
  .gate-row .btn   { justify-content: center; }
  .header-nav      { display: none; }
  .site-footer     { padding: 1rem 1.25rem; }
  .features-grid   { grid-template-columns: 1fr; }
  .download-cards  { grid-template-columns: 1fr; }
  .download-card   { flex-direction: column; align-items: flex-start; }
}
