:root {
  --bg-1: #080909;
  --bg-2: #17191b;
  --bg-3: #f4f4f2;
  --surface: rgba(248, 248, 246, 0.92);
  --surface-strong: #ffffff;
  --ink: #17191b;
  --ink-soft: #60656a;
  --line: rgba(23, 25, 27, 0.14);
  --gold: #e21d2d;
  --gold-deep: #b41220;
  --coral: #f0444f;
  --mint: #f1f1ef;
  --tv-shell: #17191b;
  --tv-edge: #383b3f;
  --screen-bg: #0b0c0e;
  --screen-panel: rgba(255, 255, 255, 0.06);
  --screen-text: #ffffff;
  --screen-muted: rgba(255, 255, 255, 0.7);
  --shadow-soft: 0 30px 80px rgba(3, 12, 17, 0.2);
  --shadow-strong: 0 40px 120px rgba(3, 12, 17, 0.45);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at bottom right, rgba(226, 29, 45, 0.22), transparent 24%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2) 46%, #2a2022 100%);
}

.page-shell {
  min-height: 100vh;
  padding: clamp(24px, 4vw, 52px);
  display: grid;
  gap: 28px;
  position: relative;
}

.hero-copy {
  position: relative;
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 500px);
  grid-template-areas:
    "eyebrow side"
    "title side"
    "description side";
  justify-content: space-between;
  column-gap: clamp(28px, 7vw, 120px);
  align-items: start;
}

.eyebrow {
  grid-area: eyebrow;
  display: inline-flex;
  justify-self: start;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(226, 29, 45, 0.18);
  color: #ff7d87;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-copy h1 {
  grid-area: title;
  margin: 18px 0 12px;
  max-width: 760px;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.headline-accent {
  color: var(--coral);
}

.headline-brand {
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.08em;
}

.hero-copy p {
  grid-area: description;
  margin: 0;
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.65;
}

.hero-side {
  grid-area: side;
  align-self: center;
  justify-self: center;
  width: min(100%, 460px);
  transform: translateX(clamp(-180px, -10vw, -70px));
}

.feature-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 12px;
}

.feature-pills span {
  display: grid;
  place-items: center;
  min-height: 58px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
}

.feature-pills span:nth-child(n + 4) {
  transform: translateX(34px);
}

.experience-grid {
  width: min(100%, 1600px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 0.54fr);
  gap: 28px;
  align-items: center;
}

.tv-stage {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
}

.interaction-cue {
  position: absolute;
  top: 14px;
  right: -10px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 4;
  pointer-events: none;
}

.interaction-cue-text {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  animation: cuePulse 1.8s ease-in-out infinite;
}

.interaction-arrow {
  display: flex;
  align-items: center;
  animation: cueSlide 1.8s ease-in-out infinite;
}

.interaction-arrow-line {
  width: 84px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(226, 29, 45, 0.96));
  box-shadow: 0 0 18px rgba(226, 29, 45, 0.3);
}

.interaction-arrow-head {
  width: 18px;
  height: 18px;
  margin-left: -2px;
  border-top: 4px solid #ff6671;
  border-right: 4px solid #ff6671;
  transform: rotate(45deg);
  filter: drop-shadow(0 0 10px rgba(226, 29, 45, 0.42));
}

.tv-glow {
  position: absolute;
  inset: 12% 14% 28%;
  border-radius: 40px;
  background: radial-gradient(circle, rgba(226, 29, 45, 0.2), transparent 65%);
  filter: blur(36px);
}

.tv-shell {
  position: relative;
  width: min(100%, 920px);
}

.tv-bezel {
  position: relative;
  padding: 18px;
  border-radius: 34px;
  background: linear-gradient(145deg, var(--tv-edge), var(--tv-shell));
  box-shadow: var(--shadow-strong);
}

.tv-bezel::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.tv-screen {
  position: relative;
  min-height: 520px;
  border-radius: 22px;
  padding: 26px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 22%),
    linear-gradient(180deg, #1a1c1f, var(--screen-bg));
  color: var(--screen-text);
}

.tv-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.02) 2px,
    transparent 2px,
    transparent 6px
  );
  opacity: 0.22;
  pointer-events: none;
}

.broadcast-header,
.screen-body,
.screen-footer {
  position: relative;
  z-index: 1;
}

.broadcast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: "Oswald", sans-serif;
  font-size: 1.3rem;
  background: linear-gradient(145deg, var(--gold), var(--coral));
  color: #ffffff;
  box-shadow: 0 12px 34px rgba(226, 29, 45, 0.3);
}

.brand-name,
.screen-kicker,
.screen-caption,
.sidecard-label,
.screen-footer span,
.pad-label,
.pad-display-label,
.pad-state,
.pad-topline {
  margin: 0;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
}

.brand-tag {
  margin-top: 2px;
  font-size: 0.9rem;
  color: var(--screen-muted);
}

.live-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(226, 29, 45, 0.16);
  border: 1px solid rgba(255, 103, 113, 0.34);
  color: #ff9da4;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.screen-body {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 260px;
  gap: 20px;
}

.screen-primary,
.screen-sidecard {
  min-height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: var(--screen-panel);
  backdrop-filter: blur(12px);
}

.screen-primary {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.screen-kicker {
  color: #ff6671;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 1rem;
  font-weight: 800;
}

.screen-number {
  margin-top: 12px;
  font-family: "Oswald", sans-serif;
  font-size: clamp(6rem, 14vw, 10rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-shadow: 0 0 32px rgba(226, 29, 45, 0.24);
}

.screen-caption {
  margin-top: 14px;
  color: var(--screen-muted);
  font-size: 1rem;
}

.screen-sidecard {
  padding: 22px;
}

.sidecard-label {
  color: #ff6671;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  font-weight: 700;
}

.history-list {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.history-item,
.history-empty {
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
}

.history-empty {
  color: var(--screen-muted);
  font-size: 0.95rem;
}

.history-item span:last-child {
  color: #ff6671;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.screen-footer {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--screen-muted);
  font-size: 0.88rem;
}

.tv-stand {
  width: 180px;
  height: 54px;
  margin: -4px auto 0;
  background: linear-gradient(180deg, #3a3d40, #131416);
  clip-path: polygon(43% 0, 57% 0, 68% 100%, 32% 100%);
}

.tv-base {
  width: 360px;
  height: 28px;
  margin: -2px auto 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #4a4d50, #161719);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.28);
}

.pad-panel {
  display: grid;
  justify-items: end;
}

.interaction-cue-vertical {
  position: static;
  margin-bottom: 14px;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.interaction-arrow-vertical {
  flex-direction: column;
}

.interaction-arrow-line-vertical {
  width: 4px;
  height: 64px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(226, 29, 45, 0.96));
}

.interaction-arrow-head-vertical {
  margin-left: 0;
  margin-top: -2px;
  transform: rotate(135deg);
}

.pad-card {
  width: min(100%, 500px);
  padding: 18px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(250, 250, 248, 0.98), rgba(232, 232, 230, 0.96));
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.pad-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pad-label {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-deep);
}

.pad-state {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.pad-display {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #1e262d, #11171b);
  color: #ffffff;
}

.pad-display-label {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.pad-display-value {
  margin-top: 10px;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.5rem, 4.2vw, 3.8rem);
  line-height: 0.9;
  letter-spacing: 0.08em;
  text-align: right;
}

.keypad {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.key,
.action-button {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.key:active,
.action-button:active {
  transform: translateY(2px) scale(0.99);
}

.key {
  min-height: 64px;
  border-radius: 16px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.42rem;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(21, 33, 39, 0.08);
}

.key:hover,
.action-button:hover {
  filter: brightness(1.03);
}

.key-alt {
  background: #f8dfe1;
  color: #941823;
}

.action-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 9px;
}

.action-button {
  min-height: 48px;
  border-radius: 15px;
  font-weight: 800;
  font-size: 0.92rem;
}

.action-button-secondary {
  background: #e3e3e0;
  color: #34373a;
}

.action-button-primary {
  background: linear-gradient(135deg, var(--gold), var(--coral));
  color: #ffffff;
  box-shadow: 0 20px 34px rgba(226, 29, 45, 0.3);
}

@keyframes cueSlide {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(10px);
  }
}

@keyframes cuePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(226, 29, 45, 0);
  }

  50% {
    transform: scale(1.03);
    box-shadow: 0 0 22px rgba(226, 29, 45, 0.22);
  }
}

@media (max-width: 1080px) {
  .hero-copy {
    min-height: 0;
    display: block;
  }

  .hero-side {
    width: auto;
    margin-top: 20px;
    transform: none;
  }

  .feature-pills {
    display: flex;
    flex-wrap: wrap;
    position: static;
    width: auto;
    flex-direction: row;
    align-items: initial;
    transform: none;
  }

  .feature-pills span:nth-child(n + 4) {
    transform: none;
  }

  .experience-grid {
    grid-template-columns: 1fr;
  }

  .pad-panel {
    justify-items: stretch;
  }

  .interaction-cue-vertical {
    margin-bottom: 16px;
  }

  .pad-card {
    width: 100%;
  }

  .screen-body {
    grid-template-columns: 1fr;
  }

  .screen-primary,
  .screen-sidecard {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 18px;
  }

  .tv-screen {
    min-height: 420px;
    padding: 18px;
  }

  .broadcast-header,
  .screen-footer,
  .pad-topline {
    flex-direction: column;
    align-items: flex-start;
  }

  .screen-primary {
    padding: 24px 18px;
  }

  .tv-base {
    width: 220px;
  }

  .key {
    min-height: 72px;
  }

  .action-row {
    grid-template-columns: 1fr;
  }

  .interaction-arrow-line-vertical {
    height: 48px;
  }
}
