/* ==========================================================================
   Vertex Node Hosting — stylesheet
   Palette: black base, electric-blue "vertex" accent as the signature color
   ========================================================================== */

:root {
  --bg: #050506;
  --bg-alt: #0b0b0f;
  --bg-card: #0e0e13;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --red: #e3273f;
  --red-bright: #ff3b52;
  --red-deep: #6e0f21;

  --node-blue: #6fd9ff;
  --node-blue-soft: #2f8fb8;
  --vertex-blue: #2e6bff;
  --vertex-blue-bright: #4d8dff;
  --discord: #5865f2;

  --text: #f3f3f2;
  --text-muted: #9a9ba3;
  --text-faint: #5c5d66;

  --font-display: "Orbitron", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: var(--red-deep);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--node-blue);
  outline-offset: 3px;
}

/* Subtle film-grain / noise overlay for texture */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: overlay;
  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");
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--vertex-blue-bright);
  margin-bottom: 0.9rem;
}

/* ---------------------------------- Topbar --------------------------------- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  background: linear-gradient(to bottom, rgba(5, 5, 6, 0.85), transparent);
  backdrop-filter: blur(6px);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
}

.topbar__logo {
  height: 32px;
  width: 32px;
  object-fit: contain;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--vertex-blue-bright);
}

.discord-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.discord-link i {
  color: var(--discord);
  font-size: 1rem;
}

.discord-link:hover {
  border-color: var(--discord);
  background: rgba(88, 101, 242, 0.12);
}

.topbar__status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vertex-blue-bright);
  box-shadow: 0 0 0 0 rgba(77, 141, 255, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(77, 141, 255, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(77, 141, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(77, 141, 255, 0); }
}

/* ------------------------------------ Hero --------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(46, 107, 255, 0.3), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(20, 40, 50, 0.25), transparent 55%),
    var(--bg);
}

#nodeSphere {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 6rem 1.5rem 3rem;
  max-width: 780px;
  pointer-events: none;
}

.hero__content > * {
  pointer-events: auto;
}

.hero__logo {
  width: clamp(96px, 16vw, 150px);
  height: auto;
  margin: 0 auto 1.6rem;
  display: block;
  filter: drop-shadow(0 0 30px rgba(46, 107, 255, 0.45));
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 7vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--text);
  text-shadow: 0 0 40px rgba(46, 107, 255, 0.3);
}

.hero__coming-soon {
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  letter-spacing: 0.4em;
  color: var(--node-blue);
  text-transform: uppercase;
}

.status-card {
  margin: 2.6rem auto 0;
  max-width: 560px;
  background: rgba(14, 14, 19, 0.72);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  backdrop-filter: blur(10px);
  text-align: left;
}

.status-card__row {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.status-card__row i {
  color: var(--vertex-blue-bright);
  font-size: 1.1rem;
  margin-top: 0.2rem;
}

.status-card__row p {
  font-size: 0.98rem;
  color: var(--text);
}

.status-bar {
  margin-top: 1.1rem;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.status-bar__fill {
  height: 100%;
  width: 99%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--vertex-blue), var(--vertex-blue-bright), var(--node-blue));
  background-size: 200% 100%;
  animation: shift 3.2s ease-in-out infinite;
}

@keyframes shift {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 0%; }
  100% { background-position: 0% 0%; }
}

.status-card__meta {
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.hero__discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.6rem;
  padding: 0.75rem 1.4rem;
  background: var(--discord);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero__discord-btn i {
  font-size: 1.1rem;
}

.hero__discord-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(88, 101, 242, 0.5);
}

.scroll-cue {
  display: inline-flex;
  margin-top: 3rem;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text-muted);
  animation: bob 2.2s ease-in-out infinite;
  text-decoration: none;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ------------------------------------ About -------------------------------- */

.about {
  position: relative;
  z-index: 2;
  background: var(--bg);
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 6vw, 5rem);
}

.about__intro {
  max-width: 720px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.about__intro h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin-bottom: 1.2rem;
}

.about__text {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.feature-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.feature-card:hover {
  border-color: var(--node-blue-soft);
  transform: translateY(-3px);
  background: #101017;
}

.feature-card i {
  font-size: 1.4rem;
  color: var(--node-blue);
  margin-bottom: 1rem;
  display: inline-block;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ------------------------------------ Watch --------------------------------- */

.watch {
  position: relative;
  z-index: 2;
  background: var(--bg-alt);
  padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 6vw, 5rem);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.watch__intro {
  max-width: 720px;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.watch__intro h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.video-frame {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #000;
  box-shadow: 0 0 0 1px rgba(46, 107, 255, 0.15), 0 20px 60px rgba(0, 0, 0, 0.55);
}

.video-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: var(--radius);
  box-shadow: inset 0 0 40px rgba(111, 217, 255, 0.08);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------- Protection ------------------------------ */

.protection {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 3.5rem) clamp(1.5rem, 6vw, 3rem);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(46, 107, 255, 0.15), rgba(15, 15, 20, 0.4));
}

.protection__icon {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(46, 107, 255, 0.25), transparent 70%);
  border: 1px solid var(--border-strong);
}

.protection__icon i {
  font-size: 1.8rem;
  color: var(--vertex-blue-bright);
}

.protection__copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  margin-bottom: 0.6rem;
}

.protection__copy p {
  color: var(--text-muted);
}

/* ------------------------------------- CTA --------------------------------- */

.cta {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(4rem, 9vw, 7rem) 1.5rem clamp(5rem, 9vw, 8rem);
}

.cta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  margin-bottom: 0.9rem;
}

.cta__text {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

.cta__discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  padding: 0.85rem 1.7rem;
  background: var(--discord);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta__discord-btn i {
  font-size: 1.2rem;
}

.cta__discord-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(88, 101, 242, 0.5);
}

/* ----------------------------------- Founders ------------------------------ */

.founders-page {
  position: relative;
  z-index: 2;
  min-height: 70vh;
  padding: clamp(7rem, 10vw, 9rem) clamp(1.5rem, 6vw, 5rem) clamp(4rem, 8vw, 6rem);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(46, 107, 255, 0.16), transparent 55%),
    var(--bg);
}

.founders-page__intro {
  max-width: 720px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.founders-page__intro h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
}

.founders-page__intro p {
  color: var(--text-muted);
  font-size: 1rem;
}

.founders-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.founder-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.founder-card:hover {
  border-color: var(--node-blue-soft);
  transform: translateY(-3px);
  background: #101017;
}

.founder-card__avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.founder-card__avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
}

.founder-card__status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--bg-card);
  background: var(--text-faint);
}

.founder-card__status-dot[data-status="online"] { background: #3ba55d; }
.founder-card__status-dot[data-status="idle"] { background: #faa61a; }
.founder-card__status-dot[data-status="dnd"] { background: #ed4245; }
.founder-card__status-dot[data-status="offline"] { background: #6b7280; }

.founder-card__info {
  min-width: 0;
  flex: 1;
}

.founder-card__role {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vertex-blue-bright);
  margin-bottom: 0.3rem;
}

.founder-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.founder-card__id {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--text-faint);
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.founder-card__status-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.founder-card__activity {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.founder-card.is-loading .founder-card__avatar {
  animation: founder-pulse 1.4s ease-in-out infinite;
}

.founder-card.is-loading .founder-card__name,
.founder-card.is-loading .founder-card__status-text {
  color: var(--text-faint);
}

@keyframes founder-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.founders-page__note {
  max-width: 720px;
  margin: 3rem auto 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--text-faint);
}

/* ----------------------------------- Footer -------------------------------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 2.2rem 1.5rem;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.82rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
  font-size: 0.85rem;
}

.footer__logo {
  height: 26px;
  width: 26px;
  object-fit: contain;
}

.footer__discord {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
  transition: color 0.2s ease;
}

.footer__discord i {
  color: var(--discord);
  font-size: 1rem;
}

.footer__discord:hover {
  color: var(--text);
}

/* ------------------------------- Reduced motion ---------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse-dot, .status-bar__fill, .scroll-cue { animation: none; }
}

/* ------------------------------------ Mobile -------------------------------- */

@media (max-width: 640px) {
  .protection {
    flex-direction: column;
    text-align: center;
  }

  .topbar__brand span {
    display: none;
  }

  .topbar__status span:last-child {
    display: none;
  }

  .discord-link span {
    display: none;
  }

  .discord-link {
    padding: 0.5rem;
  }

  .hero__discord-btn span {
    font-size: 0.78rem;
  }
}
