:root {
  --primary: #1e88e5;
  --primary-dark: #1565c0;
  --primary-light: #64b5f6;
  --accent: #ff6b6b;
  --success: #4caf50;
  --warning: #ffc107;
  --ink: #f8fbff;
  --text: #162033;
  --text-soft: #556272;
  --glass: rgba(8, 18, 33, 0.66);
  --paper: #ffffff;
  --shadow: 0 24px 70px rgba(13, 40, 80, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 18px;
  left: 50%;
  display: flex;
  width: min(1120px, calc(100% - 32px));
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(7, 15, 28, 0.76);
  color: var(--ink);
  backdrop-filter: blur(20px);
  box-shadow: 0 14px 40px rgba(2, 8, 18, 0.24);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  padding: 9px 14px;
  border-radius: 999px;
  color: rgba(248, 251, 255, 0.82);
  font-size: 0.92rem;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.hero {
  position: relative;
  display: grid;
  min-height: 86vh;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  overflow: hidden;
  padding: 128px max(24px, calc((100vw - 1120px) / 2)) 58px;
  background:
    radial-gradient(circle at 18% 20%, rgba(30, 136, 229, 0.48), transparent 34%),
    radial-gradient(circle at 82% 30%, rgba(255, 107, 107, 0.38), transparent 28%),
    linear-gradient(135deg, #06111f 0%, #0b223d 46%, #111827 100%);
  color: var(--ink);
}

.hero-canvas,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-canvas {
  width: 100%;
  height: 100%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(4, 10, 20, 0.9), rgba(4, 10, 20, 0.38) 52%, rgba(4, 10, 20, 0.78)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 92px);
}

.hero-content,
.signal-panel {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 820px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 850px;
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 5.1vw, 4.35rem);
  line-height: 0.96;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 690px;
  color: rgba(248, 251, 255, 0.78);
  font-size: clamp(1.04rem, 2vw, 1.28rem);
}

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

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

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

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 16px 34px rgba(30, 136, 229, 0.28);
}

.signal-panel {
  align-self: center;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: var(--glass);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.panel-header,
.signal-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.panel-header {
  grid-template-columns: 1fr auto;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.panel-header span,
.signal-row span:not(.signal-dot) {
  color: rgba(248, 251, 255, 0.72);
}

.panel-header strong {
  color: var(--success);
  font-size: 1.8rem;
}

.signal-row {
  min-height: 48px;
}

.signal-row strong {
  color: white;
  font-size: 0.86rem;
}

.signal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.signal-dot.good {
  background: var(--success);
  box-shadow: 0 0 24px var(--success);
}

.signal-dot.warn {
  background: var(--warning);
  box-shadow: 0 0 24px var(--warning);
}

.signal-dot.hot {
  background: var(--accent);
  box-shadow: 0 0 24px var(--accent);
}

.contact-section,
.site-footer {
  padding-right: max(24px, calc((100vw - 1120px) / 2));
  padding-left: max(24px, calc((100vw - 1120px) / 2));
}

.contact-section p {
  color: var(--text-soft);
  font-size: 1.08rem;
}

.contact-section {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  padding-top: 84px;
  padding-bottom: 84px;
  background: #eef5fc;
}

.contact-section > div {
  max-width: 690px;
}

.contact-section .button {
  flex: 0 0 auto;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 28px;
  background: #081221;
  color: rgba(248, 251, 255, 0.7);
  font-size: 0.92rem;
}

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

  .signal-panel {
    max-width: 520px;
  }

  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    border-radius: 8px;
  }

  .brand-text {
    max-width: 138px;
  }

  .nav-links a {
    padding: 8px 7px;
    font-size: 0.82rem;
  }

  .hero-content,
  .signal-panel {
    width: 100%;
    max-width: 354px;
  }

  h1 {
    font-size: clamp(2.15rem, 10.5vw, 2.65rem);
  }

  .hero {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .signal-panel {
    display: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
