/* Santa Lights — the Christmas-renderings spin-off of Local X AI.
   One deliberate look: a night sky that stays night in every theme.
   Palette: midnight blues, snow text, amber bulb glow, holly/berry/ice accents. */

:root {
  --night: #0a1322;
  --night-2: #101c30;
  --border: #22314b;
  --snow: #eef3fb;
  --dim: #97a5c0;
  --amber: #f4c66a;
  --amber-deep: #e39a2d;
  --holly: #3fae7f;
  --berry: #e0574b;
  --ice: #7db8e8;
  --radius: 14px;
  --maxw: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); background: var(--night); color: var(--snow);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--amber); outline-offset: 2px;
}
h1, h2 { line-height: 1.12; text-wrap: balance; margin: 0 0 .4em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.5vw + .8rem, 3.3rem); font-weight: 830; }
h2 { font-size: clamp(1.35rem, 1.6vw + .9rem, 1.8rem); font-weight: 760; }
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.3rem; }
.section { padding-block: 3.2rem; }
.center { text-align: center; }
.dim { color: var(--dim); }
.lede { font-size: 1.12rem; color: var(--dim); max-width: 46ch; }
.credit { font-size: .72rem; color: var(--dim); margin-top: .5rem; text-align: right; }
.credit a { color: inherit; }

/* header */
.top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-block: 1.2rem .4rem; }
.wordmark { font-weight: 850; font-size: 1.25rem; letter-spacing: -.02em; color: var(--snow); }
.wordmark .dot { color: var(--amber); text-shadow: 0 0 10px var(--amber); }
.top .byline { font-size: .8rem; color: var(--dim); }
.top .byline a { color: var(--dim); text-decoration: underline; text-underline-offset: 3px; }

/* the namesake: a strung wire of glowing bulbs, full width */
.lightstring { display: block; width: 100%; height: auto; overflow: visible; }
.lightstring .wire { fill: none; stroke: #33415e; stroke-width: 2; }
.lightstring .stem { stroke: #33415e; stroke-width: 2; }
.lightstring circle { fill: currentColor; filter: drop-shadow(0 0 6px currentColor); }
.lb-a { color: var(--amber); } .lb-r { color: var(--berry); }
.lb-g { color: var(--holly); } .lb-i { color: var(--ice); }
@media (prefers-reduced-motion: no-preference) {
  .lightstring .tw1 { animation: twinkle 2.1s ease-in-out infinite; }
  .lightstring .tw2 { animation: twinkle 2.7s ease-in-out .6s infinite; }
  .lightstring .tw3 { animation: twinkle 3.3s ease-in-out 1.1s infinite; }
}
@keyframes twinkle { 50% { opacity: .4; } }

/* hero */
.hero { padding-block: 2.4rem 1rem; display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.4rem; align-items: center; }
.hero .lede { margin-bottom: 1.6em; }

/* before/after drag slider */
.ba { position: relative; aspect-ratio: 3/2; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); --pos: 50%; background: var(--night-2);
  box-shadow: 0 20px 60px -24px rgba(0, 0, 0, .8); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .after { clip-path: inset(0 0 0 var(--pos)); }
.ba .ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.6); pointer-events: none; }
.ba .ba-knob { position: absolute; top: 50%; left: var(--pos); transform: translate(-50%,-50%);
  width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #14203a;
  display: grid; place-items: center; font-weight: 800; box-shadow: 0 2px 12px rgba(0,0,0,.5); pointer-events: none; }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; touch-action: pan-y; }
.ba input[type=range]:focus-visible ~ .ba-knob { outline: 3px solid var(--amber); outline-offset: 2px; }
.ba .tag { position: absolute; bottom: .6rem; padding: .22rem .6rem; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .03em; background: rgba(4,9,18,.68); color: #fff; pointer-events: none; }
.ba .tag-l { left: .6rem; } .ba .tag-r { right: .6rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; font: inherit; font-weight: 700;
  padding: .7em 1.25em; border-radius: 10px; border: 1px solid var(--border);
  background: var(--night-2); color: var(--snow); cursor: pointer; }
.btn:hover { text-decoration: none; border-color: var(--dim); }
.btn-glow { background: var(--amber-deep); border-color: transparent; color: #241a06;
  box-shadow: 0 0 24px -6px var(--amber-deep); }
.btn-glow:hover { filter: brightness(1.06); }

/* figures & grids */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
figure { margin: 0; }
figure img { border-radius: var(--radius); border: 1px solid var(--border); width: 100%; aspect-ratio: 3/2; object-fit: cover; }
figcaption { font-size: .86rem; color: var(--dim); margin-top: .5rem; text-align: center; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 1.8rem; }
.step { background: var(--night-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.step .n { width: 34px; height: 34px; border-radius: 50%; background: var(--amber-deep); color: #241a06;
  display: grid; place-items: center; font-weight: 800; margin-bottom: .7rem; }
.step h3 { margin: 0 0 .35em; font-size: 1.02rem; font-weight: 700; }
.step p { margin: 0; color: var(--dim); font-size: .94rem; }

/* CTA */
.cta { background: linear-gradient(165deg, #12213c, var(--night-2)); border: 1px solid var(--border);
  border-radius: 18px; padding: 3rem 2rem; text-align: center; }
.cta .lede { margin: 0 auto 1.6em; }
.cta .row { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* footer */
.footer { border-top: 1px solid var(--border); margin-top: 3.5rem; padding: 1.6rem 0 2.2rem; font-size: .82rem; color: var(--dim); }
.footer a { color: var(--dim); text-decoration: underline; text-underline-offset: 3px; }
.footer .quirk { margin-top: .6em; font-style: italic; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 1.6rem; padding-top: 1.4rem; }
  .steps { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .section { padding-block: 2.2rem; }
  .cta { padding: 2.2rem 1.2rem; }
}
