/* ------------------------------------------------------------------
   ATG Dynamics — shared site styles
   Header, dropdown navigation, cards, buttons and page animations.
   ------------------------------------------------------------------ */

:root {
  --header-h: 72px;
}

body {
  margin: 0;
  background-color: #010208;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  /* Largest viewport so the canvas extends behind iOS Safari's collapsing toolbar */
  height: 100vh;
  height: 100lvh;
  z-index: -10;
  display: block;
}

/* ---------- Animations ---------- */

@keyframes subtleFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
  animation: subtleFade 2s ease-in-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 1s ease-out forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  background: transparent;
}

.site-header__inner {
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.site-logo:hover {
  color: #ffffff;
}

.site-logo img {
  /* logo-header.png: the logo.png wordmark, background keyed out and trimmed */
  height: 30px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.15));
}

/* ---------- Desktop nav ---------- */

.site-nav {
  display: none;
  align-items: center;
  gap: 8px;
  height: 100%;
}

@media (min-width: 768px) {
  .site-nav { display: flex; }
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s ease, background 0.3s ease;
}

.nav-link svg {
  width: 10px;
  height: 10px;
  opacity: 0.6;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-item:hover .nav-link,
.nav-item:focus-within .nav-link,
.nav-link[aria-current="page"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-item:hover .nav-link svg,
.nav-item:focus-within .nav-link svg {
  transform: rotate(180deg);
}

/* Dropdown — hidden until hover / keyboard focus */

.nav-dropdown {
  position: absolute;
  top: calc(100% - 12px);
  left: 50%;
  padding-top: 12px; /* hover bridge between link and panel */
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.3s;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}

.nav-dropdown__panel {
  min-width: 300px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(5, 7, 16, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.nav-dropdown__item,
.nav-dropdown__all {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0;
  transform: translateY(6px);
  transition: background 0.25s ease, color 0.25s ease, opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Staggered reveal of items when the panel opens */
.nav-item:hover .nav-dropdown__item,
.nav-item:hover .nav-dropdown__all,
.nav-item:focus-within .nav-dropdown__item,
.nav-item:focus-within .nav-dropdown__all {
  opacity: 1;
  transform: translateY(0);
}

.nav-dropdown__item:nth-child(1) { transition-delay: 0.05s; }
.nav-dropdown__item:nth-child(2) { transition-delay: 0.1s; }
.nav-dropdown__item:nth-child(3) { transition-delay: 0.15s; }
.nav-dropdown__all { transition-delay: 0.2s; }

.nav-dropdown__item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.nav-dropdown__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.nav-dropdown__icon svg {
  width: 17px;
  height: 17px;
}

.nav-dropdown__item:hover .nav-dropdown__icon {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.nav-dropdown__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-dropdown__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-dropdown__desc {
  font-size: 11px;
  font-weight: 300;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.45);
}

.nav-dropdown__all {
  justify-content: space-between;
  margin-top: 6px;
  padding: 14px 12px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 12px 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.nav-dropdown__all svg {
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
}

.nav-dropdown__all:hover {
  color: #ffffff;
}

.nav-dropdown__all:hover svg {
  transform: translateX(3px);
}

/* ---------- Mobile nav ---------- */

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  cursor: pointer;
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
}

.nav-toggle span {
  display: block;
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 16px 24px 28px;
  background: #04060f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

@media (min-width: 768px) {
  .mobile-menu { display: none; }
}

.mobile-menu__group + .mobile-menu__group {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu__label {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
}

.mobile-menu__link {
  display: block;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  text-decoration: none;
}

.mobile-menu__link--all {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Page layout helpers ---------- */

.page {
  padding-top: var(--header-h);
}

.eyebrow {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

/* ---------- Cards ---------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(4, 6, 15, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.4s ease, background 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.08), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

a.card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(10, 13, 24, 0.8);
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

a.card:hover::before {
  opacity: 1;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

.card__icon svg {
  width: 22px;
  height: 22px;
}

.card__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.card__desc {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

.card__meta {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card__price {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

.card__cta svg {
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
}

a.card:hover .card__cta {
  color: #ffffff;
}

a.card:hover .card__cta svg {
  transform: translateX(4px);
}

.card--muted {
  border-style: dashed;
}

.card--muted .card__title {
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Highlight panels ---------- */

.panel {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(4, 6, 15, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 24px;
}

/* ---------- Spec pills ---------- */

.spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  cursor: default;
}

.spec-pill svg {
  opacity: 0.5;
  flex-shrink: 0;
}

.spec-pill:hover {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.07);
}

.spec-pill:hover svg {
  opacity: 0.8;
}

/* ---------- Spec grid ---------- */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
}

@media (min-width: 768px) {
  .spec-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.spec-grid__value {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.spec-grid__label {
  margin-top: 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Included-items list ---------- */

.include-list {
  display: grid;
  gap: 12px;
}

.include-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(4, 6, 15, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.include-item__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
}

.include-item__icon svg {
  width: 20px;
  height: 20px;
}

.include-item__name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.include-item__desc {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
}

.include-item__qty {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.5s ease, color 0.5s ease, box-shadow 0.5s ease, background 0.5s ease;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.btn:hover::after {
  opacity: 1;
}

.btn > * {
  position: relative;
  z-index: 1;
}

.btn--primary {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.btn--primary:hover {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.25);
}

.btn--ghost {
  background: transparent;
  border-color: transparent;
  padding-left: 20px;
  padding-right: 20px;
}

.btn--ghost:hover {
  background: transparent;
  box-shadow: none;
  border-color: transparent;
}

.btn--ghost svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.btn--ghost:hover svg {
  transform: translateX(4px);
}

/* ---------- Footer ---------- */

.site-footer {
  width: 100%;
  padding: 48px 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.site-footer__copy {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #000000;
}

/* Touch devices: dropdown opened by tap (see site.js) */
.nav-item.is-touch-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}

.nav-item.is-touch-open .nav-dropdown__item,
.nav-item.is-touch-open .nav-dropdown__all {
  opacity: 1;
  transform: translateY(0);
}
