/* xθ — shared styles */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0a0a0a;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #fff;
}

/* ─── Nav ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-logo {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
}

.nav-logo-x {
  font-size: 1em;
}

.nav-logo-theta {
  font-style: normal;
}

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-center a {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
  transition: color 0.3s;
}

.nav-center > a:hover,
.nav-dropdown-trigger:hover {
  color: #fff;
}

/* ─── Products dropdown ─── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}

.nav-arrow {
  opacity: 0.5;
  transition: transform 0.3s, opacity 0.3s;
  margin-left: 0.15rem;
}

.nav-dropdown:hover .nav-arrow {
  opacity: 1;
}

.nav-dropdown:hover .nav-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 520px;
  padding: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
}

.nav-dropdown:hover .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-label {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0.4rem;
  padding-left: 0.4rem;
  width: 100%;
}

.nav-product {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem;
  border-radius: 8px;
  transition: background 0.2s;
  flex: 1;
  min-width: 220px;
}

.nav-product:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-product-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.nav-product-icon svg {
  width: 18px;
  height: 18px;
}

.nav-product-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
}

.nav-product-desc {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.15rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-cta {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s;
}

.nav-cta:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 10px;
  cursor: pointer;
  transition: border-color 0.3s;
}

.nav-menu:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.nav-menu span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.7);
  transition: all 0.3s;
}

.nav-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-menu.active span:nth-child(2) {
  opacity: 0;
}

.nav-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── Menu overlay ─── */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.99);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.menu-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 400px;
  padding: 0 2rem;
}

/* Products section */
.menu-products {
  margin-bottom: 2.5rem;
}

.menu-products-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 1.2rem;
}

.menu-product-item {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s;
}

.menu-product-item:last-child {
  border-bottom: none;
}

.menu-product-item:hover {
  padding-left: 0.5rem;
}

.menu-product-item strong {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

.menu-product-item span {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.3);
}

/* Nav links */
.menu-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-links a {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s;
}

.menu-links a:hover {
  color: #fff;
}

.menu-content a:hover {
  color: #fff;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

canvas#bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.7;
}

/* ─── 3D Pillars ─── */
.pillars {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.pillar {
  position: absolute;
  bottom: 0;
  width: 3.5%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(255, 255, 255, 0.04) 40%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  border-right: 1px solid rgba(255, 255, 255, 0.03);
  animation: pillarSway 8s ease-in-out infinite;
}

@keyframes pillarSway {
  0%, 100% { transform: scaleY(1) translateY(0); }
  50% { transform: scaleY(1.02) translateY(-5px); }
}

/* Warm edge lights */
.edge-light {
  position: absolute;
  bottom: 0;
  width: 120px;
  height: 60%;
  z-index: 2;
  pointer-events: none;
}

.edge-light-left {
  left: 5%;
  background: linear-gradient(0deg, rgba(180, 140, 80, 0.08) 0%, transparent 100%);
  filter: blur(30px);
}

.edge-light-right {
  right: 5%;
  background: linear-gradient(0deg, rgba(180, 140, 80, 0.06) 0%, transparent 100%);
  filter: blur(30px);
}

/* ─── Hero content ─── */
.hero-center {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 2rem;
}

.hero-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 2rem;
}

.hero-heading em {
  font-style: italic;
  font-weight: 500;
}

.rotating-word {
  display: inline;
  border-right: 2px solid rgba(255, 255, 255, 0.6);
  animation: blink 0.7s step-end infinite;
}

.rotating-word.typing {
  border-right-color: rgba(255, 255, 255, 0.6);
}

.rotating-word.idle {
  border-right-color: transparent;
  animation: none;
}

@keyframes blink {
  50% { border-right-color: transparent; }
}

.hero-sub {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  letter-spacing: 0.01em;
  margin-bottom: 0.6rem;
}

.hero-pillars {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.03em;
}

.sep {
  color: rgba(255, 255, 255, 0.2);
  margin: 0 0.3rem;
}

/* ─── Hero bottom CTA ─── */
.hero-bottom {
  position: absolute;
  bottom: 3rem;
  right: 3rem;
  z-index: 3;
}

.hero-qr {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s;
}

.hero-qr:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.hero-qr img {
  display: block;
}

.hero-qr-text {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
  text-transform: lowercase;
}

.hide-mobile {
  display: inline;
}

/* ─── Shared typography (for other pages) ─── */
.logo {
  font-size: clamp(6rem, 20vw, 16rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.9);
  user-select: none;
  line-height: 1;
}

.logo .logo-x {
  font-size: 1.35em;
  vertical-align: baseline;
}

.logo .theta {
  font-style: italic;
}

.center {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1;
  pointer-events: none;
}

.tagline-wrap {
  margin-top: 1.5rem;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 100%;
}

.tagline {
  font-size: clamp(1rem, 2.2vw, 1.6rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
}

.launching {
  font-size: clamp(0.6rem, 1.2vw, 0.85rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 0.5rem;
  text-decoration: underline;
  text-underline-offset: 0.4em;
  text-decoration-color: rgba(255, 255, 255, 0.15);
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4rem 3rem 2rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-logo {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.8rem;
}

.footer-logo-x {
  font-size: 1em;
}

.footer-logo-theta {
  font-style: normal;
}

.footer-tagline {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.5;
  margin-bottom: 1.2rem;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s;
}

.footer-social a:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col-title {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0.4rem;
}

.footer-col a {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1100px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.2);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .nav {
    padding: 1.2rem 1.5rem;
  }

  .nav-center {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .hero-heading {
    font-size: 2.8rem;
  }

  .hero-sub {
    font-size: 0.9rem;
  }

  .hide-mobile {
    display: none;
  }

  .hero-bottom {
    right: 1.5rem;
    bottom: 2rem;
  }

  .pillar {
    width: 5%;
  }

  .menu-content a {
    font-size: 1.8rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .site-footer {
    padding: 3rem 1.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-heading {
    font-size: 2.2rem;
  }

  .hero-bottom {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: 2rem;
  }

  .logo {
    font-size: 5rem;
  }

  .tagline {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .tagline-wrap {
    margin-top: 1rem;
  }

  .launching {
    font-size: 0.6rem;
    margin-top: 0.8rem;
  }
}
