@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  color-scheme: dark;
  --night-200: #a9a9b2;
  --night-300: #8e8e98;
  --night-400: #6a6a74;
  --night-600: #1f1f26;
  --surface-300: #a9a9b2;
  --surface-400: #6a6a74;
  --surface-500: #55555e;
  --surface-600: #2b2b34;
  --surface-700: #1f1f26;
  --surface-800: #101014;
  --surface-850: #0e0e10;
  --surface-900: #0a0a0c;
  --surface-950: #050506;
  --accent: #2cb8ec;
  --brand-teal: #55c9f2;
  --discord: #5865f2;
  --discord-hover: #4752c4;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  isolation: isolate;
  color: var(--night-200);
  background: var(--surface-950);
  font-family: Inter, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

body > * { z-index: 1; }

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

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  padding: 1rem 1rem 0;
}

.nav {
  width: 100%;
  max-width: 72rem;
  height: 3.5rem;
  margin: 0 auto;
  padding: 0 0.625rem 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(31, 31, 38, 0.8);
  border-radius: 1rem;
  background: rgba(10, 10, 12, 0.85);
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(24px);
}

.nav-primary { display: flex; align-items: center; gap: 2rem; }
.brand-link { display: flex; align-items: center; gap: 0.625rem; }
.brand-logo { width: 28px; height: 28px; display: block; flex: 0 0 auto; }

.brand-name {
  color: #fff;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.025em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--night-300);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
}

.nav-links a {
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  transition: color 0.16s ease;
}

.nav-links a:hover { color: #fff; background: rgba(31, 31, 38, 0.7); }

.login-btn { cursor: pointer; }

.dashboard-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  background: var(--accent);
  color: #04141c;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  transition: background-color 0.16s ease;
}

.dashboard-btn:hover { background: #55c9f2; }

.hero { position: relative; min-height: 100vh; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.blob-main, .blob-right, .blob-left { display: none; }

.grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #2b2b34 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(60% 50% at 50% 40%, #000 25%, transparent 72%);
  mask-image: radial-gradient(60% 50% at 50% 40%, #000 25%, transparent 72%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 40% at 50% 30%, rgba(44, 184, 236, 0.06), transparent 65%);
}

.hero-content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  padding: 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.panel-wrap {
  position: relative;
  width: 100%;
  max-width: 32rem;
  animation: fade-in-up 0.7s ease-out both;
  animation-delay: 100ms;
}

.panel-glow {
  position: absolute;
  inset: -4px;
  border-radius: 1.5rem;
  opacity: 0.5;
  filter: blur(24px);
  background: linear-gradient(to right, rgba(44, 184, 236, 0.3), rgba(85, 201, 242, 0.3));
}

.panel {
  position: relative;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(31, 31, 38, 0.8);
  background: rgba(14, 14, 16, 0.8);
  backdrop-filter: blur(24px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.top-bar {
  position: absolute;
  top: 0;
  left: 50%;
  width: 6rem;
  height: 0.25rem;
  transform: translateX(-50%);
  border-bottom-left-radius: 9999px;
  border-bottom-right-radius: 9999px;
  background: linear-gradient(to right, var(--accent), var(--brand-teal));
}

.shield-wrap { display: flex; justify-content: center; margin: 0.5rem 0 1.5rem; }

.shield-box {
  position: relative;
  width: 5rem;
  height: 5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44, 184, 236, 0.1);
  border: 1px solid rgba(44, 184, 236, 0.2);
  transition: all 0.5s ease;
}

.shield-box svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent);
  animation: pulse-subtle 2s ease-in-out infinite;
}

.spin-border {
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  border: 2px solid transparent;
  border-top-color: rgba(44, 184, 236, 0.4);
  animation: spin-slow 3s linear infinite;
}

h1 {
  margin: 0 0 0.75rem;
  text-align: center;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  color: #fff;
}

.description {
  max-width: 24rem;
  margin: 0 auto 2rem;
  color: var(--surface-300);
  text-align: center;
  line-height: 1.625rem;
}

.verify-shell { display: flex; justify-content: center; width: 100%; }

.verify-box {
  position: relative;
  width: 328px;
  flex: 0 0 328px;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: rgba(16, 16, 20, 0.5);
  border: 1px solid rgba(31, 31, 38, 0.5);
}

.discord-button {
  width: 100%;
  min-height: 76px;
  border: 0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--discord);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25rem;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(88, 101, 242, 0.28);
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.discord-button:hover {
  background: var(--discord-hover);
  transform: translateY(-1px);
}

.discord-button svg { width: 1.55rem; height: 1.55rem; flex: 0 0 auto; }

.security-row {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(31, 31, 38, 0.5);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.security-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--surface-500);
  font-size: 0.75rem;
  line-height: 1rem;
}

.security-item svg { width: 1rem; height: 1rem; }

.brand-chip {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: fade-in 0.6s ease-out both;
  animation-delay: 300ms;
}

.chip-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(14, 14, 16, 0.5);
  border: 1px solid rgba(31, 31, 38, 0.5);
}

.chip-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom right, var(--accent), var(--brand-teal));
}

.chip-icon svg { width: 0.875rem; height: 0.875rem; }

.chip-text {
  color: var(--surface-400);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
}

.subtext {
  margin: 1rem 0 0;
  color: var(--surface-600);
  font-size: 0.75rem;
  line-height: 1rem;
  text-align: center;
  animation: fade-in 0.6s ease-out both;
  animation-delay: 400ms;
}

.footer {
  position: relative;
  width: 100%;
  margin-top: 7rem;
  border-top: 1px solid rgba(31, 31, 38, 0.6);
}

.footer-inner { max-width: 72rem; margin: 0 auto; padding: 4rem 1.5rem; }
.footer-columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
.footer-brand { max-width: 20rem; }
.footer-brand-head { display: flex; align-items: center; gap: 0.625rem; }

.footer-brand-name {
  color: #fff;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.025em;
}

.footer-description {
  margin: 1rem 0 0;
  color: var(--night-300);
  font-size: 0.875rem;
  line-height: 1.625;
}

.footer-column h5 {
  margin: 0;
  color: var(--night-400);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 0.9375rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-list {
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.footer-list li { height: 1.5rem; }

.footer a {
  color: var(--night-300);
  font-size: 0.875rem;
  line-height: 1.25rem;
  transition: color 0.16s ease;
}

.footer a:hover { color: #fff; }

.footer-bottom {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(31, 31, 38, 0.6);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.copyright, .affiliation {
  margin: 0;
  color: var(--night-400);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  line-height: 1.03125rem;
  letter-spacing: 0.08em;
}

.social-links { margin-top: 1.5rem; display: flex; align-items: center; gap: 1.25rem; }
.social-links a { display: block; color: var(--night-400); cursor: pointer; }
.social-links a:hover { color: #fff; }
.social-x { width: 1rem; height: 1rem; display: block; fill: currentColor; }
.social-discord { width: 1.25rem; height: 1.25rem; display: block; fill: currentColor; }

body.overlay-open { overflow: hidden; }

.is-verified .shield-box {
  background: rgba(59, 165, 93, 0.12);
  border-color: rgba(59, 165, 93, 0.35);
}

.is-verified .shield-box svg { color: #3ba55d; animation: none; }
.is-verified .spin-border { border-top-color: rgba(59, 165, 93, 0.5); }
.is-verified .discord-button { background: #3ba55d; box-shadow: 0 16px 34px rgba(59, 165, 93, 0.28); }
.is-verified .discord-button:hover { background: #2d7d46; }
.is-verified .verify-pending { display: none; }
.is-verified .verify-done { display: flex; }
.verify-done { display: none; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.95); }
}
@keyframes spin-slow { from { transform: rotate(0); } to { transform: rotate(1turn); } }

@media (max-width: 1023px) {
  .nav-links, .dashboard-btn { display: none; }
}
@media (max-width: 639px) {
  .brand-name { display: none; }
}
@media (min-width: 640px) {
  .header { padding-left: 1.5rem; padding-right: 1.5rem; }
  h1 { font-size: 1.875rem; line-height: 2.25rem; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 1024px) {
  .footer-columns { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
}
