/* Pixalene landing page. Colours and type follow the brandbook (pixalane-logos/final/BRANDBOOK.md). */
:root {
  --graphite: #0B1412;
  --surface: #111D1A;
  --surface-2: #16241F;
  --border: #263430;
  --white: #FFFFFF;
  --text: #DDE3E1;
  --muted: #8E9B98;
  --green: #39F36A;
  --radius: 16px;
  --font: "Segoe UI", Inter, system-ui, -apple-system, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--graphite);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--white); line-height: 1.12; letter-spacing: -0.02em; }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 10px;
  font-weight: 600; font-size: 16px; line-height: 1.2;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .nav-links a:focus-visible, .footer a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.btn-primary { background: var(--green); color: #04210D; box-shadow: 0 0 0 0 rgba(57, 243, 106, .0); }
.btn-primary:hover { background: #5BF784; box-shadow: 0 8px 28px -8px rgba(57, 243, 106, .55); }
.btn-ghost { border-color: var(--border); color: var(--white); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: #3D4F4A; background: rgba(255, 255, 255, .05); }
.btn-small { padding: 9px 16px; font-size: 14px; border-radius: 8px; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 20, 18, .78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(38, 52, 48, .7);
}
.nav-row { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand img { height: 36px; width: auto; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav-links a { transition: color .15s ease; }
.nav-links a:hover { color: var(--white); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 104px; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(620px 420px at 78% 30%, rgba(57, 243, 106, .13), transparent 70%),
    radial-gradient(520px 380px at 12% 0%, rgba(0, 189, 242, .09), transparent 70%);
}
.hero-glow::after {
  /* the pixel grid behind the hero */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000 20%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }

.eyebrow, .label {
  text-transform: uppercase; letter-spacing: .18em; font-size: 13px; font-weight: 600; color: var(--muted);
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.dot { width: 9px; height: 9px; border-radius: 2px; background: var(--green); box-shadow: 0 0 14px rgba(57, 243, 106, .8); }

h1 { font-size: clamp(38px, 4.6vw, 60px); font-weight: 700; text-wrap: balance; }
.accent { color: var(--green); }
.lead { margin-top: 24px; max-width: 34em; font-size: 19px; color: #B4BFBC; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin: 38px 0 0; padding: 0; list-style: none; }
.platforms li {
  padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px;
  font-size: 13px; color: var(--muted); background: rgba(17, 29, 26, .6);
}

/* Hero illustration: a programme monitor with a rundown */
.stage { position: relative; padding: 0 0 46px 0; }
.monitor {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--surface);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02) inset;
}
.monitor-bar {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--border);
}
.tally {
  padding: 2px 8px; border-radius: 4px; background: #E5484D; color: #fff;
  font-weight: 700; font-size: 11px; letter-spacing: .08em;
}
.monitor-clock { margin-left: auto; font-variant-numeric: tabular-nums; }

.screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0A2018; }
.pitch {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(255, 255, 255, .16), transparent 70%),
    radial-gradient(40% 30% at 20% 12%, rgba(255, 255, 255, .10), transparent 70%),
    radial-gradient(40% 30% at 80% 12%, rgba(255, 255, 255, .10), transparent 70%),
    repeating-linear-gradient(90deg, #14553A 0 9%, #17603F 9% 18%);
  transform: perspective(520px) rotateX(38deg) scale(1.7);
  transform-origin: 50% 100%;
}
.screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 14, 12, .55), transparent 35%, rgba(6, 14, 12, .65)); }

.scorebug {
  position: absolute; z-index: 2; top: 6%; left: 4.5%;
  display: flex; align-items: stretch; overflow: hidden; border-radius: 6px;
  font-weight: 700; font-size: clamp(10px, 1.25vw, 15px); color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
}
.scorebug span { padding: .45em .7em; background: rgba(11, 20, 18, .92); }
.scorebug .sb-time { background: var(--green); color: #04210D; font-variant-numeric: tabular-nums; }
.scorebug .sb-score { background: #fff; color: var(--graphite); }
.scorebug .sb-score + .sb-score { border-left: 1px solid #C3CCC9; }

.lower {
  position: absolute; z-index: 2; left: 4.5%; bottom: 9%;
  display: flex; align-items: stretch; gap: 0;
  animation: lower-in 7s cubic-bezier(.2, .8, .2, 1) infinite;
}
.lower-pixel { width: clamp(8px, 1.1vw, 14px); background: var(--green); border-radius: 3px 0 0 3px; }
.lower-text {
  display: flex; flex-direction: column; padding: .55em 1.2em .6em .9em;
  background: rgba(11, 20, 18, .93); border-radius: 0 6px 6px 0;
  font-size: clamp(11px, 1.45vw, 18px); line-height: 1.25; color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
}
.lower-text span { font-size: .72em; color: #B4BFBC; }
@keyframes lower-in {
  0%, 6%   { opacity: 0; transform: translateX(-28px); clip-path: inset(0 100% 0 0); }
  16%, 84% { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
  94%, 100% { opacity: 0; transform: translateX(-12px); clip-path: inset(0 100% 0 0); }
}

.rundown {
  position: absolute; right: -14px; bottom: 0; width: min(250px, 58%);
  padding: 12px; border: 1px solid var(--border); border-radius: 12px;
  background: rgba(17, 29, 26, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85);
  font-size: 13px;
}
.rundown-head { margin-bottom: 8px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.row { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 6px; color: #B4BFBC; }
.row i { width: 7px; height: 7px; border-radius: 2px; background: #3D4F4A; flex: none; }
.row b { margin-left: auto; font-size: 10px; letter-spacing: .08em; }
.row.on { background: rgba(255, 107, 61, .16); color: #fff; }
.row.on i, .row.on b { background: #FF6B3D; }
.row.on b { padding: 1px 6px; border-radius: 3px; color: #2A0E04; }
.row.cue i { background: #FACC15; }
.row.cue b { color: #FACC15; }

/* Sections */
.section { padding: 104px 0; }
.section-alt { background: linear-gradient(180deg, #0D1815, var(--graphite)); border-block: 1px solid rgba(38, 52, 48, .6); }
.label { margin-bottom: 14px; color: var(--green); }
h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; }
.sub { margin-top: 16px; max-width: 44em; color: var(--muted); font-size: 18px; }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.feature {
  padding: 28px; border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), #0E1916);
  transition: border-color .2s ease, transform .2s ease;
}
.feature:hover { border-color: #3D4F4A; transform: translateY(-2px); }
.f-icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px;
  border-radius: 11px; color: var(--c);
  background: color-mix(in srgb, var(--c) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}
.f-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.feature p { margin-top: 10px; font-size: 16px; color: var(--muted); }

/* App cards */
.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 52px; }
.app {
  position: relative; display: flex; gap: 20px; align-items: flex-start;
  padding: 22px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.app::before {
  /* each app's own accent, as a soft corner light */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(360px 180px at 0% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%);
  transition: opacity .25s ease;
}
.app:hover { border-color: color-mix(in srgb, var(--c) 55%, var(--border)); transform: translateY(-2px); }
.app:hover::before { opacity: 1; }
.app img { position: relative; flex: none; width: 64px; height: 64px; }
.app > div { position: relative; }
.app h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.app h3 span {
  margin-left: 8px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); vertical-align: middle;
}
.app p { margin-top: 6px; font-size: 15.5px; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 52px 0 0; padding: 0; list-style: none; counter-reset: none; }
.steps li { position: relative; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 50px; right: -19px; width: 19px; height: 1px; background: var(--border);
}
.step-n {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px;
  border-radius: 8px; background: var(--green); color: #04210D; font-weight: 700; font-size: 18px;
}
.steps h3 { font-size: 21px; font-weight: 600; }
.steps p { margin-top: 10px; font-size: 16px; color: var(--muted); }

/* Call to action */
.cta { padding-top: 24px; }
.cta-box {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 64px 32px; border: 1px solid var(--border); border-radius: 24px;
  background:
    radial-gradient(520px 260px at 50% 0%, rgba(57, 243, 106, .14), transparent 70%),
    var(--surface);
}
.cta-box img { margin-bottom: 26px; }
.cta-box p { margin: 16px 0 30px; max-width: 36em; color: var(--muted); font-size: 18px; }

/* Footer */
.footer { padding: 36px 0 44px; border-top: 1px solid var(--border); }
.footer-row { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer img { height: 48px; width: auto; }
.footer nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; color: var(--muted); }
.footer nav a:hover { color: var(--white); }
.copy { font-size: 14px; color: #5F6C69; }

/* Scroll reveal (added by the script; without it nothing is hidden) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease, border-color .2s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Smaller screens */
@media (max-width: 980px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 52px; }
  .stage { max-width: 620px; }
  .rundown { right: 0; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .steps li:not(:last-child)::after { display: none; }
  .section { padding: 76px 0; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .wrap { width: min(1180px, 100% - 36px); }
  .nav-links { display: none; }
  .nav-row .btn { margin-left: auto; }
  .features, .apps { grid-template-columns: 1fr; }
  .app { padding: 18px; gap: 16px; }
  .app img { width: 52px; height: 52px; }
  .app h3 span { display: block; margin: 4px 0 0; }
  .lead { font-size: 17px; }
  .stage { padding-bottom: 0; }
  .rundown { position: static; width: 100%; margin-top: 14px; }
  .footer nav { margin-left: 0; width: 100%; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lower { animation: none; }
  .btn, .feature, .app { transition: none; }
}
