:root {
  color-scheme: dark;
  --red: #b52a22;
  --red-bright: #e44836;
  --ink: #151818;
  --paper: #f4f2ed;
  --muted: #6a6f6d;
  --line: rgba(21, 24, 24, 0.15);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; letter-spacing: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
[hidden] { display: none !important; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 88px;
  padding: 18px clamp(22px, 4vw, 72px);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(180deg, rgba(13,5,4,.7), transparent);
}
.site-brand img { width: 168px; height: auto; }
.site-header nav { display: flex; gap: 30px; }
.site-header nav a, .header-action { font-size: 13px; font-weight: 750; text-decoration: none; }
.site-header nav a { color: rgba(255,255,255,.78); }
.site-header nav a:hover { color: #fff; }
.header-action { justify-self: end; padding-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,.72); }

.hero {
  position: relative;
  min-height: min(860px, 92vh);
  overflow: hidden;
  color: #fff;
  background: #260b09;
}
.hero-wall { position: absolute; inset: 0; overflow: hidden; }
.hero-track {
  position: absolute;
  inset: -9% -5% -8% 26%;
  background:
    radial-gradient(circle at 72% 20%, rgba(255,134,107,.38), transparent 32%),
    linear-gradient(135deg, #8f1f19, #4c100d 55%, #160806);
  transform: perspective(1300px) rotateY(-8deg) rotateZ(-2deg);
  transform-origin: right center;
}
.hero-track::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.24) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px);
  background-size: 90px 90px;
}
.photo-frame {
  position: absolute;
  z-index: 2;
  margin: 0;
  padding: 9px;
  border: 9px solid #101111;
  background: #f7f3ea;
  box-shadow: 17px 20px 35px rgba(0,0,0,.44), inset 0 0 0 3px #fff;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame.portrait { aspect-ratio: 3 / 4; }
.photo-frame.landscape { aspect-ratio: 4 / 3; }
.frame-one { left: 8%; top: 5%; width: 17%; transform: rotate(-2deg); }
.frame-two { left: 32%; top: 4%; width: 28%; transform: rotate(1.5deg); }
.frame-three { left: 68%; top: 7%; width: 18%; transform: rotate(-1deg); }
.frame-four { left: 3%; top: 52%; width: 16%; transform: rotate(2deg); }
.frame-five { left: 25%; top: 54%; width: 31%; transform: rotate(-1deg); }
.frame-six { left: 64%; top: 49%; width: 20%; transform: rotate(2deg); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,5,4,.96) 0%, rgba(15,5,4,.85) 29%, rgba(15,5,4,.2) 62%, rgba(15,5,4,.08)), linear-gradient(180deg, rgba(0,0,0,.12), transparent 65%, rgba(0,0,0,.42)); }
.hero-copy {
  position: relative;
  z-index: 3;
  width: min(650px, 88%);
  padding: clamp(190px, 25vh, 260px) 0 118px clamp(24px, 7vw, 132px);
}
.eyebrow { display: block; margin-bottom: 18px; color: rgba(255,255,255,.65); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .18em; }
.eyebrow.dark { color: var(--red); }
.hero h1 { margin: 0; font-size: clamp(76px, 11vw, 148px); line-height: .85; font-weight: 850; }
.hero-copy > p { max-width: 580px; margin: 34px 0; color: rgba(255,255,255,.78); font-size: clamp(18px, 2vw, 23px); line-height: 1.52; }
.hero-actions, .access-links { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.primary-action { display: inline-grid; place-items: center; min-height: 50px; padding: 13px 21px; color: #fff; border: 1px solid rgba(255,255,255,.7); background: rgba(255,255,255,.08); font-size: 13px; font-weight: 850; text-decoration: none; }
.primary-action:hover { color: #2b0b09; background: #fff; }
.text-action { color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; }
.text-action span { display: inline-block; margin-left: 8px; transition: transform .2s ease; }
.text-action:hover span { transform: translateX(4px); }
.live-note { display: flex; align-items: center; gap: 9px; margin-top: 40px; color: rgba(255,255,255,.56); font-size: 12px; }
.live-note span { width: 8px; height: 8px; border-radius: 50%; background: #6ee8a7; box-shadow: 0 0 0 5px rgba(110,232,167,.12); }

.statement { display: grid; grid-template-columns: 70px .65fr 1fr; gap: clamp(25px, 6vw, 100px); align-items: start; padding: clamp(80px, 11vw, 160px) clamp(24px, 7vw, 132px); background: #fff; }
.section-number { color: #aaa; font-size: 12px; font-weight: 850; }
.statement p { margin: 0; }
.statement-lead { font-size: clamp(34px, 5vw, 68px); line-height: 1.02; font-weight: 800; }
.statement-copy { max-width: 680px; color: #575d5b; font-size: clamp(21px, 3vw, 37px); line-height: 1.3; }

.process { padding: clamp(86px, 11vw, 155px) clamp(24px, 7vw, 132px); }
.section-heading { display: grid; grid-template-columns: .8fr 1.2fr; margin-bottom: 70px; }
.section-heading h2 { max-width: 800px; margin: 0; font-size: clamp(42px, 6vw, 80px); line-height: 1.04; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.process-grid article { position: relative; min-width: 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.step-number { display: block; margin-bottom: 24px; color: var(--red); font-size: 12px; font-weight: 900; }
.process-grid h3 { margin: 27px 0 10px; font-size: 27px; }
.process-grid p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.phone-preview, .moderation-preview, .screen-preview { position: relative; height: 360px; overflow: hidden; background: #171c1c; }
.phone-preview { display: grid; place-items: end center; padding-top: 24px; background: linear-gradient(145deg, #cc3c30, #64120e); }
.phone-preview > img { width: 62%; height: 90%; object-fit: cover; border: 8px solid #171717; border-bottom: 0; border-radius: 28px 28px 0 0; }
.camera-ui { position: absolute; inset: auto 19% 0; display: flex; align-items: center; justify-content: center; height: 67px; background: rgba(0,0,0,.48); backdrop-filter: blur(8px); }
.camera-ui b { width: 41px; height: 41px; border: 4px solid #fff; border-radius: 50%; box-shadow: inset 0 0 0 3px rgba(255,255,255,.24); }
.moderation-preview { display: grid; grid-template-columns: 22% 1fr; background: #e9edef; }
.mini-sidebar { background: #253036; }
.mini-content { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; align-content: start; padding: 25px 17px; }
.mini-content span { height: 50px; border: 1px solid #d3dcdf; background: #fff; }
.mini-content span:first-child { grid-column: 1 / -1; height: 28px; width: 55%; }
.mini-content i { aspect-ratio: 1; background: linear-gradient(145deg, #fff, #dfe6e8); border: 1px solid #cad3d6; }
.screen-preview { padding: 39px 24px; background: radial-gradient(circle at 80% 15%, #e64a3a, transparent 35%), linear-gradient(145deg, #851c16, #2d0d0b); }
.screen-preview::before { content: ""; position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px); background-size: 45px 45px; }
.screen-track { position: relative; display: flex; align-items: center; gap: 13px; width: 130%; }
.screen-track img { width: 32%; aspect-ratio: 3 / 4; object-fit: cover; padding: 6px; border: 7px solid #141414; background: #fff; box-shadow: 8px 10px 14px rgba(0,0,0,.32); }
.screen-track img:nth-child(2) { transform: translateY(40px); }

.experience { display: grid; grid-template-columns: minmax(0,.8fr) minmax(520px,1.2fr); gap: clamp(35px, 8vw, 130px); padding: clamp(90px, 11vw, 155px) clamp(24px, 7vw, 132px); color: #fff; background: #151919; }
.experience h2 { margin: 0 0 24px; font-size: clamp(46px, 6vw, 78px); line-height: 1.02; }
.experience-copy > p { max-width: 600px; color: rgba(255,255,255,.6); font-size: 18px; line-height: 1.6; }
.feature-list { margin-top: 45px; border-top: 1px solid rgba(255,255,255,.18); }
.feature-list div { display: grid; gap: 7px; padding: 19px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.feature-list strong { font-size: 17px; }
.feature-list span { color: rgba(255,255,255,.55); font-size: 14px; line-height: 1.55; }
.experience-visual { position: relative; min-height: 700px; }
.vote-surface, .leader-surface { position: absolute; overflow: hidden; box-shadow: 0 35px 80px rgba(0,0,0,.4); }
.vote-surface { left: 0; top: 0; width: 74%; padding: 35px; background: linear-gradient(145deg, #cd3a2e, #63140f); transform: rotate(-3deg); }
.vote-surface > span { display: block; margin-bottom: 25px; font-size: 22px; font-weight: 800; }
.vote-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vote-cards figure { position: relative; margin: 0; aspect-ratio: 3 / 4; background: #fff; }
.vote-cards img { width: 100%; height: 100%; object-fit: cover; }
.vote-cards b { position: absolute; right: 10px; top: 10px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #e53a45; background: rgba(255,255,255,.86); font-size: 23px; }
.leader-surface { right: 0; bottom: 0; width: 78%; padding: 36px 26px 32px; color: #fff; background: linear-gradient(145deg, #292135, #17141f); transform: rotate(2deg); }
.leader-surface > small { display: block; margin-bottom: 32px; text-align: center; color: rgba(255,255,255,.65); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.podium-row { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; align-items: end; }
.podium-row figure { display: grid; justify-items: center; gap: 8px; margin: 0; }
.podium-row img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid rgba(255,255,255,.35); }
.podium-row span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #31200a; background: #eec45c; font-weight: 900; }
.podium-row .first img { height: 280px; }

.control-story { padding: clamp(90px, 11vw, 155px) clamp(24px, 7vw, 132px); background: #eef1f0; }
.section-heading.compact { margin-bottom: 55px; }
.control-dashboard { display: grid; grid-template-columns: 220px 1fr; min-height: 560px; overflow: hidden; border: 1px solid #cfd5d4; box-shadow: 0 30px 75px rgba(34,48,46,.16); background: #fff; }
.dashboard-sidebar { display: flex; flex-direction: column; gap: 3px; padding: 27px 16px; color: #bfc7c6; background: #273031; }
.dashboard-sidebar img { width: 145px; margin: 0 8px 35px; }
.dashboard-sidebar span { padding: 12px; font-size: 13px; }
.dashboard-sidebar span.active { color: #fff; background: #3a4546; border-left: 3px solid #5cc7bd; }
.dashboard-content { padding: 38px; background: #f7f9f8; }
.dashboard-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.dashboard-title small, .dashboard-title strong { display: block; }
.dashboard-title small { margin-bottom: 7px; color: #16877d; font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.dashboard-title strong { font-size: 31px; }
.dashboard-title button { min-height: 42px; border: 0; padding: 10px 16px; color: #fff; background: #16877d; font-weight: 800; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 34px 0 20px; }
.dashboard-metrics span { display: grid; gap: 14px; padding: 20px; border: 1px solid #dce2e0; background: #fff; }
.dashboard-metrics small { color: #78817f; }
.dashboard-metrics strong { font-size: 30px; }
.dashboard-events { display: grid; gap: 10px; }
.dashboard-events span { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 13px; padding: 15px; border: 1px solid #dce2e0; background: #fff; }
.dashboard-events i { display: grid; place-items: center; width: 44px; height: 44px; color: #136d66; background: #dff1ef; font-style: normal; font-weight: 900; }
.dashboard-events small { padding: 5px 8px; color: #23794f; background: #e4f3e9; }

.access { display: grid; grid-template-columns: 1fr minmax(420px,.7fr); gap: clamp(45px, 9vw, 140px); align-items: center; padding: clamp(90px, 12vw, 170px) clamp(24px, 7vw, 132px); color: #fff; background: radial-gradient(circle at 83% 10%, rgba(255,115,90,.32), transparent 29%), linear-gradient(145deg, #9c211b, #4d100d 56%, #210a08); }
.access h2 { max-width: 750px; margin: 0; font-size: clamp(48px, 7vw, 88px); line-height: 1; }
.access-copy > p { max-width: 700px; margin: 28px 0 34px; color: rgba(255,255,255,.67); font-size: 18px; line-height: 1.65; }
.primary-action.light { color: #52120e; background: #fff; }
.display-launcher { display: grid; gap: 12px; padding: 34px; border: 1px solid rgba(255,255,255,.25); background: rgba(20,5,4,.4); backdrop-filter: blur(18px); box-shadow: 0 25px 60px rgba(0,0,0,.25); }
.display-launcher > span { color: rgba(255,255,255,.55); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .16em; }
.display-launcher h3 { margin: 0 0 14px; font-size: 27px; }
.display-launcher label { color: rgba(255,255,255,.66); font-size: 12px; font-weight: 750; }
.code-row { display: grid; grid-template-columns: 1fr auto; }
.code-row input, .code-row button { min-height: 48px; border: 1px solid rgba(255,255,255,.33); border-radius: 0; }
.code-row input { min-width: 0; padding: 10px 13px; color: #fff; outline: 0; background: rgba(0,0,0,.2); }
.code-row input:focus { border-color: #fff; }
.code-row button { padding: 10px 17px; color: #4b110d; background: #fff; font-weight: 850; cursor: pointer; }
.error-text { margin: 2px 0 0; color: #ffd6d1; font-size: 12px; }

footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 125px; padding: 30px clamp(24px, 7vw, 132px); color: rgba(255,255,255,.55); background: #141717; font-size: 12px; }
footer img { width: 155px; }
footer p { margin: 0; }
footer a { justify-self: end; color: rgba(255,255,255,.75); text-decoration: none; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero-track { left: 12%; }
  .statement { grid-template-columns: 50px 1fr; }
  .statement-copy { grid-column: 2; }
  .experience { grid-template-columns: 1fr; }
  .experience-visual { min-height: 650px; }
  .access { grid-template-columns: 1fr; }
  .display-launcher { width: min(650px, 100%); }
}

@media (max-width: 760px) {
  .site-header { min-height: 72px; padding: 16px 20px; }
  .site-brand img { width: 135px; }
  .header-action { font-size: 12px; }
  .hero { min-height: 760px; }
  .hero-track { inset: 0 -55% 0 12%; opacity: .72; transform: none; }
  .hero-shade { background: linear-gradient(90deg, rgba(15,5,4,.93), rgba(15,5,4,.53)), linear-gradient(180deg, transparent 60%, rgba(0,0,0,.55)); }
  .hero-copy { width: 100%; padding: 175px 24px 90px; }
  .hero h1 { font-size: clamp(72px, 25vw, 110px); }
  .hero-copy > p { font-size: 18px; }
  .statement { grid-template-columns: 1fr; gap: 24px; padding-block: 80px; }
  .statement-copy { grid-column: 1; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 45px; }
  .process-grid { grid-template-columns: 1fr; gap: 60px; }
  .phone-preview, .moderation-preview, .screen-preview { height: 390px; }
  .experience { grid-template-columns: minmax(0,1fr); }
  .experience-visual { min-height: 570px; }
  .vote-surface { width: 82%; padding: 24px; }
  .leader-surface { width: 87%; padding: 25px 17px; }
  .podium-row .first img { height: 220px; }
  .control-dashboard { grid-template-columns: 74px 1fr; min-height: 500px; }
  .dashboard-sidebar { padding: 20px 9px; }
  .dashboard-sidebar img { width: 55px; margin: 0 0 28px; object-position: left; }
  .dashboard-sidebar span { overflow: hidden; white-space: nowrap; font-size: 0; }
  .dashboard-sidebar span::first-letter { font-size: 13px; }
  .dashboard-content { padding: 22px 14px; overflow: hidden; }
  .dashboard-title button { display: none; }
  .dashboard-metrics { grid-template-columns: 1fr 1fr; }
  .dashboard-metrics span:last-child { display: none; }
  .dashboard-metrics span { padding: 13px; }
  .dashboard-events span { grid-template-columns: 38px 1fr; }
  .dashboard-events small { display: none; }
  .access { grid-template-columns: minmax(0,1fr); }
  .code-row { grid-template-columns: 1fr; gap: 8px; }
  footer { grid-template-columns: 1fr; justify-items: start; }
  footer a { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
