/* Perlucem v1 — dark cinematic theme borrowed from textmyagent.app, reskinned in Perlucem's amber + navy. */
:root {
  --bg: #000;
  --bg-1: #0a0a0c;
  --bg-2: #111114;
  --fg: #fff;
  --muted: rgba(255,255,255,0.62);
  --dim: rgba(255,255,255,0.08);
  --line: rgba(255,255,255,0.12);
  --amber: #D4A84B;
  --amber-soft: rgba(212,168,75,0.16);
  --amber-line: rgba(212,168,75,0.30);
  --navy: #1E3A5F;
  --steel: #5B7B9A;
  --green: #30D158;
  --pink: #FF375F;
  --card: rgba(255,255,255,0.04);
  --card-hover: rgba(255,255,255,0.07);
  --serif: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --display: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
html { background: var(--bg); color: var(--fg); font-family: var(--serif); }
body { background: transparent; color: var(--fg); font-family: var(--serif); overflow-x: hidden; position: relative; }
a { color: inherit; text-decoration: none; }

/* Background video — muted, looped, behind everything */
.bg-video {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  object-fit: cover;
  z-index: -2;
  opacity: 0.45;
  pointer-events: none;
}
.bg-video-overlay {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.20) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.80) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .bg-video, .bg-video-overlay { display: none; }
  body { background: linear-gradient(180deg, #000 0%, #0a0a0c 100%); }
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* Header */
header.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 16px 24px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; align-items: center;
}
.nav-inner { max-width: 1180px; width: 100%; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.mark {
  display: flex; align-items: center; gap: 12px;
}
.mark .logo-svg { width: 26px; height: 26px; }
.mark .wordmark {
  font-size: 16px; font-weight: 700; letter-spacing: 0.18em; color: #fff;
}
.mark .tagline {
  font-size: 9px; letter-spacing: 0.32em; color: var(--amber);
  text-transform: uppercase; line-height: 1; margin-top: 2px;
}
.mark .stack { display: flex; flex-direction: column; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); align-items: center; }
.nav-links a { color: inherit; transition: color 0.15s; }
.nav-links a:hover { color: var(--fg); }
.nav-links a.active { color: var(--fg); }
.nav-cta {
  background: var(--amber); color: #0a0a0c;
  padding: 9px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  transition: transform 0.15s, opacity 0.15s;
}
.nav-cta:hover { transform: translateY(-1px); opacity: 0.95; }
@media (max-width: 760px) { .nav-links a:not(.nav-cta) { display: none; } }

/* Hero */
.hero {
  padding: 96px 0 72px;
  position: relative;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(44px, 7vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin-bottom: 28px;
  max-width: 14ch;
}
.hero h1 .grad {
  background: linear-gradient(110deg, #D4A84B 0%, #ffd97a 50%, #D4A84B 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .lede {
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--muted);
  max-width: 640px;
  line-height: 1.55;
  font-weight: 400;
  margin-bottom: 32px;
}
.hero .lede strong { color: var(--fg); font-weight: 500; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--amber); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--amber-soft);
  border: 1px solid var(--amber-line);
  padding: 7px 14px; border-radius: 999px;
  margin-bottom: 28px;
}
.eyebrow .dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1 } 50% { opacity:0.4 } }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 600;
  transition: transform 0.15s, opacity 0.15s, background 0.15s;
  cursor: pointer; border: 0;
}
.btn-primary { background: var(--amber); color: #0a0a0c; }
.btn-primary:hover { transform: translateY(-1px); opacity: 0.95; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,0.05); }

/* Hero stats */
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin-top: 64px;
  padding-top: 32px; border-top: 1px solid var(--line);
}
@media (max-width: 720px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }
.stat .num {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 48px);
  color: var(--amber);
  line-height: 1; letter-spacing: -0.02em;
}
.stat .label {
  font-size: 12px; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-top: 8px;
}
.stat .footnote {
  font-size: 10px; color: rgba(255,255,255,0.35);
  margin-top: 6px; font-style: italic;
}

/* Sections */
section.s {
  padding: 88px 0;
  position: relative;
}
section.s.alt {
  background: linear-gradient(180deg, transparent 0%, rgba(212,168,75,0.04) 50%, transparent 100%);
}
.section-eyebrow {
  font-size: 11px; color: var(--amber); font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 18px;
}
.section-h {
  font-family: var(--display);
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 24px; max-width: 18ch;
  font-weight: 400;
}
.section-lede {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--muted); line-height: 1.6; max-width: 64ch;
  margin-bottom: 48px;
}

/* Cards */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.cards.cards-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .cards.cards-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards.cards-5 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.card:hover {
  background: var(--card-hover);
  border-color: var(--amber-line);
  transform: translateY(-2px);
}
.card .pillar-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--amber-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 22px;
}
.card h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.card .amber { color: var(--amber); }
.card p {
  color: var(--muted);
  font-size: 14px; line-height: 1.55;
}
.card .meta {
  margin-top: 16px;
  font-size: 12px; color: var(--amber);
  letter-spacing: 0.08em; text-transform: uppercase;
  display: inline-block;
}

/* Comparison block */
.compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 32px;
}
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare .col {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
}
.compare .col.dim { color: var(--muted); }
.compare .col.dim h4 { color: rgba(255,255,255,0.6); }
.compare .col.bright { border-color: var(--amber-line); background: linear-gradient(180deg, rgba(212,168,75,0.08) 0%, rgba(212,168,75,0.02) 100%); }
.compare h4 {
  font-family: var(--display);
  font-size: 22px; font-weight: 400; margin-bottom: 8px;
}
.compare .pretitle {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 8px;
}
.compare .col.bright .pretitle { color: var(--amber); }
.compare ul { list-style: none; margin-top: 18px; }
.compare ul li {
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 14px; color: var(--muted);
}
.compare ul li:last-child { border-bottom: 0; }
.compare .col.bright ul li { color: rgba(255,255,255,0.85); }

/* Quote / banner */
.banner {
  border: 1px solid var(--amber-line);
  background: linear-gradient(120deg, rgba(212,168,75,0.10) 0%, rgba(0,0,0,0.0) 100%);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
}
.banner .big {
  font-family: var(--display);
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.1; letter-spacing: -0.01em;
}
.banner .big .grad {
  background: linear-gradient(110deg, #D4A84B 0%, #ffd97a 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.banner p { color: var(--muted); margin-top: 14px; max-width: 60ch; margin-left: auto; margin-right: auto; }

/* Charts */
.chart-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin-top: 16px;
}
.chart-wrap h4 {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 18px;
}
.chart-wrap canvas { max-width: 100% !important; }

/* Process steps */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  position: relative;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 24px; position: relative;
}
.step .num {
  font-family: var(--display);
  font-size: 36px; color: var(--amber); line-height: 1;
}
.step h4 {
  margin-top: 12px;
  font-family: var(--display);
  font-size: 20px; font-weight: 400;
}
.step p { color: var(--muted); font-size: 14px; margin-top: 8px; line-height: 1.5; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 56px 24px 32px;
  margin-top: 80px;
}
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 32px; max-width: 1180px; margin: 0 auto;
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-col h5 {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.foot-col a {
  display: block; padding: 4px 0;
  font-size: 14px; color: rgba(255,255,255,0.85);
  transition: color 0.15s;
}
.foot-col a:hover { color: var(--amber); }
.foot-bottom {
  max-width: 1180px; margin: 40px auto 0;
  padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,0.45);
}
@media (max-width: 760px) { .foot-bottom { flex-direction: column; gap: 8px; } }

/* Logo SVG color override (for nav and hero) */
.logo-svg .col { fill: #fff; }
.logo-svg .dot { fill: var(--amber); }

/* Use case cards */
.persona {
  display: grid; grid-template-columns: 80px 1fr; gap: 20px; align-items: start;
}
.persona .avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--amber-soft);
  border: 1px solid var(--amber-line);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.persona h3 { margin-bottom: 4px; }
.persona .role {
  font-size: 12px; color: var(--amber);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 14px;
}
.persona .question {
  font-style: italic; color: rgba(255,255,255,0.85);
  border-left: 2px solid var(--amber);
  padding-left: 14px; margin-bottom: 14px;
  font-size: 15px; line-height: 1.55;
}
.persona p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Security checks */
.sec-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  margin-top: 16px;
}
@media (max-width: 760px) { .sec-list { grid-template-columns: 1fr; } }
.sec-item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px;
  display: flex; gap: 12px; align-items: start;
}
.sec-item .check {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(48,209,88,0.18);
  border: 1px solid rgba(48,209,88,0.4);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--green); font-size: 16px; font-weight: 700;
}
.sec-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.sec-item p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* Demo form */
.demo-card {
  background: var(--card);
  border: 1px solid var(--amber-line);
  border-radius: 20px;
  padding: 40px;
  max-width: 580px; margin: 0 auto;
}
.demo-card h2 {
  font-family: var(--display);
  font-size: 36px; font-weight: 400;
  margin-bottom: 8px; line-height: 1.1;
}
.demo-card .lede { color: var(--muted); margin-bottom: 28px; }
.demo-row {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 18px;
}
.demo-row label { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.demo-row input, .demo-row textarea {
  background: rgba(0,0,0,0.4); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px;
  color: #fff; font-size: 15px; font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.demo-row input:focus, .demo-row textarea:focus {
  outline: none;
  border-color: var(--amber-line);
  background: rgba(0,0,0,0.6);
}
.demo-row textarea { resize: vertical; min-height: 96px; }
.demo-card .submit-row {
  display: flex; gap: 12px; align-items: center; margin-top: 24px;
}
.disclaimer { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 14px; line-height: 1.5; }

/* Subtle floating amber blobs in section bg */
.bg-blob {
  position: absolute; pointer-events: none; z-index: -1;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(212,168,75,0.10), transparent 70%);
  filter: blur(40px);
}
