:root {
  color-scheme: dark;
  --bg: #070b0f;
  --bg-soft: #0d1419;
  --surface: #111b21;
  --surface-2: #162229;
  --line: #26343c;
  --text: #f7f9fa;
  --muted: #aebcc4;
  --cyan: #12cdea;
  --cyan-dark: #087e91;
  --green: #19c77a;
  --red: #ef4660;
  --yellow: #f3c848;
  --max: 1180px;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: #fff;
  color: #000;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 10px max(24px, calc((100% - var(--max)) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 11, 15, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--cyan);
  border-radius: 5px;
  color: var(--cyan);
  font-size: 13px;
}

nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

nav a,
.footer-links a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

nav a:hover,
.footer-links a:hover {
  color: var(--cyan);
}

.header-action {
  justify-self: end;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
}

.header-action:hover {
  border-color: var(--cyan);
}

.hero {
  position: relative;
  min-height: min(820px, calc(100svh - 68px));
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #050a0e;
  background-image: url("assets/linepilot-hero.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 10, 0.24);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(650px, 56%);
  margin-left: max(24px, calc((100% - var(--max)) / 2));
  padding: 80px 0 120px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(54px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 600px;
  margin-bottom: 34px;
  color: #d9e3e7;
  font-size: clamp(19px, 2.2vw, 27px);
  line-height: 1.4;
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  background: var(--cyan);
  color: #001014;
}

.button-primary:hover {
  background: #63e6f7;
}

.button-secondary {
  border-color: #60717a;
  background: rgba(7, 11, 15, 0.65);
}

.button-secondary:hover {
  border-color: var(--cyan);
}

.button-red {
  background: var(--red);
  color: #fff;
}

.button-red:hover {
  background: #ff6b80;
}

.release-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

.release-note span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(25, 199, 122, 0.15);
}

.section-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.product-index,
.guide-section,
.support-section {
  padding: 96px 0;
  background: var(--bg-soft);
}

.product-section,
.principles-section {
  padding: 96px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-heading p:last-child,
.product-intro > p,
.download-band p,
.support-layout p {
  color: var(--muted);
  font-size: 18px;
}

.section-heading-wide {
  max-width: 820px;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.product-card-featured {
  border-color: var(--cyan-dark);
}

.product-card-linepilot {
  border-color: #267454;
}

.product-card img,
.product-placeholder {
  width: 76px;
  height: 76px;
  margin-bottom: 26px;
  border-radius: 6px;
}

.product-card img {
  object-fit: cover;
}

.product-placeholder {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 700;
}

.product-card p {
  color: var(--muted);
}

.product-card .product-state {
  margin-bottom: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.product-card .product-state-muted {
  color: var(--yellow);
}

.product-card .text-link {
  margin-top: auto;
}

.text-link {
  color: var(--cyan);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  color: #72eaf8;
}

.product-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 52px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-grid div {
  min-height: 145px;
  padding: 26px 22px;
  border-right: 1px solid var(--line);
}

.feature-grid div:last-child {
  border-right: 0;
}

.feature-grid strong,
.feature-grid span {
  display: block;
}

.feature-grid strong {
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 21px;
}

.feature-grid span {
  color: var(--muted);
}

.download-band {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
  margin-top: 64px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.download-actions {
  justify-content: flex-end;
}

.download-actions .text-link {
  width: 100%;
  margin-top: 8px;
  text-align: right;
}

.guide-image {
  display: block;
  overflow: hidden;
  border: 1px solid #1f6d7b;
  border-radius: 7px;
  background: #020a0f;
}

.guide-image-linepilot {
  border-color: #267454;
}

.guide-image img {
  width: 100%;
  height: auto;
}

.principles-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
}

.principles {
  border-top: 1px solid var(--line);
}

.principles > div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.principles span {
  color: var(--yellow);
  font-weight: 700;
}

.principles p {
  margin: 0;
  color: var(--muted);
}

.principles strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
}

.support-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.support-layout > div {
  max-width: 760px;
}

.support-button {
  min-width: 230px;
}

footer {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 44px;
  align-items: start;
  padding: 38px max(24px, calc((100% - var(--max)) / 2));
  border-top: 1px solid var(--line);
  background: #05080b;
  color: var(--muted);
  font-size: 13px;
}

footer strong,
footer span {
  display: block;
}

footer strong {
  color: var(--text);
  font-size: 16px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

footer p {
  max-width: 560px;
  justify-self: end;
  margin-bottom: 0;
  text-align: right;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: 760px;
    background-position: 62% center;
  }

  .hero-shade {
    background: rgba(2, 7, 10, 0.6);
  }

  .hero-content {
    width: min(650px, calc(100% - 48px));
    padding-bottom: 160px;
  }

  .product-list {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: auto;
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 20px;
  }

  .product-card img,
  .product-placeholder {
    grid-row: 1 / span 2;
    margin-bottom: 0;
  }

  .product-card .text-link {
    grid-column: 2;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-grid div:nth-child(2) {
    border-right: 0;
  }

  .feature-grid div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .product-intro,
  .download-band,
  .principles-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .download-actions {
    justify-content: flex-start;
  }

  .download-actions .text-link {
    text-align: left;
  }

  footer {
    grid-template-columns: 1fr 1fr;
  }

  footer p {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 600px) {
  .site-header {
    min-height: 62px;
    padding-inline: 16px;
  }

  .brand {
    font-size: 16px;
  }

  .header-action {
    padding-inline: 12px;
  }

  .hero {
    min-height: 710px;
    background-position: 65% center;
  }

  .hero-content {
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
    margin-left: 16px;
    padding-top: 64px;
    padding-bottom: 150px;
  }

  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 36px;
  }

  .hero-copy {
    font-size: 19px;
    overflow-wrap: anywhere;
  }

  .hero-actions .button,
  .download-actions .button {
    width: 100%;
  }

  .section-inner {
    width: calc(100% - 32px);
  }

  .product-index,
  .guide-section,
  .support-section,
  .product-section,
  .principles-section {
    padding: 68px 0;
  }

  .product-card {
    display: flex;
  }

  .product-card img,
  .product-placeholder {
    margin-bottom: 18px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-grid div:last-child {
    border-bottom: 0;
  }

  .download-band {
    padding: 26px 20px;
  }

  .support-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .support-button {
    width: 100%;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-inline: 16px;
  }

  footer p {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
