/* --- CONTAINER & GLOBAL LAYOUT --- */
.atd-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

/* --- NAVIGATION HEADER --- */
.atd-nav-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(7, 9, 14, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-border);
  transition: background 0.3s ease;
}

.atd-nav-header.scrolled {
  background: rgba(7, 9, 14, 0.95);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.atd-nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
}

.atd-nav__logo img {
  height: 32px;
  width: auto;
}

.desktop-nav .nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.desktop-nav .nav-links a {
  color: #a0aec0;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.desktop-nav .nav-links a:hover {
  color: var(--atd-cyan);
}

/* Spectrum Underline Indicator */
.nav-indicator {
  height: 2px;
  width: 100%;
  background: var(--grad-signature);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

/* Mobile Menu Toggle -- FIXED 2026-08-24: previously this button had
   display:none/block toggled correctly by the media query below, but
   the <span class="hamburger"> inside it (see header markup in
   index.html etc.) had NO styling anywhere in this file, so the button
   rendered as an empty, invisible tap target. Confirmed via real-device
   screenshot: nav links correctly disappeared at mobile width, but no
   hamburger icon ever appeared to replace them. This block now gives
   the toggle button a real size/layout, and draws a standard three-bar
   icon using the span as the middle bar plus two pseudo-elements for
   the top/bottom bars -- no HTML changes needed. */
.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: #f4f4f5;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

/* When navigation.js sets aria-expanded="true" on the button (menu open),
   morph the three bars into an X so the icon itself communicates open/
   close state, not just whatever menu panel navigation.js shows or hides. */
.mobile-menu-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* --- BUTTON STYLES --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
}

.btn-primary {
  background: var(--atd-electric-blue);
  color: #000;
  border: none;
}

.btn-primary:hover {
  box-shadow: var(--glow-subtle);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid var(--surface-border);
}

.btn-secondary:hover {
  border-color: var(--atd-cyan);
  color: var(--atd-cyan);
}

.btn-primary-spectrum {
  position: relative;
  background: var(--grad-signature);
  color: #fff;
  border: none;
  overflow: hidden;
  z-index: 1;
}

.btn-primary-spectrum::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  bottom: 1px;
  background: var(--bg-near-black-navy);
  border-radius: 7px;
  z-index: -1;
  transition: background 0.3s ease;
}

.btn-primary-spectrum:hover::before {
  background: transparent;
}

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  overflow: hidden;
}

#hero-network-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.6;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--atd-cyan);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.hero-section h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin: 0 0 1.5rem 0;
  background: linear-gradient(180deg, #ffffff 0%, #a0aec0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #cbd5e0;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- SECTIONS & CONTACT --- */
.approach-section, .contact-section {
  padding: 6rem 0;
}

.approach-section h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.approach-body {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #cbd5e0;
  max-width: 800px;
}

.brand-quote {
  margin-top: 2rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--atd-cyan);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--atd-cyan);
}

.contact-card {
  padding: 3rem;
  max-width: 650px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input, .form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  padding: 0.85rem;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--atd-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

#form-status-message {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.status-success { color: var(--atd-cyan); }
.status-error { color: #ff4d4d; }

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {
  .hero-section h1 { font-size: 2.25rem; }
  .desktop-nav { display: none; }
  .mobile-menu-toggle { display: flex; }

  /* Tighten the header at mobile width -- logo, toggle button, and
     Log In/Sign Up were previously all flex children under
     space-between with no gap control, which read as visually cramped
     once the full nav-links list was hidden. */
  .nav-wrapper {
    gap: 0.5rem;
  }

  .atd-nav__logo {
    font-size: 0.95rem;
  }

  .atd-nav__logo img {
    height: 26px;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }

  .nav-actions .btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
  }

  /* FIXED 2026-08-24: this is the actual missing piece behind the
     "hamburger icon toggles but nothing opens" bug. navigation.js
     correctly adds/removes a "nav-open" class on .desktop-nav when the
     toggle is clicked, but no rule anywhere overrode the base
     ".desktop-nav { display: none; }" rule above -- so the class
     toggled every time, and visually nothing ever happened. This turns
     .desktop-nav.nav-open into an actual dropdown panel anchored under
     the fixed header. */
  .desktop-nav.nav-open {
    display: block;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(7, 9, 14, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface-border);
    padding: 1.5rem;
    z-index: 999;
  }

  .desktop-nav.nav-open .nav-links {
    flex-direction: column;
    gap: 1.25rem;
  }

  .desktop-nav.nav-open .nav-links a {
    font-size: 1.05rem;
    display: block;
  }
}

/* --- GLOBAL ATD FOOTER --- */
.atd-footer {
  position: relative;
  background-color: var(--bg-near-black-navy);
  color: #a0aec0;
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--surface-border);
  font-size: 0.95rem;
}

/* Thin Top Signature-Spectrum Accent */
.atd-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--grad-signature);
  opacity: 0.85;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand .brand-logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.footer-brand .brand-logo-group img {
  height: 32px;
  width: auto;
}

.footer-tagline {
  color: #fff;
  font-weight: 500;
  margin: 0 0 0.5rem 0;
  font-size: 1.05rem;
}

.footer-category {
  font-family: var(--font-mono);
  color: var(--atd-cyan);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin: 0;
}

.footer-column h4 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem 0;
  font-family: var(--font-mono);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #a0aec0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--atd-cyan);
}

.footer-address p {
  margin: 0;
  line-height: 1.6;
  color: #a0aec0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  font-size: 0.85rem;
  color: #718096;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: #718096;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: #cbd5e0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column-reverse;
    gap: 1rem;
    text-align: center;
  }
}