/* CefMedia Relay product site - self-hosted, no external resources. */
:root {
  --bg: #0b0d12;
  --bg2: #11141b;
  --card: #171b24;
  --card2: #1c2230;
  --text: #eceef4;
  --muted: #98a2b3;
  --accent: #4f8cff;
  --accent2: #8b5cf6;
  --ok: #34d399;
  --border: #242b3a;
  --glow: rgba(79, 140, 255, .14);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
svg { display: block; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,13,18,.8);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
header.site .container { display: flex; align-items: center; gap: 28px; height: 62px; }
.brand { font-weight: 700; font-size: 18px; letter-spacing: .2px; color: var(--text); white-space: nowrap; }
.brand span { color: var(--accent); }
nav.main { margin-left: auto; display: flex; gap: 24px; align-items: center; }
nav.main a { color: var(--muted); font-size: 15px; }
nav.main a:hover { color: var(--text); text-decoration: none; }
nav.main a.nav-cta {
  color: #fff; font-weight: 600; font-size: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  padding: 8px 16px; border-radius: 8px;
}
nav.main a.nav-cta:hover { filter: brightness(1.12); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 72px;
  background:
    radial-gradient(900px 480px at 15% -10%, var(--glow), transparent 60%),
    radial-gradient(900px 480px at 95% 0%, rgba(139, 92, 246, .12), transparent 60%);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: .25;
  mask-image: radial-gradient(700px 400px at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(700px 400px at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-copy h1 {
  font-size: 46px; line-height: 1.15; font-weight: 800; margin-bottom: 18px;
}
.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy p.sub { font-size: 19px; color: var(--muted); margin-bottom: 30px; max-width: 540px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 10px;
  font-size: 16px; font-weight: 600; border: 1px solid transparent;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.12); transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--card); }
.trust { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* Hero diagram */
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }
.float-chip {
  position: absolute; font-size: 12px; font-weight: 600; color: var(--muted);
  background: rgba(23,27,36,.9); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 12px; backdrop-filter: blur(4px);
}
.chip-a { top: -6px; right: 8%; animation: floaty 5s ease-in-out infinite; }
.chip-b { bottom: 6px; left: 4%; animation: floaty 6s ease-in-out 1.2s infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---------- Logo strip ---------- */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg2); }
.strip .container {
  display: flex; align-items: center; justify-content: center; gap: 34px;
  padding: 18px 24px; color: var(--muted); font-size: 14px; flex-wrap: wrap;
}
.strip b { color: var(--text); font-weight: 600; }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
section.alt { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2.section { font-size: 32px; text-align: center; margin-bottom: 10px; }
p.section-sub { text-align: center; color: var(--muted); margin-bottom: 44px; font-size: 17px; }

/* Steps timeline */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; }
.step {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; position: relative; transition: border-color .2s;
}
.step:hover { border-color: var(--accent); }
.step .n {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 26px; transition: transform .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-3px); border-color: var(--accent); }
.feature .icon {
  width: 42px; height: 42px; border-radius: 11px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(79,140,255,.12); color: var(--accent);
}
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* Comparison table */
.compare-wrap { overflow-x: auto; }
table.compare {
  width: 100%; border-collapse: collapse; font-size: 15px;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden;
}
.compare th, .compare td { padding: 14px 18px; text-align: center; border-top: 1px solid var(--border); }
.compare thead th { background: var(--card2); border-top: none; font-size: 15px; }
.compare thead th.hl { color: var(--accent); }
.compare td:first-child, .compare th:first-child { text-align: left; color: var(--muted); }
.compare td { color: #c6ccd8; }
.compare .yes { color: var(--ok); font-weight: 700; }
.compare .no { color: #6b7280; }
.compare tbody tr:hover { background: rgba(79,140,255,.05); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 800px; margin: 0 auto; }
.plan {
  position: relative;
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 34px 30px; text-align: center; transition: transform .2s ease, border-color .2s ease;
}
.plan:hover { transform: translateY(-4px); }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 44px rgba(79,140,255,.16); }
.ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 1px;
  padding: 5px 14px; border-radius: 999px; text-transform: uppercase;
}
.plan .tier { font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.plan .price { font-size: 46px; font-weight: 800; margin: 12px 0 2px; }
.plan .price small { font-size: 15px; font-weight: 400; color: var(--muted); }
.plan ul { list-style: none; margin: 22px 0 26px; text-align: left; max-width: 300px; margin-left: auto; margin-right: auto; }
.plan li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; color: #c6ccd8; font-size: 15px; }
.plan li svg { flex: none; margin-top: 4px; color: var(--ok); }
.plan .btn { width: 100%; text-align: center; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 22px; margin-bottom: 12px;
}
.faq details[open] { border-color: var(--accent); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin-top: 10px; font-size: 15px; }

/* Final CTA */
.final-cta { text-align: center; position: relative;
  background:
    radial-gradient(700px 320px at 50% 120%, rgba(79,140,255,.18), transparent 70%),
    var(--bg2);
  border-top: 1px solid var(--border);
}
.final-cta h2 { font-size: 34px; margin-bottom: 12px; }
.final-cta p { color: var(--muted); margin-bottom: 28px; font-size: 17px; }

/* Footer */
footer.site { border-top: 1px solid var(--border); padding: 44px 0 46px; color: var(--muted); font-size: 14px; background: var(--bg); }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 34px; }
footer.site h4 { color: var(--text); font-size: 14px; margin-bottom: 12px; }
footer.site ul { list-style: none; }
footer.site li { padding: 4px 0; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--text); }
footer.site .fine { margin-top: 28px; font-size: 13px; border-top: 1px solid var(--border); padding-top: 22px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-chip { animation: none; }
}

/* Doc pages */
.doc { max-width: 820px; margin: 0 auto; padding: 56px 24px 80px; }
.doc h1 { font-size: 32px; margin-bottom: 6px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 30px; }
.doc h2 { font-size: 21px; margin: 30px 0 10px; }
.doc h3 { font-size: 17px; margin: 22px 0 8px; }
.doc p, .doc li { color: #c6ccd8; font-size: 16px; }
.doc ul, .doc ol { margin: 10px 0 10px 24px; }
.doc strong { color: var(--text); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 480px; margin: 0 auto; }
  .steps, .features { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 34px; }
  nav.main a:not(.nav-cta) { display: none; }
  footer.site .cols { grid-template-columns: 1fr; }
}
