:root {
  --bg: #08090b;
  --bg-raised: #0f1114;
  --bg-card: #131519;
  --border: #212429;
  --border-soft: #1a1c20;
  --text: #f2f3f5;
  --text-dim: #9a9ea6;
  --text-faint: #63676f;
  --accent: #3ef29c;
  --accent-dim: #1f8f5f;
  --accent-tint: rgba(62, 242, 156, .1);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --maxw: 1200px;
  font-family: "Inter", "Be Vietnam Pro", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Be Vietnam Pro", sans-serif;
  margin: 0;
}

p {
  margin: 0;
}

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: #04140c;
}

.text-accent {
  color: var(--accent);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 26px;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn--primary {
  background: var(--accent);
  color: #03150d;
}

.btn--primary:hover {
  background: #5bf7b1;
  box-shadow: 0 0 0 6px var(--accent-tint);
  transform: translateY(-1px);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 13px;
}

.arrow {
  transition: transform .15s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 9, 11, .75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 30px;
  height: 30px;
  color: var(--text);
  flex-shrink: 0;
}

.logo-word {
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 800;
  font-style: italic;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.footer__logo {
  margin-bottom: 4px;
}

.footer__logo .logo-mark {
  width: 34px;
  height: 34px;
}

.footer__logo .logo-word {
  font-size: 21px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__link {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all .15s ease;
}

.nav__link:hover {
  color: var(--text);
  background: var(--bg-card);
}

.chev {
  font-size: 10px;
  opacity: .7;
}

/* ===== HERO (full statement) ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  text-align: center;
  overflow: hidden;
}

#hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  /* Pushes video behind the text */
}

.hero__grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .5;
}

.hero__statement {
  position: relative;
  z-index: 1;
  font-size: clamp(32px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 900px;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 11px;
  letter-spacing: .05em;
}

.hero__scroll span {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollpulse 1.8s ease-in-out infinite;
}

@keyframes scrollpulse {

  0%,
  100% {
    opacity: .3;
  }

  50% {
    opacity: 1;
  }
}

/* ===== PITCH ===== */
.pitch {
  padding: 100px 32px;
}

.pitch__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 20px;
  animation: breathe-opacity 5s ease-in-out infinite alternate;
}

@keyframes breathe-opacity {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.pitch__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.pitch__desc {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 28px;
}

.pitch__visual {
  aspect-ratio: 1.1/1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.pitch__visual canvas {
  width: 100%;
  height: 100%;
}

/* ===== FEATURE CARDS ===== */
.features {
  padding: 40px 32px 100px;
}

.features__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  position: relative;
  background: var(--bg-raised);
  border-radius: var(--radius-lg);
  padding: 16px;
  filter: grayscale(100%);

  /* Add border-color to the transition list */
  transition: filter 0.3s ease, border-color 0.3s ease;

  overflow: hidden;
  /* Change from transparent to your base border color */
  border: 2px solid var(--border);
  background-clip: padding-box;
}

.feature-card:hover {
  filter: grayscale(0%);
  /* Border color changes along with the glow appearing */
  border-color: var(--accent-dim);
}

.feature-card::before {
  content: "";
  position: absolute;
  /* Inset must match border-width to sit behind the border */
  inset: -2px;
  z-index: -1;
  background: radial-gradient(300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      var(--accent-dim),
      transparent 35%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__media {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  margin-bottom: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  padding: 0 6px;
}

.feature-card__desc {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.6;
  padding: 0 6px 6px;
}

/* feature media mocks */
.code-mock {
  width: 80%;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.code-mock__line {
  height: 6px;
  border-radius: 3px;
  background: var(--border);
}

.code-mock__line--accent {
  background: var(--accent-dim);
}

.dash-mock {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.dash-mock__ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 5px solid var(--border);
  border-top-color: var(--accent);
  border-right-color: var(--accent);
}

.dash-mock__bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 60px;
}

.dash-mock__bars span {
  width: 8px;
  background: var(--accent-dim);
  border-radius: 2px;
}

.mini-network {
  width: 100%;
  height: 100%;
}

/* Real image injected from the API, replacing or layering over a mock */
.media-real-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* ===== MISSION ===== */
.mission {
  padding: 60px 32px 60px;
}

.mission__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
}

.section-title {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  text-wrap: pretty;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.mission__desc {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.75;
  margin-bottom: 16px;
  max-width: 520px;
}

.mission__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: center;
}

.mission__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
  transition: color .3s ease;
}

.mission__list li:hover {
  color: var(--accent);

}

.mission__list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

/* ===== QUOTE ===== */
.quote {
  padding: 60px 32px 120px;
}

.quote__text {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}

/* ===== BANNER (big image with overlaid text) ===== */
.banner {
  padding: 0 32px 120px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.banner__image {
  position: relative;
  min-height: 520px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 75% 20%, rgba(62, 242, 156, .14), transparent 45%),
    linear-gradient(160deg, #0c1b18 0%, #060708 55%, #050506 100%);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 48px;
}

.banner__grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .55;
}

.banner__glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 90%;
  background: radial-gradient(circle, rgba(62, 242, 156, .18), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}

.banner__panel {
  position: absolute;
  right: 40px;
  top: 40px;
  width: 220px;
  background: rgba(15, 17, 20, .85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  z-index: 1;
}

.banner__panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 12px;
}

.banner__panel-head .banner__panel-icon {
  color: var(--accent);
}

.banner__panel-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.banner__panel-value {
  font-family: "Be Vietnam Pro";
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 10px;
}

.banner__panel-chart {
  height: 34px;
  border-radius: 6px;
  background: linear-gradient(90deg, transparent, var(--accent-tint), transparent);
  border-bottom: 2px solid var(--accent-dim);
}

.banner__text {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.banner__text .section-title {
  color: #fff;
}

.banner__desc {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
  margin: 14px 0 24px;
}

/* To use a real photo instead of the CSS-generated background, replace
   the gradient in .banner__image with, e.g.:
   background: linear-gradient(180deg, rgba(5,6,7,.2), rgba(5,6,7,.85)), url('your-image.jpg');
   background-size: cover;
   background-position: center;
*/

/* ===== SHOWCASE ===== */
.showcase {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.showcase-card__media {
  position: relative;
  aspect-ratio: 16/11;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 28px;
}

.showcase-card__media--nodes {
  background: radial-gradient(circle at 30% 30%, #0d2c26, #060708 70%);
}

.showcase-card__media--monitor {
  background: linear-gradient(160deg, #101214, #060708);
}

.dot-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.showcase-card__btn {
  position: relative;
  z-index: 2;
}

.monitor-mock {
  position: absolute;
  inset: 14%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  overflow: hidden;
}

.monitor-mock__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border-soft) 1px, transparent 1px), linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 20px 20px;
}

.showcase-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.showcase-card__desc {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 420px;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border-soft);
  padding: 70px 32px 24px;
}

.footer__top {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__brand p {
  font-size: 13px;
  color: #8d929b;
  line-height: 1.7;
  max-width: 260px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__col h4 {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}

.footer__col a {
  font-size: 13.5px;
  color: var(--text-dim);
  transition: color .15s ease;
}

.footer__col a:hover {
  color: var(--accent);
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-dim);
}

.footer__signup {
  display: flex;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.footer__signup input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--text);
  min-width: 0;
}

.footer__signup button {
  background: var(--accent);
  border: none;
  color: #03150d;
  width: 36px;
  font-weight: 800;
}

.footer__bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  border-top: 1px solid var(--border-soft);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--text-faint);
}

.footer__bottom-links a {
  color: var(--text-faint);
}

.footer__bottom-links a:hover {
  color: var(--accent);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #fff;
  color: #03150d;
  font-weight: 700;
  font-size: 13px;
  padding: 12px 20px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease;
  z-index: 200;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  /* transform: translateZ(24px); */
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.in {
  opacity: 1;
}

/* ===== FOUNDER / TEAM ===== */
.founder {
  padding: 60px 32px;
}

.founder__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 70px;
  align-items: center;
}

.founder__avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.founder__avatar-ring {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  padding: 3px;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow:
    0 0 24px rgba(62, 242, 156, .35),
    0 0 60px rgba(62, 242, 156, .15);
  margin-bottom: 22px;
  overflow: hidden;
  shape-outside: circle(50%);
}

.founder__avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.founder__name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.founder__role {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}

.founder__copy {
  max-width: 640px;
}

.founder__desc {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.8;
  margin-bottom: 18px;
}

.founder__desc strong {
  color: var(--text);
  font-style: italic;
  font-weight: 700;
}

.founder__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.founder__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  transform: translateY(0);
  transition: all .15s ease;
  cursor: pointer;
}

.founder__badge:hover {
  /* Subtle lift effect */
  transform: translateY(-2px);
  /* Use the accent color for the border and text */
  border-color: var(--accent-dim);
  color: var(--accent);
  /* Glow effect using your existing accent-tint variable */
  box-shadow: 0 4px 20px var(--accent-tint);
  background: var(--bg-card);
}

/* Optional: if there's an icon/dot inside, make it pop on hover */
.founder__badge:hover .eyebrow__dot {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.founder__badge ion-icon {
  font-size: 16px;
  color: var(--accent);
  flex-shrink: 0;
}








/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {

  .founder__inner {
    grid-template-columns: 1fr;
    /* Stack elements vertically */
    gap: 32px;
    /* Reduce gap for smaller screens */
    text-align: center;
    /* Optional: centers content for mobile */
  }

  .founder__avatar-ring {
    float: none;
    shape-outside: none;
    margin: 0 auto 20px;
  }

  .founder__caption {
    position: static;
    width: auto;
    margin-bottom: 28px;
  }

  .founder__wrap {
    text-align: center;
  }

  .founder__desc {
    text-align: left;
  }

  .founder__badges {
    justify-content: center;
  }

  .pitch__inner,
  .mission__inner {
    grid-template-columns: 1fr;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .showcase {
    grid-template-columns: 1fr;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .nav__links {
    display: none;
  }

  .banner__panel {
    display: none;
  }

  .banner__image {
    padding: 32px;
    min-height: 420px;
    background-position: bottom;
  }
}

@media (max-width: 520px) {
  .footer__top {
    grid-template-columns: 1fr;
  }

  .hero__statement {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__scroll span {
    animation: none;
  }

  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ===== 404 ERROR PAGE ===== */
.error-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 60px;
  overflow: hidden;
}

.error-page__glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(62, 242, 156, .10), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}

.error__eyebrow {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: 28px;
  animation: breathe-opacity 5s ease-in-out infinite alternate;
}

.error__stack {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.error__watermark {
  position: absolute;
  z-index: 0;
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 800;
  font-size: clamp(140px, 22vw, 260px);
  line-height: 1;
  color: #292929;
  user-select: none;
  pointer-events: none;
}

.error__title {
  position: relative;
  z-index: 1;
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 720px;
}

.error__desc {
  position: relative;
  z-index: 1;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 36px;
}

.error__actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 90px;
}

.error__btn-home {
  padding: 14px 28px;
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}

.btn--ghost:hover {
  background: var(--bg-card);
  border-color: var(--text-faint);
}

.error__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 700px;
  width: 100%;
}

.error__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.error__stat-line {
  width: 100%;
  height: 1px;
  background: var(--border-soft);
}

.error__stat-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--text-faint);
}

.error-footer {
  border-top: 1px solid var(--border-soft);
  padding: 24px 32px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-faint);
}

@media (max-width: 560px) {
  .error-page {
    padding: 120px 20px 40px;
  }

  .error__stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ===== LEGAL PAGES (Chính sách bảo mật / Điều khoản sử dụng) ===== */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 140px 32px 100px;
  color: var(--text-dim);
}

.legal-content h1 {
  color: var(--text);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 48px;
}

.legal-content h2 {
  color: var(--text);
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.legal-content section {
  margin-bottom: 42px;
}

.legal-content p {
  font-size: 15.5px;
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-content ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-content ul li {
  position: relative;
  padding-left: 20px;
  font-size: 15.5px;
  line-height: 1.7;
}

.legal-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-faint);
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: #5bf7b1;
}

.legal-updated {
  font-style: italic;
  color: var(--text-faint);
  font-size: 13.5px;
  margin-top: 24px;
}

@media (max-width: 520px) {
  .legal-content {
    padding: 120px 20px 60px;
  }
}