/* Layout: one screen. A turning universe, the Omnivers mark at its center, one sentence beneath. Then three lines and a door. */
:root {
  --night: #12143a;
  --paper: #f5f4fb;
  --dim: rgba(245,244,251,.62);
  --star: #F5B800;
  --lilac: #a58cff;
  --display: "Inter", -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { background: var(--night); }
body { color: var(--paper); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
#cosmos { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.page { position: relative; z-index: 1; }
.wrap { max-width: 68rem; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }

/* logo: white PNG as a mask so it takes any color */
.orb { position: relative; aspect-ratio: 1; display: inline-block; }
.orb .ring {
  position: absolute; inset: 0; background: var(--paper);
  -webkit-mask-image: url("/assets/orb.png"), var(--band);
  mask-image: url("/assets/orb.png"), var(--band);
  -webkit-mask-size: contain, 100% 100%; mask-size: contain, 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.orb .r1 { --band: radial-gradient(circle closest-side, #000 52.5%, transparent 52.6%); animation: spin 18s linear infinite; }
.orb .r2 { --band: radial-gradient(circle closest-side, transparent 52.6%, #000 52.7%, #000 76.4%, transparent 76.5%); animation: spin 28s linear infinite reverse; }
.orb .r3 { --band: radial-gradient(circle closest-side, transparent 76.5%, #000 76.6%); animation: spin 46s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.word {
  display: inline-block; aspect-ratio: 640 / 124; background: var(--paper);
  -webkit-mask: url("/assets/wordmark.png") center / contain no-repeat;
  mask: url("/assets/wordmark.png") center / contain no-repeat;
}

.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.5rem; }
.top .word { height: 22px; }
.link { font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--dim); transition: color .25s; }
.link:hover, .link:focus-visible { color: var(--star); }

.hero { min-height: calc(100svh - 76px); display: grid; place-items: center; text-align: center; padding-block: 2rem 4rem; }
.center { display: grid; justify-items: center; gap: 2.2rem; }
.big-orb { width: clamp(120px, 17vw, 190px); filter: drop-shadow(0 0 36px rgba(245,244,251,.3)); }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4.6vw, 3.7rem); line-height: 1.1; letter-spacing: -.02em; margin: 0; max-width: 18em; text-wrap: balance; }
h1 .lead { display: block; font-size: .42em; letter-spacing: .2em; text-transform: uppercase; font-family: var(--body); font-weight: 600; color: var(--star); margin-bottom: 1.2rem; }
h1 .turn { color: var(--star); display: inline-block; transition: opacity .6s, transform .6s; }
h1 .turn.fade { opacity: 0; transform: translateY(.15em); }
.def { margin: 0; color: var(--dim); font-size: .95rem; letter-spacing: .04em; }
.def b { color: var(--paper); font-weight: 600; }
.def i { font-style: normal; color: var(--lilac); }
.cta {
  display: inline-flex; align-items: center; font-weight: 600; text-decoration: none;
  padding: .9rem 1.6rem; border-radius: 999px; background: var(--star); color: var(--night);
  transition: transform .25s, background .25s;
}
.cta:hover, .cta:focus-visible { background: var(--paper); transform: translateY(-1px); }

.lines { padding-block: 6rem 7rem; }
.lines ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
.lines li { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 3.6vw, 2.8rem); line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; color: var(--dim); }
.lines li b { font-weight: 400; color: var(--paper); }
.lines li:last-child b { color: var(--star); }
.lines .cta { margin-top: 3rem; }

footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 0 calc(2rem + env(safe-area-inset-bottom, 0px)); color: var(--dim); font-size: .85rem; }
footer .word { height: 15px; opacity: .8; }
.echad { font-family: var(--display); font-size: 1.2rem; color: var(--star); }
:focus-visible { outline: 2px solid var(--star); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .orb .ring { animation: none; } h1 .turn { transition: none; } }

/* ---- shared chrome: nav, footer links, glass cards, modal, inner pages ---- */
.top nav { display: flex; align-items: center; gap: 1.6rem; }
.top .word { height: 22px; }
.top a.home { display: inline-flex; }
.btn-ghost { display: inline-flex; align-items: center; font: inherit; font-weight: 600; font-size: .95rem; padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid rgba(245,244,251,.28); background: transparent; color: var(--paper); cursor: pointer; text-decoration: none; transition: border-color .25s, color .25s, background .25s; }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--star); color: var(--star); }
button.cta { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.cta.ghost { background: transparent; color: var(--paper); border: 1px solid rgba(245,244,251,.28); }
.cta.ghost:hover, .cta.ghost:focus-visible { background: rgba(245,244,251,.08); border-color: var(--star); color: var(--star); }
footer .flinks { display: flex; gap: 1.4rem; flex-wrap: wrap; }
footer .flinks a { text-decoration: none; color: var(--dim); transition: color .25s; }
footer .flinks a:hover, footer .flinks a:focus-visible { color: var(--star); }
.lines .actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 3rem; }
.lines .actions .cta { margin-top: 0; }

/* inner pages */
.inner-hero { text-align: center; padding-block: 3rem 2.5rem; display: grid; justify-items: center; gap: 1.4rem; }
.inner-hero .orb { width: 72px; filter: drop-shadow(0 0 24px rgba(245,244,251,.3)); }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--star); margin: 0; }
.inner-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.inner-hero h1 em { font-style: normal; color: var(--star); }
.inner-hero .sub { margin: 0; max-width: 40rem; color: var(--dim); font-size: 1.1rem; text-wrap: balance; }
.badge { display: flex; justify-content: center; padding-bottom: 2.4rem; }
.badge span { background: rgba(245,244,251,.12); border: 1px solid rgba(245,244,251,.14); border-radius: 22px; padding: 1.1rem 1.6rem; }
.badge img { display: block; width: min(260px, 70vw); height: auto; }
.cards { max-width: 52rem; margin: 0 auto; display: grid; gap: 1.2rem; padding-bottom: 4rem; }
.card { background: rgba(245,244,251,.055); border: 1px solid rgba(245,244,251,.12); border-radius: 22px; padding: 1.8rem; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: border-color .3s, transform .3s, background .3s; }
.card:hover { border-color: rgba(245,184,0,.45); background: rgba(245,244,251,.08); transform: translateY(-2px); }
.card h2 { display: flex; align-items: center; gap: .7rem; font-family: var(--display); font-weight: 500; font-size: 1.35rem; letter-spacing: -.01em; margin: 0 0 1rem; }
.card h2::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--star); box-shadow: 0 0 14px var(--star); flex: none; }
.card p { margin: 0; color: var(--dim); font-size: 1rem; }
.card p + p { margin-top: 1rem; }
.card a { color: var(--star); font-weight: 600; text-underline-offset: 3px; }
.card a:hover { color: var(--paper); }
.cert { width: 100%; border-collapse: collapse; font-size: .98rem; }
.cert th, .cert td { text-align: left; padding: .8rem 0; border-bottom: 1px solid rgba(245,244,251,.1); vertical-align: top; }
.cert tr:last-child th, .cert tr:last-child td { border-bottom: 0; }
.cert th { width: 38%; padding-right: 1.2rem; color: var(--lilac); font-weight: 500; }
.cert td { color: var(--paper); overflow-wrap: anywhere; }
.connect { text-align: center; padding-block: 3rem 5rem; display: grid; justify-items: center; gap: 1rem; }
.connect h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -.015em; margin: 0; }
.connect p { margin: 0; color: var(--dim); }
.connect .actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 1rem; }
.connect .meta { font-size: .9rem; margin-top: 1.2rem; }

/* 404 */
.lost { min-height: calc(100svh - 190px); display: grid; place-items: center; text-align: center; padding-block: 2rem 4rem; }
.lost .stack { display: grid; justify-items: center; gap: 1.6rem; }
.code { font-family: var(--display); font-weight: 500; font-size: clamp(6rem, 24vw, 15rem); line-height: 1; letter-spacing: -.04em; margin: 0; display: flex; align-items: center; justify-content: center; gap: .02em; background: linear-gradient(180deg, var(--paper), rgba(245,244,251,.35)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.code .orb { width: .78em; filter: drop-shadow(0 0 40px rgba(245,244,251,.35)); }
.lost h1 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); }
.lost p { margin: 0; color: var(--dim); max-width: 30rem; }
.lost .actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: .6rem; }

/* modal */
.ov { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 1rem; background: rgba(8,9,32,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.ov.on { opacity: 1; visibility: visible; }
.modal { position: relative; width: min(30rem, 100%); max-height: calc(100svh - 2rem); overflow: auto; background: linear-gradient(180deg, #1b1e4f, #14173f); border: 1px solid rgba(245,244,251,.16); border-radius: 24px; padding: 2rem; box-shadow: 0 30px 90px rgba(0,0,0,.5); transform: translateY(14px) scale(.98); transition: transform .3s; }
.ov.on .modal { transform: none; }
.modal h2 { font-family: var(--display); font-weight: 500; font-size: 1.6rem; margin: 0 0 .4rem; letter-spacing: -.01em; }
.modal .lead-p { margin: 0 0 1.4rem; color: var(--dim); font-size: .95rem; }
.modal .x { position: absolute; top: 1rem; right: 1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 0; background: rgba(245,244,251,.08); color: var(--paper); font-size: 1rem; cursor: pointer; transition: background .25s; }
.modal .x:hover { background: rgba(245,244,251,.18); }
.modal form { display: grid; gap: .9rem; }
.modal .two { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.modal label { display: block; font-size: .8rem; font-weight: 600; color: var(--dim); margin-bottom: .3rem; }
.modal input, .modal select { width: 100%; font: inherit; font-size: .98rem; color: var(--paper); background: rgba(245,244,251,.07); border: 1px solid rgba(245,244,251,.16); border-radius: 12px; padding: .7rem .85rem; transition: border-color .25s, background .25s; }
.modal select option { color: #12143a; }
.modal input::placeholder { color: rgba(245,244,251,.35); }
.modal input:focus, .modal select:focus { outline: none; border-color: var(--star); background: rgba(245,244,251,.1); }
.modal .ferr { margin: 0; color: #ff8a73; font-size: .88rem; }
.modal .fine { margin: 1rem 0 0; font-size: .75rem; color: var(--dim); }
.modal .cta { justify-content: center; margin-top: .4rem; }
.modal .cta[disabled] { opacity: .6; cursor: progress; }
.ok-msg { display: none; text-align: center; padding-block: 1rem; }
.ok-msg .tk { width: 3.2rem; height: 3.2rem; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: rgba(63,184,176,.18); color: #3fb8b0; font-size: 1.5rem; }
@media (max-width: 560px) { .modal .two { grid-template-columns: 1fr; } .top nav .link:not(.login) { display: none; } .cert th, .cert td { display: block; width: 100%; } .cert th { padding-bottom: 0; border-bottom: 0; } }

/* GoHighLevel popup */
.modal.ghl { width: min(40rem, 100%); height: min(46rem, calc(100svh - 2rem)); padding: 0; display: flex; flex-direction: column; background: #fff; overflow: hidden; }
.ghl-hd { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; background: var(--night); color: var(--paper); }
.ghl-hd h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 1.4rem; letter-spacing: -.01em; }
.modal.ghl .x { position: static; flex: none; }
.ghl-wrap { position: relative; flex: 1; min-height: 0; display: flex; }
.ghl-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: .6rem; }
.ghl-body iframe { width: 100%; height: 1337px; border: 0; border-radius: 12px; display: block; }
.ghl-loader { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; background: #fff; transition: opacity .3s, visibility .3s; }
.ghl-loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.ghl-loader span { width: 2.8rem; height: 2.8rem; border-radius: 50%; border: 4px solid rgba(0,135,255,.18); border-top-color: #0087FF; animation: ghlspin .8s linear infinite; }
@keyframes ghlspin { to { transform: rotate(360deg); } }

/* homepage big headings keep the display face; everything else is Inter */
.home h1, .home .lines li { font-family: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif; }

/* keep buttons on one line in every browser */
.btn-ghost, .cta { white-space: nowrap; line-height: 1.2; }
