/* ============================================
   MitiVPN — Coming Soon
   Palette: near-black navy -> deep blue -> bright cyan-blue
   ============================================ */

:root{
  --bg-0: #050b18;
  --bg-1: #0a1730;
  --bg-2: #0d2246;
  --blue-mid: #1e5fa8;
  --blue-bright: #4db8ff;
  --blue-glow: #6ecbff;
  --ink-0: #e8f4ff;
  --ink-1: #a9c3de;
  --ink-2: #6f88a6;
  --accent-green: #2ecc71;
  --line: rgba(109, 158, 214, 0.16);
  --line-strong: rgba(109, 158, 214, 0.32);

  --accent-amber: #f5a623;

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max: 880px;
  --wide: 1240px;
}

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

html{ scroll-behavior: smooth; }

body{
  background: var(--bg-0);
  color: var(--ink-0);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

::selection{ background: var(--blue-mid); color: var(--ink-0); }

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

:focus-visible{
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============ BACKGROUND LAYERS ============ */

#circuit-bg{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, var(--bg-2) 0%, var(--bg-1) 45%, var(--bg-0) 100%);
}

.grain{
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page{
  position: relative;
  z-index: 2;
}

/* ============ NAV ============ */

.nav{
  max-width: var(--wide);
  margin: 0 auto;
  padding: 28px 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-0);
}

.nav__mark{
  color: var(--blue-bright);
  display: inline-flex;
}

.nav__right{
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__status{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-dot 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
.dot--sm{ width: 6px; height: 6px; }

@keyframes pulse-dot{
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---- Corner menu ---- */

.menu{
  position: relative;
}

.menu__trigger{
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(13, 34, 70, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.menu__trigger:hover{
  border-color: var(--line-strong);
  background: rgba(13, 34, 70, 0.7);
}

.menu__icon{
  width: 16px;
  height: 12px;
  position: relative;
  display: inline-block;
}

.menu__icon span{
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ink-0);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.menu__icon span:nth-child(1){ top: 0; }
.menu__icon span:nth-child(2){ top: 5px; }
.menu__icon span:nth-child(3){ top: 10px; }

.menu__trigger[aria-expanded="true"] .menu__icon span:nth-child(1){
  top: 5px;
  transform: rotate(45deg);
}
.menu__trigger[aria-expanded="true"] .menu__icon span:nth-child(2){
  opacity: 0;
}
.menu__trigger[aria-expanded="true"] .menu__icon span:nth-child(3){
  top: 5px;
  transform: rotate(-45deg);
}

.menu__panel{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  background: rgba(10, 23, 48, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 20;
}

.menu__panel[data-open="true"]{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.menu__panel a{
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink-1);
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.menu__panel a:hover{
  background: rgba(77, 184, 255, 0.08);
  color: var(--ink-0);
}

/* ============ HERO ============ */

.hero{
  max-width: var(--wide);
  margin: 0 auto;
  padding: 96px 32px 72px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--blue-bright);
  margin-bottom: 22px;
}

.hero__title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink-0);
}

.hero__title-accent{
  background: linear-gradient(100deg, var(--blue-mid) 0%, var(--blue-bright) 50%, var(--blue-glow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Signal signature element */
.signal{
  margin: 44px 0 36px;
  width: 220px;
  height: 170px;
}

.signal__svg{
  overflow: visible;
}

.signal__dot{
  fill: var(--blue-bright);
  filter: drop-shadow(0 0 6px var(--blue-bright));
}

.signal__arc{
  fill: none;
  stroke: var(--blue-mid);
  stroke-width: 7;
  stroke-linecap: round;
  opacity: 0.9;
}

.signal__arc--1{ stroke: var(--blue-bright); }
.signal__arc--2{ stroke: var(--blue-mid); }
.signal__arc--3{ stroke: var(--blue-mid); opacity: 0.55; }

.signal__slash{
  stroke: #ff5c5c;
  stroke-width: 6;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(255,92,92,0.5));
  animation: slash-cycle 6s ease-in-out infinite;
  transform-origin: 110px 87px;
}

@keyframes slash-cycle{
  0%   { opacity: 1;   stroke-dashoffset: 0; }
  55%  { opacity: 1;   stroke-dashoffset: 0; }
  70%  { opacity: 0;   stroke-dashoffset: 160; }
  100% { opacity: 0;   stroke-dashoffset: 160; }
}

.signal__arc--1, .signal__arc--2, .signal__arc--3{
  animation: arc-glow 6s ease-in-out infinite;
}
.signal__arc--2{ animation-delay: 0.15s; }
.signal__arc--3{ animation-delay: 0.3s; }

@keyframes arc-glow{
  0%, 55%  { opacity: 0.45; }
  75%, 100%{ opacity: 1; }
}

/* Speed streaks either side of the mark — appear once "connected" */
.speed__line{
  stroke: var(--blue-glow);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(110, 203, 255, 0.6));
  animation: speed-flow 6s ease-in-out infinite;
}
.speed__line--1{ animation-delay: 0.05s; }
.speed__line--2{ animation-delay: 0.25s; stroke-width: 2; }
.speed__line--3{ animation-delay: 0.05s; }
.speed__line--4{ animation-delay: 0.25s; stroke-width: 2; }

@keyframes speed-flow{
  0%, 60%  { opacity: 0; transform: translateX(0); }
  75%      { opacity: 0.9; }
  100%     { opacity: 0; transform: translateX(10px); }
}
.speed__line--3, .speed__line--4{
  animation-name: speed-flow-right;
}
@keyframes speed-flow-right{
  0%, 60%  { opacity: 0; transform: translateX(0); }
  75%      { opacity: 0.9; }
  100%     { opacity: 0; transform: translateX(-10px); }
}

.hero__sub{
  max-width: 560px;
  color: var(--ink-1);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

/* Notify form */
.notify{
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 420px;
}

.notify input{
  flex: 1;
  background: rgba(13, 34, 70, 0.55);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--ink-0);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.notify input::placeholder{ color: var(--ink-2); }

.notify input:focus{
  border-color: var(--blue-bright);
  background: rgba(13, 34, 70, 0.8);
}

.notify button{
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-bright));
  color: #04101f;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  border-radius: 10px;
  padding: 13px 22px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.notify button:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(77, 184, 255, 0.35);
}
.notify button:active{ transform: translateY(0); }

.notify__hint{
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--ink-2);
}

/* Countdown */
.countdown{
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.countdown__unit{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 74px;
  background: rgba(13, 34, 70, 0.4);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 16px 10px 14px;
}

.countdown__num{
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.9rem;
  color: var(--ink-0);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.countdown__label{
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.countdown__sep{
  font-family: var(--font-mono);
  color: var(--line-strong);
  font-size: 1.4rem;
  transform: translateY(-8px);
}

/* ============ SECTION LABELS (shared) ============ */

.freedom, .faq, .howitworks, .coverage, .team{
  max-width: var(--wide);
  margin: 0 auto;
  padding: 80px 32px;
  border-top: 1px solid var(--line);
}

.freedom__label{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 18px;
}

.freedom__index{
  color: var(--ink-2);
}

.freedom__intro{
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.freedom__title{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  letter-spacing: -0.01em;
  color: var(--ink-0);
  max-width: 640px;
  margin-bottom: 18px;
}

.freedom__body{
  max-width: 640px;
  color: var(--ink-1);
  font-size: 1rem;
}

.freedom__body--secondary{
  margin-top: 16px;
  color: var(--ink-1);
}

.freedom__stats{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: start;
}

.freedom__stat{
  background: rgba(13, 34, 70, 0.35);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 18px;
}

.freedom__stat-num{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  background: linear-gradient(100deg, var(--blue-bright), var(--blue-glow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.freedom__stat-label{
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--ink-2);
  line-height: 1.4;
}

/* Pillars */
.pillars{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.pillar{
  background: rgba(13, 34, 70, 0.35);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 22px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.pillar:hover{
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.pillar__glyph{
  display: inline-flex;
  color: var(--blue-bright);
  margin-bottom: 14px;
}

.pillar h3{
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink-0);
  margin-bottom: 8px;
}

.pillar p{
  font-size: 0.9rem;
  color: var(--ink-1);
}

/* ============ HOW IT WORKS ============ */

.howitworks__steps{
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.step{
  position: relative;
  padding: 0 28px 0 0;
}

.step:not(:last-child)::after{
  content: '';
  position: absolute;
  top: 22px;
  right: 0;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.step__num{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--blue-bright);
  border: 1px solid var(--line-strong);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(13, 34, 70, 0.5);
}

.step h3{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ink-0);
  margin-bottom: 10px;
}

.step p{
  font-size: 0.92rem;
  color: var(--ink-1);
  max-width: 340px;
}

.step__tag{
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
}

/* ============ COVERAGE / SERVER MAP ============ */

.coverage__layout{
  margin-top: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 40px;
  align-items: center;
}

.coverage__map{
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(13, 34, 70, 0.28);
  overflow: hidden;
}

.coverage__map svg{
  width: 100%;
  height: 100%;
  display: block;
}

.coverage__land{
  fill: rgba(109, 158, 214, 0.14);
}

.coverage__node{
  fill: var(--blue-bright);
  filter: drop-shadow(0 0 5px rgba(77, 184, 255, 0.8));
}

.coverage__ring{
  fill: none;
  stroke: var(--blue-bright);
  stroke-width: 1;
  opacity: 0.5;
  animation: ring-pulse 3s ease-out infinite;
  transform-origin: center;
}

@keyframes ring-pulse{
  0%   { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.6); }
}

.coverage__link{
  stroke: rgba(77, 184, 255, 0.35);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.coverage__list{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.coverage__region{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}

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

.coverage__region-name{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--ink-0);
}

.coverage__region-count{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--blue-bright);
}

.coverage__region-sub{
  font-size: 0.78rem;
  color: var(--ink-2);
  margin-top: 2px;
}

/* ============ TEAM ============ */

.team__grid{
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team__card{
  background: rgba(13, 34, 70, 0.32);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 22px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.team__card:hover{
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.team__avatar{
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-bright));
  color: #04101f;
  margin-bottom: 16px;
}

.team__name{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-0);
  margin-bottom: 2px;
}

.team__role{
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 12px;
}

.team__bio{
  font-size: 0.86rem;
  color: var(--ink-1);
}

/* ============ FAQ ============ */

.faq__list{
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq__item{
  background: rgba(13, 34, 70, 0.3);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 22px;
}

.faq__item summary{
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink-0);
}

.faq__item summary::-webkit-details-marker{ display: none; }

.faq__chevron{
  font-family: var(--font-mono);
  color: var(--blue-bright);
  font-size: 1.1rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq__item[open] .faq__chevron{ transform: rotate(45deg); }

.faq__item p{
  color: var(--ink-1);
  font-size: 0.92rem;
  padding-bottom: 20px;
  max-width: 620px;
}

/* ============ CONTACT / FOOTER ============ */

.contact{
  max-width: var(--wide);
  margin: 0 auto;
  padding: 80px 32px 40px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.contact__title{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  color: var(--ink-0);
  margin-bottom: 30px;
}

.contact__emails{
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-bottom: 56px;
}

.contact__email{
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 22px;
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.contact__email:hover{
  border-color: var(--blue-bright);
  color: var(--ink-0);
  background: rgba(77, 184, 255, 0.06);
}

.contact__icon{ color: var(--blue-bright); }

.foot-bar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--ink-2);
  font-family: var(--font-mono);
}

.foot-bar__status{
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 1080px){
  .freedom__intro{
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .freedom__stats{
    grid-template-columns: repeat(4, 1fr);
    max-width: 640px;
  }
  .coverage__layout{
    grid-template-columns: 1fr;
  }
  .coverage__map{ order: -1; }
}

@media (max-width: 900px){
  .pillars{ grid-template-columns: repeat(2, 1fr); }
  .team__grid{ grid-template-columns: repeat(2, 1fr); }
  .howitworks__steps{ grid-template-columns: 1fr; gap: 32px; }
  .step{ padding-right: 0; }
  .step:not(:last-child)::after{ display: none; }
}

@media (max-width: 720px){
  .pillars{ grid-template-columns: 1fr; }
  .notify{ flex-direction: column; }
  .notify button{ width: 100%; }
  .foot-bar{ flex-direction: column; gap: 10px; text-align: center; }
  .nav__status{ display: none; }
  .freedom__stats{ grid-template-columns: repeat(2, 1fr); }
  .team__grid{ grid-template-columns: 1fr; }
  .countdown{ gap: 8px; }
  .countdown__unit{ min-width: 0; flex: 1; padding: 12px 4px 10px; }
  .countdown__num{ font-size: 1.4rem; }
}

@media (max-width: 480px){
  .hero{ padding-top: 64px; }
  .signal{ width: 170px; height: 140px; }
  .contact__email{ min-width: 0; width: 100%; font-size: 0.88rem; }
}
