/* Spenta pages — Noord Forge Labs. Matches the studio site's CRT/terminal theme. */

/* ── Tokens (mirrors noordforgelabs/index.html) ───────────────────────────── */
:root {
  --bg:          #08070e;
  --bg-card:     #0f0e1a;
  --bg-card-2:   #16132a;
  --border:      #2a2445;
  --border-hi:   #4a3f80;
  --text:        #e8e4ff;
  --text-sec:    #c4bde8;
  --text-muted:  #7a6fa8;
  --accent:      #b7a3ff;
  --accent-dim:  #7c5cdb;
  --accent-warm: #ffaac1;
  --accent-glow: rgba(183, 163, 255, 0.18);
  --green:       #a8ff78;
  --font:        'Space Mono', 'Courier New', Courier, monospace;
  --font-display:'VT323', 'Courier New', monospace;
  --max-w:       1000px;
  --nav-h:       60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
img { display: block; max-width: 100%; }

/* CRT scanline overlay */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0px, transparent 2px,
    rgba(0, 0, 0, 0.07) 2px, rgba(0, 0, 0, 0.07) 3px);
}

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── Fade-up ──────────────────────────────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: .08s; }
.fade-up-delay-2 { transition-delay: .16s; }
.fade-up-delay-3 { transition-delay: .24s; }
@keyframes blink { 0%,49%{opacity:1} 50%,100%{opacity:0} }
@keyframes flicker { 0%,100%{opacity:1} 92%{opacity:.97} 94%{opacity:.92} 96%{opacity:.99} }
@keyframes shimmer { 0%{background-position:0% center} 100%{background-position:250% center} }
@keyframes pulse-glow { 0%,100%{opacity:.6;transform:scale(1)} 50%{opacity:1;transform:scale(1.08)} }

/* ── Navigation ───────────────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 200; height: var(--nav-h);
  background: rgba(8,7,14,.92); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 22px; letter-spacing: 1px;
  color: var(--accent); flex-shrink: 0; text-shadow: 0 0 12px rgba(183,163,255,.5);
}
.nav-brand img { width: 28px; height: 28px; border-radius: 6px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-family: var(--font); font-size: 12px; font-weight: 700; color: var(--text-muted);
  padding: 6px 14px; border: 1px solid transparent; letter-spacing: .5px; text-transform: uppercase;
  transition: color .15s, border-color .15s, background .15s;
}
.nav-links a:hover { color: var(--accent); border-color: var(--border); background: rgba(183,163,255,.05); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 88px 0 72px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(183,163,255,.12) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, black 0%, transparent 100%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 700px; height: 420px;
  background: radial-gradient(ellipse at 50% 20%, rgba(183,163,255,.12) 0%, rgba(255,170,193,.05) 45%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-logo-wrap { position: relative; display: inline-block; margin-bottom: 32px; }
.hero-logo-wrap::before {
  content: ""; position: absolute; inset: -20px;
  background: radial-gradient(ellipse at center, rgba(183,163,255,.22) 0%, rgba(255,170,193,.08) 50%, transparent 70%);
  animation: pulse-glow 4s ease-in-out infinite;
}
.hero-logo { width: 88px; height: 88px; border-radius: 20px; position: relative; }
.hero h1 {
  font-family: var(--font-display); font-size: clamp(64px, 9vw, 110px);
  letter-spacing: 2px; color: var(--text); line-height: 1.05; margin: 0 auto;
  text-shadow: 0 0 24px rgba(183,163,255,.4), 0 0 48px rgba(183,163,255,.15); animation: flicker 8s infinite;
}
.hero h1 .gradient-text {
  background: linear-gradient(110deg, #e8e4ff 0%, var(--accent) 30%, var(--accent-warm) 55%, #e8e4ff 78%, var(--accent) 100%);
  background-size: 250% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; animation: shimmer 5s linear infinite; filter: drop-shadow(0 0 8px rgba(183,163,255,.6));
}
.hero-tagline { margin: 18px auto 0; max-width: 560px; font-size: 13px; color: var(--text-muted); line-height: 1.8; }
.hero-tagline::before { content: '> '; color: var(--accent); }
.cursor { display: inline-block; width: 10px; height: 1em; background: var(--accent); vertical-align: text-bottom; margin-left: 3px; animation: blink 1s step-end infinite; }
.hero-cta { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Section headings ─────────────────────────────────────────────────────── */
.section-label {
  display: inline-block; font-family: var(--font); font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--border-hi); padding: 3px 12px; margin-bottom: 16px; background: rgba(183,163,255,.06);
}
.section-label::before { content: '[ '; }
.section-label::after { content: ' ]'; }
.section-title {
  font-family: var(--font-display); font-size: clamp(36px, 5vw, 52px); letter-spacing: 1px;
  color: var(--text); line-height: 1.1; text-shadow: 0 0 20px rgba(183,163,255,.25);
}
.section-desc { margin-top: 12px; font-size: 13px; color: var(--text-muted); max-width: 520px; line-height: 1.8; }
.section-head { margin-bottom: 48px; }
.center { text-align: center; }
.center .section-desc { margin-left: auto; margin-right: auto; }

/* ── Screenshots strip ────────────────────────────────────────────────────── */
.shots { display: flex; gap: 20px; overflow-x: auto; padding: 8px 2px 18px; scroll-snap-type: x mandatory; }
.shots::-webkit-scrollbar { height: 6px; }
.shots::-webkit-scrollbar-thumb { background: var(--border-hi); }
.shots img {
  width: 230px; flex: 0 0 auto; border-radius: 26px; scroll-snap-align: center;
  border: 1px solid var(--border-hi);
  box-shadow: 0 0 0 1px rgba(183,163,255,.06), 0 24px 60px rgba(0,0,0,.7), 0 0 40px rgba(183,163,255,.07);
}

/* ── Feature / product cards ──────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card {
  background: var(--bg-card); border: 1px solid var(--border); padding: 24px;
  position: relative; transition: border-color .2s, box-shadow .2s;
}
.card::before { content: ""; position: absolute; top: 0; left: 0; width: 3px; height: 0; background: var(--accent); transition: height .25s ease; }
.card:hover::before { height: 100%; }
.card:hover { border-color: var(--border-hi); box-shadow: 0 0 24px rgba(183,163,255,.10), inset 0 0 0 1px rgba(183,163,255,.05); }
.card h3 { font-family: var(--font-display); font-size: 22px; letter-spacing: .5px; color: var(--text); margin-bottom: 8px; }
.card h3 .pfx { color: var(--accent); }
.card p { font-size: 12px; color: var(--text-muted); line-height: 1.8; }

/* ── Privacy band ─────────────────────────────────────────────────────────── */
.band { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px;
  background: var(--accent); border: 1px solid var(--accent); font-family: var(--font);
  font-size: 12px; font-weight: 700; color: #08070e; letter-spacing: .5px; text-transform: uppercase;
  cursor: pointer; transition: background .15s, box-shadow .15s, transform .15s;
}
.btn-primary:hover { background: #cebfff; border-color: #cebfff; box-shadow: 0 0 20px rgba(183,163,255,.4); transform: translateY(-1px); color: #08070e; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 22px;
  border: 1px solid var(--border-hi); font-family: var(--font); font-size: 12px; font-weight: 700;
  color: var(--text-sec); background: transparent; letter-spacing: .5px; text-transform: uppercase;
  cursor: pointer; transition: border-color .15s, color .15s, box-shadow .15s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 16px rgba(183,163,255,.2); }
.btn-soon {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px;
  border: 1px solid var(--border-hi); font-family: var(--font); font-size: 12px; font-weight: 700;
  color: var(--accent-warm); background: rgba(255,170,193,.05); letter-spacing: .5px; text-transform: uppercase;
}
.btn-soon::before { content: '['; color: var(--text-muted); }
.btn-soon::after { content: ']'; color: var(--text-muted); }

/* ── Legal / support doc ──────────────────────────────────────────────────── */
.doc { max-width: 760px; padding: 64px 0 24px; }
.doc h1 { font-family: var(--font-display); font-size: clamp(40px, 6vw, 60px); letter-spacing: 1px; color: var(--text); text-shadow: 0 0 20px rgba(183,163,255,.3); line-height: 1.05; }
.doc .updated { color: var(--text-muted); font-size: 12px; margin: 8px 0 32px; }
.doc .updated::before { content: '// '; }
.doc h2 { font-family: var(--font-display); font-size: 26px; letter-spacing: .5px; color: var(--accent); margin: 34px 0 10px; }
.doc h2::before { content: '## '; color: var(--text-muted); }
.doc p, .doc li { font-size: 13px; color: var(--text-sec); line-height: 1.9; }
.doc ul { padding-left: 22px; margin: 8px 0; }
.doc a { color: var(--accent); }
.doc a:hover { text-shadow: 0 0 8px rgba(183,163,255,.6); }
.faq { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--border); padding: 18px 20px; margin: 12px 0; transition: border-left-color .2s, background .2s; }
.faq:hover { border-left-color: var(--accent); background: var(--bg-card-2); }
.faq h3 { font-family: var(--font-display); font-size: 20px; color: var(--text); letter-spacing: .5px; margin-bottom: 4px; }
.faq h3::before { content: '> '; color: var(--accent); }
.faq p { margin: 0; color: var(--text-muted); }
.email-big { font-family: var(--font-display); font-size: clamp(22px, 4vw, 30px); margin: 10px 0 4px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 18px; letter-spacing: 1px; color: var(--text-muted); }
.footer-brand img { width: 18px; height: 18px; opacity: .7; border-radius: 4px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); transition: color .15s; }
.footer-links a:hover { color: var(--accent); }
.footer-sub { width: 100%; font-size: 11px; color: var(--text-muted); opacity: .5; letter-spacing: .5px; }

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .hero { padding: 64px 0 48px; }
  .nav-links { display: none; }
}
@media (max-width: 640px) { .hero h1 { font-size: 60px; } }
