/* ============================================================
   Vulnium Labs — v2
   Dark violet cyber theme, glassmorphism, animated hero
   ============================================================ */

:root {
  --bg: #0a0916;
  --bg-alt: #0e0c1f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e8e6f5;
  --text-dim: #a09cc0;
  --accent: #7c6cf0;
  --accent-2: #4cc9f0;
  --accent-soft: rgba(124, 108, 240, 0.16);
  --danger: #f06c7c;
  --ok: #5ee6a8;
  --radius: 18px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1180px, 92%); margin-inline: auto; }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal[data-reveal-delay="1"] { transition-delay: 0.12s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.24s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.36s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.48s; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn--primary {
  background: linear-gradient(120deg, var(--accent), #5a48e0 55%, var(--accent-2));
  background-size: 180% 180%;
  color: #fff;
  box-shadow: 0 8px 30px rgba(124, 108, 240, 0.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(124, 108, 240, 0.5);
  background-position: 100% 50%;
}
.btn--ghost {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--accent); transform: translateY(-2px); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 9, 22, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand { display: inline-flex; align-items: center; gap: 10px; }
.nav__brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  color: var(--accent);
}
.nav__brand-mark svg { width: 30px; height: 30px; }
.nav__brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 16px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 500;
}
.nav__links > a { color: var(--text-dim); transition: color 0.2s ease; position: relative; }
.nav__links > a:hover { color: var(--text); }
.nav__links > a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.25s ease;
}
.nav__links > a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--text) !important;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.nav__cta:hover { background: var(--accent-soft); box-shadow: 0 0 24px rgba(124, 108, 240, 0.35); }

.lang { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; }
.lang__btn {
  border: 0; background: transparent; color: var(--text-dim);
  font: 600 12px var(--font-display);
  padding: 5px 10px; border-radius: 999px; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang__btn:hover { color: var(--text); }
.lang__btn.is-active { background: var(--accent); color: #fff; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__burger span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 0 80px;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124, 108, 240, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 108, 240, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
  animation: orbFloat 14s ease-in-out infinite alternate;
}
.hero__orb--1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(124, 108, 240, 0.55), transparent 65%);
  top: -120px; right: -80px;
}
.hero__orb--2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(76, 201, 240, 0.35), transparent 65%);
  bottom: -100px; left: -100px;
  animation-delay: -7s;
}
@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-40px, 50px) scale(1.15); }
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(8px);
  font: 500 13px var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 26px;
}
.hero__badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(94, 230, 168, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(94, 230, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 230, 168, 0); }
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero__title-accent {
  background: linear-gradient(95deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__cursor {
  color: var(--accent-2);
  animation: blink 1.05s steps(1) infinite;
  -webkit-text-fill-color: var(--accent-2);
}
@keyframes blink { 50% { opacity: 0; } }
.hero__sub {
  color: var(--text-dim);
  font-size: 17.5px;
  max-width: 520px;
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 38px; }
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 13.5px;
}
.hero__trust strong { color: var(--text); font-family: var(--font-display); letter-spacing: 0.05em; }
.hero__trust-sep { opacity: 0.4; }

/* Terminal */
.terminal {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(13, 11, 30, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(124, 108, 240, 0.12);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13.5px;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.5s ease;
}
.terminal:hover { transform: perspective(1200px) rotateY(0deg) rotateX(0deg); }
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.terminal__dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal__dot--r { background: #ff5f57; }
.terminal__dot--y { background: #febc2e; }
.terminal__dot--g { background: #28c840; }
.terminal__bar-title { margin-left: 10px; color: var(--text-dim); font-size: 12px; }
.terminal__body {
  padding: 18px 20px 24px;
  min-height: 300px;
  line-height: 1.9;
  white-space: pre-wrap;
  word-break: break-word;
}
.terminal__body .t-prompt { color: var(--accent-2); }
.terminal__body .t-ok { color: var(--ok); }
.terminal__body .t-warn { color: #febc2e; }
.terminal__body .t-crit { color: var(--danger); }
.terminal__body .t-dim { color: var(--text-dim); }
.terminal__caret {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--accent-2);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0.6;
  transition: opacity 0.25s ease;
}
.hero__scroll:hover { opacity: 1; }
.hero__scroll-mouse {
  display: block;
  width: 24px; height: 38px;
  border: 2px solid var(--text-dim);
  border-radius: 14px;
  position: relative;
}
.hero__scroll-mouse span {
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 7px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--text-dim);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Stats ---------- */
.stats {
  position: relative;
  padding: 90px 0;
  border-block: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(124, 108, 240, 0.08), transparent 70%),
    var(--bg-alt);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.stat__number {
  font-family: var(--font-display);
  font-size: clamp(42px, 4.5vw, 58px);
  font-weight: 700;
  background: linear-gradient(95deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
  margin-bottom: 8px;
}
.stat__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 10px;
}
.stat__desc { color: var(--text-dim); font-size: 14.5px; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section--alt {
  background:
    radial-gradient(ellipse 50% 80% at 80% 20%, rgba(76, 201, 240, 0.05), transparent 70%),
    var(--bg-alt);
  border-block: 1px solid var(--border);
}
.section__head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section__eyebrow {
  display: inline-block;
  font: 600 12.5px var(--font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.section__sub { color: var(--text-dim); font-size: 16px; }

/* ---------- Services ---------- */
.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.service-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(10px);
  padding: 40px 36px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}
.service-card:hover {
  border-color: rgba(124, 108, 240, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.service-card__glow {
  position: absolute;
  top: -120px;
  width: 320px; height: 320px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.service-card:hover .service-card__glow { opacity: 0.35; }
.service-card__glow--red { right: -80px; background: radial-gradient(circle, #f06c7c, transparent 70%); }
.service-card__glow--blue { right: -80px; background: radial-gradient(circle, var(--accent-2), transparent 70%); }
.service-card__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  margin-bottom: 24px;
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card__icon--offense { background: rgba(240, 108, 124, 0.12); color: var(--danger); }
.service-card__icon--defense { background: rgba(76, 201, 240, 0.12); color: var(--accent-2); }
.service-card__title {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 14px;
}
.service-card__desc { color: var(--text-dim); font-size: 15px; margin-bottom: 26px; }
.service-card__list { list-style: none; display: grid; gap: 18px; }
.service-card__list li {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.service-card__list li:hover {
  border-color: rgba(124, 108, 240, 0.4);
  background: var(--accent-soft);
  transform: translateX(5px);
}
.service-card__list h4 {
  font-family: var(--font-display);
  font-size: 15.5px;
  margin-bottom: 6px;
}
.service-card__list p { color: var(--text-dim); font-size: 13.5px; line-height: 1.6; }

/* ---------- Methodologies ---------- */
.method__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.method-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 30px 24px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.method-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 108, 240, 0.45);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}
.method-card img {
  height: 64px;
  width: auto;
  margin: 0 auto 18px;
  object-fit: contain;
  border-radius: 8px;
  filter: saturate(0.9);
}
.method-card h3 { font-family: var(--font-display); font-size: 17px; margin-bottom: 10px; }
.method-card p { color: var(--text-dim); font-size: 13px; line-height: 1.65; }

/* ---------- Certifications ---------- */
.certs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.cert-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.cert-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(76, 201, 240, 0.45);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}
.cert-card img {
  height: 72px;
  width: auto;
  margin: 0 auto 16px;
  object-fit: contain;
}
.cert-card h3 { font-family: var(--font-display); font-size: 16px; margin-bottom: 8px; }
.cert-card p { color: var(--text-dim); font-size: 12.5px; line-height: 1.6; }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.about__copy .section__title { margin-bottom: 22px; }
.about__copy p { color: var(--text-dim); margin-bottom: 16px; font-size: 15.5px; }
.about__panel { display: grid; place-items: center; }
.about__ring {
  width: min(300px, 70%);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
  position: relative;
  border: 1px solid rgba(124, 108, 240, 0.25);
  background: radial-gradient(circle, rgba(124, 108, 240, 0.1), transparent 70%);
}
.about__ring::before,
.about__ring::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px dashed rgba(124, 108, 240, 0.3);
  animation: spin 26s linear infinite;
}
.about__ring::after {
  inset: -40px;
  border-color: rgba(76, 201, 240, 0.18);
  animation-direction: reverse;
  animation-duration: 40s;
}
@keyframes spin { to { transform: rotate(360deg); } }
.about__ring svg { width: 45%; height: 45%; filter: drop-shadow(0 0 24px rgba(124, 108, 240, 0.55)); }

/* ---------- Contact ---------- */
.contact-form {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(10px);
  padding: 44px 40px;
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { display: block; margin-bottom: 22px; }
.field__label {
  display: block;
  font: 600 13px var(--font-display);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  color: var(--text-dim);
  text-transform: uppercase;
}
.field__input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: 400 15px var(--font-body);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(124, 108, 240, 0.18);
}
.field__input--area { resize: vertical; min-height: 140px; }
.field__hint { display: block; margin-top: 7px; font-size: 12.5px; color: var(--text-dim); }
.contact-form__captcha { margin-bottom: 22px; min-height: 65px; }
.contact-form__footer { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.contact-form__submit:disabled { opacity: 0.55; cursor: wait; transform: none; }
.contact-form__status { font-size: 14px; }
.contact-form__status.is-ok { color: var(--ok); }
.contact-form__status.is-error { color: var(--danger); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
  background: var(--bg-alt);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer__note a { color: var(--text-dim); transition: color 0.2s ease; }
.footer__note a:hover { color: var(--accent-2); }
.footer__copy { color: var(--text-dim); font-size: 13.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__terminal { max-width: 620px; }
  .terminal { transform: none; }
  .method__grid, .certs__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about__panel { order: -1; }
}

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    width: min(320px, 86vw);
    height: calc(100dvh - var(--nav-h));
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 28px;
    gap: 22px;
    background: rgba(10, 9, 22, 0.96);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__burger { display: flex; }
  .nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .stats__grid { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 80px 0; }
  .contact-form { padding: 32px 22px; }
  .contact-form__row { grid-template-columns: 1fr; gap: 0; }
  .hero__scroll { display: none; }
}

@media (max-width: 480px) {
  .method__grid, .certs__grid { grid-template-columns: 1fr; }
}
