/* ============================================================
   Novarion — shared design system for the UGC feature pages
   (user-features.html + admin-features.html)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ---------- tokens: light (default) ---------- */
:root {
  --ground: #f3f6f2;
  --surface: #ffffff;
  --surface-raised: #eaf0e9;
  --line: #d8e1d6;
  --ink: #10201a;
  --ink-muted: #5c6b63;
  --gold: #a9800f;
  --gold-bright: #c9a227;
  --green: #1a4731;
  --green-bright: #1f5a3d;
  --chrome-dot-1: #e0665a;
  --chrome-dot-2: #e0b34d;
  --chrome-dot-3: #4fae6b;
  --shadow: rgba(16, 32, 26, 0.12);

  --font-display: 'Fraunces', 'Iowan Old Style', serif;
  --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', monospace;
}

/* ---------- tokens: dark (system preference, no explicit stamp) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0b1210;
    --surface: #121b18;
    --surface-raised: #1b2622;
    --line: #243430;
    --ink: #edefea;
    --ink-muted: #93a29a;
    --gold: #c9a227;
    --gold-bright: #e4c158;
    --green: #1f5a3d;
    --green-bright: #2f7350;
    --chrome-dot-1: #e0665a;
    --chrome-dot-2: #e0b34d;
    --chrome-dot-3: #4fae6b;
    --shadow: rgba(0, 0, 0, 0.45);
  }
}

/* ---------- tokens: explicit dark stamp ---------- */
:root[data-theme="dark"] {
  --ground: #0b1210;
  --surface: #121b18;
  --surface-raised: #1b2622;
  --line: #243430;
  --ink: #edefea;
  --ink-muted: #93a29a;
  --gold: #c9a227;
  --gold-bright: #e4c158;
  --green: #1f5a3d;
  --green-bright: #2f7350;
  --chrome-dot-1: #e0665a;
  --chrome-dot-2: #e0b34d;
  --chrome-dot-3: #4fae6b;
  --shadow: rgba(0, 0, 0, 0.45);
}

/* ---------- reset & base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  text-wrap: balance;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.eyebrow::before {
  content: '';
  width: 1.4em;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* ---------- shell ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }

/* ---------- top nav ---------- */
.topnav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 64px);
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-bright) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-bright); font-weight: 700; font-size: 0.85rem;
  flex-shrink: 0;
}
.nav-ctas { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.nav-cta {
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.03em; text-decoration: none;
  padding: 9px 18px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--gold-bright); color: #14210f;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--shadow); }
.nav-cta-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.nav-cta-ghost:hover { background: var(--surface); box-shadow: none; border-color: var(--gold); }
@media (max-width: 560px) { .nav-cta-ghost { display: none; } }

/* ---------- hero ---------- */
.hero {
  padding: clamp(64px, 12vw, 140px) 0 clamp(56px, 8vw, 96px);
  position: relative;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 20px 0 22px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-bright);
}
.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--ink-muted);
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  font-family: var(--font-mono); font-weight: 600; font-size: 0.86rem;
  letter-spacing: 0.02em; text-decoration: none;
  padding: 14px 26px; border-radius: 10px;
  background: var(--gold-bright); color: #14210f;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px var(--shadow); }
.btn-ghost {
  font-family: var(--font-mono); font-weight: 600; font-size: 0.86rem;
  letter-spacing: 0.02em; text-decoration: none;
  padding: 14px 26px; border-radius: 10px;
  border: 1px solid var(--line); color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-ghost:hover { border-color: var(--gold); background: var(--surface); }

.hero-stats {
  display: flex; gap: clamp(20px, 3vw, 40px); margin-top: 44px;
  flex-wrap: wrap;
}
.stat-num {
  font-family: var(--font-mono); font-size: 1.7rem; font-weight: 600;
  color: var(--gold-bright); font-variant-numeric: tabular-nums;
}
.stat-label {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em;
  color: var(--ink-muted); text-transform: uppercase; margin-top: 2px;
}

/* hero device stack (decorative, tilted screenshot preview) */
.hero-device { position: relative; }
.hero-device .frame { transform: rotate(-2.5deg); }
.hero-device .frame::after {
  content: '';
  position: absolute; inset: -30px -30px auto auto; width: 180px; height: 180px;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold-bright) 30%, transparent) 0%, transparent 70%);
  z-index: -1; pointer-events: none;
}

/* ---------- browser-chrome screenshot frame ---------- */
.frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px var(--shadow);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease;
  will-change: transform;
}
.frame-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--line);
}
.frame-dots { display: flex; gap: 6px; flex-shrink: 0; }
.frame-dots span { width: 9px; height: 9px; border-radius: 50%; display: block; }
.frame-dots span:nth-child(1) { background: var(--chrome-dot-1); }
.frame-dots span:nth-child(2) { background: var(--chrome-dot-2); }
.frame-dots span:nth-child(3) { background: var(--chrome-dot-3); }
.frame-url {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-muted);
  background: var(--ground); border: 1px solid var(--line);
  border-radius: 6px; padding: 4px 10px;
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.frame-shot {
  aspect-ratio: 16 / 10; width: 100%;
  background: linear-gradient(160deg, var(--surface-raised) 0%, var(--surface) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.frame-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.frame-shot .placeholder {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-muted);
  text-align: center; padding: 20px;
}
.frame-shot .placeholder b { color: var(--gold-bright); display: block; margin-bottom: 6px; font-size: 0.9rem; }

/* ---------- exhibit rows (the core repeating unit) ---------- */
.exhibits { padding: clamp(20px, 4vw, 40px) 0 clamp(80px, 10vw, 140px); }

.exhibit {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(48px, 8vw, 90px) 0;
  border-top: 1px solid var(--line);
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.exhibit.in-view { opacity: 1; transform: translateY(0); }
.exhibit:nth-of-type(even) { grid-template-columns: 1.15fr 0.85fr; }
.exhibit:nth-of-type(even) .exhibit-copy { order: 2; }
.exhibit:nth-of-type(even) .exhibit-visual { order: 1; }
@media (max-width: 860px) {
  .exhibit, .exhibit:nth-of-type(even) { grid-template-columns: 1fr; }
  .exhibit:nth-of-type(even) .exhibit-copy,
  .exhibit:nth-of-type(even) .exhibit-visual { order: initial; }
}

.exhibit-index {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-muted);
  margin-bottom: 14px; font-variant-numeric: tabular-nums;
}
.exhibit-copy h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.12; margin-bottom: 16px;
}
.exhibit-copy p {
  color: var(--ink-muted); font-size: 1rem; max-width: 46ch; margin-bottom: 18px;
}
.exhibit-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.03em;
  padding: 5px 10px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-muted);
}

/* ---------- band / CTA sections ---------- */
.band {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-bright) 100%);
  border-radius: 24px;
  padding: clamp(40px, 7vw, 76px);
  margin: 0 0 clamp(60px, 8vw, 100px);
  color: #f3f6ee;
  position: relative; overflow: hidden;
}
.band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(201,162,39,0.25) 0%, transparent 55%);
  pointer-events: none;
}
.band h2 { color: #f7f5ea; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.band p { color: rgba(247,245,234,0.8); max-width: 56ch; margin-bottom: 26px; font-size: 1.02rem; }
.band .eyebrow { color: var(--gold-bright); }

/* ---------- proof strip ---------- */
.proof-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; margin: 0 0 clamp(60px, 8vw, 100px);
}
@media (max-width: 700px) { .proof-strip { grid-template-columns: repeat(2, 1fr); } }
.proof-cell { background: var(--surface); padding: 26px 20px; text-align: center; }
.proof-cell .stat-num { font-size: 1.5rem; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line); padding: 40px clamp(20px, 5vw, 64px) 60px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
footer .brand { opacity: 0.85; }
.footer-note { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-muted); }

.section-head { max-width: 640px; margin: 0 auto clamp(48px, 7vw, 76px); text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin: 16px 0; }
.section-head p { color: var(--ink-muted); font-size: 1.05rem; }

/* ---------- demo-request CTA button variant (used inside .band) ---------- */
.btn-band-secondary {
  font-family: var(--font-mono); font-weight: 600; font-size: 0.86rem;
  letter-spacing: 0.02em; text-decoration: none;
  padding: 13px 24px; border-radius: 10px;
  border: 1px solid rgba(247,245,234,0.35); color: #f7f5ea;
  background: rgba(255,255,255,0.06);
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.btn-band-secondary:hover { border-color: rgba(247,245,234,0.6); background: rgba(255,255,255,0.12); transform: translateY(-1px); }
.band-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- demo-request modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8, 14, 11, 0.6);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1);
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }

.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.modal-head h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }
.modal-close {
  background: none; border: none; cursor: pointer; color: var(--ink-muted);
  font-family: var(--font-mono); font-size: 1.3rem; line-height: 1;
  padding: 4px 8px; border-radius: 8px; transition: background 0.15s ease, color 0.15s ease;
}
.modal-close:hover { background: var(--surface-raised); color: var(--ink); }
.modal p.modal-sub { color: var(--ink-muted); font-size: 0.94rem; margin-bottom: 22px; }

.form-field { margin-bottom: 16px; }
.form-field label {
  display: block; font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-muted);
  margin-bottom: 7px;
}
.form-field input, .form-field textarea {
  width: 100%; font-family: var(--font-body); font-size: 0.95rem; color: var(--ink);
  background: var(--ground); border: 1px solid var(--line); border-radius: 9px;
  padding: 11px 13px; transition: border-color 0.15s ease;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--gold);
}
.form-field textarea { resize: vertical; min-height: 84px; }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-submit {
  width: 100%; font-family: var(--font-mono); font-weight: 600; font-size: 0.88rem;
  letter-spacing: 0.02em; border: none; border-radius: 10px; cursor: pointer;
  padding: 14px 20px; background: var(--gold-bright); color: #14210f;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.form-submit:hover { transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.6; cursor: default; transform: none; }

.form-status {
  margin-top: 14px; font-size: 0.95rem; font-weight: 600; border-radius: 10px;
  padding: 14px 18px 16px; display: none; position: relative; overflow: hidden;
}
.form-status.is-visible {
  display: flex; align-items: flex-start; gap: 10px;
  animation: statusPop 0.3s cubic-bezier(.2,.8,.2,1);
}
@keyframes statusPop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.form-status-text { flex: 1; line-height: 1.4; }
.form-status::before {
  flex-shrink: 0; font-size: 1.05rem; line-height: 1.4; font-weight: 700;
}
.form-status.is-success {
  background: var(--green); color: #f3f6ee;
  box-shadow: 0 12px 30px -14px rgba(26, 71, 49, 0.6);
}
.form-status.is-success::before { content: '✓'; }
.form-status.is-error {
  background: #c0392b; color: #fdf3f2;
  box-shadow: 0 12px 30px -14px rgba(192, 57, 43, 0.6);
}
.form-status.is-error::before { content: '!'; }

.form-status-bar {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: rgba(255, 255, 255, 0.55);
  transform-origin: left; transform: scaleX(1);
}

@media (max-width: 480px) {
  .modal { border-radius: 14px; }
}

/* ---------- product shot (index hero image) ---------- */
.product-shot { margin: 0 auto clamp(60px, 9vw, 110px); text-align: center; }
.product-shot-stage {
  position: relative;
  background: radial-gradient(ellipse at 50% 20%, color-mix(in srgb, var(--gold-bright) 20%, transparent) 0%, transparent 62%);
  border-radius: 32px;
  padding: clamp(30px, 6vw, 64px) clamp(16px, 4vw, 40px);
}
.product-shot-hero {
  display: block; width: 100%; max-width: 900px; margin: 0 auto;
  border-radius: 18px; box-shadow: 0 50px 100px -30px var(--shadow);
}
.product-shot-mock { max-width: 780px; margin: 0 auto; }
.product-shot-mock .frame { transform: none; }
.product-shot-mock .frame-shot { aspect-ratio: 16 / 9.4; }
figcaption.product-shot-caption {
  margin-top: 24px; font-family: var(--font-display); font-size: 1.15rem;
  font-weight: 500; color: var(--ink);
}
figcaption.product-shot-caption span {
  display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); font-weight: 400;
}

/* ---------- index feature cards ---------- */
.feature-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px);
  margin: 0 0 clamp(60px, 8vw, 100px);
}
@media (max-width: 760px) { .feature-cards { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(28px, 4vw, 40px); text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px -24px var(--shadow); border-color: var(--gold); }
.feature-card h3 { font-size: 1.4rem; font-weight: 500; }
.feature-card p { color: var(--ink-muted); font-size: 0.98rem; }
.feature-card .card-link { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; color: var(--gold); margin-top: auto; }
