:root {
  --bg: #070b14;
  --bg2: #0e1424;
  --txt: #e8eefc;
  --muted: #b9c4de;
  --primary: #7ea7ff;
  --primary-2: #a58bff;
  --stroke: rgba(255,255,255,0.14);
  --ok: #7ef3c5;
  --max: 1140px;
  --radius: 20px;
  --card-1: rgba(14, 20, 32, 0.9);
  --card-2: rgba(10, 15, 26, 0.88);
  --card-border: rgba(175, 204, 255, 0.2);
  --card-shadow: 0 14px 30px rgba(2, 6, 14, 0.42);
  --safe-top: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--txt);
  background:
    linear-gradient(158deg, rgba(4,10,24,0.8) 0%, rgba(12,14,40,0.74) 40%, rgba(22,10,48,0.7) 70%, rgba(4,10,22,0.86) 100%),
    radial-gradient(1150px 580px at 8% -10%, rgba(110,168,255,0.34), transparent 60%),
    radial-gradient(1000px 640px at 92% -14%, rgba(135,240,255,0.24), transparent 64%),
    radial-gradient(980px 580px at 50% 112%, rgba(136,92,255,0.28), transparent 68%),
    url("../images/bg-tech.webp") center / cover no-repeat;
  background-attachment: fixed, fixed, fixed, fixed, fixed;
  line-height: 1.55;
  position: relative;
  min-height: 100vh;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, rgba(5,8,18,0.28), rgba(5,8,18,0.5));
  pointer-events: none;
  z-index: 0;
}

nav, header, section, footer { position: relative; z-index: 1; }
.wrap { width: min(var(--max), 92vw); margin-inline: auto; }

nav {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: var(--safe-top);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(7,11,20,0.74);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-decoration: none;
  color: var(--txt);
  font-size: 1.55rem;
  line-height: 1;
}

.brand img {
  height: 34px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(135,240,255,0.25));
}

.menu { display: flex; gap: 16px; flex-wrap: wrap; }
.menu a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.menu a:hover { color: #fff; }
.menu a.social-link { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.menu a.social-link svg { width: 18px; height: 18px; display: block; fill: currentColor; }

section { padding: 42px 0; }
section[id], header[id] { scroll-margin-top: calc(88px + var(--safe-top)); }
h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.07; letter-spacing: -0.02em; max-width: 900px; }
h2 { margin: 0 0 14px; font-size: clamp(1.45rem, 3vw, 2.2rem); letter-spacing: -0.015em; }

.section-lead { margin: 0 0 24px; color: var(--muted); max-width: 760px; }
.mobile-newline-link { display: inline; }
.inline-cta-link { color:#8fd6ff; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }

.reveal-box {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(.2,.75,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal-box.is-visible { opacity: 1; transform: translateY(0) scale(1); }

@media (prefers-reduced-motion: reduce) {
  .reveal-box,
  .reveal-box.is-visible { opacity: 1; transform: none; transition: none; }
  .logo-track { animation: none; }
}

@media (max-width: 640px) {
  .mobile-newline-link { display: block; margin-top: 6px; }
}

@media (max-width: 930px), (hover: none) and (pointer: coarse) {
  body {
    background:
      linear-gradient(164deg, rgba(22,34,72,0.78) 0%, rgba(7,11,27,0.92) 34%, rgba(58,34,96,0.8) 56%, rgba(28,44,92,0.76) 82%, rgba(20,30,66,0.82) 100%),
      radial-gradient(1450px 760px at 8% -12%, rgba(96,156,255,0.5), transparent 60%),
      radial-gradient(1200px 700px at 94% 8%, rgba(142,108,255,0.42), transparent 64%),
      radial-gradient(1020px 640px at 50% 58%, rgba(118,168,255,0.34), transparent 70%),
      radial-gradient(1020px 660px at 50% 118%, rgba(168,118,255,0.38), transparent 68%);
    background-attachment: scroll, scroll, scroll, scroll, scroll;
    background-repeat: no-repeat;
    background-size: auto, 150% 92%, 145% 90%, 135% 88%, 140% 92%;
  }
}

@media (max-width: 700px) {
  .menu a.mobile-hide { display: none; }
}
