/* Celium site styles.
 *
 * One stylesheet, no framework and no build-time CSS processing: the page is a
 * marketing page that has to load instantly from a relay in a browser that may
 * be eight years old, so the fewer moving parts the better. Assets are hashed at
 * build time, which is what makes the long cache lifetime below safe.
 */

:root {
  --ink: #0e1628;
  --ink-2: #16273f;
  --ink-3: #24405f;
  --text: #172126;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --accent: #1ec98b;
  --accent-dark: #0f9e6b;
  --accent-soft: #e8fbf3;
  --link: #1d63d2;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --wrap: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
          "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 680; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: .92em; background: var(--bg-alt); padding: .1em .35em; border-radius: 5px; }

.wrap { width: min(var(--wrap), calc(100% - 44px)); margin: 0 auto; }
.narrow { max-width: 820px; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------------------------------------------------------------- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  width: min(var(--wrap), calc(100% - 44px)); margin: 0 auto;
  display: flex; align-items: center; gap: 28px; min-height: 66px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a { color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: 8px; font-size: 18px; line-height: 1; padding: 7px 11px; cursor: pointer; color: var(--ink);
}
.nav-menu { display: none; flex-direction: column; border-top: 1px solid var(--line); background: #fff; }
.nav-menu a { padding: 13px 22px; border-bottom: 1px solid var(--line); color: var(--ink); }

/* --------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); padding: 9px 17px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; transition: .16s ease; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-lg { padding: 13px 24px; font-size: 16px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--ink-3); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--bg-alt); }

/* ---------------------------------------------------------------- hero ---- */
.hero {
  background:
    radial-gradient(900px 420px at 78% -12%, rgba(30, 201, 139, .18), transparent 62%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 62%, #0f1d31 100%);
  color: #e8eef7; padding: 74px 0 0; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-copy h1 { color: #fff; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700;
  color: var(--accent); margin-bottom: 14px;
}
.lede { font-size: 17.5px; color: #b9c7db; max-width: 34em; }
.lede strong { color: #fff; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 22px; }
.hero .btn-primary { background: var(--accent); color: #06231a; }
.hero .btn-primary:hover { background: #24dd9b; }
.hero .btn-outline { background: transparent; border-color: rgba(255, 255, 255, .26); color: #e8eef7; }
.hero .btn-outline:hover { border-color: rgba(255, 255, 255, .55); }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; color: #93a5bf; font-size: 14.5px; }
.hero-points li::before { content: "✓"; color: var(--accent); margin-right: 9px; font-weight: 700; }

.hero-term {
  background: #0a1220; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .42); overflow: hidden; font-family: var(--mono); font-size: 12.6px;
}
.term-bar {
  display: flex; align-items: center; gap: 7px; padding: 10px 13px;
  background: #111c2e; border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.term-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #2c3d57; }
.term-title { margin-left: 8px; color: #64748b; font-size: 11.5px; letter-spacing: .04em; }
.term-body {
  margin: 0; padding: 16px 17px 20px; color: #c7d5e8; white-space: pre-wrap;
  word-break: break-all; line-height: 1.75;
}
.t-dim { color: #5b6d88; }
.t-ok { color: #3ddc97; }
.t-link { color: #6fb2ff; text-decoration: underline; }

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255, 255, 255, .09); border-radius: 12px; overflow: hidden;
  margin: 56px auto 0; transform: translateY(1px);
}
.fact { background: #101d31; padding: 17px 20px; }
.fact .label { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #64748b; }
.fact .value { font-size: 17px; font-weight: 650; color: #fff; }

/* ------------------------------------------------------------ sections ---- */
.section { padding: 82px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lede { font-size: 17px; color: var(--muted); max-width: 46em; margin-bottom: 40px; }
.section h2 + .section-lede { margin-top: 14px; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card, .case {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 6px; transition: .18s ease;
}
.card:hover, .case:hover { border-color: #cbd5e1; box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-bottom: .45em; }
.card p, .case p { color: var(--muted); font-size: 15px; }
.case { padding-bottom: 18px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.step-no { font-family: var(--mono); font-size: 13px; color: var(--accent-dark); font-weight: 700; letter-spacing: .08em; }
.step h3 { margin-top: .5em; }
.step p { color: var(--muted); font-size: 15px; margin-bottom: 0; }

/* -------------------------------------------------------------- plans ----- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: start; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; display: flex; flex-direction: column; height: 100%;
}
.plan.featured { border-color: var(--ink); box-shadow: var(--shadow); position: relative; }
.plan-badge {
  position: absolute; top: -12px; left: 20px; background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 650; padding: 3px 11px; border-radius: 999px; letter-spacing: .02em;
}
.plan h3 { margin-bottom: .2em; }
.plan .tagline { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan .amount { font-size: 38px; font-weight: 720; letter-spacing: -.02em; }
.plan .amount small { font-size: 17px; font-weight: 600; }
.plan .unit { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.plan .btn { width: 100%; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 14.5px; color: var(--muted); }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-dark); font-weight: 700; }
.plans-note { color: var(--muted); font-size: 14px; margin-top: 26px; }

/* --------------------------------------------------------------- code ----- */
.code {
  background: #0f1d31; color: #c7d5e8; border-radius: var(--radius); padding: 20px 22px;
  font-family: var(--mono); font-size: 13.4px; line-height: 1.85; overflow-x: auto;
  border: 1px solid #1b2c46; white-space: pre;
}

/* ---------------------------------------------------------------- faq ----- */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 620; font-size: 16.5px; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; color: var(--muted); font-size: 20px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin: 12px 0 0; font-size: 15px; }

/* ---------------------------------------------------------------- cta ----- */
.cta-band { background: var(--ink); color: #e8eef7; padding: 54px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; margin-bottom: .25em; }
.cta-inner p { color: #93a5bf; margin: 0; }
.cta-band .btn-primary { background: var(--accent); color: #06231a; }
.cta-band .btn-primary:hover { background: #24dd9b; }

/* ------------------------------------------------------------- footer ----- */
.footer { background: #0b1524; color: #8fa3bd; padding: 52px 0 26px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-brand > span { color: #fff; font-weight: 700; font-size: 17px; }
.footer-brand img { margin-bottom: 4px; }
.footer-brand p { color: #64748b; font-size: 14px; margin-top: 6px; max-width: 30em; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer a { color: #8fa3bd; display: block; margin-bottom: 9px; }
.footer a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 40px; padding-top: 20px;
  color: #5b6d88; font-size: 13px;
}
.footer-legal { max-width: 60em; }

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: block; }
  .nav-menu[hidden] { display: none; }
  .nav-menu { display: flex; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2, .steps, .plans { grid-template-columns: 1fr; }
  .section { padding: 58px 0; }
  .hero { padding-top: 52px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .btn:hover, .card:hover, .case:hover { transform: none; }
}
