:root {
  --blue: #0066ff;
  --blue-soft: rgba(0, 102, 255, 0.12);
  --navy: #000b26;
  --navy-soft: #1a2338;
  --muted: #5a6478;
  --line: #d8dde8;
  --bg: #f7f9fc;
  --white: #ffffff;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Sora", sans-serif;
  --font-body: "Manrope", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

address {
  font-style: normal;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* --- Atmosphere --- */

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(0, 102, 255, 0.08), transparent 55%),
    linear-gradient(165deg, #ffffff 0%, #f4f7fb 48%, #eef3fb 100%);
}

.bg-glow {
  position: absolute;
  width: 42vw;
  height: 42vw;
  right: -8%;
  top: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.09), transparent 65%);
  animation: glow-drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

.bg-waves {
  position: absolute;
  left: -4%;
  top: 8%;
  width: min(52vw, 640px);
  height: auto;
  opacity: 0.55;
  pointer-events: none;
}

.bg-waves path {
  fill: none;
  stroke: #c5cedd;
  stroke-width: 1.2;
  stroke-linecap: round;
}

.bg-network {
  position: absolute;
  right: -2%;
  top: 4%;
  width: min(48vw, 580px);
  height: auto;
  opacity: 0.45;
  pointer-events: none;
}

.net-lines line {
  stroke: #b8c3d6;
  stroke-width: 1;
}

.net-dots circle {
  fill: #9aabc4;
  animation: pulse-dot 3.6s ease-in-out infinite;
}

.net-dots circle:nth-child(odd) {
  animation-delay: 0.6s;
}

.net-dots circle:nth-child(3n) {
  fill: var(--blue);
  opacity: 0.55;
  animation-delay: 1.2s;
}

@keyframes glow-drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-4%, 6%) scale(1.08);
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.35);
  }
}

/* --- Top bar --- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  backdrop-filter: blur(14px);
  background: rgba(247, 249, 252, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.topbar.is-scrolled {
  border-bottom-color: rgba(0, 11, 38, 0.06);
  background: rgba(255, 255, 255, 0.86);
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.topbar-brand img {
  width: 28px;
  height: auto;
  mix-blend-mode: multiply;
}

.topbar-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}

.topbar-nav a:hover {
  color: var(--blue);
}

/* --- Hero --- */

.hero {
  min-height: calc(100svh - 64px);
  display: grid;
  place-items: center;
  padding: clamp(2.5rem, 8vh, 5rem) clamp(1.25rem, 4vw, 3rem) 4rem;
}

.hero-inner {
  width: min(720px, 100%);
  text-align: center;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.hero-mark {
  width: clamp(72px, 12vw, 112px);
  height: auto;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 10px 24px rgba(0, 102, 255, 0.16));
  animation: mark-float 5.5s ease-in-out infinite;
}

@keyframes mark-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.hero-brand h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 9vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--navy);
}

.hero-tagline {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.hero-support {
  margin: 0 auto 2rem;
  max-width: 36rem;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  color: var(--muted);
  font-weight: 500;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.45rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition:
    transform 0.25s var(--ease),
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(0, 102, 255, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #0052d6;
  box-shadow: 0 16px 34px rgba(0, 102, 255, 0.34);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid rgba(0, 11, 38, 0.16);
}

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.45);
  animation: status-pulse 2s ease-out infinite;
}

@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 102, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 102, 255, 0);
  }
}

/* --- Sections --- */

.section-inner {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.section-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  text-align: center;
}

.section-lead {
  margin: 0 auto 2.5rem;
  max-width: 32rem;
  text-align: center;
  color: var(--muted);
  font-weight: 500;
}

.services {
  padding: 2rem 0 5rem;
}

.service-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 1.75rem 1rem;
  text-align: center;
  border-right: 1px solid var(--line);
  transition: background 0.3s ease;
}

.service:last-child {
  border-right: none;
}

.service:hover {
  background: rgba(0, 102, 255, 0.04);
}

.service-icon {
  width: 44px;
  height: 44px;
  color: var(--navy);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-label {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy-soft);
}

.contact {
  padding: 1rem 0 5.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
}

.contact-block h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.contact-block address,
.contact-list a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy-soft);
  line-height: 1.7;
}

.contact-list a:hover,
.contact-site:hover {
  color: var(--blue);
}

.contact-list li + li {
  margin-top: 0.15rem;
}

.contact-site {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--blue);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem clamp(1.25rem, 4vw, 3rem) 2.25rem;
  background: rgba(255, 255, 255, 0.55);
}

.footer-inner {
  width: min(1040px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-inner strong {
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 650;
}

.footer-meta {
  margin: 0;
}

.footer-inner > p:first-child {
  margin: 0;
}

/* --- Reveal motion --- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal:nth-child(1) {
  transition-delay: 0.05s;
}
.hero .reveal:nth-child(2) {
  transition-delay: 0.15s;
}
.hero .reveal:nth-child(3) {
  transition-delay: 0.25s;
}
.hero .reveal:nth-child(4) {
  transition-delay: 0.35s;
}
.hero .reveal:nth-child(5) {
  transition-delay: 0.45s;
}

.service-row .reveal:nth-child(1) {
  transition-delay: 0.05s;
}
.service-row .reveal:nth-child(2) {
  transition-delay: 0.12s;
}
.service-row .reveal:nth-child(3) {
  transition-delay: 0.19s;
}
.service-row .reveal:nth-child(4) {
  transition-delay: 0.26s;
}

.contact-grid .reveal:nth-child(1) {
  transition-delay: 0.05s;
}
.contact-grid .reveal:nth-child(2) {
  transition-delay: 0.12s;
}
.contact-grid .reveal:nth-child(3) {
  transition-delay: 0.19s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-mark,
  .bg-glow,
  .net-dots circle,
  .status-dot {
    animation: none;
  }
}

/* --- Responsive --- */

@media (max-width: 900px) {
  .service-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .service:nth-child(2) {
    border-right: none;
  }

  .service:nth-child(1),
  .service:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 28rem;
    margin: 0 auto;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .topbar-nav {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .hero {
    min-height: calc(100svh - 58px);
    padding-top: 2rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .service-row {
    grid-template-columns: 1fr;
  }

  .service {
    border-right: none;
    border-bottom: 1px solid var(--line);
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 1rem;
    padding: 1.15rem 0.25rem;
  }

  .service:last-child {
    border-bottom: none;
  }

  .bg-waves,
  .bg-network {
    opacity: 0.28;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
