/* ============================================================
   HudStack — styles.css  (Major Design Update)
   ============================================================ */

/* 1. FONTS */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Space+Grotesk:wght@500;600;700&display=swap');

/* 2. TOKENS */
:root {
  --hs-black:   #060A13;
  --hs-dark:    #0B1120;
  --hs-navy:    #1B2A4A;
  --hs-slate:   #1E293B;
  --hs-teal:    #2EC4B6;
  --hs-pink:    #FF3CAC;
  --hs-purple:  #7C3AED;
  --hs-white:   #F0F4F8;
  --hs-gold:    #F4C542;
  --hs-gray:    #94A3B8;
  --hs-border:  #334155;
  --hs-gradient: linear-gradient(135deg, #2EC4B6, #FF3CAC);

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2rem;
  --space-xl:  3rem;
  --space-2xl: 5rem;

  --container-max: 1200px;
  --container-pad: clamp(1.5rem, 5vw, 3rem);
  --transition:    300ms ease;
  --radius-sm:     0.5rem;
  --radius-md:     1rem;
  --nav-height:    72px;
}

/* 3. RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; width: 100%; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  color: var(--hs-gray);
  background-color: var(--hs-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main, footer { position: relative; z-index: 2; }
nav { z-index: 100; }
img, video { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; }

/* 4. TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--hs-white);
  line-height: 1.1;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.1; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); line-height: 1.2; font-weight: 600; }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* Gradient text (teal→purple→pink) */
.gradient-text {
  background: var(--hs-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero headline — JS typewriter */
.hero-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-align: center;
  min-height: 1.2em;
  background: linear-gradient(135deg, #2EC4B6, #7C3AED, #FF3CAC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-cursor {
  display: inline;
  color: #2EC4B6;
  animation: blink 0.7s step-end infinite;
  -webkit-text-fill-color: #2EC4B6;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* glitch-text removed */
  100% { text-shadow: 2px 2px 0 rgba(46,196,182,.4),-1px -1px 0 rgba(255,60,172,.3); transform: translateX(0); }
}

/* 5. LAYOUT */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.section { padding-block: var(--space-2xl); }
section { padding: 7rem 2rem; }
@media (max-width: 768px) { section { padding: 4rem 1.5rem; } }
.section-dark  { background-color: rgba(11, 17, 32, 0.40);  }
.section-slate { background-color: rgba(30, 41, 59, 0.15); }
.section-navy  { background-color: rgba(27, 42, 74, 0.20);  }

/* Kill light sections — entire site is dark */
.section-light { background-color: rgba(27, 42, 74, 0.20) !important; }
.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4 { color: var(--hs-white) !important; }
.section-light p,
.section-light li { color: var(--hs-gray) !important; }

/* card-light → treat as card-glass in dark context */
.card-light h3,
.card-light h4 { color: var(--hs-white) !important; }
.card-light p  { color: var(--hs-gray)  !important; }

/* how-step text (was dark in light section) */
.how-step h3 { color: var(--hs-white); }
.how-step p  { color: var(--hs-gray); opacity: 0.85; }

.text-center { text-align: center; }
.text-teal   { color: var(--hs-teal); }
.text-pink   { color: var(--hs-pink); }
.text-gray   { color: var(--hs-gray); }
.text-white  { color: var(--hs-white); }

/* Section labels */
.section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--hs-teal);
  margin-bottom: 0.75rem;
  display: block;
}
.section-heading { margin-bottom: 1rem; }
.text-center .section-label,
.text-center h2,
.text-center .accent-line { display: block; margin-inline: auto; }
.section-sub { font-size: 1.05rem; max-width: 640px; }
.section-sub.centered { margin-inline: auto; }

/* Section dividers */
.section-divider {
  width: 100%;
  height: 40px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.section-divider::before {
  content: '';
  position: absolute;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46,196,182,.2), rgba(255,60,172,.1), transparent);
}
.section-divider::after {
  content: '';
  width: 8px;
  height: 8px;
  border: 1px solid rgba(46,196,182,.3);
  transform: rotate(45deg);
  background: var(--hs-dark);
  z-index: 1;
}

/* 6. GRID */
.grid { display: grid; gap: var(--space-md); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.two-col { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); }
@media (min-width: 768px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* 7. CARDS */
.card-glass {
  background: rgba(27, 42, 74, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1), border-color 400ms ease, box-shadow 400ms ease, background 400ms ease;
}
.card-glass::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46,196,182,.2), rgba(255,60,172,.1), transparent);
  pointer-events: none;
}
.card-glass::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 16px; height: 16px;
  border-bottom: 1px solid rgba(46, 196, 182, 0.2);
  border-right: 1px solid rgba(46, 196, 182, 0.2);
}
.card-glass:hover {
  transform: translateY(-6px);
  border-color: rgba(46, 196, 182, 0.15);
  box-shadow: 0 0 40px rgba(46, 196, 182, 0.08), 0 20px 40px rgba(0, 0, 0, 0.3);
  background: rgba(27, 42, 74, 0.4);
}
.card-glass:hover .card-link,
.card-glass:hover .learn-more {
  color: var(--hs-white);
  text-shadow: 0 0 10px rgba(46, 196, 182, 0.3);
}

.card-solid {
  background: var(--hs-navy);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.card-solid::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46,196,182,.2), rgba(255,60,172,.1), transparent);
  pointer-events: none;
}
.card-solid:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 196, 182, 0.1);
  box-shadow: 0 0 30px rgba(46, 196, 182, 0.06), 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* card-light is dark now */
.card-light {
  background: rgba(27, 42, 74, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.card-light::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46,196,182,.2), rgba(255,60,172,.1), transparent);
  pointer-events: none;
}
.card-light:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 196, 182, 0.2);
  box-shadow: 0 8px 32px rgba(46, 196, 182, 0.08);
}

/* 8. BUTTONS */
.btn-primary {
  display: inline-block;
  background: transparent;
  color: var(--hs-teal);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 0;
  border: 1px solid var(--hs-teal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 300ms ease, background 300ms ease, box-shadow 300ms ease;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}
.btn-primary:hover {
  background: rgba(46,196,182,.1);
  color: var(--hs-white);
  box-shadow: 0 0 20px rgba(46,196,182,.15), inset 0 0 20px rgba(46,196,182,.05);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--hs-gray);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 0;
  border: 1px solid var(--hs-border);
  cursor: pointer;
  transition: color 300ms ease, border-color 300ms ease;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}
.btn-secondary:hover { color: var(--hs-teal); border-color: var(--hs-teal); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.78rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* 9. COMPONENTS */
.icon-teal { color: var(--hs-teal); width: 2.5rem; height: 2.5rem; margin-bottom: 1rem; }
.icon-teal svg { width: 100%; height: 100%; stroke: var(--hs-teal); }
.icon-sm { width: 1.5rem; height: 1.5rem; }
.icon-lg { width: 3rem; height: 3rem; }

/* Badges */
.badge {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.badge-coral,
.badge-pink {
  background: rgba(255, 60, 172, 0.15);
  color: var(--hs-pink);
  border: 1px solid rgba(255, 60, 172, 0.3);
}
.badge-teal {
  background: rgba(46, 196, 182, 0.15);
  color: var(--hs-teal);
  border: 1px solid rgba(46, 196, 182, 0.3);
}

/* Accent line — now 3-stop gradient */
.accent-line {
  width: 80px;
  height: 3px;
  background: var(--hs-gradient);
  border-radius: 999px;
  margin-block: 1.25rem;
}
.accent-line.centered { margin-inline: auto; }

/* Step numbers */
.step-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--hs-teal);
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

/* Icon list */
.icon-list { display: grid; gap: 0.75rem; }
.icon-list-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.icon-list-item svg { flex-shrink: 0; width: 1.25rem; height: 1.25rem; stroke: var(--hs-teal); margin-top: 0.15rem; }

/* Card parts */
.card-icon { margin-bottom: 1rem; }
.card-icon svg { width: 2rem; height: 2rem; stroke: var(--hs-teal); }
.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--hs-white);
  margin-bottom: 0.5rem;
}
.card-glass .card-title,
.card-solid .card-title,
.card-light .card-title {
  background: linear-gradient(135deg, #2EC4B6, #FF3CAC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.card-desc { font-size: 0.9rem; color: var(--hs-gray); margin-bottom: 0; }
.card-link { display: inline-block; margin-top: 1rem; color: var(--hs-teal); font-weight: 600; font-size: 0.875rem; transition: opacity var(--transition); }
.card-link:hover { opacity: 0.8; }

/* Misc */
a.teal-link { color: var(--hs-teal); font-weight: 600; transition: opacity var(--transition); }
a.teal-link:hover { opacity: 0.8; }
.format-detail { display: flex; gap: 0.5rem; align-items: flex-start; margin-bottom: 0.75rem; font-size: 0.95rem; }
.format-detail strong { color: var(--hs-white); min-width: 120px; }
.divider { border: none; border-top: 1px solid var(--hs-border); margin-block: var(--space-xl); }
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: block; } .show-mobile { display: none; } }

/* 10. SCROLL ANIMATIONS */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger.visible > *:nth-child(2) { transition-delay: 80ms; }
.stagger.visible > *:nth-child(3) { transition-delay: 160ms; }
.stagger.visible > *:nth-child(4) { transition-delay: 240ms; }
.stagger.visible > *:nth-child(5) { transition-delay: 320ms; }
.stagger.visible > *:nth-child(6) { transition-delay: 400ms; }
.stagger.visible > *:nth-child(7) { transition-delay: 480ms; }
.stagger.visible > *:nth-child(8) { transition-delay: 560ms; }
.stagger.visible > *:nth-child(9) { transition-delay: 640ms; }
.stagger.visible > * { opacity: 1; transform: translateY(0); }

/* animate-in (JS-assigned) */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-in.visible { opacity: 1; transform: translateY(0); }
.animate-in:nth-child(2) { transition-delay: 0.1s; }
.animate-in:nth-child(3) { transition-delay: 0.2s; }
.animate-in:nth-child(4) { transition-delay: 0.3s; }
.animate-in:nth-child(5) { transition-delay: 0.4s; }
.animate-in:nth-child(6) { transition-delay: 0.5s; }

/* 11. FORMS */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.form-label { font-size: 0.875rem; font-weight: 600; color: var(--hs-white); }
.form-label .optional { font-weight: 400; color: var(--hs-gray); margin-left: 0.25rem; font-size: 0.8rem; }
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--hs-dark);
  color: var(--hs-white);
  border: 1px solid var(--hs-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--hs-gray); opacity: 0.6; }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--hs-teal);
  box-shadow: 0 0 0 3px rgba(46,196,182,.15);
}
.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 6 8 10 12 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}
.form-select option { background: var(--hs-slate); color: var(--hs-white); }
.form-textarea { resize: vertical; min-height: 140px; }
.form-message { display: none; padding: 1rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem; margin-top: 1rem; }
.form-message.success { display: block; background: rgba(46,196,182,.1); color: var(--hs-teal); border: 1px solid rgba(46,196,182,.3); }
.form-message.error   { display: block; background: rgba(255,60,172,.1); color: var(--hs-pink); border: 1px solid rgba(255,60,172,.3); }

/* Contact */
.contact-info-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1.25rem; }
.contact-info-item svg { width: 1.25rem; height: 1.25rem; stroke: var(--hs-teal); flex-shrink: 0; margin-top: 0.15rem; }
.contact-info-item a { color: var(--hs-teal); font-weight: 600; transition: opacity var(--transition); }
.contact-info-item a:hover { opacity: 0.8; }

/* Legal */
.legal-content { max-width: 780px; }
.legal-content h2 { font-size: 1rem; color: var(--hs-white); margin-top: var(--space-lg); margin-bottom: 0.75rem; }
.legal-content p { color: var(--hs-gray); margin-bottom: 1rem; }

/* How steps */
.how-steps { display: grid; gap: var(--space-lg); grid-template-columns: 1fr; }
@media (min-width: 768px) { .how-steps { grid-template-columns: repeat(3, 1fr); } }
.how-step { text-align: center; }
.how-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: rgba(46,196,182,.1);
  border-radius: 50%;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(46,196,182,.15);
}
.how-step-icon svg { width: 2rem; height: 2rem; stroke: var(--hs-teal); }

/* Steps grid */
.steps-grid { display: grid; gap: var(--space-md); grid-template-columns: 1fr; }
@media (min-width: 768px)  { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }

/* 12. NAV */
nav {
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 1100px;
  background: rgba(11, 17, 32, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  transition: background 300ms ease;
}
nav.scrolled {
  background: rgba(11, 17, 32, 0.92);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-icon { width: 36px !important; height: 36px !important; max-width: 36px !important; max-height: 36px !important; flex-shrink: 0; display: block; }
.nav-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--hs-white);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hs-gray);
  text-decoration: none;
  padding: 0.4rem 0.5rem;
  transition: color 300ms ease;
  white-space: nowrap;
  position: relative;
}
.nav-link:hover { color: var(--hs-teal); }
.nav-link::before { content: '[ '; opacity: 0; transition: opacity 300ms ease; color: var(--hs-teal); }
.nav-link::after  { content: ' ]'; opacity: 0; transition: opacity 300ms ease; color: var(--hs-teal); }
.nav-link:hover::before, .nav-link:hover::after { opacity: 0.6; }
.dropdown-arrow { font-size: 0.7rem; margin-left: 2px; }
.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0;
  background: rgba(11, 17, 32, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 220px;
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
/* Invisible bridge fills the gap so hover isn't lost crossing it */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -0.75rem;
  left: 0;
  right: 0;
  height: 0.75rem;
}
.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--hs-gray);
  text-decoration: none;
  border-radius: 8px;
  transition: background 200ms ease, color 200ms ease;
}
.dropdown-menu a:hover { background: rgba(46,196,182,.08); color: var(--hs-teal); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.nav-login { font-size: 0.75rem; }
.nav-login::before, .nav-login::after { display: none; }
.nav-btn {
  background: transparent;
  color: var(--hs-teal);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border: 1px solid var(--hs-teal);
  border-radius: 0;
  cursor: pointer;
  transition: background 300ms ease, box-shadow 300ms ease;
  text-decoration: none;
  white-space: nowrap;
}
.nav-btn::before, .nav-btn::after { display: none; }
.nav-btn:hover { background: rgba(46,196,182,.1); box-shadow: 0 0 15px rgba(46,196,182,.1); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--hs-white); border-radius: 999px; }
/* ============================================================
   MOBILE — all changes below max-width: 768px
   ============================================================ */
@media (max-width: 768px) {
  /* Nav */
  nav {
    top: 12px !important;
    left: 0.75rem !important;
    right: 0.75rem !important;
    width: auto !important;
    transform: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 50px !important;
  }
  .nav-links { display: none !important; }
  .nav-right { display: none !important; }
  .hamburger { display: flex !important; }
  .nav-logo-text { font-size: 0.85rem; }

  /* Cards/grids stack to single column */
  .grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; gap: 1rem; }

  /* Hero */
  .hero { padding-top: 6rem; min-height: 80vh; }
  .hero-headline { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-sub { font-size: 1rem; padding: 0 0.5rem; }

  /* Buttons */
  .btn-group { flex-direction: column; align-items: center; width: 100%; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 300px; text-align: center; }

  /* Section */
  section { padding: 4rem 1.25rem; }
  h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .section-label { font-size: 0.65rem; }

  /* Status bar */
  .status-bar { font-size: 0.5rem; padding: 0.2rem 0.75rem; letter-spacing: 0.08em; }

  /* Footer */
  .footer { padding: 3rem 1.25rem 2rem; }
  .footer .container { padding-inline: 0; }
  .data-label { font-size: 0.55rem; }

  /* Blobs — prevent horizontal scroll */
  .gradient-blob-1, .gradient-blob-2 { width: 80vw; height: 80vw; }
  .hero-blob { width: 100vw; height: 40vh; }
}

/* Hamburger → X animation */
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(6, 10, 19, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 200;
  padding: 6rem 2rem 2rem;
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu-content { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-menu-content a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hs-gray);
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: color 200ms ease;
}
.mobile-menu-content a:hover { color: var(--hs-teal); }
.mobile-menu-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46,196,182,0.2), rgba(255,60,172,0.1), transparent);
  margin: 1rem 0;
}
.mobile-menu-cta {
  color: var(--hs-teal) !important;
  border: 1px solid var(--hs-teal) !important;
  text-align: center;
  padding: 0.75rem 1.5rem !important;
  margin-top: 0.5rem;
  border-bottom: none !important;
}

/* 13. HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 8rem;
  padding-bottom: var(--space-2xl);
  position: relative;
  overflow: hidden;
  background-color: transparent;
  text-align: center;
}
.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.0;
  background: var(--hs-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* hero::after circle removed */

.hero-inner { padding-top: 2rem; text-align: center; }
.hero .section-label   { display: block; }
.hero .hero-sub        { margin-inline: auto; }
.hero .btn-group       { justify-content: center; }
.hero .accent-line     { margin-inline: auto; }
.hero-content          { max-width: 760px; margin-inline: auto; }
.hero .container       { position: relative; z-index: 1; }

/* Hero glow — 3-stop radial */
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.hero-glow::before {
  content: '';
  position: absolute;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: 80vw; height: 80vw;
  max-width: 800px; max-height: 800px;
  background: radial-gradient(ellipse at center,
    rgba(46,196,182,.12) 0%,
    rgba(124,58,237,.05) 35%,
    rgba(255,60,172,.04) 55%,
    transparent 70%);
  border-radius: 50%;
}

/* .hud-element removed */

/* Inner page hero */
.hero-inner-page {
  min-height: 40vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding-top: 8rem;
  padding-bottom: var(--space-xl);
  background-color: transparent;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero-inner-page::after {
  content: '';
  position: absolute;
  top: 20px; right: 20px;
  width: 200px; height: 200px;
  border: 1px solid rgba(46,196,182,.08);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero-inner-page .container   { width: 100%; position: relative; z-index: 1; }
.hero-inner-page .section-label { display: block; }
.hero-inner-page .hero-sub    { margin-inline: auto; }
.hero-inner-page .btn-group   { justify-content: center; }
.hero-inner-page .accent-line { margin-inline: auto; }
.hero-inner-page .hud-element { width: 200px; height: 200px; opacity: 0.5; }
.hero-inner-page .hero-glow   { opacity: 0.6; }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--hs-gray);
  max-width: 600px;
  margin-block: 1.25rem;
}

/* 14. FOOTER */
.footer {
  background-color: var(--hs-dark);
  border-top: 1px solid rgba(46,196,182,.08);
  padding: var(--space-xl) 5%;
}
.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 0;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); margin-bottom: var(--space-xl); }
@media (min-width: 560px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-logo-name { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--hs-white); letter-spacing: 0.12em; text-transform: uppercase; }
.footer-logo-tag  { font-family: 'DM Sans', sans-serif; font-size: 0.8rem; color: var(--hs-gray); margin-bottom: 1rem; }
.footer-desc { font-size: 0.875rem; color: var(--hs-gray); margin-bottom: 1.25rem; max-width: 280px; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; color: var(--hs-gray); transition: color var(--transition); }
.footer-social a:hover { color: var(--hs-teal); }
.footer-social svg { width: 1.2rem; height: 1.2rem; stroke: currentColor; }
.footer-col-title { font-family: 'Space Grotesk', sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hs-white); margin-bottom: 1rem; }
.footer-link { display: block; font-size: 0.875rem; color: var(--hs-gray); margin-bottom: 0.5rem; transition: color var(--transition); }
.footer-link:hover { color: var(--hs-teal); }
.footer-bottom { padding-top: var(--space-md); border-top: 1px solid rgba(46,196,182,.06); display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; } }
.footer-copy { font-size: 0.8rem; color: var(--hs-gray); }
.footer-legal-links { display: flex; gap: 1rem; }
.footer-legal-links a { font-size: 0.8rem; color: var(--hs-gray); transition: color var(--transition); }
.footer-legal-links a:hover { color: var(--hs-teal); }
.footer-disclaimer { font-size: 0.75rem; color: var(--hs-gray); opacity: 0.7; margin-top: 0.75rem; max-width: 640px; }

/* 15. CTA SECTION */
.cta-section {
  background: rgba(27, 42, 74, 0.20);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: var(--space-2xl);
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(46,196,182,.1) 0%, rgba(124,58,237,.05) 40%, transparent 70%);
  pointer-events: none;
}
.cta-section::after {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46,196,182,.3), rgba(255,60,172,.15), transparent);
}
.cta-section > * { position: relative; z-index: 1; }
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p  { margin-bottom: 2rem; max-width: 560px; margin-inline: auto; }
@media (max-width: 768px) {
  .cta-section::before { width: 100vw; height: 200px; }
}

/* ============================================================
   16. NEW DESIGN ELEMENTS
   ============================================================ */

/* HUD grid background */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(46,196,182,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,196,182,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Gradient blobs */
.gradient-blob-1 {
  position: fixed;
  top: -20%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(46,196,182,0.18) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
  animation: blob-drift-1 30s ease-in-out infinite alternate;
}
.gradient-blob-2 {
  position: fixed;
  bottom: -20%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(255,60,172,0.14) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
  animation: blob-drift-2 25s ease-in-out infinite alternate;
}
@keyframes blob-drift-1 {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(5vw, 8vh); }
}
@keyframes blob-drift-2 {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-4vw, -6vh); }
}

/* Hero blob */
.hero-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  max-width: 900px;
  height: 50vh;
  background: radial-gradient(ellipse, rgba(46,196,182,0.1) 0%, rgba(124,58,237,0.06) 30%, rgba(255,60,172,0.04) 60%, transparent 80%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: hero-blob-morph 20s ease-in-out infinite alternate;
}
@keyframes hero-blob-morph {
  0%   { transform: translate(-50%, -50%) scale(1);    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  50%  { transform: translate(-50%, -50%) scale(1.05); border-radius: 60% 40% 30% 70% / 50% 60% 40% 60%; }
  100% { transform: translate(-50%, -50%) scale(0.95); border-radius: 50% 50% 60% 40% / 60% 40% 50% 50%; }
}

/* Floating particles */
.particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.particle { position: absolute; display: block; opacity: 0.15; }
.p1, .p4, .p7 { width: 6px; height: 6px; background: var(--hs-teal); transform: rotate(45deg); }
.p2, .p5, .p8 { width: 4px; height: 4px; background: var(--hs-pink); border-radius: 50%; }
.p3, .p6, .p9 { width: 10px; height: 10px; background: transparent; }
.p3::before, .p6::before, .p9::before { content: '+'; font-size: 12px; color: var(--hs-teal); opacity: 0.6; }
.p1  { top: 12%; left: 8%;  animation: drift-1 35s ease-in-out infinite alternate; }
.p2  { top: 25%; left: 85%; animation: drift-2 28s ease-in-out infinite alternate; }
.p3  { top: 40%; left: 15%; animation: drift-3 32s ease-in-out infinite alternate; }
.p4  { top: 55%; left: 70%; animation: drift-1 40s ease-in-out infinite alternate; }
.p5  { top: 70%; left: 25%; animation: drift-2 30s ease-in-out infinite alternate; }
.p6  { top: 15%; left: 55%; animation: drift-3 38s ease-in-out infinite alternate; }
.p7  { top: 80%; left: 90%; animation: drift-1 33s ease-in-out infinite alternate; }
.p8  { top: 35%; left: 45%; animation: drift-2 36s ease-in-out infinite alternate; }
.p9  { top: 60%; left: 5%;  animation: drift-3 29s ease-in-out infinite alternate; }
@keyframes drift-1 {
  0%   { transform: translate(0, 0) rotate(45deg); }
  100% { transform: translate(30px, -40px) rotate(45deg); }
}
@keyframes drift-2 {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-25px, 35px); }
}
@keyframes drift-3 {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(20px, 25px); }
}

/* Status bar */
.status-bar {
  width: 100%;
  padding: 0.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--hs-teal);
  opacity: 0.4;
  background: var(--hs-black);
  border-bottom: 1px solid rgba(46,196,182,.06);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 101;
}

/* Nav client login tweak for new nav style */
.nav-client-login {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Card solid corner bracket */
.card-solid::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 14px; height: 14px;
  border-bottom: 1px solid rgba(46,196,182,.15);
  border-right: 1px solid rgba(46,196,182,.15);
}

/* Data flow footer */
.data-flow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 0 0.5rem;
  opacity: 0.3;
  border-top: 1px solid rgba(46,196,182,.04);
  margin-top: var(--space-md);
}
.data-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--hs-teal);
  white-space: nowrap;
}
.data-line {
  flex: 1;
  height: 1px;
  background: rgba(46,196,182,.1);
  position: relative;
  overflow: hidden;
}
.data-pulse {
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--hs-teal), transparent);
  animation: pulse-flow 3s linear infinite;
}
@keyframes pulse-flow {
  0%   { left: -30%; }
  100% { left: 100%; }
}

/* Hero sub text bump */
.hero-sub { color: #B0BEC5; }
