:root {
  --navy-950: #070a14;
  --navy-900: #0c1224;
  --navy-800: #131a35;
  --navy-700: #1b2447;
  --purple-500: #8b5cf6;
  --purple-600: #7c3aed;
  --pink-500: #f472b6;
  --pink-600: #ec4899;
  --text-hi: #edeff7;
  --text-mid: #b6bcda;
  --text-low: #7b84a8;
  --glass-border: rgba(255, 255, 255, .09);
  --glass-fill: rgba(255, 255, 255, .035);
}

::selection {
  background: var(--purple-600);
  color: #fff;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--navy-950);
  color: var(--text-mid);
  font-family: 'Inter', sans-serif !important;
  font-size: 1.03rem;
  line-height: 1.65;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-hi);
  letter-spacing: -0.02em;
}

/* THIS CSS CLASS IS USED FOR THE TITLE OF THE MAC WINDOW */
.mono {
  font-family: 'JetBrains Mono', monospace;
}

a {
  color: var(--pink-500);
  text-decoration: none;
}

a:hover {
  color: var(--purple-500);
}

/* ---------- BACKGROUND AURORA ---------- */
.aurora-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}

.blob-a {
  width: 640px;
  height: 640px;
  top: -220px;
  left: -160px;
  background: radial-gradient(circle at 30% 30%, var(--purple-600), transparent 70%);
  animation: drift1 26s ease-in-out infinite;
}

.blob-b {
  width: 560px;
  height: 560px;
  top: -80px;
  right: -200px;
  background: radial-gradient(circle at 60% 40%, var(--pink-600), transparent 70%);
  animation: drift2 32s ease-in-out infinite;
}

.blob-c {
  width: 520px;
  height: 520px;
  bottom: -260px;
  left: 30%;
  background: radial-gradient(circle at 50% 50%, #3b82f6, transparent 70%);
  opacity: 0.28;
  animation: drift1 40s ease-in-out infinite reverse;
}

/* ---------- NAV ---------- */
.navbar-glass {
  background: rgba(7, 10, 20, .7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
}

.navbar-brand-custom {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--text-hi);
  font-size: 1.1rem;
}

.navbar-brand-custom .dot {
  color: var(--pink-500);
}

.nav-link-custom {
  color: var(--text-mid);
  font-size: .94rem;
  margin-left: 1.6rem;
}

.nav-link-custom:hover {
  color: var(--text-hi);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 8.5rem 0 6rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.08;
  max-width: 15ch;
}

.hero .lede {
  font-size: 1.15rem;
  color: var(--text-mid);
  max-width: 46ch;
}

.btn-gradient {
  background: linear-gradient(135deg, var(--purple-600), var(--pink-600));
  border: none;
  color: #fff;
  font-weight: 500;
  padding: .72rem 1.6rem;
  border-radius: 10px;
  transition: filter .15s ease, transform .15s ease;
}

.btn-gradient:hover {
  filter: brightness(1.12);
  color: #fff;
  transform: translateY(-1px);
}

.btn-gradient:focus-visible,
.btn-outline-glass:focus-visible,
.nav-link-custom:focus-visible {
  outline: 2px solid var(--pink-500);
  outline-offset: 3px;
}

.btn-outline-glass {
  border: 1px solid var(--glass-border);
  color: var(--text-hi);
  padding: .7rem 1.5rem;
  border-radius: 10px;
  background: var(--glass-fill);
}

.btn-outline-glass:hover {
  border-color: var(--purple-500);
  color: var(--text-hi);
  background: rgba(139, 92, 246, .08);
}

/* ---------- GLASS WINDOW MOCKUP ---------- */
.mock-window {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden;

  margin-top: 24px;
}

.mock-titlebar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mock-body {
  padding: 1.4rem 1.5rem 1.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .82rem;
  line-height: 1.7;
  color: #c7cdec;
}

.mock-body .tok-kw {
  color: var(--pink-500);
}

.mock-body .tok-cls {
  color: var(--purple-500);
}

.mock-body .tok-str {
  color: #93e6b8;
}

.mock-body .tok-cmt {
  color: var(--text-low);
}

/* ---------- SECTIONS ---------- */

.section-pad {
  padding: 5.5rem 0;
}


.table-of-content {
  background: var(--navy-900);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.mt-3 p {
  max-width: 38ch;
}

.mb-1 h3 {
  font-size: 1.2rem;
}

/* toc */
.toc-row {
  display: flex;
  gap: 1.2rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.toc-row:last-child {
  border-bottom: none;
}

.toc-num {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-low);
  font-size: .88rem;
  width: 2.4rem;
  flex-shrink: 0;
  padding-top: .15rem;
}

.toc-title {
  color: var(--text-hi);
  font-weight: 500;
}

.toc-desc {
  color: var(--text-low);
  font-size: .9rem;
  margin-top: .15rem;
}

footer {
  padding: 26px 6vw;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  background-color: var(--navy-900);
}