:root {
  color-scheme: dark;
  --bg: #07101d;
  --bg-deep: #040912;
  --surface: rgba(17, 31, 50, 0.72);
  --surface-strong: #111f32;
  --line: rgba(186, 222, 255, 0.14);
  --text: #f5f9ff;
  --muted: #9dafc4;
  --blue: #68c9f4;
  --blue-strong: #8bdbff;
  --sand: #e3c39d;
  --radius: 22px;
  --max: 1180px;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 8%, rgba(56, 135, 184, 0.20), transparent 30rem),
    radial-gradient(circle at 0% 40%, rgba(53, 96, 150, 0.13), transparent 32rem), var(--bg);
  line-height: 1.55;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: -5rem;
  padding: 0.7rem 1rem;
  color: #03101b;
  background: var(--blue-strong);
  border-radius: 10px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 2rem), var(--max));
  min-height: 76px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 29, 0.82);
  backdrop-filter: blur(20px) saturate(1.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.brand img {
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
}

nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 590;
  transition: color 160ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.98fr);
  gap: clamp(3rem, 7vw, 7.5rem);
  align-items: center;
  width: min(calc(100% - 2rem), var(--max));
  min-height: 700px;
  margin: 0 auto;
  padding: 6rem 0 7rem;
}

.eyebrow,
.kicker {
  margin: 0 0 1rem;
  color: var(--blue-strong);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.eyebrow span {
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(104, 201, 244, 0.11);
}

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

h1 {
  max-width: 720px;
  margin-bottom: 1.4rem;
  font-size: clamp(3.3rem, 7vw, 6.1rem);
  font-weight: 680;
  letter-spacing: -0.066em;
  line-height: 0.96;
}

h1 em {
  color: var(--sand);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.hero-lede {
  max-width: 650px;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 0.92rem;
  font-weight: 690;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: #06111d;
  background: linear-gradient(135deg, #94ddfc, #58bfe9);
  box-shadow: 0 12px 35px rgba(60, 170, 220, 0.2);
}

.button.secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.release-note {
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.release-note span {
  margin-right: 0.45rem;
  color: var(--text);
  font-weight: 680;
}

.app-preview {
  overflow: hidden;
  border: 1px solid rgba(195, 225, 255, 0.18);
  border-radius: 24px;
  background: rgba(13, 23, 37, 0.82);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.38),
    inset 0 1px rgba(255, 255, 255, 0.05);
  transform: perspective(1100px) rotateY(-4deg) rotateX(1deg);
}

.window-bar {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 7px;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.window-bar strong {
  margin-left: auto;
  margin-right: auto;
  transform: translateX(-24px);
}

.traffic {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.traffic.red {
  background: #ff5f57;
}

.traffic.yellow {
  background: #febc2e;
}

.traffic.green {
  background: #28c840;
}

.preview-content {
  padding: 1.4rem;
}

.link-field {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(102, 198, 242, 0.6);
  border-radius: 10px;
  color: #a7bbce;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 0 0 3px rgba(80, 178, 226, 0.08);
}

.media-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.2rem 0;
}

.media-row .artwork {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 10px;
  background:
    radial-gradient(circle at 38% 35%, rgba(255, 255, 255, 0.4), transparent 8%),
    linear-gradient(140deg, #4cbbe9 0%, #315d8b 48%, #e0b787 100%);
}

.media-row strong,
.media-row span {
  display: block;
}

.media-row span {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.preset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.preset-grid div {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
}

.preset-grid strong,
.preset-grid span {
  display: block;
}

.preset-grid strong {
  font-size: 0.78rem;
}

.preset-grid span {
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.66rem;
}

.progress-line {
  height: 4px;
  margin-top: 1.3rem;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-line span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip div {
  padding: 1.35rem 1.5rem;
  border-right: 1px solid var(--line);
}

.trust-strip div:first-child {
  padding-left: 0;
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  font-size: 0.82rem;
}

.trust-strip span {
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.section {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 8rem 0;
}

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

.section-heading.compact {
  margin-bottom: 2.2rem;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 4.6vw, 4.15rem);
  font-weight: 640;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.section-heading > p:last-child,
.cta p {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature-grid article {
  min-height: 285px;
  padding: 2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 80%);
}

.feature-number {
  color: var(--blue);
  font-family: ui-monospace, "SFMono-Regular", monospace;
  font-size: 0.72rem;
}

.feature-grid h3 {
  margin: 3.1rem 0 0.8rem;
  font-size: 1.05rem;
}

.feature-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.install-section {
  width: min(calc(100% - 2rem), calc(var(--max) + 6rem));
  padding-right: 3rem;
  padding-left: 3rem;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 85% 20%, rgba(78, 174, 220, 0.13), transparent 30rem),
    var(--bg-deep);
}

.install-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: stretch;
}

.terminal {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: #070b12;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

.terminal-title {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #728397;
  font-size: 0.7rem;
}

.terminal-title span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #334153;
}

.terminal pre {
  margin: 0;
  padding: 1.5rem;
  overflow-x: auto;
  color: #c8d5e4;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: clamp(0.72rem, 1.5vw, 0.86rem);
  line-height: 1.85;
}

.terminal b {
  color: var(--blue-strong);
  font-weight: 650;
}

.install-details {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.install-details div {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.install-details strong,
.install-details span {
  display: block;
}

.install-details strong {
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
}

.install-details span {
  color: var(--muted);
  font-size: 0.8rem;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.docs-grid a {
  display: flex;
  min-height: 118px;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.docs-grid a:hover,
.docs-grid a:focus-visible {
  border-color: rgba(104, 201, 244, 0.45);
  background: rgba(104, 201, 244, 0.055);
  transform: translateY(-2px);
}

.docs-grid span {
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 740;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-grid strong {
  font-size: 0.92rem;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto 5rem;
  padding: 3rem;
  border: 1px solid rgba(104, 201, 244, 0.24);
  border-radius: 26px;
  background: linear-gradient(120deg, rgba(78, 174, 220, 0.12), rgba(255, 255, 255, 0.025));
}

.cta h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.cta p:last-child {
  margin-bottom: 0;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: center;
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}

footer p {
  margin: 0;
}

.footer-brand {
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--blue-strong);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 4.5rem;
  }

  .app-preview {
    max-width: 620px;
    transform: none;
  }

  .trust-strip,
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trust-strip div:first-child {
    padding-left: 1.5rem;
  }

  .trust-strip div:nth-child(2) {
    border-right: 0;
  }

  .trust-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

  footer {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 66px;
  }

  nav a:not(:last-child) {
    display: none;
  }

  .hero {
    gap: 3.5rem;
    padding: 3.8rem 0 5rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .preset-grid,
  .trust-strip,
  .feature-grid,
  .docs-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-strip div:last-child {
    border-bottom: 0;
  }

  .feature-grid article {
    min-height: 240px;
  }

  .install-section {
    padding: 5rem 1.2rem;
    border-radius: 22px;
  }

  .cta {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
