:root {
  --bg: #060a12;
  --bg-deep: #03060b;
  --panel: #202b3b;
  --panel-2: #111925;
  --line: rgba(83, 214, 255, 0.22);
  --cyan: #27d7f2;
  --cyan-soft: #79e8ff;
  --blue: #168cff;
  --gold: #f8c43a;
  --text: #f3f7fb;
  --muted: #a8b3c2;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }

html {
  background: var(--bg-deep);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 13% -8%, rgba(22, 140, 255, 0.13), transparent 30rem),
    radial-gradient(circle at 88% 3%, rgba(39, 215, 242, 0.08), transparent 28rem),
    linear-gradient(145deg, #0c1421 0%, #070c14 45%, #03060b 100%);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(39, 215, 242, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 215, 242, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a { color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.shared-shell {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.shared-status {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid rgba(39, 215, 242, 0.12);
  background: rgba(3, 6, 11, 0.92);
  backdrop-filter: blur(12px);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.shared-status .shared-shell {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.shared-status strong { color: var(--text); }

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(39, 215, 242, 0.9);
}

header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0 !important;
  border-bottom: 1px solid rgba(39, 215, 242, 0.12);
  background: rgba(5, 9, 16, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
}

header .shared-shell {
  padding: 12px 0 11px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 22px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 78px;
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(39, 215, 242, 0.22));
  transition: transform 180ms ease, filter 180ms ease;
}

.brand-lockup:hover .brand-logo {
  transform: translateY(-2px) scale(1.025);
  filter: drop-shadow(0 0 22px rgba(39, 215, 242, 0.38));
}

.brand-copy { display: grid; gap: 3px; }

.brand-name {
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.09em;
  font-size: clamp(0.86rem, 1.2vw, 1.03rem);
}

.brand-subtitle {
  color: var(--cyan-soft);
  font-size: 0.69rem;
  letter-spacing: 0.05em;
}

.shared-tools {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.utility-link,
.nav-link { text-decoration: none; }

.utility-link {
  color: var(--muted);
  font-size: 0.73rem;
  border: 1px solid rgba(168, 179, 194, 0.16);
  border-radius: 8px;
  padding: 7px 10px;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.utility-link:hover {
  color: var(--cyan-soft);
  border-color: rgba(39, 215, 242, 0.42);
  background: rgba(39, 215, 242, 0.06);
  transform: translateY(-1px);
}

.shared-nav {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 9px;
}

.nav-link {
  position: relative;
  color: #d9e2ec;
  font-size: 0.76rem;
  padding: 6px 8px;
  border-radius: 7px;
  transition: color 150ms ease, transform 150ms ease, background 150ms ease;
}

.nav-link:hover {
  color: var(--cyan);
  background: rgba(39, 215, 242, 0.055);
  transform: translateY(-1px);
}

.nav-link.is-active,
.nav-link[aria-current="page"] {
  color: var(--cyan-soft);
  background: rgba(39, 215, 242, 0.1);
  box-shadow: inset 0 0 0 1px rgba(39, 215, 242, 0.16);
}

.academy-link {
  margin-left: auto;
  color: #071019 !important;
  background: linear-gradient(115deg, #f8c43a, #ffe27a 48%, #79e8ff);
  font-weight: 900;
  box-shadow: 0 7px 22px rgba(248, 196, 58, 0.14);
}

.academy-link:hover {
  color: #02070b !important;
  background: linear-gradient(115deg, #ffd35a, #fff0a4 48%, #97efff);
}

.shared-subnav {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 9px;
  border-top: 1px solid rgba(39, 215, 242, 0.09);
}

.shared-subnav::before {
  content: "TOOLS";
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  margin-right: 4px;
}

.shared-subnav .nav-link {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.025);
}

main {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px !important;
}

section { scroll-margin-top: 150px; }

#hero.hero-grid {
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: center;
  gap: 36px;
  padding: 34px 0 42px;
  border-bottom: 1px solid rgba(39, 215, 242, 0.12);
}

.hero-copy { max-width: 720px; }

.hero-eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--cyan-soft);
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

#hero h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(2rem, 4.4vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

#hero p {
  color: var(--muted);
  max-width: 670px;
  line-height: 1.75;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 10px 14px;
  border: 1px solid rgba(39, 215, 242, 0.32);
  border-radius: 9px;
  color: var(--cyan-soft);
  background: rgba(39, 215, 242, 0.06);
  text-decoration: none;
  font-weight: 700;
  transition: 160ms ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  color: #07101a;
  background: linear-gradient(120deg, var(--cyan), #8deeff);
  box-shadow: 0 10px 30px rgba(39, 215, 242, 0.18);
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-art::before {
  content: "";
  position: absolute;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39, 215, 242, 0.17), transparent 68%);
  filter: blur(8px);
}

.hero-logo {
  position: relative;
  width: min(100%, 390px);
  height: auto;
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.36));
}

h1, h2, h3, h4 { color: var(--text); }
h1, h2 { text-wrap: balance; }
h3 { letter-spacing: 0.015em; }
p, label { color: var(--muted); }
p { line-height: 1.7; }

.card,
.grid > div,
.grid > article {
  border: 1px solid rgba(39, 215, 242, 0.13);
  background: linear-gradient(145deg, rgba(32, 43, 59, 0.96), rgba(17, 25, 37, 0.96)) !important;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.card:hover,
.grid > div:hover,
.grid > article:hover {
  transform: translateY(-3px);
  border-color: rgba(39, 215, 242, 0.32);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42), 0 0 28px rgba(39, 215, 242, 0.06);
}

article a:not(.nav-link):not(.utility-link),
main p a:not(.hero-cta) {
  text-underline-offset: 3px;
}

blockquote {
  margin: 0;
  line-height: 1.7;
}

.text-cyan-400,
.text-cyan-300,
.text-cyan-500 { color: var(--cyan) !important; }

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(168, 179, 194, 0.2);
  border-radius: 8px;
  background: #0b121d !important;
  color: var(--text) !important;
  padding: 10px 12px;
  font: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(39, 215, 242, 0.62);
  box-shadow: 0 0 0 3px rgba(39, 215, 242, 0.09);
}

button,
[type="submit"],
.btn {
  border: 1px solid rgba(39, 215, 242, 0.34);
  border-radius: 8px;
  padding: 10px 14px;
  background: linear-gradient(120deg, #1aa9e8, var(--cyan)) !important;
  color: #031018 !important;
  font-weight: 800;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

button:hover,
[type="submit"]:hover,
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(39, 215, 242, 0.14);
}

iframe { max-width: 100%; }

footer {
  position: relative;
  z-index: 3;
  border-top: 1px solid rgba(39, 215, 242, 0.1);
  color: var(--muted);
  padding: 24px 0 86px !important;
  background: rgba(3, 6, 11, 0.36);
}

footer .shared-shell {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.75rem;
}

.footer-copy p { margin: 0; }

.footer-disclaimer {
  max-width: 650px;
  margin-top: 7px !important;
  color: #7f8b99;
  font-size: 0.68rem;
  line-height: 1.55;
}

.shared-footer-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.shared-mobile-cta { display: none; }

.fade-in-up {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .academy-link { margin-left: 0; }
}

@media (max-width: 820px) {
  header { position: relative; }

  header .shared-shell { grid-template-columns: 1fr; }
  .shared-tools { justify-content: flex-start; }

  #hero.hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 22px;
  }

  .hero-art { order: -1; }
  .hero-logo { width: min(78vw, 320px); }

  footer .shared-shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .shared-footer-tags { justify-content: flex-start; }

  .shared-mobile-cta {
    position: fixed;
    z-index: 50;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border: 1px solid rgba(39, 215, 242, 0.25);
    border-radius: 11px;
    background: rgba(8, 14, 23, 0.94);
    backdrop-filter: blur(16px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
  }

  .shared-mobile-cta a {
    padding: 12px 8px;
    text-align: center;
    color: var(--cyan-soft);
    text-decoration: none;
    font-size: 0.76rem;
  }

  .shared-mobile-cta a + a { border-left: 1px solid rgba(39, 215, 242, 0.12); }
}

@media (max-width: 520px) {
  .shared-shell,
  main { width: min(100% - 22px, 1180px); }

  .shared-status .shared-shell { gap: 6px; }
  .shared-status span:last-child { display: none; }

  .brand-logo { width: 66px; height: 66px; }
  .brand-subtitle { display: none; }
  .shared-nav { gap: 5px; }
  .nav-link { font-size: 0.72rem; padding: 6px; }
  .shared-subnav::before { width: 100%; }
  #hero h2 { font-size: clamp(2rem, 11vw, 3.2rem); }
}

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