  :root {
    --abyss: #070b14;
    --deep: #0c1221;
    --ocean: #111b2e;
    --glow: #00d4ff;
    --glow-mid: #0ea5c9;
    --glow-dim: #1a6e8a;
    --glow-soft: rgba(0, 212, 255, 0.12);
    --glow-ghost: rgba(0, 212, 255, 0.06);
    --spark: #7df3ff;
    --seafoam: #00c9a7;
    --paper: #f0eeea;
    --paper-warm: #f7f5f1;
    --ink: #1a1f2e;
    --slate: #4a5568;
    --mist: #8896a7;
    --rule: #d5d0c8;
    --foam: #ffffff;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Sans', sans-serif;
    color: var(--mist);
    background: var(--abyss);
    font-size: 17px;
    line-height: 1.7;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
  }

  /* — NAV — */
  nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.2rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s;
  }
  nav.dark-bg {
    background: transparent;
  }
  nav.scrolled {
    background: rgba(7,11,20,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,212,255,0.1);
  }
  .logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    color: var(--foam);
    text-decoration: none;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0;
  }
  .logo .nw { color: var(--glow); }
  .logo-dots {
    display: inline-flex;
    gap: 3px;
    margin-left: 6px;
    align-items: center;
  }
  .logo-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--glow);
    animation: twinkle 3s ease-in-out infinite;
  }
  .logo-dot:nth-child(2) { animation-delay: 0.8s; opacity: 0.6; width: 2px; height: 2px; }
  .logo-dot:nth-child(3) { animation-delay: 1.6s; opacity: 0.4; width: 2.5px; height: 2.5px; }

  @keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.4); }
  }

  nav a.nav-cta {
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--glow);
    text-decoration: none;
    padding: 0.6rem 1.4rem;
    border: 1.5px solid var(--glow-dim);
    border-radius: 2px;
    transition: all 0.3s;
  }
  nav a.nav-cta:hover {
    background: var(--glow);
    color: var(--abyss);
    border-color: var(--glow);
    box-shadow: 0 0 20px rgba(0,212,255,0.3);
  }

  /* — HERO (dark, bioluminescent) — */
  .hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 2.5rem 6rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }
  .hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--abyss);
    z-index: -2;
    overflow: hidden;
  }
  .hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
      radial-gradient(ellipse 600px 400px at 20% 60%, rgba(0,212,255,0.06) 0%, transparent 70%),
      radial-gradient(ellipse 400px 300px at 75% 40%, rgba(0,201,167,0.04) 0%, transparent 70%),
      radial-gradient(ellipse 800px 600px at 50% 80%, rgba(0,212,255,0.03) 0%, transparent 70%);
  }
  .hero-eyebrow {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--glow);
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(0,212,255,0.3);
  }
  .hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.15;
    color: var(--foam);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    max-width: 750px;
    text-shadow: 0 1px 30px rgba(0,0,0,0.5), 0 0 60px rgba(0,0,0,0.3);
  }
  .hero p {
    font-size: 1.15rem;
    color: var(--mist);
    max-width: 580px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
  }
  .hero-cta {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--abyss);
    background: var(--glow);
    text-decoration: none;
    padding: 0.9rem 2.2rem;
    border-radius: 2px;
    transition: all 0.3s;
    box-shadow: 0 0 24px rgba(0,212,255,0.2);
    text-align: center;
  }
  .hero-cta:hover {
    background: var(--spark);
    box-shadow: 0 0 32px rgba(0,212,255,0.4);
  }

  /* — TRANSITION BETWEEN SECTIONS — */
  .dark-to-light {
    height: 120px;
    background: linear-gradient(to bottom, var(--abyss), var(--deep));
    position: relative;
    z-index: 1;
  }

  /* — CONTENT SECTIONS — */
  .divider {
    width: 100%;
    height: 1px;
    background: rgba(0,212,255,0.1);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }

  section {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 2.5rem;
    position: relative;
    z-index: 1;
  }

  .section-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--glow-mid);
    font-weight: 500;
    margin-bottom: 2rem;
  }

  h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.015em;
    color: var(--foam);
  }

  section p {
    color: var(--mist);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 580px;
  }

  /* — PROCESS — */
  .process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
  }
  .process-step {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    gap: 1.5rem;
    align-items: start;
  }
  .step-num {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    color: var(--glow-dim);
    line-height: 1;
    padding-top: 0.15rem;
  }
  .step-content h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: var(--foam);
  }
  .step-content p {
    color: var(--mist);
    font-size: 0.95rem;
  }

  /* — AUDIENCE — */
  .audience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
  }
  .audience-card {
    background: var(--ocean);
    border: 1px solid rgba(0,212,255,0.12);
    padding: 2rem;
    border-radius: 3px;
    transition: border-color 0.3s, box-shadow 0.3s;
  }
  .audience-card:hover {
    border-color: var(--glow-dim);
    box-shadow: 0 0 20px rgba(0,212,255,0.1);
  }
  .audience-card h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    font-weight: 400;
    color: var(--foam);
  }
  .audience-card p {
    font-size: 0.9rem;
    color: var(--mist);
    line-height: 1.65;
    max-width: none;
  }

  /* — BUILDS — */
  .builds-list { margin-top: 2.5rem; display: grid; gap: 1rem; }
  .build-item {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,212,255,0.08);
  }
  .build-item:last-child { border-bottom: none; }
  .build-marker {
    width: 6px;
    height: 6px;
    min-width: 6px;
    background: var(--glow-mid);
    border-radius: 50%;
    margin-top: 0.55rem;
    box-shadow: 0 0 6px rgba(0,212,255,0.3);
  }
  .build-item p { color: var(--mist); font-size: 1rem; max-width: none; }
  .build-item strong { color: var(--foam); font-weight: 500; }

  /* — FORM — */
  .form-section {
    background: var(--deep);
    max-width: 100%;
    padding: 5rem 2.5rem;
  }
  .light-to-dark {
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--deep) 100%);
    position: relative;
    z-index: 1;
  }
  .form-inner {
    max-width: 700px;
    margin: 0 auto;
  }
  .form-section .section-label { color: var(--glow-mid); }
  .form-section h2 { color: var(--foam); text-shadow: 0 1px 20px rgba(0,0,0,0.4); }
  .form-intro {
    color: var(--mist);
    margin-bottom: 3rem;
    font-size: 1rem;
    max-width: 550px;
  }

  .form-group { margin-bottom: 2rem; }
  .form-section label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.85);
    margin-bottom: 0.5rem;
  }
  .form-section label .optional {
    color: var(--mist);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.8rem;
  }
  .form-section input,
  .form-section textarea,
  .form-section select {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--foam);
    background: var(--ocean);
    border: 1px solid rgba(0,212,255,0.15);
    border-radius: 2px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-weight: 300;
  }
  .form-section input:focus,
  .form-section textarea:focus,
  .form-section select:focus {
    border-color: var(--glow-mid);
    box-shadow: 0 0 12px rgba(0,212,255,0.1);
  }
  .form-section input::placeholder,
  .form-section textarea::placeholder { color: rgba(255,255,255,0.25); }
  .form-section textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
  .form-section select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230ea5c9' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
  }
  .form-section select option { background: var(--deep); color: var(--foam); }

  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

  .field-hint {
    font-size: 0.8rem;
    color: var(--mist);
    margin-top: 0.35rem;
    font-style: italic;
  }

  .submit-btn {
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--abyss);
    background: var(--glow);
    border: none;
    padding: 1rem 2.8rem;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
    box-shadow: 0 0 20px rgba(0,212,255,0.2);
  }
  .submit-btn:hover {
    background: var(--spark);
    box-shadow: 0 0 32px rgba(0,212,255,0.4);
  }

  .submit-btn .btn-sending { display: none; }
  .htmx-request .submit-btn {
    opacity: 0.6;
    cursor: wait;
    pointer-events: none;
  }
  .htmx-request .submit-btn .btn-label { display: none; }
  .htmx-request .submit-btn .btn-sending { display: inline; }

  /* — PARTICLES — */
  .particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, black 60%, transparent 85%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 85%);
  }
  .particle {
    position: absolute;
    border-radius: 50%;
    background: var(--glow);
    animation: drift linear infinite, twinkle ease-in-out infinite;
  }

  @keyframes drift {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(-100vh) translateX(30px); }
  }

  /* — FOOTER — */
  footer {
    background: var(--abyss);
    padding: 3rem 2.5rem;
    border-top: 1px solid rgba(0,212,255,0.08);
  }
  footer .footer-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--mist);
  }
  footer a { color: var(--glow-mid); text-decoration: none; }

  /* — RESPONSIVE — */
  @media (max-width: 640px) {
    nav { padding: 1rem 1.5rem; }
    nav .nav-cta { display: none; }
    .hero { padding: 7rem 1.5rem 4rem; }
    section { padding: 3.5rem 1.5rem; }
    .audience-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .form-section { padding: 3.5rem 1.5rem; }
    footer .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
  }

  /* — ANIMATIONS — */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .hero-eyebrow { animation: fadeUp 0.6s ease both 0.1s; }
  .hero h1 { animation: fadeUp 0.6s ease both 0.25s; }
  .hero p { animation: fadeUp 0.6s ease both 0.4s; }
  .hero-cta { animation: fadeUp 0.6s ease both 0.55s; }

nav .nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s;
}
nav .nav-link:hover { color: var(--foam); }

/* — BLOG — */
.blog-list {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}
.blog-card {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(0,212,255,0.08);
}
.blog-card:last-child { border-bottom: none; }
.blog-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.blog-card h3 a {
  color: var(--foam);
  text-decoration: none;
  transition: color 0.2s;
}
.blog-card h3 a:hover { color: var(--glow); }
.blog-card .meta {
  font-size: 0.8rem;
  color: var(--glow-dim);
  margin-bottom: 0.6rem;
}
.blog-card .meta .type-badge {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--glow-dim);
  border-radius: 2px;
  margin-left: 0.5rem;
}
.blog-card p {
  color: var(--mist);
  font-size: 0.95rem;
  max-width: none;
}

.blog-post-content {
  max-width: 700px;
  margin: 0 auto;
  color: var(--mist);
  line-height: 1.8;
}
.blog-post-content h2 {
  color: var(--foam);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.blog-post-content h3 {
  color: var(--foam);
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.blog-post-content p { margin-bottom: 1.2rem; max-width: none; }
.blog-post-content a { color: var(--glow); }
.blog-post-content code {
  background: var(--ocean);
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  font-size: 0.9em;
}
.blog-post-content pre {
  background: var(--ocean);
  padding: 1.2rem;
  border-radius: 3px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.blog-post-content pre code {
  background: none;
  padding: 0;
}

.blog-filter {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}
.blog-filter a {
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mist);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}
.blog-filter a:hover { color: var(--foam); }
.blog-filter a.active {
  color: var(--glow);
  background: var(--glow-ghost);
}
