:root {
  --bg: #050b14;
  --bg-alt: #07111f;
  --panel: #081321;
  --panel-hover: #0b1a2d;
  --text: #f4f7fb;
  --muted: #9aa9bd;
  --border: #1668d9;
  --accent: #1687ff;
  --accent-2: #315dff;
  --grid: rgba(47, 117, 205, 0.08);
  --radius: 18px;
  --content-width: 1260px;
  --header-height: 94px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 18%, rgba(25, 101, 214, 0.17), transparent 32%),
    linear-gradient(180deg, var(--bg), #030811 70%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: var(--header-height) 0 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), transparent 92%);
  z-index: -1;
}

button,
a {
  font: inherit;
}

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

button {
  color: inherit;
}

.site-header {
  height: var(--header-height);
  border-bottom: 1px solid rgba(122, 157, 198, 0.13);
  background: rgba(3, 8, 17, 0.84);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  width: min(calc(100% - 64px), var(--content-width));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 760;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.brand-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.nav-link {
  color: rgba(239, 245, 252, 0.85);
  font-size: 1.02rem;
  transition: color 160ms ease, transform 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  color: var(--accent);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.page-shell {
  width: min(calc(100% - 64px), var(--content-width));
  margin: 0 auto;
}

.page-section {
  padding: clamp(68px, 8vw, 112px) 0;
}

.page-title {
  margin: 0;
  max-width: 930px;
  font-size: clamp(3.4rem, 7.6vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  font-weight: 780;
}

.page-description {
  max-width: 770px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.52rem);
  line-height: 1.55;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 42px;
}

.button {
  min-height: 58px;
  padding: 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 12px;
  border: 1px solid var(--accent);
  font-weight: 700;
  letter-spacing: 0.015em;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
  cursor: pointer;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 12px 30px rgba(22, 135, 255, 0.2);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 16px 38px rgba(22, 135, 255, 0.3);
}

.button-secondary {
  background: rgba(3, 10, 20, 0.45);
  color: var(--accent);
}

.icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: inline-block;
}

.card {
  border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  background: linear-gradient(180deg, rgba(8, 19, 33, 0.86), rgba(5, 13, 24, 0.86));
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.section-divider {
  border-top: 1px solid rgba(122, 157, 198, 0.11);
}

.connect-section {
  padding: 58px 0 76px;
}

.connect-title {
  margin: 0 0 34px;
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.035em;
}

.social-grid {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.social-card {
  min-height: 112px;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: 15px;
  background: rgba(6, 15, 28, 0.72);
  font-size: 1.24rem;
  font-weight: 650;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.social-card:hover,
.social-card:focus-visible {
  transform: translateY(-3px);
  background: rgba(11, 28, 49, 0.88);
  border-color: var(--accent);
}

.social-card .icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(0, 4, 10, 0.82);
  backdrop-filter: blur(12px);
}

.modal-backdrop[hidden] {
  display: none;
}

.media-modal {
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 56px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(44, 132, 245, 0.55);
  border-radius: 20px;
  background: #050b14;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
}

.modal-header {
  min-height: 70px;
  padding: 18px 22px 18px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(122, 157, 198, 0.13);
}

.modal-title {
  margin: 0;
  font-size: 1.15rem;
}

.modal-close {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(122, 157, 198, 0.25);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.modal-body {
  min-height: 260px;
  overflow: auto;
  padding: 18px;
}

.modal-body img,
.modal-body video {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  border-radius: 12px;
  background: #02060c;
}

.modal-empty {
  min-height: 320px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 84%, white 16%);
  outline-offset: 4px;
}

@media (max-width: 780px) {
  :root {
    --header-height: 78px;
  }

  .header-inner,
  .page-shell {
    width: min(calc(100% - 34px), var(--content-width));
  }

  .nav {
    gap: 18px;
  }

  .nav-link {
    font-size: 0.9rem;
  }

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

@media (max-width: 540px) {
  .brand {
    font-size: 1.35rem;
  }

  .nav {
    gap: 13px;
  }

  .nav-link {
    font-size: 0.82rem;
  }

  .button {
    width: 100%;
  }

  .page-title {
    font-size: clamp(3rem, 16vw, 4.5rem);
  }
}
