:root {
  --felt-base: #075f48;
  --felt-deep: #043b30;
  --felt-bright: #0b7a5a;
  --felt-ink: #021f1b;
  --felt-line: rgba(113, 198, 163, 0.24);
  --cream: #f8f0df;
  --paper: #f5ead8;
  --paper-warm: #ead9bc;
  --ink: #18150f;
  --muted: #6e6658;
  --mint: #34d0aa;
  --mint-strong: #28bd99;
  --coral: #e55355;
  --gold: #e8bd4e;
  --blue: #2453d8;
  --purple: #bd31c9;
  --shadow-green: rgba(2, 31, 27, 0.34);
  --shadow-paper: rgba(67, 43, 18, 0.2);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--felt-base);
  font-family: ui-rounded, "SF Pro Rounded", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.035;
  background-image:
    repeating-linear-gradient(0deg, #fff 0, #fff 1px, transparent 1px, transparent 7px),
    repeating-linear-gradient(90deg, #000 0, #000 1px, transparent 1px, transparent 9px);
  mix-blend-mode: overlay;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 80;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--paper);
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5%, 72px);
  color: var(--cream);
  background: linear-gradient(to bottom, rgba(2, 31, 27, 0.82), rgba(2, 31, 27, 0.2), transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img {
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(2, 31, 27, 0.3);
}

nav {
  display: flex;
  gap: 22px;
  color: rgba(248, 240, 223, 0.76);
  font-size: 0.9rem;
  font-weight: 850;
}

nav a,
.button {
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

nav a:hover {
  color: var(--cream);
}

nav a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.table-surface {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 62% 35%, rgba(11, 122, 90, 0.86), transparent 34rem),
    radial-gradient(circle at 12% 80%, rgba(52, 208, 170, 0.12), transparent 24rem),
    var(--felt-base);
}

.table-surface::before,
.table-surface::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.table-surface::before {
  inset: 0;
  opacity: 0.24;
  background:
    radial-gradient(circle at 18% 10%, transparent 0 5.2rem, rgba(248, 240, 223, 0.12) 5.25rem 5.32rem, transparent 5.38rem),
    radial-gradient(circle at 82% 78%, transparent 0 10rem, rgba(248, 240, 223, 0.08) 10.05rem 10.12rem, transparent 10.18rem);
}

.table-surface::after {
  width: 18rem;
  height: 22rem;
  left: 8%;
  top: 4rem;
  opacity: 0.08;
  background:
    radial-gradient(circle at 38% 28%, var(--cream) 0 3.1rem, transparent 3.2rem),
    radial-gradient(circle at 62% 28%, var(--cream) 0 3.1rem, transparent 3.2rem),
    radial-gradient(circle at 50% 50%, var(--cream) 0 3.7rem, transparent 3.8rem),
    linear-gradient(var(--cream), var(--cream));
  background-repeat: no-repeat;
  background-size: 100% 80%, 100% 80%, 100% 80%, 6.8rem 5rem;
  background-position: 0 0, 0 0, 0 0, center 12.8rem;
  border-radius: 4rem;
}

.hero {
  min-height: 92dvh;
  display: grid;
  grid-template-columns: minmax(18rem, 0.86fr) minmax(24rem, 1.14fr);
  gap: clamp(2rem, 6%, 6rem);
  align-items: center;
  padding: 7.5rem clamp(1.25rem, 5%, 4.5rem) 4.2rem;
}

.hero-copy,
.hero-stage,
.section-heading,
.demo-board,
.ipad-layout,
.deck-copy,
.deck-fan,
.honor-panel {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.kicker {
  margin: 0 0 0.9rem;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0;
}

h1,
h2,
h3,
p,
dl {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.1rem;
  color: var(--cream);
  font-size: 7.2rem;
  line-height: 0.86;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 1rem;
  font-size: 4rem;
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.55rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.lede {
  max-width: 39rem;
  margin-bottom: 1.8rem;
  color: rgba(248, 240, 223, 0.9);
  font-size: 1.35rem;
  line-height: 1.58;
  text-wrap: pretty;
}

.lede span {
  display: block;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0 1.2rem;
  border: 1px solid rgba(248, 240, 223, 0.26);
  border-radius: var(--radius-sm);
  font-weight: 900;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(1px) scale(0.99);
}

.button.primary {
  color: var(--felt-ink);
  background: var(--mint);
  border-color: var(--mint);
  box-shadow: 0 16px 34px rgba(2, 31, 27, 0.22);
}

.button.secondary {
  color: var(--cream);
  background: rgba(248, 240, 223, 0.12);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 44rem;
  margin: 2.3rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid rgba(248, 240, 223, 0.18);
}

.hero-metrics div {
  min-width: 0;
}

.hero-metrics dt {
  margin-bottom: 0.35rem;
  color: #fff8e8;
  font-size: 1.15rem;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.hero-metrics dd {
  margin: 0;
  color: rgba(248, 240, 223, 0.72);
  font-size: 0.92rem;
  line-height: 1.5;
}

.hero-stage {
  min-height: 42rem;
}

.device {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 30px 80px rgba(2, 31, 27, 0.32);
}

.device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--felt-base);
}

.phone {
  padding: 0.55rem;
  border-radius: 2.3rem;
}

.phone img {
  border-radius: 1.75rem;
}

.phone.portrait {
  width: min(23rem, 82%);
  aspect-ratio: 1206 / 2622;
}

.phone.landscape {
  width: min(42rem, 100%);
  aspect-ratio: 2622 / 1206;
  border-radius: 2rem;
}

.phone.landscape img {
  border-radius: 1.45rem;
}

.hero-phone {
  position: relative;
  z-index: 2;
  margin-left: auto;
  margin-right: 8%;
  transform: rotate(2.5deg);
}

.section {
  padding: 6.2rem clamp(1.25rem, 5%, 4.5rem);
}

.section-heading {
  width: min(65rem, 100%);
  margin: 0 auto 3.2rem;
}

.section-heading p,
.deck-copy p {
  max-width: 43rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.75;
  text-wrap: pretty;
}

.section-heading.light p,
.deck-copy p {
  color: rgba(248, 240, 223, 0.74);
}

.deal-section {
  background: linear-gradient(180deg, var(--paper), var(--paper-warm));
}

.deal-grid {
  width: min(75rem, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.deal-card {
  position: relative;
  min-height: 24rem;
  padding: 0;
  border-radius: 1rem;
  transform-origin: 50% 120%;
  animation: card-deal 780ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.deal-card:nth-child(1) {
  transform: rotate(-7deg);
}

.deal-card:nth-child(2) {
  transform: translateY(1.2rem) rotate(-2deg);
  animation-delay: 90ms;
}

.deal-card:nth-child(3) {
  transform: translateY(0.4rem) rotate(3deg);
  animation-delay: 180ms;
}

.deal-card:nth-child(4) {
  transform: translateY(1.5rem) rotate(8deg);
  animation-delay: 270ms;
}

.deal-card img {
  width: 100%;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 24px 52px var(--shadow-paper);
}

.deal-copy {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.9rem;
  min-height: 8.1rem;
  padding: 0.95rem;
  border-radius: var(--radius-sm);
  color: var(--cream);
  background: rgba(4, 59, 48, 0.88);
  box-shadow: inset 0 1px 0 rgba(248, 240, 223, 0.14);
  backdrop-filter: blur(12px);
}

.deal-copy span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--gold);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.deal-copy p {
  margin: 0;
  color: rgba(248, 240, 223, 0.78);
  font-size: 0.92rem;
  line-height: 1.55;
}

.demo-section {
  padding-bottom: 7rem;
}

.demo-board {
  width: min(77rem, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(22rem, 1fr) minmax(14rem, 0.38fr);
  gap: 1.5rem;
  align-items: end;
}

.demo-phone {
  width: min(18rem, 100%);
  justify-self: end;
  transform: translateY(1.3rem) rotate(2deg);
}

.video-note {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: -0.2rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  color: var(--cream);
  background: rgba(2, 31, 27, 0.52);
  box-shadow: inset 0 1px 0 rgba(248, 240, 223, 0.12);
}

.video-note p {
  margin: 0;
  font-weight: 900;
}

.play-mark {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(248, 240, 223, 0.34);
  border-radius: 999px;
  background: rgba(248, 240, 223, 0.12);
  position: relative;
}

.play-mark::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  transform: translate(-42%, -50%);
  width: 0;
  height: 0;
  border-top: 0.42rem solid transparent;
  border-bottom: 0.42rem solid transparent;
  border-left: 0.62rem solid var(--cream);
}

.multiplayer-section {
  background: linear-gradient(180deg, var(--paper), #efe0c8);
}

.ipad-layout {
  width: min(76rem, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  align-items: start;
}

.tablet {
  padding: 0.8rem;
  border-radius: 2rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.08)),
    #1d2825;
}

.tablet img {
  aspect-ratio: 4 / 3;
  border-radius: 1.35rem;
  object-fit: cover;
}

.secondary-tablet {
  width: 100%;
  justify-self: stretch;
  margin-top: 0;
  transform: none;
}

figcaption {
  margin: 0.8rem 0 0.15rem;
  color: rgba(24, 21, 15, 0.68);
  font-size: 0.94rem;
  line-height: 1.5;
}

.deck-section {
  display: grid;
  grid-template-columns: minmax(18rem, 0.82fr) minmax(22rem, 1.18fr);
  gap: clamp(2rem, 6%, 5rem);
  align-items: center;
}

.deck-copy {
  width: min(36rem, 100%);
  justify-self: end;
}

.deck-fan {
  min-height: 32rem;
  position: relative;
}

.fan-card {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  width: 12rem;
  aspect-ratio: 5 / 7;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 28px 58px rgba(2, 31, 27, 0.32);
  transform-origin: 50% 115%;
}

.fan-one {
  transform: translateX(-115%) rotate(-24deg);
}

.fan-two {
  transform: translateX(-72%) translateY(-1.2rem) rotate(-12deg);
}

.fan-three {
  transform: translateX(-30%) translateY(-2rem) rotate(0deg);
}

.fan-four {
  transform: translateX(12%) translateY(-1.2rem) rotate(12deg);
}

.fan-five {
  transform: translateX(55%) rotate(24deg);
}

.honor-section {
  background: var(--paper);
}

.honor-panel {
  width: min(74rem, 100%);
  margin: 0 auto;
  padding: clamp(2rem, 5%, 4rem);
  border-radius: var(--radius-lg);
  color: var(--cream);
  background:
    radial-gradient(circle at 92% 12%, rgba(52, 208, 170, 0.18), transparent 17rem),
    linear-gradient(135deg, var(--felt-base), var(--felt-deep));
  box-shadow: 0 26px 72px rgba(67, 43, 18, 0.2);
}

.honor-panel h2 {
  max-width: 48rem;
}

.honor-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.honor-list article {
  padding: 1.3rem;
  border: 1px solid rgba(248, 240, 223, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(2, 31, 27, 0.28);
}

.honor-list p {
  margin: 0;
  color: rgba(248, 240, 223, 0.72);
  line-height: 1.7;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.65rem clamp(1.25rem, 5%, 4.5rem);
  color: rgba(248, 240, 223, 0.72);
  background: var(--felt-ink);
}

.footer span {
  color: var(--cream);
  font-weight: 950;
}

.footer p {
  margin: 0;
  font-size: 0.92rem;
}

@keyframes card-deal {
  from {
    opacity: 0;
    transform: translate3d(0, 6rem, 0) rotate(0deg) scale(0.92);
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 1080px) {
  h1 {
    font-size: 5.4rem;
  }

  h2 {
    font-size: 3.1rem;
  }

  .hero,
  .deck-section {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 38rem;
  }

  .hero-phone {
    margin: 0 auto;
  }

  .deal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ipad-layout {
    grid-template-columns: 1fr;
  }

  .deck-copy {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 13px 18px;
  }

  nav {
    display: none;
  }

  h1 {
    font-size: 4.2rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .hero {
    min-height: auto;
    padding-top: 6.4rem;
  }

  .hero-copy {
    width: min(100%, calc(100vw - 2rem));
  }

  .lede,
  .hero-metrics {
    max-width: 100%;
  }

  .hero-metrics,
  .demo-board,
  .honor-list {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 34rem;
    width: calc(100vw - 2rem);
    margin: 0 auto;
  }

  .phone.portrait {
    width: 17.2rem;
  }

  .hero-phone {
    margin-left: auto;
    margin-right: auto;
    transform: translateX(-1.7rem) rotate(1deg);
  }

  .deal-grid {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .deal-card {
    width: min(17.5rem, 86%);
    min-height: auto;
    margin: 0 auto;
  }

  .deal-card:nth-child(1) {
    transform: rotate(-5deg);
  }

  .deal-card:nth-child(2) {
    transform: translateY(-1.2rem) rotate(4deg);
  }

  .deal-card:nth-child(3) {
    transform: translateY(-2.4rem) rotate(-2deg);
  }

  .deal-card:nth-child(4) {
    transform: translateY(-3.6rem) rotate(5deg);
  }

  .deal-copy {
    min-height: 7.4rem;
  }

  .demo-phone {
    justify-self: center;
    transform: none;
  }

  .secondary-tablet {
    width: 100%;
    margin-top: 0;
    transform: none;
  }

  .deck-section {
    padding-bottom: 2rem;
  }

  .deck-fan {
    min-height: 26rem;
  }

  .fan-card {
    width: 8.6rem;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .brand span {
    font-size: 0.95rem;
  }

  h1 {
    font-size: 3.55rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .lede {
    font-size: 1.1rem;
  }

  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-copy {
    max-width: 21.5rem;
  }

  .lede {
    max-width: 20.5rem;
    overflow-wrap: anywhere;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
