/* 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: calc(100vh - var(--header-h));
  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: 4rem 2rem 5rem;
  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(--primary); }

/* Tagline — kept short, reads under the wordmark */
.hero h1 {
  font-family: var(--font);
  font-size: clamp(.9375rem, 1.8vw, 1.0625rem);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .02em;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.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(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-h);
  border-color: var(--primary-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;
}

/* ── Intro section ── */

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

.intro-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;
}

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

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

.intro-content {
  position: relative;
  z-index: 2;
  padding: 3rem 2rem 3rem 4rem;
  max-width: 540px;
}

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

.intro-quote p {
  font-size: clamp(.9375rem, 1.6vw, 1rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.7;
}

.intro-quote p + p {
  margin-top: .625rem;
}

/* ── Features ── */

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

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

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

.section-title {
  font-family: var(--font);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--border);
  margin-bottom: 0;
  padding-bottom: 2rem;
}

.features-list { border-top: 1px solid var(--border); }

.feature-row {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.feature-num {
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 600;
  color: var(--border);
  letter-spacing: .04em;
  padding-top: .2rem;
  transition: color .2s;
}

.feature-row:hover .feature-num { color: var(--primary); }

.feature-row h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .35rem;
  letter-spacing: -.01em;
}

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

/* ── Download / Get started ── */

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

.steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background-color: var(--primary);
  color: #fff;
  font-size: 12px;
  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: .875rem;
  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(--primary); }

.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;
}

/* ── 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); }

/* ── Responsive ── */

@media (max-width: 760px) {
  .site-header     { padding: 1rem 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,
  .download-section { padding: 2.5rem 1.25rem; }
  .header-nav      { display: none; }
  .site-footer     { padding: 1rem 1.25rem; }
  .feature-row     { grid-template-columns: 2.5rem 1fr; gap: 1rem; }
  .download-cards  { grid-template-columns: 1fr; }
}
