:root {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  --accent: #2dd4bf;
  --accent-soft: rgba(45, 212, 191, 0.16);
  --body: #4a5160;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: #f0f0f0;
  -webkit-font-smoothing: antialiased;
}

[x-cloak] { display: none !important; }

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 100;
  padding: 12px 24px;
  background: #1a2b4a;
  color: white;
  border-radius: 9999px;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* Scroll progress bar — toggled via main.js */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 200;
  transition: width 0.1s linear;
  will-change: width;
}

/* Subpage hero radial blob — adds depth on otherwise flat pages */
.subpage-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.subpage-hero::before {
  content: '';
  position: absolute;
  top: -25%;
  right: -15%;
  width: min(70vw, 720px);
  height: min(70vw, 720px);
  background:
    radial-gradient(circle at 30% 30%, rgba(45, 212, 191, 0.18), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(26, 43, 74, 0.10), transparent 60%);
  filter: blur(30px);
  pointer-events: none;
  z-index: -1;
}
.subpage-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: min(50vw, 520px);
  height: min(50vw, 520px);
  background: radial-gradient(circle, rgba(45, 212, 191, 0.10), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

/* Active nav-link accent underline */
.nav-active {
  position: relative;
}
.nav-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.32, 0.72, 0, 1),
              transform 0.8s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: opacity, transform;
}
.reveal       { transform: translateY(20px); }
.reveal-left  { transform: translateX(-20px); }
.reveal-right { transform: translateX(20px); }

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

.reveal-delay-100 { transition-delay: 100ms; }
.reveal-delay-200 { transition-delay: 200ms; }
.reveal-delay-300 { transition-delay: 300ms; }
.reveal-delay-500 { transition-delay: 500ms; }
.reveal-delay-700 { transition-delay: 700ms; }
.reveal-delay-800 { transition-delay: 800ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
  #scroll-progress { transition: none; }
}

.btn-press {
  transition: transform 0.2s cubic-bezier(0.32, 0.72, 0, 1), background-color 0.3s, border-color 0.3s;
}
.btn-press:hover { transform: scale(1.02); }
.btn-press:active { transform: scale(0.98); }
