:root {
  --bg: #071520;
  --panel: rgba(15, 30, 44, 0.88);
  --panel-2: rgba(14, 41, 63, 0.84);
  --ink: #e6f2fa;
  --muted: #9eb5c8;
  --line: rgba(102, 170, 222, 0.18);
  --blue: #36aee0;
  --navy: #154e84;
  --max: 1180px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }
html { overflow-x: hidden; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top right, rgba(54, 174, 224, 0.16), transparent 24%),
    radial-gradient(circle at bottom left, rgba(21, 78, 132, 0.18), transparent 28%),
    linear-gradient(180deg, #071520 0%, #0a1d2d 100%);
}
img { display: block; max-width: 100%; }
p, h1, h2, h3 { overflow-wrap: break-word; }
.shell { width: min(calc(100% - 28px), var(--max)); margin: 0 auto; padding: 18px 0 72px; }
.header, .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
}
.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  min-width: 0;
}
.brand img { width: 150px; flex: 0 0 auto; }
.brand span { white-space: nowrap; }
.nav { display: flex; gap: 22px; }
.nav a, .button { text-decoration: none; }
.nav a { color: var(--muted); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  text-align: center;
}
.button.primary {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: white;
}
.button.secondary {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
}
section { margin-top: 54px; }
.hero {
  display: grid;
  grid-template-columns: 1fr 0.96fr;
  gap: 34px;
  align-items: center;
  min-height: 72vh;
}
.copy,
.visual,
.panel,
.grid article,
.stack-card {
  min-width: 0;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  font-weight: 800;
}
h1, h2, h3, p { margin: 0; }
h1 {
  max-width: 11ch;
  font-size: clamp(3.4rem, 7vw, 6rem);
  line-height: 0.94;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
}
h2 {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}
h3 {
  font-size: 1.35rem;
  line-height: 1.05;
}
.lead, .panel p, .stack-card span {
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.05rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.visual img {
  width: min(100%, 580px);
  margin-inline: auto;
}
.panel { padding: 30px; }
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.grid article, .stack-card {
  padding: 22px;
  border-radius: 22px;
  background: var(--panel-2);
  border: 1px solid var(--line);
}
.grid p { margin-top: 10px; }
.stack {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.stack-card strong {
  display: block;
  margin-bottom: 8px;
}
.connect-panel {
  text-align: center;
}
@media (max-width: 980px) {
  .hero, .grid { grid-template-columns: 1fr 1fr; }
  .header { flex-wrap: wrap; }
  .nav { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 780px) {
  .shell { width: min(calc(100% - 24px), var(--max)); }
  .header { justify-content: center; border-radius: 18px; }
  .brand { width: 100%; justify-content: center; }
  .brand img { width: 136px; }
  .header > .button { width: 100%; }
  .nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }
  .nav a { padding: 0.35rem 0.15rem; }
  .hero, .grid { grid-template-columns: 1fr; }
  .hero {
    width: 100%;
    max-width: calc(100vw - 24px);
    min-height: auto;
    gap: 28px;
    overflow: hidden;
  }
  .copy,
  .visual {
    width: 100%;
    max-width: min(34ch, calc(100vw - 24px));
  }
  h1 {
    max-width: 15ch;
    font-size: clamp(1.82rem, 8.4vw, 2.2rem);
    line-height: 1.02;
  }
  .lead { max-width: 100%; }
  h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .actions { flex-direction: column; }
  .button { width: 100%; }
  .visual img { width: 100%; }
  .panel { padding: 24px; }
}
@media (max-width: 430px) {
  .nav { grid-template-columns: 1fr; }
  .brand { gap: 8px; }
  .brand span { font-size: 0.95rem; }
  h1 { font-size: clamp(1.82rem, 8.4vw, 2.2rem); }
}
