/* ─────────────────────────────────────────────────────────────
   Mortar — Go-live / Hosting landing section
   Self-contained. Drops into the existing dark landing.
   Tokens mirror the Mortar kit.
   ───────────────────────────────────────────────────────────── */

.mortar-golive {
  --base: #0B0D10;
  --surface: #15181D;
  --surface-2: #1B1F26;
  --surface-3: #21262E;
  --line: #242830;
  --line-strong: #2E333C;
  --ink: #E6E8EB;
  --muted: #8A9099;
  --dim: #5C636E;
  --accent: #F2B441;
  --accent-bright: #FFC75A;
  --accent-deep: #D99A2B;
  --accent-ink: #1A1206;
  --ok: #34D399;

  --r-xl: 16px;
  --r-lg: 14px;
  --r-md: 10px;
  --r-pill: 999px;

  box-sizing: border-box;
  position: relative;
  background: var(--base);
  color: var(--ink);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv01", "ss01";
  line-height: 1.5;
  padding: clamp(64px, 9vw, 120px) 24px;
  overflow: hidden;
}
.mortar-golive *, .mortar-golive *::before, .mortar-golive *::after { box-sizing: border-box; }

/* atmospheric glow */
.mortar-golive::before {
  content: "";
  position: absolute;
  top: -8%; left: 50%; transform: translateX(-50%);
  width: min(1100px, 120%); height: 560px;
  background: radial-gradient(60% 60% at 50% 30%, rgba(242,180,65,.10), transparent 70%);
  pointer-events: none;
}
/* faint grid texture */
.mortar-golive::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent 75%);
  pointer-events: none;
}

.gl-inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
}

.mortar-golive ::selection { background: rgba(242,180,65,.26); color: #fff; }
.mortar-golive .mono { font-family: "Geist Mono", ui-monospace, monospace; }

/* ── heading block ──────────────────────────────────────────── */
.gl-head { text-align: center; max-width: 720px; margin: 0 auto; }
.gl-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Geist Mono", monospace;
  font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
}
.gl-eyebrow .tick {
  width: 5px; height: 5px; border-radius: 999px;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}
.gl-title {
  font-size: clamp(34px, 5.4vw, 56px);
  font-weight: 600; letter-spacing: -.03em; line-height: 1.04;
  margin: 18px 0 0; text-wrap: balance;
}
.gl-title .amber {
  background: linear-gradient(100deg, var(--accent-bright), var(--accent) 45%, var(--accent-deep));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.gl-sub {
  font-size: clamp(15px, 1.7vw, 18px);
  color: var(--muted); margin: 18px auto 0;
  max-width: 54ch; text-wrap: pretty;
}

/* ── journey strip ──────────────────────────────────────────── */
.gl-journey {
  margin: 44px auto 0;
  max-width: 820px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 6px;
}
.gl-step {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 0 8px;
}
.gl-step-ico {
  position: relative;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--muted);
  transition: color .18s, border-color .18s;
}
.gl-step-ico svg { width: 22px; height: 22px; }
.gl-step-n {
  font-family: "Geist Mono", monospace;
  font-size: 11px; font-weight: 600; color: var(--dim);
  letter-spacing: .1em; margin-top: 13px;
}
.gl-step-title {
  font-size: 15.5px; font-weight: 600; letter-spacing: -.015em;
  margin: 4px 0 0;
}
.gl-step-desc {
  font-size: 12.5px; color: var(--muted);
  margin: 6px 0 0; text-wrap: pretty; line-height: 1.45;
  max-width: 20ch;
}
/* highlighted final step */
.gl-step.is-live .gl-step-ico {
  background: linear-gradient(180deg, rgba(242,180,65,.16), rgba(242,180,65,.05));
  border-color: rgba(242,180,65,.45);
  color: var(--accent-bright);
  box-shadow: 0 0 0 4px rgba(242,180,65,.06), 0 8px 24px -10px rgba(242,180,65,.5);
}
.gl-step.is-live .gl-step-n { color: var(--accent); }

.gl-arrow {
  align-self: center; margin-top: 13px;
  color: var(--line-strong);
  display: grid; place-items: center;
}
.gl-arrow svg { width: 26px; height: 14px; }
.gl-arrow.to-live { color: var(--accent-deep); }

/* ════════════════════════════════════════════════════════════
   Browser-chrome mock
   ════════════════════════════════════════════════════════════ */
.gl-browser {
  margin: 46px auto 0;
  max-width: 760px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0,0,0,.5), 0 40px 80px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.01);
  overflow: hidden;
}
.gl-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.gl-dots { display: flex; gap: 7px; flex: none; }
.gl-dots span { width: 11px; height: 11px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-strong); }
.gl-omni {
  flex: 1;
  display: flex; align-items: center; gap: 10px;
  height: 34px; padding: 0 13px;
  background: var(--base);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  min-width: 0;
}
.gl-omni .lock { width: 13px; height: 13px; flex: none; color: var(--ok); }
.gl-url {
  font-family: "Geist Mono", monospace;
  font-size: 13px; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
.gl-url .sub { color: var(--muted); }
.gl-url .path { color: var(--dim); }
.gl-live {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-size: 11.5px; font-weight: 600; color: var(--ok);
  font-family: "Geist Mono", monospace;
}
.gl-live .dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}
@media (prefers-reduced-motion: no-preference) {
  .gl-live .dot { animation: glPulse 2.4s ease-in-out infinite; }
  @keyframes glPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,.5); }
    50% { box-shadow: 0 0 0 5px rgba(52,211,153,0); }
  }
}

/* viewport */
.gl-view {
  position: relative;
  height: 230px;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(242,180,65,.06), transparent 60%),
    var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px;
  padding: 24px;
}
.gl-view .badge {
  display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 13px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(52,211,153,.3);
  background: rgba(52,211,153,.08);
  color: var(--ok);
  font-family: "Geist Mono", monospace;
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  white-space: nowrap;
}
.gl-view .badge svg { width: 13px; height: 13px; }
.gl-skel { display: flex; flex-direction: column; align-items: center; gap: 11px; width: 100%; max-width: 340px; }
.gl-skel-row { height: 11px; border-radius: 999px; background: var(--surface-3); width: 100%; }
.gl-skel-row.w1 { width: 62%; height: 15px; background: var(--line-strong); }
.gl-skel-row.w2 { width: 86%; }
.gl-skel-row.w3 { width: 74%; }
.gl-domain-tag {
  position: absolute; bottom: 14px; right: 16px;
  font-family: "Geist Mono", monospace;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .04em;
  color: var(--dim);
  border: 1px dashed var(--line-strong);
  border-radius: 999px; padding: 4px 10px;
  white-space: nowrap;
}

/* ── trust chips ────────────────────────────────────────────── */
.gl-trust {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin: 36px auto 0; max-width: 820px;
}
.gl-chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px; color: var(--muted); white-space: nowrap;
  transition: border-color .16s, color .16s;
}
.gl-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.gl-chip svg { width: 15px; height: 15px; flex: none; color: var(--ok); }

/* ── CTA ────────────────────────────────────────────────────── */
.gl-cta-wrap { display: flex; justify-content: center; margin: 34px auto 0; }
.gl-cta {
  display: inline-flex; align-items: center; gap: 9px;
  height: 50px; padding: 0 26px;
  border-radius: var(--r-md);
  background: var(--accent); color: var(--accent-ink);
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  box-shadow: 0 10px 30px -12px rgba(242,180,65,.7);
  transition: background-color .16s, transform .12s, box-shadow .16s;
}
.gl-cta svg { width: 17px; height: 17px; transition: transform .18s; }
.gl-cta:hover { background: var(--accent-bright); transform: translateY(-1px); box-shadow: 0 14px 34px -12px rgba(242,180,65,.8); }
.gl-cta:hover svg { transform: translateX(3px); }
.gl-cta:active { transform: translateY(.5px); }

/* ════════════════════════════════════════════════════════════
   Reveal motion — base state visible; entrance animates FROM
   hidden so content is never stuck if motion is reduced/paused.
   ════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  .gl-eyebrow { animation: glFadeUp .6s cubic-bezier(.2,.7,.3,1) backwards; }
  .gl-title   { animation: glFadeUp .6s cubic-bezier(.2,.7,.3,1) .06s backwards; }
  .gl-sub     { animation: glFadeUp .6s cubic-bezier(.2,.7,.3,1) .12s backwards; }
  .gl-journey { animation: glFadeUp .6s cubic-bezier(.2,.7,.3,1) .18s backwards; }
  .gl-browser { animation: glRise .7s cubic-bezier(.2,.7,.3,1) .26s backwards; }
  .gl-trust   { animation: glFadeUp .6s cubic-bezier(.2,.7,.3,1) .34s backwards; }
  .gl-cta-wrap{ animation: glFadeUp .6s cubic-bezier(.2,.7,.3,1) .4s backwards; }

  @keyframes glFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes glRise {
    from { opacity: 0; transform: translateY(26px) scale(.985); }
    to   { opacity: 1; transform: none; }
  }
}

/* ── responsive ─────────────────────────────────────────────── */
@media (max-width: 720px) {
  .gl-journey {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 420px;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: var(--surface);
    padding: 4px 22px;
  }
  .gl-step {
    flex-direction: row; text-align: left; align-items: flex-start;
    gap: 16px; padding: 20px 0;
  }
  .gl-step:not(:first-child) { border-top: 1px solid var(--line); }
  .gl-step-body { flex: 1; }
  .gl-step-n { margin-top: 0; }
  .gl-step-title { margin-top: 2px; }
  .gl-step-desc { max-width: none; }
  .gl-arrow { display: none; }
}

@media (max-width: 480px) {
  .gl-url { font-size: 11.5px; }
  .gl-live span:not(.dot) { display: none; }
  .gl-view { height: 200px; }
  .gl-cta { width: 100%; justify-content: center; }
  .gl-cta-wrap { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .mortar-golive *, .mortar-golive *::before, .mortar-golive *::after {
    animation: none !important; transition: none !important;
  }
}
