:root {
  color-scheme: dark;
  --page: #10141b;
  --panel: #171d27;
  --panel-2: #202a37;
  --ink: #f8fbff;
  --muted: #aeb9c8;
  --line: #344256;
  --cyan: #2ecbe0;
  --green: #81c91d;
  --red: #df2a46;
  --orange: #f28d22;
  --gold: #f5cf48;
  --blue: #239fe3;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 0 24px;
  background: rgba(16, 20, 27, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand,
.site-header nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  width: 58px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.28));
}

.site-header nav {
  gap: 6px;
}

.site-header nav a {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 6px;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--ink);
  background: var(--panel-2);
  outline: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(760px, calc(100vh - 64px));
  overflow: hidden;
  place-items: center start;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.95) brightness(0.72);
}

.hero-shade {
  background: rgba(8, 12, 18, 0.58);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 40px));
  margin-left: max(24px, calc((100vw - 1180px) / 2));
  padding: 48px 0 96px;
}

.logo {
  width: min(360px, 70vw);
  margin-bottom: 28px;
  filter: drop-shadow(0 12px 0 rgba(0, 0, 0, 0.2));
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(52px, 9vw, 112px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 25px;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 690px;
  color: #e8eef7;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
}

.hero-actions,
.version-grid,
.screen-grid,
.steps {
  display: grid;
  gap: 16px;
}

.hero-actions {
  grid-template-columns: repeat(2, max-content);
  margin-top: 30px;
}

.button,
.text-link {
  font-weight: 900;
  text-decoration: none;
}

.button {
  display: inline-grid;
  min-height: 52px;
  place-items: center;
  padding: 0 22px;
  border-radius: 8px;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.22);
}

.button.primary {
  background: var(--red);
}

.button.secondary {
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 42px;
  align-items: end;
}

.intro p:last-child,
.story-copy p,
.deploy-note p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

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

.version-card {
  display: grid;
  align-content: start;
  min-height: 420px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.version-card.html5 {
  border-top: 6px solid var(--cyan);
}

.version-card.php {
  border-top: 6px solid var(--orange);
}

.version-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.version-card p,
.version-card li,
.screen-grid figcaption {
  color: var(--muted);
  line-height: 1.55;
}

.version-card ul {
  display: grid;
  gap: 8px;
  margin: 6px 0 22px;
  padding-left: 18px;
}

.text-link {
  align-self: end;
  margin-top: auto;
  color: var(--cyan);
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 38px;
  align-items: start;
}

.steps {
  counter-reset: step;
}

.steps div {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.steps span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #10141b;
  font-weight: 900;
  background: var(--gold);
  border-radius: 8px;
}

.steps p {
  margin: 0;
  color: #dce6f3;
  line-height: 1.5;
}

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

.screen-grid figure {
  margin: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.screen-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.screen-grid figcaption {
  padding: 14px 16px 18px;
}

.deploy-note {
  margin-bottom: 60px;
  padding: 34px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  color: var(--muted);
  background: #0c1016;
  border-top: 1px solid var(--line);
}

@media (max-width: 1040px) {
  .screen-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro,
  .story {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    width: 100vw;
    max-width: 100vw;
    padding: 16px;
  }

  .site-header nav {
    display: grid;
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  .site-header nav a {
    padding-inline: 6px;
    text-align: center;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    margin: 0 auto;
    padding: 38px 0 70px;
  }

  h1 {
    font-size: 42px;
    line-height: 1;
  }

  .hero-copy {
    max-width: 100%;
    font-size: 17px;
  }

  .hero-actions,
  .version-grid,
  .screen-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .section {
    width: calc(100% - 32px);
    padding: 64px 0;
  }

  .version-card {
    min-height: 0;
  }

  .deploy-note {
    padding: 24px;
  }

  .site-footer {
    flex-direction: column;
  }
}
