@font-face {
  font-family: "Gotham Narrow";
  src: url("assets/GothamNarrow-Medium.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham Narrow";
  src: url("assets/GothamNarrow-Black.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham Narrow";
  src: url("assets/GothamNarrow-Ultra.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham Narrow";
  src: url("assets/GothamNarrow-UltraItalic.otf") format("opentype");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --power-orange: #f96700;
  --power-black: #000;
  --power-grey: #252525;
  --white: #fff;
  --surface: #f7f7f7;
  --muted: #6d6d6d;
  --border: #dedede;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--power-grey);
  background: var(--surface);
  font-family: "Gotham Narrow", Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 40%, #252525 0, #151515 43%, #000 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 760px;
  height: 350px;
  border: 1px solid rgba(249, 103, 0, .3);
  border-radius: 50%;
  transform: rotate(25deg);
}

.hero::before { left: -570px; bottom: -30px; box-shadow: 20px 0 rgba(249,103,0,.05), 40px 0 rgba(249,103,0,.035); }
.hero::after { right: -580px; bottom: -10px; transform: rotate(-27deg); box-shadow: -20px 0 rgba(249,103,0,.05), -40px 0 rgba(249,103,0,.035); }

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .26;
  background-image: radial-gradient(circle, rgba(249, 103, 0, .75) 1px, transparent 1.3px);
  background-size: 19px 19px;
  mask-image: linear-gradient(90deg, #000 0, transparent 32%, transparent 68%, #000 100%);
}

.hero-lines { display: none; }

.hero-content {
  position: relative;
  z-index: 1;
  width: min(640px, calc(100% - 40px));
  padding: 58px 0 50px;
  text-align: center;
}

.power-logo {
  display: block;
  width: 205px;
  max-width: 55vw;
  margin: 0 auto 38px;
}

h1 {
  margin: 0 0 17px;
  font-size: clamp(46px, 6vw, 66px);
  font-weight: 900;
  font-style: italic;
  line-height: .98;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.beta-pill {
  display: inline-block;
  padding: 7px 24px 6px;
  color: var(--power-orange);
  border: 1px solid var(--power-orange);
  border-radius: 999px;
  font-size: 18px;
  font-weight: 700;
}

.version-line {
  margin: 15px 0 23px;
  color: #bcbcbc;
  font-size: 18px;
}

.intro {
  margin: 0;
  color: #e2e2e2;
  font-size: 18px;
  line-height: 1.45;
}

.download-button {
  width: min(355px, 100%);
  min-height: 74px;
  margin: 34px auto 0;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--white);
  text-decoration: none;
  font-size: 23px;
  font-weight: 700;
  border-radius: 38px;
  background: var(--power-orange);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .32);
  transition: transform .18s ease, background-color .18s ease;
}

.download-button:not(.is-disabled):hover { transform: translateY(-2px); background: #e95f00; }
.download-button:focus-visible { outline: 3px solid var(--white); outline-offset: 5px; }
.download-button.is-disabled { cursor: default; background: #6b5a50; color: #d5d1cf; box-shadow: none; }
.download-button svg { width: 31px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.download-meta { min-height: 18px; margin: 11px 0 0; color: #9c9c9c; font-size: 14px; }

.test-options {
  padding: 56px 0 62px;
  background: var(--white);
}

.test-options-inner {
  width: min(1020px, calc(100% - 40px));
  margin: auto;
  text-align: center;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--power-orange);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.test-options h2 { margin-bottom: 10px; }

.section-intro {
  max-width: 570px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 17px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  text-align: left;
}

.platform-card {
  position: relative;
  min-width: 0;
  padding: 25px 23px 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .045);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.platform-card:hover {
  transform: translateY(-2px);
  border-color: #c9c9c9;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .075);
}

.platform-card.is-recommended { border-color: var(--power-orange); }

.recommended-label {
  position: absolute;
  top: -11px;
  right: 17px;
  display: none;
  padding: 4px 9px 3px;
  color: #fff;
  border-radius: 4px;
  background: var(--power-orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}

.platform-card.is-recommended .recommended-label { display: block; }

.platform-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--power-orange);
  border-radius: 50%;
  background: #fff3ea;
}

.platform-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-platform="ios"] .platform-icon svg { fill: currentColor; stroke: none; }

.platform-copy { flex: 1; }
.platform-copy > span { display: block; margin-top: 19px; color: var(--muted); font-size: 14px; }
.platform-copy h3 { margin: 3px 0 7px; font-size: 22px; font-weight: 700; line-height: 1.1; }
.platform-copy p { min-height: 67px; margin: 0 0 20px; color: var(--muted); font-size: 16px; line-height: 1.4; }

.platform-action {
  width: 100%;
  min-height: 45px;
  display: grid;
  place-items: center;
  padding: 9px 15px;
  color: #fff;
  border: 1px solid var(--power-orange);
  border-radius: 6px;
  background: var(--power-orange);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.platform-action:hover { background: #e95f00; border-color: #e95f00; }
.platform-action:focus-visible { outline: 3px solid rgba(249, 103, 0, .3); outline-offset: 3px; }
.platform-action[aria-disabled="true"], .platform-action.is-coming { color: #777; border-color: #dedede; background: #f2f2f2; cursor: default; }
.platform-card small { display: block; margin-top: 9px; color: #888; text-align: center; font-size: 12px; }

.ios-dialog {
  width: min(520px, calc(100% - 28px));
  max-height: calc(100vh - 34px);
  padding: 34px;
  color: var(--power-grey);
  border: 0;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

.ios-dialog::backdrop { background: rgba(0, 0, 0, .68); backdrop-filter: blur(3px); }
.ios-dialog[open] { animation: dialog-in .18s ease-out; }

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(8px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dialog-close {
  position: absolute;
  top: 13px;
  right: 15px;
  width: 35px;
  height: 35px;
  padding: 0;
  color: #666;
  border: 0;
  border-radius: 50%;
  background: #f2f2f2;
  font: 25px/1 Arial, sans-serif;
  cursor: pointer;
}

.dialog-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 17px;
  display: grid;
  place-items: center;
  color: var(--power-orange);
  border-radius: 50%;
  background: #fff3ea;
}

.dialog-icon svg { width: 29px; fill: currentColor; }
.ios-dialog h2 { margin-bottom: 8px; font-size: 28px; }
.ios-dialog > p:not(.section-kicker) { margin: 0 0 20px; color: var(--muted); }

.install-steps { margin: 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.install-steps li { display: grid; grid-template-columns: 31px 1fr; gap: 12px; align-items: start; }
.install-steps li > span { width: 31px; height: 31px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: var(--power-orange); font-weight: 700; }
.install-steps strong, .install-steps small { display: block; }
.install-steps strong { font-size: 16px; }
.install-steps small { margin-top: 2px; color: var(--muted); font-size: 14px; line-height: 1.3; }
.dialog-launch { display: flex; margin-top: 22px; text-decoration: none; }
.dialog-notice { margin-top: 21px; padding: 12px 14px; color: #6c584c; border-left: 3px solid var(--power-orange); background: #fff7f1; font-size: 14px; }

.history {
  padding: 42px 0 58px;
  background: linear-gradient(90deg, #f4f4f4, #fff 50%, #f4f4f4);
}

.history-inner { width: min(900px, calc(100% - 40px)); margin: auto; }

h2 {
  margin: 0 0 20px;
  font-size: 31px;
  font-weight: 700;
  line-height: 1.1;
}

.release-list { display: grid; gap: 11px; }

.release {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 2px 9px rgba(0, 0, 0, .045);
}

.release-button {
  width: 100%;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 19px;
  align-items: center;
  color: inherit;
  text-align: left;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.release-button:hover { background: #fcfcfc; }
.release-button:focus-visible { outline: 2px solid var(--power-orange); outline-offset: -3px; }

.version-badge {
  padding: 5px 10px 4px;
  color: var(--power-orange);
  border: 1px solid rgba(249, 103, 0, .45);
  border-radius: 7px;
  font-weight: 700;
  white-space: nowrap;
}

.release-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.release-heading strong { font-size: 19px; font-weight: 700; }
.release-date, .release-heading > span { color: #747474; }
.release-summary { grid-column: 2; margin-top: -9px; color: var(--muted); font-size: 16px; }

.chevron {
  width: 10px;
  height: 10px;
  margin-right: 3px;
  border-right: 2px solid;
  border-bottom: 2px solid;
  transform: rotate(45deg);
  transition: transform .18s ease;
}

.release-button[aria-expanded="true"] .chevron { transform: rotate(225deg); }

.release-notes {
  margin: 0 22px 20px;
  padding: 15px 21px;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  background: #fafafa;
}

.release-notes[hidden] { display: none; }
.release-notes ul { margin: 0; padding-left: 18px; }
.release-notes li { padding: 3px 0 3px 5px; color: #5f5f5f; font-size: 16px; }
.release-notes li::marker { color: var(--power-orange); }

.beta-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 11px;
  margin: 28px 0 0;
  color: #777;
  font-size: 14px;
}

.beta-note span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-weight: 700;
}

@media (max-width: 650px) {
  .hero { min-height: 560px; }
  .hero-content { padding: 43px 0 40px; }
  .power-logo { width: 176px; margin-bottom: 34px; }
  h1 { font-size: 43px; }
  .beta-pill { font-size: 17px; }
  .version-line, .intro { font-size: 17px; }
  .download-button { min-height: 68px; margin-top: 30px; font-size: 21px; }
  .test-options { padding: 42px 0 45px; }
  .test-options-inner { width: min(100% - 28px, 1020px); }
  .section-intro { margin-bottom: 25px; }
  .platform-grid { grid-template-columns: 1fr; gap: 18px; }
  .platform-card { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 21px 18px 17px; }
  .platform-copy > span { margin-top: 0; }
  .platform-copy p { min-height: 0; margin-bottom: 17px; }
  .platform-action, .platform-card small { grid-column: 1 / -1; }
  .ios-dialog { padding: 29px 21px 23px; }
  .history { padding: 31px 0 45px; }
  .history-inner { width: min(100% - 28px, 900px); }
  h2 { font-size: 28px; }
  .release-button { grid-template-columns: 1fr auto; gap: 8px; padding: 16px; }
  .version-badge { width: max-content; }
  .release-heading { grid-column: 1 / -1; }
  .release-summary { grid-column: 1 / -1; margin: 3px 0 0; }
  .chevron { grid-column: 2; grid-row: 1; }
  .release-notes { margin: 0 10px 13px; padding: 14px 16px; }
  .beta-note { align-items: flex-start; padding: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
