:root {
  --bg: #050d17;
  --surface: #0d1c2b;
  --blue: #2a7fe8;
  --green: #34dea2;
  --muted: #9bb0c4;
  --text: #eef4fa;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Sora", "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.5;
  overflow-x: hidden;
}

.wrap {
  width: min(1100px, calc(100% - 40px));
  margin-inline: auto;
}

/* —— Top bar —— */
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(5, 13, 23, 0.88), rgba(5, 13, 23, 0));
  backdrop-filter: blur(8px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.logo .shield,
.logo svg.shield {
  width: 32px;
  height: 38px;
  flex-shrink: 0;
  display: block;
  overflow: visible;
}
.logo.mini { font-size: 0.95rem; gap: 8px; }
.logo.mini .shield {
  width: 26px;
  height: 30px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}
.top-nav a:hover { color: #fff; }
.top-cta {
  padding: 8px 16px !important;
  border-radius: 999px;
  background: rgba(42, 127, 232, 0.22);
  color: #fff !important;
  border: 1px solid rgba(42, 127, 232, 0.45);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 110px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* globe only — hide left mountain strip baked into the asset */
  background:
    url("assets/vpn-background-v2.png") 62% 32% / 140% auto no-repeat,
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(42, 127, 232, 0.18), transparent 55%),
    var(--bg);
}

.hero-haze {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 13, 23, 0.92) 0%, rgba(5, 13, 23, 0.55) 28%, rgba(5, 13, 23, 0.15) 55%, rgba(5, 13, 23, 0.45) 100%),
    linear-gradient(180deg, rgba(5, 13, 23, 0.4) 0%, transparent 35%, rgba(5, 13, 23, 0.9) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.brand-mark {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
  margin-bottom: 10px;
  animation: fade-up 0.7s ease both;
}

.hero-copy h1 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 600;
  color: var(--green);
  line-height: 1.25;
  margin-bottom: 16px;
  animation: fade-up 0.7s 0.08s ease both;
}

.lede {
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
  animation: fade-up 0.7s 0.14s ease both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: fade-up 0.7s 0.2s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border-radius: 11px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: filter 0.15s, transform 0.15s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: linear-gradient(180deg, #3a8ff0, var(--blue));
  color: #fff;
  box-shadow: 0 10px 28px rgba(42, 127, 232, 0.35);
}
.btn.ghost {
  background: rgba(13, 28, 43, 0.55);
  color: var(--text);
  border: 1px solid rgba(120, 160, 200, 0.28);
}
.btn.lg { height: 52px; padding: 0 28px; font-size: 1rem; }

/* Product preview — straight window, no tilt / no glow PNG */
.hero-product {
  justify-self: end;
  width: min(100%, 480px);
  animation: fade-in 0.85s 0.15s ease both;
}

.app-window {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #07111c;
  border: 1px solid rgba(120, 170, 220, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 28px 70px rgba(0, 0, 0, 0.55);
  transform: none !important;
}

.app-chrome {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  background: linear-gradient(180deg, #132536, #0d1a28);
  border-bottom: 1px solid rgba(90, 130, 170, 0.2);
}
.app-chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a5168;
}
.app-chrome span:nth-child(1) { background: #ff5f57; }
.app-chrome span:nth-child(2) { background: #febc2e; }
.app-chrome span:nth-child(3) { background: #28c840; }
.app-chrome b {
  margin-left: 8px;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.app-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #050d17;
}

.app-screen-bg {
  position: absolute;
  inset: 0;
  /* only globe area — left mountain rail cropped out */
  background:
    url("assets/vpn-background-v2.png") 68% 36% / 165% auto no-repeat,
    #050d17;
}

.app-screen-ui {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8% 10% 7%;
  background: linear-gradient(180deg, rgba(5, 13, 23, 0.25), rgba(5, 13, 23, 0.55));
}

.app-status {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 700;
  color: var(--green);
  text-align: center;
  line-height: 1.2;
}

.app-hint {
  margin-top: 4px;
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
}

.app-dial {
  position: relative;
  width: min(38%, 150px);
  aspect-ratio: 1;
  margin: auto 0;
  flex-shrink: 0;
}

.dial-glow {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(48, 232, 168, 0.35) 0%, transparent 68%);
  pointer-events: none;
}

.dial-ring {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 5px solid #50ffbe;
  box-shadow:
    0 0 0 3px rgba(48, 232, 168, 0.12),
    0 0 20px rgba(48, 232, 168, 0.35);
}

.dial-core {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: #0e1420;
  border: 1.5px solid rgba(48, 232, 168, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--green);
}
.dial-core svg {
  width: 30%;
  height: 30%;
}
.dial-core b {
  font-size: clamp(0.58rem, 1.3vw, 0.78rem);
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.app-ip {
  width: min(100%, 280px);
  padding: 10px 14px;
  border-radius: 11px;
  background: rgba(13, 28, 43, 0.82);
  border: 1px solid rgba(90, 130, 170, 0.22);
  text-align: left;
}
.app-ip strong {
  display: block;
  font-size: 0.72rem;
  color: var(--green);
}
.app-ip span {
  font-size: 0.62rem;
  color: var(--muted);
}

/* —— Features —— */
.features {
  padding: 88px 0 72px;
  background:
    linear-gradient(180deg, rgba(5, 13, 23, 1), rgba(8, 18, 32, 1));
}

.features h2,
.locations h2,
.download h2 {
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-lede {
  max-width: 48ch;
  color: var(--muted);
  margin-bottom: 36px;
  font-size: 1.02rem;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 22px;
  max-width: 720px;
}

.feature-list li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 16px;
  align-items: start;
}

.feature-list h3 {
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 650;
  margin-bottom: 4px;
}

.feature-list p { color: var(--muted); font-size: 0.98rem; }

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 8px;
  box-shadow: 0 0 12px currentColor;
}
.dot.green { background: var(--green); color: var(--green); }
.dot.blue { background: var(--blue); color: var(--blue); }
.dot.mint { background: #7ad7c4; color: #7ad7c4; }

/* —— Locations —— */
.locations {
  padding: 40px 0 96px;
}

.locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.loc-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.loc-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(13, 28, 43, 0.65);
  border: 1px solid rgba(90, 130, 170, 0.18);
}

.loc-row b { display: block; font-size: 0.95rem; }
.loc-row small { color: var(--muted); font-size: 0.78rem; }
.loc-row em {
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.flag {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 800;
  color: #fff;
}
.flag.nl { background: linear-gradient(180deg, #ae1c28 33%, #fff 33% 66%, #21468b 66%); color: #0a1628; }
.flag.de { background: linear-gradient(180deg, #000 33%, #dd0000 33% 66%, #ffce00 66%); }
.flag.us { background: linear-gradient(180deg, #3c3b6e 40%, #b22234 40%); }
.flag.jp { background: radial-gradient(circle at 50% 50%, #bc002d 35%, #fff 36%); color: #bc002d; }

/* —— Download —— */
.download {
  padding: 0 0 100px;
}

.download-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px clamp(22px, 4vw, 40px);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(42, 127, 232, 0.18), rgba(13, 28, 43, 0.9)),
    var(--surface);
  border: 1px solid rgba(42, 127, 232, 0.28);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.download-inner p {
  color: var(--muted);
  margin-top: 6px;
  max-width: 42ch;
}

/* —— Footer —— */
.foot {
  padding: 28px 0 40px;
  border-top: 1px solid rgba(90, 130, 170, 0.15);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero-product {
    justify-self: stretch;
    width: min(100%, 520px);
    margin-inline: auto;
  }
  .locations-grid {
    grid-template-columns: 1fr;
  }
  .brand-mark { font-size: clamp(2.2rem, 10vw, 3.2rem); }
}

@media (max-width: 560px) {
  .top-nav a:not(.top-cta) { display: none; }
  .hero { padding-top: 96px; }
  .lede { font-size: 0.98rem; }
}
