/* ============================================================
   EMSURGE / EOM — MARKETING DESIGN SYSTEM
   Dark enterprise UI, warm gold accent. Mirrors the EOM app
   (Barlow, #9A6D1C gold, navy surfaces, 10px radius).
   One stylesheet, shared across every page.
   ============================================================ */

/* ============================ FONTS ============================ */
@font-face {
  font-family: "Barlow";
  src: url("fonts/Barlow-ExtraLight.woff2") format("woff2");
  font-weight: 200 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/Barlow-Medium.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---- Gold (the EOM signature) ---- */
  --gold:        #c8922e;   /* accent on dark — readable                */
  --gold-deep:   #9a6d1c;   /* solid button fills / brand mark          */
  --gold-bright: #e0b257;   /* hover / glow / highlights                */
  --gold-tint:   rgba(154,109,28,.16);

  /* ---- Surfaces (navy → charcoal, matching the app) ---- */
  --bg:        #0d131c;   /* page                                       */
  --bg-2:      #111720;   /* deepest sections                           */
  --surface:   #1e2d3a;   /* cards                                      */
  --surface-2: #182431;   /* darker rows / table head                   */
  --surface-3: #26384a;   /* hover                                      */

  /* ---- Text ---- */
  --ink:      #ffffff;    /* headings                                   */
  --text:     #e9e3de;    /* body (cream)                               */
  --text-dim: #c2c7cc;
  --muted:    #93a0ad;

  /* ---- Lines ---- */
  --line:        #2f3746;
  --line-bright: rgba(199,200,201,.22);

  /* ---- Semantic (comparison ticks etc.) ---- */
  --ok:   #0bba83;
  --no:   #f84c64;
  --part: #e0b257;
  --teal: #6bc4d7;

  /* ---- Shape & depth ---- */
  --radius:   10px;
  --radius-s: 6px;
  --shadow-s: 0 6px 10px -3px rgba(0,0,0,.45);
  --shadow:   0 20px 50px -20px rgba(0,0,0,.65);
  --maxw: 1180px;

  --font: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ============================ RESET ============================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--gold-bright); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold); }
::selection { background: var(--gold-tint); }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; font-weight: 400; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 200; }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.6rem); font-weight: 200; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.06rem; }
p { color: var(--text-dim); }
strong { color: var(--text); font-weight: 600; }

.wrap { width: min(100% - 48px, var(--maxw)); margin-inline: auto; }
section { padding: 92px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .76rem; font-weight: 600; color: var(--gold); margin-bottom: 16px; }
.lead { font-size: 1.18rem; font-weight: 200; color: var(--text); max-width: 64ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.muted { color: var(--muted); }

/* ============================ BUTTONS ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-weight: 600; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .03em;
  padding: 13px 28px; border-radius: var(--radius); cursor: pointer;
  border: 1.5px solid transparent; transition: transform .15s, box-shadow .15s, background .15s, color .15s, border-color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold-deep); color: #fff; box-shadow: var(--shadow-s); }
.btn-primary:hover { background: var(--gold); color: #fff; box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-bright); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-lg { padding: 16px 34px; font-size: 1rem; }

/* ============================ NAV ============================ */
header.nav { position: sticky; top: 0; z-index: 50; background: rgba(13,19,28,.82); backdrop-filter: saturate(150%) blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 34px; height: 34px; flex: 0 0 34px; }
.brand .name { font-weight: 500; font-size: 1.32rem; letter-spacing: -.01em; color: var(--ink); }
.brand .name b { color: var(--gold-bright); font-weight: 600; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--text-dim); font-weight: 500; font-size: .96rem; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-bright); }
.nav-cta { padding: 9px 22px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 1.7rem; cursor: pointer; line-height: 1; }

/* nav dropdown (Solutions) */
.nav-drop { position: relative; }
.nav-drop > a { color: var(--text-dim); font-weight: 500; font-size: .96rem; cursor: pointer; }
.nav-drop > a::after { content: " ▾"; font-size: .7em; color: var(--gold); }
.nav-drop .drop-menu { display: none; position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; min-width: 230px; z-index: 60; }
.nav-drop .drop-menu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 12px; } /* hover bridge */
.nav-drop:hover .drop-menu, .nav-drop:focus-within .drop-menu { display: block; }
.nav-drop .drop-menu a { display: block; padding: 10px 14px; border-radius: var(--radius-s); color: var(--text-dim); font-weight: 500; font-size: .95rem; white-space: nowrap; }
.nav-drop .drop-menu a:hover { background: var(--surface-3); color: var(--gold-bright); }

/* hero persona quick links */
.hero-personas { margin-top: 22px; font-size: .98rem; color: var(--muted); }
.hero-personas a { color: var(--gold-bright); font-weight: 600; }
.hero-personas a:hover { color: var(--gold); }

/* ============================ HERO ============================ */
.hero { position: relative; overflow: hidden; background: var(--bg-2); padding: 108px 0 92px; border-bottom: 1px solid var(--line); }
.hero::after { content:""; position:absolute; right:-180px; top:-160px; width:560px; height:560px; border-radius:50%; background: radial-gradient(circle, rgba(200,146,46,.18), transparent 64%); pointer-events:none; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { color: var(--gold-bright); font-weight: 400; }
.hero .lead { font-size: 1.26rem; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { display: grid; place-items: center; }
.hero-art img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }

/* softened product-screenshot backgrounds */
.bg-photo { background-size: cover; background-position: center; background-repeat: no-repeat; }
.bg-photo::after { content: none; } /* photo replaces the radial glow */

/* page header (interior pages) */
.pagehead { background: var(--bg-2); padding: 76px 0 60px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.pagehead::after { content:""; position:absolute; right:-140px; top:-120px; width:420px; height:420px; border-radius:50%; background: radial-gradient(circle, rgba(200,146,46,.14), transparent 65%); }
.pagehead .wrap { position: relative; z-index: 1; }
.pagehead h1 { margin-bottom: 16px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold-bright); }

/* ============================ STATS STRIP ============================ */
.stats { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 54px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; text-align: center; }
.stat .n { font-size: 2.6rem; font-weight: 200; color: var(--gold-bright); line-height: 1; }
.stat .l { color: var(--muted); font-size: .92rem; margin-top: 8px; }

/* ============================ CARDS ============================ */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 46px; }
.cards.two  { grid-template-columns: repeat(2,1fr); }
.cards.four { grid-template-columns: repeat(4,1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-s); transition: transform .18s, box-shadow .18s, border-color .18s; display: flex; flex-direction: column; }
.card.hl { border-color: var(--gold-deep); background: linear-gradient(180deg, rgba(154,109,28,.10), var(--surface)); }
a.card:hover { text-decoration: none; transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-bright); }
.card .ico { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; font-size: 1.55rem; margin-bottom: 18px; background: var(--gold-tint); border: 1px solid rgba(200,146,46,.3); }
.card h3 { margin-bottom: 9px; color: var(--ink); }
.card p { font-size: .98rem; }
.card .more { margin-top: auto; padding-top: 16px; font-weight: 600; color: var(--gold-bright); font-size: .92rem; text-transform: uppercase; letter-spacing: .03em; }
.tag-pill { align-self: flex-start; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 4px 11px; border-radius: 999px; background: var(--gold-tint); color: var(--gold-bright); border: 1px solid rgba(200,146,46,.3); margin-bottom: 14px; }
.tag-pill.free { background: rgba(11,186,131,.14); color: var(--ok); border-color: rgba(11,186,131,.35); }

/* ============================ SPLIT (feature rows) ============================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip .split-media { order: -1; }
.split-media img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.split-media img[src$=".svg"] { box-shadow: none; border: none; } /* illustrations carry their own panels */
.feat { display: grid; gap: 15px; margin-top: 24px; }
.feat .row { display: flex; gap: 13px; align-items: flex-start; }
.feat .tick { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold-tint); color: var(--gold-bright); display: grid; place-items: center; font-size: .8rem; font-weight: 700; margin-top: 3px; border: 1px solid rgba(200,146,46,.35); }
.feat .row p { margin: 0; font-size: .99rem; }
.feat .row b { color: var(--text); }

/* ============================ CALLOUT ============================ */
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold-deep); border-radius: 0 var(--radius) var(--radius) 0; padding: 24px 28px; margin: 26px 0; }
.callout h3 { color: var(--gold-bright); margin-bottom: 10px; }
.callout ul { margin: 12px 0 0 1.1rem; }
.callout li { margin: 9px 0; color: var(--text-dim); }

/* ============================ COMPARISON TABLE ============================ */
.tablewrap { overflow-x: auto; margin: 28px 0; border: 1px solid var(--line); border-radius: var(--radius); }
table.cmp { border-collapse: collapse; width: 100%; min-width: 720px; font-size: .98rem; }
table.cmp thead th { background: var(--surface-2); text-align: left; padding: 16px 18px; font-weight: 600; color: var(--text); border-bottom: 2px solid var(--line); }
table.cmp thead th.eomcol { background: var(--gold-deep); color: #fff; }
table.cmp tbody td, table.cmp tbody th { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp tbody th { font-weight: 500; text-align: left; color: var(--ink); width: 28%; }
table.cmp tbody td { color: var(--text-dim); }
table.cmp tbody td.eomcol { background: rgba(154,109,28,.12); color: var(--text); }
table.cmp tbody tr:last-child td, table.cmp tbody tr:last-child th { border-bottom: none; }
.y { color: var(--ok); font-weight: 700; }
.p { color: var(--part); font-weight: 700; }
.n { color: var(--no); font-weight: 700; }
.legend { font-size: .86rem; color: var(--muted); margin: 12px 2px 0; }
.legend span { margin-right: 18px; }

/* mini stat tiles inside callouts */
.tiles { display: flex; gap: 20px; flex-wrap: wrap; margin: 20px 0 6px; }
.tiles .t { flex: 1; min-width: 160px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.tiles .num { font-size: 1.9rem; font-weight: 200; color: var(--gold-bright); line-height: 1; }
.tiles .lbl { font-size: .88rem; color: var(--muted); margin-top: 8px; }

/* ============================ LOGO STRIP ============================ */
.logos { display: flex; flex-wrap: wrap; gap: 30px 44px; align-items: center; justify-content: center; margin-top: 36px; }
.logos img { height: 38px; width: auto; opacity: .72; filter: grayscale(1) brightness(1.6); transition: opacity .2s; }
.logos img:hover { opacity: 1; }

/* ============================ CTA BAND ============================ */
.ctaband { background: linear-gradient(135deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: 18px; padding: 60px 44px; text-align: center; box-shadow: var(--shadow); }
.ctaband h2 { margin-bottom: 12px; }
.ctaband p { max-width: 58ch; margin: 0 auto 28px; color: var(--text-dim); }

/* ============================ FORMS ============================ */
.formcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 32px; box-shadow: var(--shadow-s); max-width: 640px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .9rem; color: var(--text-dim); margin-bottom: 7px; font-weight: 500; }
.field label .req { color: var(--gold-bright); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font); font-size: 1rem; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 12px 14px; transition: border-color .15s, background .15s;
}
.field input::placeholder, .field textarea::placeholder { color: #6b7886; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--surface-3); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-s); font-size: .95rem; display: none; }
.form-status.ok { display: block; background: rgba(11,186,131,.12); border: 1px solid rgba(11,186,131,.4); color: #5fe0b8; }
.form-status.err { display: block; background: rgba(248,76,100,.12); border: 1px solid rgba(248,76,100,.4); color: #ff9aa8; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ============================ CITATIONS / REFERENCES / DISCLAIMER ============================ */
.cite { font-size: .62em; vertical-align: super; line-height: 0; margin-left: 2px; color: var(--gold-bright); font-weight: 600; text-decoration: none; }
.cite::before { content: "["; }
.cite::after  { content: "]"; }
.refs { margin: 18px 0 0; padding-left: 0; list-style: none; counter-reset: ref; }
.refs li { counter-increment: ref; position: relative; padding-left: 30px; margin-bottom: 12px; font-size: .92rem; color: var(--text-dim); }
.refs li::before { content: "[" counter(ref) "]"; position: absolute; left: 0; color: var(--gold-bright); font-weight: 600; font-size: .85rem; }
.refs li a { word-break: break-word; }
.disclaimer { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin-top: 24px; }
.disclaimer h3 { color: var(--text); font-size: 1.12rem; margin-bottom: 10px; }
.disclaimer p { font-size: .86rem; color: var(--muted); line-height: 1.65; margin-bottom: 12px; }
.disclaimer p:last-child { margin-bottom: 0; }
.disclaimer strong { color: var(--text-dim); }

/* ============================ FOOTER ============================ */
footer.site { background: var(--bg-2); border-top: 1px solid var(--line); color: var(--muted); padding: 56px 0 28px; }
.foot-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.foot-brand .name { font-weight: 500; font-size: 1.18rem; }
.foot-brand .name b { color: var(--gold-bright); }
.foot-tag { color: var(--muted); max-width: 34ch; margin-top: 12px; font-size: .92rem; }
.foot-col h5 { color: var(--text); font-size: .9rem; margin-bottom: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.foot-col a { display: block; color: var(--muted); font-size: .92rem; margin-bottom: 8px; }
.foot-col a:hover { color: var(--gold-bright); }
.foot-note { width: 100%; border-top: 1px solid var(--line); margin-top: 34px; padding-top: 20px; font-size: .82rem; color: var(--muted); line-height: 1.7; }
.foot-note b { color: var(--text-dim); }

/* ============================ PRODUCT TRADEMARK MARK ============================ */
/* Inline EOM mark next to product-feature names, e.g. the Aggregator. */
.tm { color: var(--gold-bright); font-weight: 600; white-space: nowrap; }
.tm img { height: 1em; width: auto; display: inline-block; vertical-align: -0.14em; margin-right: 4px; }

/* ============================ AI PRIVACY NOTE ============================ */
.ai-privacy { display: flex; gap: 11px; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--ok); border-radius: var(--radius-s); padding: 14px 16px; margin-top: 22px; max-width: 60ch; }
.ai-privacy .lock { flex: 0 0 auto; font-size: 1.05rem; line-height: 1.4; }
.ai-privacy p { margin: 0; font-size: .92rem; color: var(--text-dim); }
.ai-privacy b { color: var(--text); }

/* ============================ FOOTNOTES ============================ */
.fn { font-size: .62em; vertical-align: super; line-height: 0; margin-left: 1px; color: var(--gold-bright); font-weight: 600; text-decoration: none; }
.fn::before { content: "\2020"; } /* dagger */
.claim-note { font-size: .82rem; color: var(--muted); margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); max-width: 70ch; line-height: 1.6; }
.claim-note a { color: var(--gold-bright); }

/* ============================ SCROLL REVEAL ============================ */
/* The .reveal-init class is added by reveal.js, so with JS off everything stays visible. */
@media (prefers-reduced-motion: no-preference) {
  .reveal-init { opacity: 0; transform: translateY(26px); transition: opacity .65s cubic-bezier(.22,.61,.36,1), transform .65s cubic-bezier(.22,.61,.36,1); will-change: opacity, transform; }
  .reveal-init.reveal-in { opacity: 1; transform: none; }
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 920px) {
  .hero-grid, .split, .split.flip { grid-template-columns: 1fr; gap: 36px; }
  .split.flip .split-media, .hero-art { order: -1; }
  .cards, .cards.two, .cards.four { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .nav-links { position: absolute; top: 100%; right: 0; left: 0; flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 24px 18px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; }
  .nav-cta { margin-top: 8px; }
  .nav-toggle { display: block; }
  /* mobile: dropdown renders inline, always expanded */
  .nav-drop { width: 100%; }
  .nav-drop > a { display: block; padding: 12px 0; }
  .nav-drop .drop-menu { display: block; position: static; transform: none; background: none; border: 0; box-shadow: none; padding: 0 0 0 16px; min-width: 0; }
  .nav-drop .drop-menu a { padding: 9px 0; }
}
@media (max-width: 560px) {
  section { padding: 62px 0; }
  .cards, .cards.two, .cards.four, .stats-grid, .contact-grid { grid-template-columns: 1fr; }
}
