/* ============================================
   VUELA NOVA — EXPERIMENTAL FOOTWEAR
   Dark-mode landing page
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #000000;
  --white: #ffffff;
  --red: #FF0000;
  --grey: #737373;
  --blue: #7E87D9;
  --mint: #8DF4A5;
  --magenta: #E01073;
  --dark-grey: #0a0a0a;
  --mid-grey: #1a1a1a;
  --light-grey: #2a2a2a;

  --font-display: 'Pirata One', cursive;
  --font-heading: 'Metamorphous', cursive;
  --font-body: 'Open Sans', sans-serif;
  --font-fraktur: 'UnifrakturMaguntia', cursive;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s ease;
  background: transparent;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.nav-logo.visible {
  opacity: 1;
  pointer-events: auto;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  filter: invert(1);
  transition: transform 0.3s ease;
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 0;
  font-weight: 600;
  letter-spacing: 2px;
}

.nav-link-cta::after {
  display: none;
}

.nav-link-cta:hover {
  background: #cc0000;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 20px 24px;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.mobile-link {
  font-family: var(--font-heading);
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .mobile-menu.active {
    display: flex;
  }
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--black);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 0, 0, 0.03) 0%, transparent 70%),
    radial-gradient(circle at 20% 80%, rgba(126, 135, 217, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(141, 244, 165, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.hero-bats-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
  background: #000;
  opacity: 0;
  animation: batsIn 1s ease forwards 1s;
  filter: saturate(0) invert(1) contrast(3);
}

@keyframes batsIn {
  to {
    opacity: 1;
  }
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.hero-logo-wrapper {
  margin-bottom: 0;
  opacity: 0;
  transform: scale(0.8);
  animation: heroLogoIn 1.2s ease forwards 0.3s;
  will-change: transform, opacity;
}

.hero-logo {
  width: clamp(300px, 50vw, 500px);
  margin: 0 auto;
  filter: invert(1);
}

.hero-star {
  color: var(--red);
  font-size: 0.5em;
  animation: starPulse 3s ease-in-out infinite;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeIn 1s ease forwards 2s;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* --- Statement Section --- */
.statement {
  padding: 120px 0;
  background: var(--black);
  position: relative;
  overflow: hidden;
}

.statement::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 0, 0, 0.3), transparent);
}

.statement-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 10vw, 120px);
  font-weight: 400;
  letter-spacing: 8px;
  line-height: 1;
  margin-bottom: 24px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.statement-tagline {
  font-family: var(--font-heading);
  font-size: clamp(16px, 2.5vw, 22px);
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0;
}

/* --- About Section --- */
.about {
  padding: 120px 0;
  background: var(--dark-grey);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  margin-bottom: 32px;
  line-height: 1.2;
}

.section-title-center {
  text-align: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.value-item {
  padding: 24px;
  border-left: 2px solid var(--red);
  transition: all 0.3s ease;
}

.value-item:hover {
  background: rgba(255, 0, 0, 0.03);
  border-left-color: var(--white);
}

.value-icon {
  color: var(--red);
  font-size: 20px;
  display: block;
  margin-bottom: 8px;
}

.value-title {
  font-family: var(--font-heading);
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.value-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* --- Designs / 3D Viewer Section --- */
.designs {
  padding: 0;
  background: var(--black);
  position: relative;
}

.designs-heading {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  text-align: center;
  letter-spacing: 3px;
  padding: 60px 24px 24px;
  color: rgba(255, 255, 255, 0.4);
}

.viewer-container {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  background: var(--black);
  overflow: hidden;
}

#threeCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.viewer-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--black);
  gap: 16px;
  z-index: 10;
  transition: opacity 0.5s ease;
}

.viewer-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.viewer-loading p {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.loader {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.viewer-controls-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 24px;
  z-index: 5;
}

.viewer-controls-hint span {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
}

/* --- Viewer Info (below canvas) --- */
.viewer-info {
  text-align: center;
  padding: 48px 24px 80px;
  background: var(--black);
}

.viewer-model-name {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.viewer-model-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.viewer-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.viewer-tab {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.viewer-tab:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.viewer-tab.active {
  border-color: var(--red);
  color: var(--white);
  background: rgba(255, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .viewer-container {
    height: 50vh;
    min-height: 350px;
  }
  .viewer-controls-hint {
    flex-direction: column;
    gap: 4px;
    align-items: center;
  }
  .viewer-info {
    padding: 32px 24px 60px;
  }
}

/* --- Waitlist Section --- */
.waitlist {
  padding: 120px 0;
  background: var(--dark-grey);
  position: relative;
}

.waitlist::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 0, 0, 0.3), transparent);
}

.waitlist-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.waitlist-logo {
  width: 100px;
  margin: 0 auto 32px;
  opacity: 0.6;
}

.waitlist-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 40px;
  line-height: 1.8;
}

.waitlist-form {
  width: 100%;
}

.form-group {
  display: flex;
  gap: 0;
  width: 100%;
}

.form-group input {
  flex: 1;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-right: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: all 0.3s ease;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus {
  border-color: var(--red);
  background: rgba(255, 0, 0, 0.03);
}

.form-group button {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 32px;
  background: var(--red);
  border: 1px solid var(--red);
  color: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.form-group button:hover {
  background: #cc0000;
  border-color: #cc0000;
}

.form-group button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.form-message {
  margin-top: 16px;
  font-size: 14px;
  min-height: 20px;
}

.form-message.success {
  color: var(--mint);
}

.form-message.error {
  color: var(--red);
}

.form-disclaimer {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.5px;
}

@media (max-width: 520px) {
  .form-group {
    flex-direction: column;
  }
  .form-group input {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
  }
  .form-group input:focus {
    border-color: var(--red);
  }
}

/* --- Coming Soon Section --- */
.coming-soon {
  padding: 120px 0;
  background: var(--black);
  position: relative;
}

.coming-soon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 0, 0, 0.3), transparent);
}

.coming-soon-badge {
  display: block;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.coming-soon .section-title {
  margin-bottom: 60px;
}

.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.coming-soon-card {
  padding: 40px 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.4s ease;
  text-align: center;
}

.coming-soon-card:hover {
  border-color: var(--red);
  background: rgba(255, 0, 0, 0.03);
  transform: translateY(-4px);
}

.coming-soon-icon {
  color: var(--red);
  font-size: 24px;
  display: block;
  margin-bottom: 20px;
}

.coming-soon-card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.coming-soon-card-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .coming-soon-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* --- Footer --- */
.footer {
  padding: 60px 0 30px;
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-logo {
  height: 50px;
  filter: invert(1);
  opacity: 0.6;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.social-link:hover {
  border-color: var(--red);
  color: var(--red);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 1px;
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }
  .footer-tagline {
    max-width: 100%;
  }
}

/* --- Animations --- */
@keyframes heroLogoIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes starPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Scroll reveal utility --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Selection --- */
::selection {
  background: var(--red);
  color: var(--white);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: 3px;
}
