/* ============================================================
   CELEBORN — page-specific styles
   Builds on styles.css (shared Thot design system). Adds the
   tier layout, plans, closing ladder, and the silver/starlight
   "context core" animation world used by the three illustrations.
   ============================================================ */

:root{
  /* the animation world — mithril silver + pale starlight blue */
  --silver:      #d6e1f5;
  --silver-dim:  #8f9cbb;
  --star:        #6fa8ff;
  --star-bright: #aaccff;
}

/* ---------------------------------------------------------- section divider
   Upgrades the shared plain .rule hairline into a starlight sparkle divider.
   Scoped to .cel-page so the rest of the Thot site keeps the plain rule. */
.cel-page hr.rule{
  position: relative;
  height: 20px;
  margin: 12px 0;
  border: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--hairline) 14%,
    var(--hairline) 43%,
    transparent 47%, transparent 53%,
    var(--hairline) 57%,
    var(--hairline) 86%,
    transparent 100%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 1px;
  overflow: visible;
}
/* the centered 4-point mithril sparkle */
.cel-page hr.rule::before{
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 13px; height: 13px;
  transform: translate(-50%, -50%) rotate(0deg);
  background: var(--star-bright);
  clip-path: polygon(50% 0, 59% 41%, 100% 50%, 59% 59%, 50% 100%, 41% 59%, 0 50%, 41% 41%);
  filter: drop-shadow(0 0 5px rgba(111,168,255,0.7));
}
/* two faint flanking starlight dots, for a small constellation */
.cel-page hr.rule::after{
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 70px; height: 4px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 0 50%, var(--star) 0, transparent 1.7px),
    radial-gradient(circle at 100% 50%, var(--star) 0, transparent 1.7px);
  background-repeat: no-repeat;
  opacity: .65;
}

/* ---------------------------------------------------------- page rhythm
   Sections are separated BOTH by their own top+bottom padding AND by an
   hr.rule divider (~44px). With the shared .section padding (up to 150px
   each side) that stacked to ~280px of dead air between every section.
   Halve the per-section padding so the gap between adjacent sections lands
   at a tight, consistent ~110-130px including the divider. Scoped to
   .cel-page so the rest of the Thot site keeps its airier rhythm. */
.cel-page .section{ padding-block: clamp(38px, 4.5vh, 64px); }
.cel-page .section-head{ margin-bottom: clamp(26px, 3.4vh, 44px); }

/* ---------------------------------------------------------- back link */
.celeborn-back{
  position: fixed; left: var(--gut); bottom: 22px; z-index: 40;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
  opacity: .7; transition: opacity .25s, color .25s;
}
.celeborn-back:hover{ opacity: 1; color: var(--accent); }

/* ============================================================
   HERO — Celeborn
   ============================================================ */
.cel-hero{
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: clamp(20px, 5vw, 72px);
  padding-top: 104px;
  padding-bottom: 48px;
}
.cel-hero .hero-copy{ position: relative; z-index: 2; }
.cel-hero h1{
  font-size: clamp(40px, 6.6vw, 88px);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 22px 0 0;
  max-width: 15ch;
}
.cel-hero .hero-sub{
  margin: 28px 0 0; max-width: 46ch;
  font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-soft); line-height: 1.62;
}
.cel-hero .hero-actions{ display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

/* tier pills under the hero copy */
.tier-pills{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-top: 44px; max-width: 540px;
}
.tier-pill{
  border: 1px solid var(--hairline); border-radius: 14px;
  padding: 18px 18px 20px; background: var(--surface);
  display: flex; flex-direction: column; gap: 7px; min-height: 142px;
}
.tier-pill b{
  font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em;
}
.tier-pill .pill-sub{
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--star-bright);
}
.tier-pill .pill-tag{
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; color: #d8f7f2;
}
.tier-pill .pill-desc{
  font-size: 13px; line-height: 1.5; color: var(--ink-soft); margin-top: auto;
}
.tier-pill .arrow{ color: var(--star); padding: 0 2px; }

/* hero visual: ambient context core */
.cel-hero-stage{ position: relative; align-self: stretch; min-height: 56svh; display: grid; place-items: center; }
.cel-hero-stage svg{ width: 100%; height: auto; max-width: 540px; overflow: visible; }
/* compatibility line — pinned at the top of the stage, aligned to the eyebrow by JS (alignCompat) */
.hero-compat{
  position: absolute; top: 0; left: 0; right: 0; margin: 0 auto; max-width: 460px;
  font-family: var(--font-mono); font-size: 12px; line-height: 1.65; letter-spacing: .02em;
  color: var(--muted); text-align: center; pointer-events: none;
}
.hero-compat .tools{ color: var(--star-bright); }
/* hero eyebrow leads with the 🏹 emoji — no leading line */
.cel-hero .eyebrow{ gap: 0; }
.cel-hero .eyebrow::before{ display: none; }
@media (max-width: 940px){
  .hero-compat{ position: static; transform: none !important; margin: 0 auto 14px; }
}

/* ============================================================
   SHORT VERSION — text on the right, animated laptop on the left
   ============================================================ */
.short-version{
  display: grid; grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
.short-version .section-head{ margin-bottom: 0; }
.short-version h2{ max-width: 16ch; }
.short-version p{ max-width: 50ch; }

.sv-demo{ position: relative; }
.laptop{ width: 100%; max-width: 560px; margin-inline: auto; }
.laptop-screen{
  position: relative; aspect-ratio: 16 / 10;
  border: 1px solid var(--hairline); border-radius: 14px 14px 4px 4px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(111,168,255,0.08), transparent 60%),
    linear-gradient(180deg, #0c1020, #070a12);
  box-shadow: 0 36px 90px -54px rgba(111,168,255,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
}
.laptop-base{
  height: 13px; width: 118%; transform: translateX(-9%); margin-top: -1px;
  background: linear-gradient(180deg, #12151f, #0a0c14);
  border: 1px solid var(--hairline); border-top: none; border-radius: 0 0 18px 18px;
  position: relative;
}
.laptop-base::after{
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 88px; height: 6px; border-radius: 0 0 8px 8px; background: rgba(180,205,255,0.12);
}

/* terminal */
.term{ position: absolute; inset: 0; display: flex; flex-direction: column; font-family: var(--font-mono); font-size: 12.5px; }
.term-bar{
  display: flex; align-items: center; gap: 10px; padding: 9px 13px;
  border-bottom: 1px solid var(--hairline-2); color: var(--muted);
  font-size: 10.5px; letter-spacing: .08em; flex: none;
}
.term-bar .dots{ display: flex; gap: 6px; }
.term-bar .dots i{ width: 9px; height: 9px; border-radius: 50%; background: rgba(180,205,255,0.18); }
.term-body{ flex: 1; padding: 14px 16px; overflow: hidden; line-height: 1.62; color: var(--ink-soft); }
.term-body .line{ white-space: pre-wrap; word-break: break-word; }
.term .muted{ color: var(--faint); }
.term .ok{ color: var(--star); }
.term .cel{ color: var(--star-bright); }
.term .accent{ color: var(--accent); }
.term .cmd{ color: #fff; font-weight: 700; letter-spacing: .02em; text-shadow: 0 0 12px rgba(170,204,255,0.5); }
.term .cursor{
  display: inline-block; width: 7px; height: 1.02em; background: var(--star-bright);
  vertical-align: -2px; margin-left: 2px; animation: termBlink 1s step-end infinite;
}
@keyframes termBlink{ 50%{ opacity: 0; } }
/* the cursor brightens just before the command flies in */
.term .cursor.bright{
  background: #ffffff;
  box-shadow: 0 0 12px rgba(170,204,255,0.95), 0 0 5px #fff;
  animation: termBlink .55s step-end infinite;
}
/* each typed command letter flies onto the screen with a dramatic overshoot */
.term .fly{ display: inline-block; animation: flyIn .46s cubic-bezier(.18,1.6,.4,1) both; }
@keyframes flyIn{
  0%{ opacity: 0; transform: translateY(-22px) scale(2.8); filter: blur(1.5px); }
  55%{ opacity: 1; }
  100%{ opacity: 1; transform: translateY(0) scale(1); filter: none; }
}

/* ============================================================
   TIER SECTIONS
   ============================================================ */
.tier{
  display: flow-root;
  padding-block: clamp(38px, 4.5vh, 64px);
}
/* the illustration floats to one side, pinned to the top (level with the headline);
   the text wraps beside it then continues full-width underneath, so both sides bottom out evenly.
   right (01), left (02 Cloud), right (03) */
.tier .stage-wrap{
  float: right;
  width: 50%;
  margin: 4px 0 20px clamp(28px, 4vw, 64px);
}
.tier[data-screen-label="02 Pro"] .stage-wrap{
  float: left;
  margin: 4px clamp(28px, 4vw, 64px) 20px 0;
}

.tier-copy .num{
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .3em;
  color: var(--silver-dim); display: block; margin-bottom: 16px;
}
.tier-copy h2{
  font-size: clamp(28px, 4vw, 50px); font-weight: 500; letter-spacing: -0.025em;
  line-height: 1.03; margin: 0;
}
.tier-copy .label{
  display: inline-block; margin-top: 16px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--hairline); border-radius: 999px; padding: 5px 12px;
}
.tier-copy .lead{
  margin: 22px 0 0; color: var(--ink-soft); font-size: clamp(15px, 1.4vw, 17px); line-height: 1.62;
}

/* feature list */
.specs{ list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 2px; }
.specs li{ padding: 16px 0; border-top: 1px solid var(--hairline); }
.specs li:last-child{ border-bottom: 1px solid var(--hairline); }
.specs h4{
  margin: 0; font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink);
  display: flex; align-items: baseline; gap: 12px;
}
.specs h4::before{
  content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%;
  background: var(--star); box-shadow: 0 0 10px rgba(111,168,255,0.6); transform: translateY(-2px);
}
.specs p{ margin: 8px 0 0 18px; color: var(--ink-soft); font-size: 13.5px; line-height: 1.6; }
.specs code{ font-family: var(--font-mono); color: var(--star-bright); font-size: .92em; }
.tier-note{
  margin-top: 22px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .03em;
  color: var(--muted); line-height: 1.6;
}

/* stage */
.stage-wrap{ position: relative; }
.stage{
  width: 100%; height: auto; display: block;
  border: 1px solid var(--hairline); border-radius: 18px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(111,168,255,0.05), transparent 60%),
    linear-gradient(180deg, #080a12, #050609);
  overflow: visible;
}
.cap{
  margin: 18px 2px 0; min-height: 1.4em;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .05em;
  color: var(--ink-soft); text-align: center;
}
.cap b{ color: var(--star-bright); font-weight: 400; }

/* ============================================================
   PLANS
   ============================================================ */
.plans-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan{
  border: 1px solid var(--hairline); border-radius: 18px;
  padding: 26px 22px 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.008));
  display: flex; flex-direction: column;
  transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.plan:hover{ transform: translateY(-3px); border-color: rgba(63,233,223,0.4); box-shadow: 0 30px 80px -50px var(--accent-glow); }
.plan.featured{ border-color: rgba(111,168,255,0.45); }
.plan .plan-name{ font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.plan .plan-price{ margin-top: 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--accent); text-transform: uppercase; }
.plan.featured .plan-price{ color: var(--star-bright); }
.plan p{ margin: 18px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.plan .tag-row{ margin-top: 16px; }
.plan .pill{
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--silver-dim); border: 1px solid var(--hairline); border-radius: 999px; padding: 4px 10px;
}

/* ============================================================
   CLOSING
   ============================================================ */
.closing{ text-align: center; padding-block: clamp(48px, 6vh, 80px); }
.ladder{
  display: flex; justify-content: center; gap: clamp(18px, 4vw, 48px); flex-wrap: wrap;
  margin: 0 auto 38px; max-width: 920px;
}
.ladder span{
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 12px;
}
.ladder span::before{ content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--star); box-shadow: 0 0 10px rgba(111,168,255,0.6); }
.ladder b{ color: var(--star-bright); font-weight: 400; }
.closing h2{
  font-size: clamp(28px, 4.4vw, 52px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.06;
  margin: 0 auto; max-width: 22ch;
}
.closing .closing-sub{ margin: 24px auto 0; max-width: 58ch; color: var(--ink-soft); font-size: clamp(15px, 1.4vw, 18px); }
.closing .hero-actions{ display: flex; gap: 14px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }

/* ============================================================
   SVG STYLING — the context-core world
   ============================================================ */
.core-glow{ fill: url(#gGlow); }
.tier-bar{ stroke: rgba(214,225,245,0.30); stroke-width: 1; }
.spine{ stroke: rgba(170,204,255,0.22); stroke-width: 1.2; fill: none; }
.fil{ fill: none; stroke: url(#gFil); stroke-width: 1.4; stroke-linecap: round; opacity: .85; }
.fil.dim{ stroke: rgba(143,156,187,0.5); }
.pulse{ fill: var(--star-bright); }
.ping{ fill: none; stroke: var(--star-bright); stroke-width: 1.6; }
.elf-halo{ fill: url(#gElf); }
.elf-dot{ fill: #ffffff; }
.glint{ fill: var(--silver); }
.device{ fill: none; stroke: rgba(214,225,245,0.45); stroke-width: 1.6; }
.device-screen{ fill: rgba(111,168,255,0.10); }
.doc-card{ fill: rgba(143,156,187,0.06); stroke: rgba(143,156,187,0.4); stroke-width: 1.2; }
.doc-line{ fill: rgba(214,225,245,0.45); }
.person{ fill: none; stroke: var(--silver); stroke-width: 1.6; }
.person-dot{ fill: var(--silver); }
.label-mono{ font-family: var(--font-mono); fill: var(--muted); font-size: 11px; letter-spacing: .12em; }

/* ============================================================
   ANIMATION FRAMEWORK
   Base = pre-trigger / start state. .play (added by the
   IntersectionObserver) runs each effect once, fill:both so the
   final frame holds. --d = stagger delay.
   ============================================================ */
[data-fx]{ animation-delay: var(--d, 0s); animation-fill-mode: both; }

[data-fx="show"]{ opacity: 0; }
[data-fx="pop"]{ opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: center; }
[data-fx="draw"]{ stroke-dasharray: 1; stroke-dashoffset: 1; }
[data-fx="flow"],[data-fx="ping"],[data-fx="drift"]{ opacity: 0; }
.doc{ opacity: 0; }
.core-glow{ opacity: 0; transform-box: fill-box; transform-origin: center; }

.play [data-fx="show"]{ animation-name: glowIn; animation-duration: 1.5s; animation-timing-function: var(--ease); }
.play [data-fx="pop"]{ animation-name: popIn; animation-duration: 1.2s; animation-timing-function: var(--ease); }
.play [data-fx="draw"]{ animation-name: draw; animation-duration: 1.8s; animation-timing-function: var(--ease); }
.play [data-fx="flow"]{ animation-name: flow; animation-duration: 2s; animation-timing-function: var(--ease); }
.play [data-fx="drift"]{ animation-name: drift; animation-duration: 2.6s; animation-timing-function: var(--ease); }
.play [data-fx="ping"]{ animation-name: ping; animation-duration: 1.7s; animation-timing-function: var(--ease); }
.play .core-glow{
  animation:
    glowIn 1.8s var(--ease) var(--d,0s) both,
    breathe 5.5s ease-in-out calc(var(--d,0s) + 1.8s) infinite;
}

@keyframes glowIn{ from{ opacity: 0; } to{ opacity: 1; } }
@keyframes popIn{ from{ opacity: 0; transform: scale(.4); } 60%{ opacity: 1; } to{ opacity: 1; transform: scale(1); } }
@keyframes draw{ from{ stroke-dashoffset: 1; } to{ stroke-dashoffset: 0; } }
@keyframes flow{
  0%{ offset-distance: 0%; opacity: 0; }
  12%{ opacity: 1; }
  88%{ opacity: 1; }
  100%{ offset-distance: 100%; opacity: 0; }
}
/* ambient "life": after the one-time story finishes, these pulses keep flowing
   between the nodes and the core forever, so the illustration stays alive */
.stage .life-flow{ opacity: 0; }
.play .life-flow{ animation: flow 3.6s linear infinite; animation-delay: var(--ld, 7s); }
@keyframes drift{
  0%{ opacity: 0; transform: translate(0,0); }
  18%{ opacity: 1; }
  100%{ opacity: 0; transform: translate(var(--dx,0px), var(--dy,0px)); }
}
@keyframes ping{
  0%{ opacity: .85; transform: scale(.25); transform-box: fill-box; transform-origin: center; }
  100%{ opacity: 0; transform: scale(1.9); transform-box: fill-box; transform-origin: center; }
}
@keyframes breathe{
  0%,100%{ transform: scale(1); opacity: .85; }
  50%{ transform: scale(1.06); opacity: .6; }
}

/* the handwritten handoff file: appears, then dissolves away */
.play .doc{ animation: docIn .9s var(--ease) both, docOut 1.9s var(--ease) 1.6s both; }
@keyframes docIn{ from{ opacity: 0; transform: translateY(6px); transform-box: fill-box; } to{ opacity: 1; transform: none; } }
@keyframes docOut{ from{ opacity: 1; } to{ opacity: 0; transform: translateX(34px) scale(.96); transform-box: fill-box; transform-origin: center; } }

/* a node that lights up "fully rehydrated" — soft sustained glow after pop */
.play .full-glow{ animation: glowIn 1.4s var(--ease) var(--d,0s) both, breathe 4.8s ease-in-out calc(var(--d,0s) + 1.4s) infinite; }
.full-glow{ opacity: 0; transform-box: fill-box; transform-origin: center; }

/* ============================================================
   HERO CORE — looping sequence through the three functions.
   The .context/ core stays constant; three "phase" layers cross-
   fade around it, each demonstrating one function (capture &
   rehydrate · fleet telepathy · team propagation).
   ============================================================ */
.hero-core .core-glow{ opacity: .8; animation: breathe 6.5s ease-in-out infinite; }
.hero-core .spine{ stroke-dasharray: none; stroke-dashoffset: 0; }
/* hero filaments are solid (visible at any angle, unlike the directional gradient) */
.hero-core .fil{ stroke: rgba(170,204,255,0.5); opacity: 1; }
.hero-core .fil.dim{ stroke: rgba(143,156,187,0.42); }

.hero-core .phase{ opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-core[data-phase="1"] .phase-1,
.hero-core[data-phase="2"] .phase-2,
.hero-core[data-phase="3"] .phase-3{ opacity: 1; }

.hero-core .flow{ animation: heroFlow 3.6s cubic-bezier(.6,.1,.4,.9) infinite; }
@keyframes heroFlow{
  0%{ offset-distance: 0%; opacity: 0; }
  12%{ opacity: 1; }
  82%{ opacity: 1; }
  100%{ offset-distance: 100%; opacity: 0; }
}
.hero-core .ring{ animation: heroPing 3.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes heroPing{
  0%{ opacity: .85; transform: scale(.3); }
  70%{ opacity: 0; }
  100%{ opacity: 0; transform: scale(2); }
}
.hero-core .halo-pulse{ animation: breathe 4.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

.hero-caption{
  margin-top: -56px; min-height: 1.4em;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em;
  color: var(--ink-soft); text-align: center; transition: opacity .8s var(--ease);
}
.hero-caption b{ color: var(--star-bright); font-weight: 400; }
/* desktop: the caption is lifted to sit level with the top of the "See how it works"
   button by a small JS aligner (alignCaption) — measured live so it survives content/width changes */

/* labels printed on each tier box of the hero core */
.hero-core .box-label{
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: .14em; fill: #0a1430; text-anchor: middle;
}
/* dashed enclosure that reads as "hosted in the cloud" */
.cloud-ring{ fill: none; stroke: rgba(170,204,255,0.32); stroke-width: 1.4; stroke-dasharray: 5 6; }

/* subtly glowing inline phrase */
.glow-text{
  color: var(--star-bright);
  text-shadow: 0 0 8px rgba(111,168,255,0.45);
  animation: glowText 3.6s ease-in-out infinite;
}
@keyframes glowText{
  0%,100%{ text-shadow: 0 0 6px rgba(111,168,255,0.28); }
  50%{ text-shadow: 0 0 14px rgba(111,168,255,0.6); }
}
@media (prefers-reduced-motion: reduce){
  .glow-text{ animation: none; }
}

@media (prefers-reduced-motion: reduce){
  .hero-core .flow,.hero-core .ring{ animation: none; opacity: 0; }
  .hero-core .core-glow,.hero-core .halo-pulse{ animation: none; }
  .hero-core .phase{ transition: none; }
  .hero-caption{ transition: none; }
}

/* ============================================================
   REDUCED MOTION — clean, fully-resolved static frame
   ============================================================ */
@media (prefers-reduced-motion: reduce){
  [data-fx]{ animation: none !important; }
  .core-glow,.full-glow,.hero-core .core-glow{ animation: none !important; opacity: .8; }
  [data-fx="show"],[data-fx="pop"]{ opacity: 1; transform: none; }
  [data-fx="draw"]{ stroke-dashoffset: 0; }
  [data-fx="flow"],[data-fx="ping"],[data-fx="drift"],.doc,.life-flow{ opacity: 0 !important; }
  .life-flow{ animation: none !important; }
  .hero-core .orbit{ animation: none; opacity: .8; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px){
  .cel-hero{ grid-template-columns: 1fr; gap: 8px; padding-top: 120px; min-height: auto; }
  .cel-hero-stage{ order: -1; min-height: 42svh; }
  .tier-pills{ max-width: none; }
}
@media (max-width: 880px){
  .tier .stage-wrap{ float: none !important; width: 100% !important; margin: 0 0 18px 0 !important; }
  .plans-grid{ grid-template-columns: 1fr 1fr; }
  .short-version{ grid-template-columns: 1fr; gap: 24px; }
  .short-version .section-head{ order: 1; }
  .short-version .sv-demo{ order: 2; }
}
@media (max-width: 560px){
  .tier-pills{ grid-template-columns: 1fr; }
  .plans-grid{ grid-template-columns: 1fr; }
  .celeborn-back{ display: none; }
}

/* ============================================================
   OUTCOMES — the five things a coder gets (FAST / FLOW / TOKENS
   / MONEY / MANY). Each is a .section with an eyebrow, a short
   lead, and a grid of feature cards. Cards reuse the .plan /
   .tier-pill surface + the .specs dot motif.
   ============================================================ */
.outcome .section-head{ margin-bottom: clamp(28px, 4vh, 44px); }
.outcome .section-head .eyebrow{ color: var(--star-bright); }

.feature-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-grid.two{ grid-template-columns: repeat(2, 1fr); }
.fcard{
  border: 1px solid var(--hairline); border-radius: 16px;
  padding: 22px 22px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.008));
  display: flex; flex-direction: column; gap: 9px;
  transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.fcard:hover{ transform: translateY(-3px); border-color: rgba(111,168,255,0.4); box-shadow: 0 30px 80px -54px rgba(111,168,255,0.5); }
.fcard h4{
  margin: 0; font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink);
  display: flex; align-items: baseline; gap: 11px;
}
.fcard h4::before{
  content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%;
  background: var(--star); box-shadow: 0 0 10px rgba(111,168,255,0.6); transform: translateY(-2px);
}
.fcard p{ margin: 0 0 0 17px; color: var(--ink-soft); font-size: 13.5px; line-height: 1.6; }
.fcard p code, .fcard h4 code{ font-family: var(--font-mono); color: var(--star-bright); font-size: .9em; }
.fcard .tag{
  margin-top: 4px; margin-left: 17px; align-self: flex-start;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--hairline); border-radius: 999px; padding: 3px 9px;
}
.fcard .tag.live{ color: #d8f7f2; border-color: rgba(63,233,223,0.4); }

/* ============================================================
   CODEBASE GRAPH — featured panel. A bordered surface with a
   headline, a stat row (big mono figures), and a feature list.
   ============================================================ */
.graph-feature{
  border: 1px solid rgba(111,168,255,0.28); border-radius: 22px;
  padding: clamp(28px, 4vw, 52px);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(111,168,255,0.07), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.008));
}
.graph-feature .eyebrow{ color: var(--star-bright); }
.graph-feature h2{
  font-size: clamp(28px, 4vw, 50px); font-weight: 500; letter-spacing: -0.025em;
  line-height: 1.04; margin: 18px 0 0; max-width: 18ch;
}
.graph-feature .lead{
  margin: 22px 0 0; color: var(--ink-soft); font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.62; max-width: 60ch;
}
.graph-feature .lead b{ color: var(--star-bright); font-weight: 400; }
.stat-row{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: clamp(28px, 4vh, 44px);
}
.stat{
  border: 1px solid var(--hairline); border-radius: 16px; padding: 22px 20px;
  background: rgba(255,255,255,0.015);
}
.stat .stat-num{
  font-family: var(--font-mono); font-size: clamp(26px, 3.4vw, 38px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1;
  background: linear-gradient(96deg, var(--star-bright), var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat .stat-label{ margin: 10px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
.graph-feature .specs{ margin-top: clamp(26px, 4vh, 40px); }
.graph-note{
  margin-top: 22px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .03em;
  color: var(--muted); line-height: 1.6;
}

/* ============================================================
   INTEGRATIONS STRIP
   ============================================================ */
.integrations{ text-align: center; }
.int-grid{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin: 44px auto 0; max-width: 860px;
}
.int-card{
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 28px 18px;
  border: 1px solid var(--hairline); border-radius: 16px;
  background: var(--surface); color: var(--ink-soft);
  transition: border-color .25s var(--ease), color .25s var(--ease),
              transform .25s var(--ease), box-shadow .25s var(--ease);
}
.int-card:hover{
  border-color: rgba(111,168,255,0.45); color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 26px 60px -46px rgba(111,168,255,0.8);
}
.int-logo{ display: grid; place-items: center; height: 38px; }
.int-logo svg{
  width: 34px; height: 34px; display: block; fill: var(--silver);
  transition: fill .25s var(--ease), stroke .25s var(--ease), filter .25s var(--ease);
}
.int-logo svg.stroke{ fill: none; stroke: var(--silver); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.int-card:hover .int-logo svg{ fill: var(--star-bright); filter: drop-shadow(0 0 8px rgba(111,168,255,0.55)); }
.int-card:hover .int-logo svg.stroke{ fill: none; stroke: var(--star-bright); }
.int-name{ font-family: var(--font-display); font-size: 16px; letter-spacing: -0.005em; color: inherit; }

@media (max-width: 880px){
  .feature-grid{ grid-template-columns: 1fr 1fr; }
  .stat-row{ grid-template-columns: 1fr; }
  .int-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px){
  .feature-grid, .feature-grid.two{ grid-template-columns: 1fr; }
  .int-grid{ grid-template-columns: repeat(2, 1fr); }
}

/* ===================== REVIEWS ===================== */
.reviews{ padding: 8px 0 0; }
.review-list{ list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.review-list li{ margin: 0; }
.review-list a{
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 20px 22px; border: 1px solid var(--hairline); border-radius: 14px;
  background: rgba(255,255,255,0.015); transition: border-color .25s var(--ease), background .25s var(--ease);
  font-family: var(--font-display); font-size: clamp(16px, 1.7vw, 19px); font-weight: 500;
  letter-spacing: -0.01em; color: var(--ink); line-height: 1.4;
}
.review-list a:hover{ border-color: var(--accent); background: rgba(255,255,255,0.03); }
.review-list .review-by{ font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); font-weight: 400; }
.review-list a .arr{ margin-left: auto; color: var(--accent); }
