:root {
  color-scheme: dark;
  --bg: #05080c;
  --panel: #0d141d;
  --panel-2: #101923;
  --line: #26364b;
  --text: #f5f8ff;
  --muted: #9eafc3;
  --blue: #1281ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

body {
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(5, 8, 12, 0.94);
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

nav a {
  text-decoration: none;
}

main {
  display: grid;
  gap: 56px;
  padding: 56px clamp(20px, 5vw, 72px) 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(460px, 1.15fr);
  gap: 36px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.48;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  border-color: var(--line);
}

.viewer-panel {
  min-height: 56vh;
  border: 1px solid var(--line);
  background: var(--panel);
}

.viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.viewer-toolbar div {
  display: grid;
  gap: 3px;
}

.viewer-toolbar span,
footer {
  color: var(--muted);
}

.viewer-toolbar a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.viewer-frame {
  display: block;
  width: 100%;
  height: min(620px, 64vh);
  border: 0;
  background: #05080c;
}

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

.feature-grid article {
  min-height: 180px;
  padding: 24px;
  background: var(--panel-2);
  border-right: 1px solid var(--line);
}

.feature-grid article:last-child {
  border-right: 0;
}

.feature-grid h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-grid article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }
}
