/* Elevar Studios — shared stylesheet.
   Design language derived from ELVA's app tokens (theme/tokens.ts):
   warm gold-tinted darks, cream text, gold brand, Fraunces serif display. */

:root {
  --bg: #0B0905;
  --bg-sunken: #13100A;
  --bg-raised: #1C1710;
  --bg-card: #191510;
  --text: #F8F2E8;
  --muted: #ADA083;
  --soft: #D9CFBC;
  --border: rgba(248, 242, 232, 0.08);
  --border-strong: #39301F;
  --gold: #D4A843;
  --gold-bright: #E8C871;
  --gold-deep: #B8902A;
  --gold-soft: rgba(212, 168, 67, 0.12);
  --grad-gold: linear-gradient(135deg, #E8C871, #D4A843 55%, #B8902A);
  --max: 1020px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- ambient glow ---------- */
.glow {
  position: fixed;
  top: -34vh; left: 50%;
  transform: translateX(-50%);
  width: 130vw; height: 95vh;
  background:
    radial-gradient(closest-side, rgba(212, 168, 67, 0.14), transparent 68%),
    radial-gradient(closest-side, rgba(232, 200, 113, 0.08), transparent 62%);
  background-position: 38% 32%, 68% 42%;
  filter: blur(34px);
  z-index: -1;
  pointer-events: none;
}

/* ---------- header / nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 9, 5, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em;
}
.mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--grad-gold);
  display: grid; place-items: center;
  font-weight: 800; color: #13100A; font-size: 1rem;
  box-shadow: 0 6px 22px rgba(212, 168, 67, 0.35);
  font-family: var(--serif);
}
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  color: var(--muted); font-weight: 500; font-size: 0.93rem;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a.pill {
  color: #13100A; background: var(--grad-gold);
  padding: 8px 16px; border-radius: 999px; font-weight: 600;
  box-shadow: 0 6px 18px rgba(212, 168, 67, 0.25);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.nav-links a.pill:hover { transform: translateY(-1px); box-shadow: 0 9px 24px rgba(212,168,67,0.4); }

@media (max-width: 620px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.85rem; }
  .nav-links a.hide-sm { display: none; }
}

/* ---------- typography helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(212, 168, 67, 0.28);
  padding: 6px 14px; border-radius: 999px;
}
h1.display {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6.2vw, 4.2rem);
  font-weight: 600; letter-spacing: -0.015em; line-height: 1.08;
  background: linear-gradient(180deg, #FFFDF8, #E3D9C4);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.section-kicker {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
h2.section-title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 600; letter-spacing: -0.01em; line-height: 1.2;
  margin-bottom: 14px;
}
.lede { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--muted); max-width: 640px; }

/* ---------- buttons ---------- */
.btn-gold {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--grad-gold);
  color: #13100A; font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 13px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 32px rgba(212, 168, 67, 0.28);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 15px 40px rgba(212, 168, 67, 0.42); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--border-strong);
  background: rgba(248, 242, 232, 0.03);
  color: var(--text); font-weight: 500; font-size: 1rem;
  padding: 13px 24px; border-radius: 13px;
  transition: background 0.2s, border-color 0.2s;
}
.btn-ghost:hover { background: var(--gold-soft); border-color: rgba(212, 168, 67, 0.45); }

/* ---------- cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px; padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(212, 168, 67, 0.4); }
.card .icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--gold-soft); border: 1px solid rgba(212, 168, 67, 0.25);
  display: grid; place-items: center;
  font-size: 1.15rem; color: var(--gold-bright);
  margin-bottom: 16px;
}
.card h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.94rem; }

@media (max-width: 760px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- sections ---------- */
section.block { padding: 72px 0; }
section.block.tight { padding: 48px 0; }

/* ---------- reveal animation (respects reduced motion) ---------- */
.reveal { opacity: 0; transform: translateY(14px); animation: rise 0.7s ease forwards; }
.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.16s; }
.reveal.d3 { animation-delay: 0.24s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- phone mockup (ELVA showcase) ---------- */
.phone {
  width: 300px; max-width: 86vw;
  min-height: 600px;
  display: flex; flex-direction: column;
  border-radius: 42px;
  background: var(--bg-sunken);
  border: 1px solid var(--border-strong);
  box-shadow:
    0 0 0 10px #191510,
    0 0 0 11px #2A2318,
    0 34px 80px rgba(0, 0, 0, 0.6),
    0 10px 60px rgba(212, 168, 67, 0.12);
  padding: 24px 18px 28px;
  margin: 0 auto;
}
.phone .notch {
  width: 96px; height: 6px; border-radius: 999px;
  background: #2A2318; margin: 0 auto 20px;
}
.phone .app-title {
  font-family: var(--serif); font-weight: 600;
  text-align: center; font-size: 1.1rem; letter-spacing: 0.16em;
  color: var(--gold-bright); margin-bottom: 18px;
}
.phone .stat-card {
  background: linear-gradient(160deg, #201A11, #171208);
  border: 1px solid rgba(212, 168, 67, 0.3);
  border-radius: 16px; padding: 16px; margin-bottom: 14px;
}
.phone .stat-card .lbl { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.phone .stat-card .val { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-bright); line-height: 1.1; }
.phone .stat-card .sub { font-size: 0.75rem; color: var(--soft); margin-top: 4px; }
.phone .bubble {
  border-radius: 15px; padding: 11px 14px; font-size: 0.82rem; line-height: 1.45;
  margin-bottom: 10px; max-width: 92%;
}
.phone .bubble.ai { background: var(--bg-raised); border: 1px solid var(--border); color: var(--soft); }
.phone .bubble.me { background: var(--gold-soft); border: 1px solid rgba(212,168,67,0.3); color: var(--text); margin-left: auto; }
.phone .bubble.ai + .bubble.ai { margin-top: 2px; }
.phone .stat-card { margin-top: 6px; }
.phone .input {
  margin-top: auto; border-radius: 999px;
  border: 1px solid var(--border-strong);
  padding: 10px 16px; font-size: 0.78rem; color: var(--muted);
  display: flex; justify-content: space-between; align-items: center;
}
.phone .input .send {
  width: 24px; height: 24px; border-radius: 999px;
  background: var(--grad-gold); color: #13100A;
  display: grid; place-items: center; font-size: 0.7rem; font-weight: 700;
}

/* ---------- product split section ---------- */
.split {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.feature-list { list-style: none; margin-top: 24px; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 13px; align-items: flex-start; color: var(--muted); font-size: 0.97rem; }
.feature-list .tick {
  flex: none; width: 22px; height: 22px; border-radius: 999px; margin-top: 2px;
  background: var(--gold-soft); border: 1px solid rgba(212, 168, 67, 0.35);
  display: grid; place-items: center; font-size: 0.65rem; color: var(--gold-bright);
}
.feature-list strong { color: var(--text); font-weight: 600; }

/* ---------- stats band ---------- */
.band {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(28, 23, 16, 0.4);
}
.band-inner { display: flex; justify-content: space-between; gap: 24px; padding: 34px 0; flex-wrap: wrap; }
.band .fact { min-width: 150px; }
.band .fact .big { font-family: var(--serif); font-size: 1.55rem; color: var(--gold-bright); }
.band .fact .small { font-size: 0.85rem; color: var(--muted); margin-top: 3px; }

/* ---------- contact card ---------- */
.contact-hero {
  background: linear-gradient(150deg, var(--bg-raised), var(--bg-card));
  border: 1px solid var(--border);
  border-radius: 22px; padding: 54px 40px; text-align: center;
}
.contact-hero h2 { font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 600; margin-bottom: 12px; }
.contact-hero p { color: var(--muted); margin-bottom: 28px; }

/* ---------- prose (about page) ---------- */
.prose { max-width: 700px; }
.prose p { color: var(--muted); margin: 16px 0; font-size: 1.02rem; }
.prose p strong { color: var(--text); }
.prose h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin: 40px 0 6px; }

.factbox {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 18px; padding: 28px; margin-top: 40px;
}
.factbox h3 { font-size: 0.8rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.factbox dl { display: grid; grid-template-columns: 180px 1fr; gap: 10px 18px; font-size: 0.95rem; }
.factbox dt { color: var(--muted); }
.factbox dd { color: var(--text); }
@media (max-width: 560px) { .factbox dl { grid-template-columns: 1fr; gap: 2px 0; } .factbox dd { margin-bottom: 10px; } }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--border);
  margin-top: 40px; padding: 46px 0 40px;
}
footer.site .cols {
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 30px;
}
.foot-brand { display: flex; align-items: center; gap: 11px; font-weight: 700; margin-bottom: 12px; }
footer.site .tag { color: var(--muted); font-size: 0.9rem; max-width: 300px; }
.foot-col h4 { font-size: 0.78rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--muted); font-size: 0.92rem; margin-bottom: 10px; transition: color 0.2s; }
.foot-col a:hover { color: var(--text); }
footer.site .legal {
  border-top: 1px solid var(--border); padding-top: 24px;
  color: var(--muted); font-size: 0.82rem; line-height: 1.8;
}
