/* ============================================================
   EmberSight — landing styles
   Light theme: warm cream bg, near-black text, ember gradient accents
   Dense, focused, technical
   ============================================================ */

:root {
  --bg:        #fbf6ee;
  --bg-2:      #f3ebdc;
  --surface:   #ffffff;
  --ink:       #0c0b0a;
  --ink-2:     #2a2521;
  --muted:     #75695e;
  --line:      rgba(12, 11, 10, 0.10);
  --line-2:    rgba(12, 11, 10, 0.06);

  /* Ember palette — matches the dashboard's Tailwind `ember-*` scale
     (web/tailwind.config.ts) so the two surfaces read as one brand.
     --ember-yellow is landing-only; it anchors the warm gradient start. */
  --ember-yellow: #ffcc33;
  --ember-orange: #f97316; /* ember-500 */
  --ember-red:    #ea580c; /* ember-600 */
  --ember-deep:   #c2410c; /* ember-700 */

  --grad-ember: linear-gradient(95deg, #ffcc33 0%, #f97316 45%, #ea580c 100%);
  --grad-ember-soft: linear-gradient(180deg, rgba(255,204,51,0) 0%, rgba(249,115,22,0.06) 60%, rgba(234,88,12,0.10) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- intro overlay (shared by both versions) ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  pointer-events: none;
  transition: opacity 180ms ease;
}
.intro.is-hidden { opacity: 0; }
.intro__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.intro__skip {
  position: absolute;
  bottom: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 999px;
  font: 500 11px/1 'Inter', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(6px);
  opacity: 0.7;
  pointer-events: auto;
  transition: opacity 200ms;
  z-index: 2;
}
.intro__skip:hover { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
}

/* ---------- site shell ---------- */
.site {
  opacity: 0;
  transition: opacity 240ms ease;
}
.site.is-visible { opacity: 1; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(251, 246, 238, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-2);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.nav__brand img { width: 26px; height: 26px; }
.nav__links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--muted);
}
.nav__links a:hover { color: var(--ink); }
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav__toggle a {
  padding: 5px 10px;
  color: var(--muted);
}
.nav__toggle a.is-active {
  background: var(--ink);
  color: #fff;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 150ms ease, background 200ms ease, border 200ms ease, color 200ms ease;
}
.btn--primary {
  background: var(--ink);
  color: #fff;
}
.btn--primary:hover {
  background: var(--ember-red);
}
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--link {
  padding: 11px 0;
  color: var(--muted);
}
.btn--link:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 64px 28px 80px;
  overflow: hidden;
}
.hero::before {
  /* warm radial wash behind hero */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(229,49,26,0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(255,122,24,0.20), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin: 0 0 24px;
  background: rgba(255, 255, 255, 0.6);
}
.hero__title {
  font-family: 'Instrument Serif', 'Inter', serif;
  font-weight: 400;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.hero__title em {
  font-style: normal;
  background: var(--grad-ember);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  max-width: 580px;
  margin: 0 auto 28px;
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.55;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.hero__logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
  filter: drop-shadow(0 8px 24px rgba(229,49,26,0.18));
}

/* ---------- sections ---------- */
.section {
  padding: 72px 28px;
  border-top: 1px solid var(--line-2);
}
.section--alt {
  background: var(--bg-2);
}
.section__inner {
  max-width: 1040px;
  margin: 0 auto;
}
.section__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 36px;
}
.section__kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember-red);
  margin: 0 0 10px;
  font-weight: 600;
}
.section__title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 520px;
}
.section__body {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 460px;
  margin: 0;
}

@media (max-width: 720px) {
  .section__head { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- agent grid ---------- */
.agents {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.agents li {
  background: var(--surface);
  padding: 22px 20px;
  position: relative;
}
.agents li::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-ember);
  opacity: 0;
  transition: opacity 200ms;
}
.agents li:hover::before { opacity: 1; }
.agents__num {
  display: inline-block;
  font-family: 'Instrument Serif', serif;
  font-size: 13px;
  color: var(--ember-red);
  margin-bottom: 6px;
}
.agents__name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 6px;
}
.agents__desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- mission strip ---------- */
.mission {
  text-align: center;
  padding: 80px 28px 90px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-2);
}
.mission::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-ember-soft);
  pointer-events: none;
}
.mission__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.mission h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.mission p {
  font-size: 15px;
  color: var(--ink-2);
  margin: 0 0 22px;
}

/* ---------- footer ---------- */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  border-top: 1px solid var(--line-2);
  font-size: 12px;
  color: var(--muted);
}
.footer img { width: 18px; height: 18px; }
.footer__brand { display: flex; align-items: center; gap: 8px; }

/* ---------- responsive tweaks ---------- */
@media (max-width: 720px) {
  .nav { padding: 12px 18px; }
  .nav__links { display: none; }
  .hero { padding: 48px 20px 64px; }
  .section, .mission { padding-left: 20px; padding-right: 20px; }
  .footer { padding: 18px 20px; flex-direction: column; gap: 8px; }
  .hero__cta { flex-direction: column; gap: 10px; }
}
