/* spectrumware.boo — brand tokens match spectrumware.net */
:root {
  --black: #000000;
  --ink: #141102;
  --panel: #0d0b02;
  --line: #2a2206;
  --gold: #B38C0A;
  --gold-light: #E8C660;
  --accent: var(--gold-light);   /* change to #F08A3C for pumpkin orange */
  --error: #F08A3C;
  --error-bg: #2a1406;
  --text: #ffffff;
  --text-2: #d9d9d9;
  --text-3: #c7c7c7;
  --muted: #adadad;
  --radius: 20px;
  --display: 'Montserrat', sans-serif;
  --body: 'Open Sans', sans-serif;
  --gold-grad: linear-gradient(90deg, var(--gold), var(--gold-light));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--black); color: var(--text); font-family: var(--body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: var(--gold-light); }
a:hover { color: var(--text); }
h1, h2, h3 { font-family: var(--display); margin: 0; }
p { margin: 0; }
.accent { color: var(--accent); }

.container { width: min(1280px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 960px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold-light); color: var(--ink); padding: 8px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 40px; border-radius: 30px; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, filter .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold-grad); color: var(--ink); }
.btn-gold:hover { color: var(--ink); box-shadow: 0 8px 30px rgba(232, 198, 96, .35); }
.btn-outline { border: 2px solid var(--gold); color: var(--gold-light); }
.btn-outline:hover { background: rgba(179, 140, 10, .12); color: var(--gold-light); }
.btn-dark { background: var(--black); color: var(--gold-light); min-height: 64px; padding: 0 48px; }
.btn-dark:hover { color: var(--text); }
.btn-sm { min-height: 44px; padding: 0 28px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

.eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: linear-gradient(180deg, #3a2e04 0%, var(--black) 100%); border-bottom: 1px solid var(--line); }
.header-inner { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: .06em; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand .accent { letter-spacing: .02em; }
.brand-sm { font-size: 20px; }

/* Animated brand: the S melts into a gold puddle, a ghost rises from it (Spectralware),
   then the ghost melts and the S rises back (Spectrumware). */
.brand-animated { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { position: relative; width: 40px; height: 40px; flex: 0 0 40px; }
.brand-s, .brand-ghost { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 50% 100%; will-change: transform, filter, opacity; }
.brand-ghost { opacity: 0; transform: translateY(30%) scaleY(0); }
.brand.show-ghost .brand-s { opacity: 0; }
.brand.show-ghost .brand-ghost { opacity: 1; transform: none; filter: drop-shadow(0 0 5px rgba(232, 198, 96, .5)); }
.brand-puddle { position: absolute; left: 4%; right: 4%; bottom: -2px; height: 9px; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, var(--gold-light) 0%, var(--gold) 70%, transparent 100%); box-shadow: 0 0 8px rgba(232, 198, 96, .55); opacity: 0; transform: scaleX(.2); transform-origin: 50% 100%; pointer-events: none; }
.brand-word { display: inline-block; transition: text-shadow .5s ease, color .5s ease; }
.brand.is-spectral .brand-word { text-shadow: 0 0 6px rgba(232, 198, 96, .45), 0 0 18px rgba(232, 198, 96, .22); }
.brand.melt-s .brand-s { animation: brand-melt .7s cubic-bezier(.55, 0, .8, .4) forwards; }
.brand.melt-ghost .brand-ghost { animation: brand-melt .7s cubic-bezier(.55, 0, .8, .4) forwards; }
.brand.rise-s .brand-s { animation: brand-rise .7s cubic-bezier(.2, .9, .3, 1.15) forwards; }
.brand.rise-ghost .brand-ghost { animation: ghost-rise .8s cubic-bezier(.2, .9, .3, 1.1) forwards; }
.brand.melt-s .brand-puddle, .brand.melt-ghost .brand-puddle { animation: brand-puddle-in .7s ease-out forwards; }
.brand.rise-s .brand-puddle, .brand.rise-ghost .brand-puddle { animation: brand-puddle-out .8s ease-in forwards; }
.brand.is-paused .brand-s, .brand.is-paused .brand-ghost, .brand.is-paused .brand-puddle { animation-play-state: paused; }
@keyframes brand-melt {
  0%   { transform: scaleY(1) scaleX(1) skewX(0); filter: blur(0); opacity: 1; }
  45%  { transform: scaleY(.72) scaleX(1.06) skewX(-7deg); filter: blur(.3px); opacity: 1; }
  100% { transform: scaleY(.06) scaleX(1.35) skewX(0); filter: blur(2px); opacity: 0; }
}
@keyframes brand-rise {
  0%   { transform: scaleY(.06) scaleX(1.35); filter: blur(2px); opacity: 0; }
  55%  { transform: scaleY(.9) scaleX(1.04) skewX(5deg); filter: blur(.4px); opacity: 1; }
  80%  { transform: scaleY(1.06) scaleX(.98) skewX(-2deg); filter: blur(0); }
  100% { transform: scaleY(1) scaleX(1) skewX(0); filter: blur(0); opacity: 1; }
}
@keyframes ghost-rise {
  0%   { transform: translateY(30%) scaleY(.05) scaleX(1.3); filter: blur(2px); opacity: 0; }
  40%  { transform: translateY(6%) scaleY(.85) scaleX(1.05) skewX(-4deg); filter: blur(.5px); opacity: 1; }
  70%  { transform: translateY(-6%) scaleY(1.05) scaleX(.97) skewX(3deg); filter: blur(0); }
  100% { transform: none; filter: drop-shadow(0 0 5px rgba(232, 198, 96, .5)); opacity: 1; }
}
@keyframes brand-puddle-in  { 0% { opacity: 0; transform: scaleX(.2); } 60% { opacity: 1; transform: scaleX(1.1); } 100% { opacity: 1; transform: scaleX(1); } }
@keyframes brand-puddle-out { 0% { opacity: 1; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(.2); } }
.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav a:not(.btn) { color: var(--text); text-decoration: none; font-family: var(--display); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.site-nav a:not(.btn):hover { color: var(--gold-light); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--gold); border-radius: 10px; background: var(--black); color: var(--gold-light); align-items: center; justify-content: center; cursor: pointer; padding: 0; }

/* Hero */
.hero { background: radial-gradient(ellipse at 75% 40%, #1f1903 0%, var(--black) 65%); padding: 96px 0 104px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); align-items: center; gap: 72px; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-weight: 800; font-size: clamp(44px, 6vw, 76px); line-height: 1.02; letter-spacing: -.02em; }
.lead { max-width: 580px; font-size: 20px; color: var(--text-2); }
.tagline { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .04em; color: var(--muted); }
.ghost { animation: float 3.2s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-4px); } }

/* Haunted spreadsheet */
.sheet { margin: 0; border: 1px solid var(--gold); border-radius: var(--radius); background: var(--panel); box-shadow: 0 0 80px rgba(179, 140, 10, .22); overflow: hidden; transform: rotate(1.5deg); }
.sheet-titlebar { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 18px; background: var(--ink); border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 13px; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #3a2e04; }
.sheet-name { padding-left: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-grid { display: grid; grid-template-columns: 44px repeat(5, minmax(0, 1fr)); font-family: 'Courier New', monospace; font-size: 14px; }
.cell { height: 44px; display: flex; align-items: center; padding: 0 10px; color: var(--text-2); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; transition: background .3s, color .3s; }
.cell.head { justify-content: center; padding: 0; background: var(--ink); color: #8a8a8a; }
.cell.err { background: var(--error-bg); color: var(--error); font-weight: 700; }
.cell.flicker { animation: flicker .6s steps(2) 2; }
@keyframes flicker { 50% { opacity: .25; } }
.sheet-tabs { height: 44px; display: flex; background: var(--ink); font-family: var(--display); font-size: 12px; color: var(--muted); overflow: hidden; }
.sheet-tabs span { display: flex; align-items: center; padding: 0 16px; border-right: 1px solid var(--line); white-space: nowrap; }
.sheet-tabs .active { background: var(--panel); color: var(--gold-light); }

/* Sections */
.section { padding: 110px 0; }
.section-alt { background: var(--ink); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; margin-bottom: 56px; }
.section-head h2 { font-weight: 700; font-size: clamp(32px, 4vw, 48px); line-height: 1.15; }
.sub { font-size: 19px; color: var(--text-3); }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.card { padding: 40px; border: 1px solid var(--gold); border-radius: var(--radius); background: var(--panel); display: flex; flex-direction: column; gap: 16px; color: var(--gold-light); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 0 50px rgba(179, 140, 10, .2); }
.card-label { font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.card h3 { font-weight: 700; font-size: 28px; line-height: 1.25; color: var(--text); }
.card p:last-child { font-size: 17px; color: var(--text-3); }

.tt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.tt { padding: 44px; border-radius: var(--radius); }
.tt h3 { font-weight: 800; font-size: 30px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 22px; }
.tt ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; font-size: 18px; line-height: 1.5; }
.tt li { position: relative; padding-left: 32px; }
.tt-trick { border: 1px solid #474747; background: var(--black); }
.tt-trick h3 { color: var(--muted); }
.tt-trick li { color: var(--text-3); }
.tt-trick li::before { content: "✕"; position: absolute; left: 0; color: var(--muted); }
.tt-treat { border: 2px solid var(--gold-light); background: var(--panel); box-shadow: 0 0 60px rgba(232, 198, 96, .15); }
.tt-treat h3 { color: var(--accent); }
.tt-treat li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-light); font-weight: 700; }
.tt-treat strong { font-family: var(--display); color: var(--gold-light); }

.stats { padding: 80px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--text-3); }
.stat > span:last-child { max-width: 290px; line-height: 1.45; }
.stat-num { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 5vw, 60px); line-height: 1.1; color: var(--accent); }

.testimonial { border-top: 1px solid var(--line); text-align: center; }
.testimonial .container { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.testimonial blockquote { margin: 0; display: flex; flex-direction: column; gap: 20px; }
.testimonial blockquote p { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3vw, 36px); line-height: 1.4; }
.testimonial footer { color: var(--muted); font-size: 17px; }
.text-link { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }

.cta-wrap { padding-bottom: 96px; }
.cta { padding: 90px 80px; border-radius: 28px; background: linear-gradient(120deg, var(--gold) 0%, var(--gold-light) 100%); display: flex; align-items: center; justify-content: space-between; gap: 48px; color: var(--ink); }
.cta h2 { font-weight: 800; font-size: clamp(34px, 4vw, 52px); line-height: 1.1; margin-bottom: 14px; }
.cta p { font-size: 20px; }
.cta .btn { flex-shrink: 0; }

.site-footer { border-top: 1px solid var(--line); padding: 48px 0; color: var(--muted); font-size: 15px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { text-decoration: none; }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .sheet.reveal.in { transform: rotate(1.5deg); }

/* Tablet */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .sheet { max-width: 600px; }
  .cta { flex-direction: column; align-items: flex-start; padding: 64px 48px; }
}

/* Mobile */
@media (max-width: 860px) {
  .header-inner { height: 72px; }
  .brand { font-size: 18px; }
  .brand-animated { gap: 8px; }
  .brand-logo { width: 32px; height: 32px; flex-basis: 32px; }
  .brand-puddle { height: 7px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 24px; background: var(--black); border-bottom: 1px solid var(--line); display: none; }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 16px; }
  html { scroll-padding-top: 72px; }
  .hero { padding: 48px 0 72px; }
  .lead { font-size: 17px; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; }
  .eyebrow { font-size: 12px; }
  .sheet { transform: none; }
  .js .sheet.reveal.in { transform: none; }
  .sheet-grid { font-size: 12px; grid-template-columns: 32px repeat(5, minmax(0, 1fr)); }
  .cell { padding: 0 6px; height: 38px; }
  .section { padding: 72px 0; }
  .card-grid, .tt-grid { grid-template-columns: 1fr; }
  .card, .tt { padding: 28px; }
  .card h3 { font-size: 23px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .cta { padding: 48px 24px; }
  .cta .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .brand-puddle { opacity: 0 !important; }
}
