:root {
  --bg: #050d1c;
  --bg-2: #07142a;
  --text: #e8eef7;
  --text-dim: #aab4c5;
  --text-muted: #8c97aa;
  --accent: #2f8bff;
  --accent-2: #6fb1ff;
  --accent-soft: #7fb3ff;
  --rule: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 74% 37%, rgba(17, 61, 118, 0.32), transparent 42%),
    radial-gradient(circle at 16% 13%, rgba(12, 52, 96, 0.22), transparent 36%),
    linear-gradient(180deg, #020a16 0%, var(--bg) 44%, #030b18 100%);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }

.page {
  max-width: none;
  margin: 0 auto;
  padding: 0 52px;
  position: relative;
  min-height: 100vh;
}

/* ===== Header ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 0 24px;
  gap: 32px;
  position: relative;
  z-index: 3;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand-mark {
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-name {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.primary-nav ul {
  display: flex;
  gap: 56px;
}

.primary-nav a {
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  opacity: 0.92;
  transition: opacity 0.15s ease;
}

.primary-nav a:hover { opacity: 1; color: var(--accent-2); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 12px 22px;
  box-shadow: 0 6px 18px rgba(47, 139, 255, 0.18);
}

.btn-primary:hover {
  background: #4699ff;
  transform: translateY(-1px);
}

.btn .arrow { flex-shrink: 0; }

.header-cta { padding: 11px 20px; font-size: 14.5px; }
.hero-cta { padding: 14px 26px; font-size: 15px; }

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: center;
  padding: 44px 0 50px;
  min-height: 542px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 560px;
  margin-left: 36px;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  font-weight: 400;
  font-size: 68px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: #f3f6fb;
  text-shadow: 0 2px 28px rgba(2, 8, 18, 0.76);
}

.hero-title .accent {
  font-style: italic;
  color: var(--accent-soft);
  font-weight: 400;
}

.hero-sub {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-dim);
  margin: 0 0 36px;
  max-width: 440px;
}

/* ===== Hero Visual ===== */
.hero-visual {
  position: absolute;
  inset: -190px -150px -76px -170px;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.98;
  -webkit-mask-image: radial-gradient(ellipse at 74% 52%, #000 0%, #000 42%, rgba(0, 0, 0, 0.76) 56%, rgba(0, 0, 0, 0.2) 72%, transparent 88%);
  mask-image: radial-gradient(ellipse at 74% 52%, #000 0%, #000 42%, rgba(0, 0, 0, 0.76) 56%, rgba(0, 0, 0, 0.2) 72%, transparent 88%);
}

.hero-visual::before {
  content: none;
}

#wave-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ===== Services ===== */
.services {
  border-top: 1px solid var(--rule);
  padding: 56px 0 56px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}

.service {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
}

.service-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.service-body {
  flex: 1;
  min-width: 0;
}

.service-title {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 14px;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--text);
}

.service-title .title-arrow {
  color: var(--accent);
  margin-left: 4px;
  vertical-align: 1px;
  display: inline-block;
}

.service-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 22px 0 32px;
}

.site-footer p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .page { padding: 0 40px; }
  .hero-content { margin-left: 0; }
  .hero-title { font-size: 56px; }
  .primary-nav ul { gap: 36px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
}

@media (max-width: 760px) {
  .page { padding: 0 24px; }
  .site-header { flex-wrap: wrap; gap: 16px; padding-top: 24px; }
  .primary-nav { order: 3; width: 100%; }
  .primary-nav ul { gap: 18px; flex-wrap: wrap; }
  .hero {
    grid-template-columns: 1fr;
    padding: 30px 0 40px;
    min-height: auto;
  }
  .hero-title { font-size: 42px; }
  .hero-visual {
    position: relative;
    inset: auto;
    height: 280px;
    margin-top: -14px;
  }
  .services-grid { grid-template-columns: 1fr; gap: 28px; }
  .service-text { max-width: none; }
}
