/* ============================================
   AERO-MINIMALISM DESIGN SYSTEM
   Tea Ritual & Leaf - Futuristic Tea Experience
   ============================================ */

:root {
  /* Color Palette */
  --color-ethereal-violet: #2E004F;
  --color-matcha-plasma: #98FF98;
  --color-translucent-pearl: rgba(253, 253, 253, 0.4);
  --color-dark-space: #0A0014;
  --color-light-mist: rgba(152, 255, 152, 0.1);
  --color-accent-glow: rgba(152, 255, 152, 0.3);
  
  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 50%;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;
  
  /* Shadows & Effects */
  --shadow-glow: 0 0 20px rgba(152, 255, 152, 0.2);
  --shadow-float: 0 10px 40px rgba(46, 0, 79, 0.3);
  --blur-glass: blur(20px);
  --blur-soft: blur(10px);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-translucent-pearl);
  background: var(--color-dark-space);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Digital Steam Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(152, 255, 152, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(46, 0, 79, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(152, 255, 152, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  animation: steam-drift 20s ease-in-out infinite;
}

@keyframes steam-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.1); }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-matcha-plasma);
}

h1 {
  font-size: clamp(1.4rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1rem, 3vw, 2rem);
}

p {
  margin-bottom: var(--space-md);
  font-weight: 300;
  letter-spacing: 0.01em;
}

a {
  color: var(--color-matcha-plasma);
  text-decoration: none;
  transition: all var(--transition-base);
}

a:hover {
  color: var(--color-translucent-pearl);
  text-shadow: 0 0 10px var(--color-matcha-plasma);
}

/* Vertical Layout Titles */
.vertical-title {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  letter-spacing: 0.1em;
  margin: 0;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 0, 20, 0.6);
  backdrop-filter: var(--blur-glass);
  border-bottom: 1px solid var(--color-translucent-pearl);
}

.brand-text {
  font-family: var(--font-display);
  font-size: clamp(0.8rem, 2vw, 1.5rem);
  font-weight: 500;
  color: var(--color-matcha-plasma);
  text-transform: uppercase;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
  list-style: none;
}

.desktop-nav-link {
  font-size: 0.875rem;
  color: var(--color-translucent-pearl);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
}

.desktop-nav-link:hover {
  color: var(--color-matcha-plasma);
  text-shadow: 0 0 10px var(--color-matcha-plasma);
}

.desktop-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-matcha-plasma);
  transition: width var(--transition-base);
}

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

/* Burger Menu */
.burger-toggle {
  display: none;
  background: transparent;
  z-index: 10001;
  border: 1px solid var(--color-matcha-plasma);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  cursor: pointer;
  color: var(--color-matcha-plasma);
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.burger-toggle:hover {
  background: var(--color-matcha-plasma);
  color: var(--color-dark-space);
  box-shadow: var(--shadow-glow);
}

.burger-toggle.active {
  background: var(--color-matcha-plasma);
  color: var(--color-dark-space);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 0, 20, 0.98);
  backdrop-filter: var(--blur-glass);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-xl);
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav-link {
  font-size: clamp(1.5rem, 2vw, 2.5rem);
  color: var(--color-matcha-plasma);
  padding: var(--space-md);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-base);
}

.mobile-nav-link:hover {
  border-bottom-color: var(--color-matcha-plasma);
  text-shadow: 0 0 20px var(--color-matcha-plasma);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

main {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

/* ============================================
   FULL-WIDTH HERO BANNERS
   ============================================ */

.hero-banner {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xxl) var(--space-md);
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: var(--space-xl);
}

.hero-title {
  margin-bottom: var(--space-lg);
  text-shadow: 0 0 30px var(--color-matcha-plasma);
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 800px;
  margin: 0 auto;
  color: var(--color-translucent-pearl);
}

/* ============================================
   SECTIONS
   ============================================ */

.content-section {
  padding: var(--space-xxl) var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* Glass Cards */
.glass-card {
  background: var(--color-translucent-pearl);
  backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-matcha-plasma);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-float);
  transition: all var(--transition-base);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(152, 255, 152, 0.3);
}

/* ============================================
   SENSORY FREQUENCY MIXER
   ============================================ */

.frequency-mixer-container {
  padding: var(--space-xxl) var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

.mixer-controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.frequency-slider-wrapper {
  position: relative;
  padding: var(--space-lg);
}

.frequency-slider-label {
  display: block;
  margin-bottom: var(--space-md);
  font-size: 1.125rem;
  color: var(--color-matcha-plasma);
}

.frequency-slider {
  width: 100%;
  height: 8px;
  background: rgba(152, 255, 152, 0.2);
  border-radius: var(--radius-full);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.frequency-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: var(--color-matcha-plasma);
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: all var(--transition-base);
}

.frequency-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 30px var(--color-matcha-plasma);
}

.frequency-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--color-matcha-plasma);
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-glow);
  transition: all var(--transition-base);
}

.frequency-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 30px var(--color-matcha-plasma);
}

.frequency-indicator {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  color: var(--color-translucent-pearl);
}

/* Spectrogram Visualization */
.spectrogram-container {
  width: 100%;
  height: 200px;
  background: rgba(10, 0, 20, 0.8);
  border: 1px solid var(--color-matcha-plasma);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-top: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.spectrogram-canvas {
  width: 100%;
  height: 100%;
}

.spectrogram-labels {
  position: absolute;
  bottom: var(--space-sm);
  left: var(--space-md);
  right: var(--space-md);
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-matcha-plasma);
}

/* ============================================
   STEEPING CHRONOGRAPH (NEBULA)
   ============================================ */

.chronograph-container {
  padding: var(--space-xxl) var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.nebula-display {
  width: 100%;
  max-width: 600px;
  height: 600px;
  margin: var(--space-xl) auto;
  position: relative;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.nebula-canvas {
  width: 100%;
  height: 100%;
}

.chronograph-controls {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

.chrono-button {
  padding: var(--space-md) var(--space-xl);
  background: var(--color-translucent-pearl);
  backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-matcha-plasma);
  border-radius: var(--radius-md);
  color: var(--color-matcha-plasma);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-base);
  margin-top: 10px;
}

.chrono-button:hover {
  background: var(--color-matcha-plasma);
  color: var(--color-dark-space);
  box-shadow: var(--shadow-glow);
}

.chrono-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   TERROIR SATELLITE (GLOBE)
   ============================================ */

.terroir-container {
  padding: var(--space-xxl) var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

.globe-visualization {
  width: 100%;
  height: 600px;
  background: rgba(10, 0, 20, 0.8);
  border: 1px solid var(--color-matcha-plasma);
  border-radius: var(--radius-lg);
  margin: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.thermal-map {
  width: 100%;
  height: 100%;
  position: relative;
}

.thermal-map .region-info.active {
  display: block;
}

.region-marker {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--color-matcha-plasma);
  box-shadow: var(--shadow-glow);
  cursor: pointer;
  transition: all var(--transition-base);
}

.region-marker:hover {
  transform: scale(2);
  z-index: 10;
}

.region-info {
  position: absolute;
  background: var(--color-translucent-pearl);
  backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-matcha-plasma);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  min-width: 200px;
  max-width: 250px;
  display: none;
  z-index: 20;
  pointer-events: auto;
}

.region-info h4 {
  margin-bottom: var(--space-sm);
  font-size: 1rem;
}

.region-info p {
  margin-bottom: var(--space-xs);
  font-size: 0.875rem;
}

/* ============================================
   VESSEL GALLERY (BLUEPRINT)
   ============================================ */

.artifacts-container {
  padding: var(--space-xxl) var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

.artifact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.artifact-card {
  background: var(--color-translucent-pearl);
  backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-matcha-plasma);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.blueprint-frame {
  width: 100%;
  height: 300px;
  position: relative;
  margin-bottom: var(--space-md);
  background: rgba(10, 0, 20, 0.6);
  border: 1px solid var(--color-matcha-plasma);
  border-radius: var(--radius-md);
}

.blueprint-wireframe {
  width: 100%;
  height: 100%;
  stroke: var(--color-matcha-plasma);
  fill: none;
  stroke-width: 2;
}

.technical-callout {
  position: absolute;
  font-size: 0.75rem;
  color: var(--color-matcha-plasma);
  background: rgba(10, 0, 20, 0.8);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-matcha-plasma);
}

/* ============================================
   PRODUCTS PAGE
   ============================================ */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.product-card {
  background: var(--color-translucent-pearl);
  backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-matcha-plasma);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-float);
}

.product-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.product-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.product-price {
  font-size: 1.25rem;
  color: var(--color-matcha-plasma);
  font-weight: 500;
  margin-top: var(--space-md);
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-container {
  padding: var(--space-xxl) var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--color-matcha-plasma);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  background: var(--color-translucent-pearl);
  backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-matcha-plasma);
  border-radius: var(--radius-md);
  color: var(--color-translucent-pearl);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-matcha-plasma);
  box-shadow: 0 0 20px rgba(152, 255, 152, 0.3);
  background: rgba(253, 253, 253, 0.5);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.checkbox-input {
  margin-top: 4px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.checkbox-label {
  font-size: 0.875rem;
  line-height: 1.5;
}

.submit-button {
  padding: var(--space-md) var(--space-xl);
  background: var(--color-matcha-plasma);
  color: var(--color-dark-space);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
  margin-top: var(--space-md);
}

.submit-button:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-matcha-plasma);
  margin-top: var(--space-xl);
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contact-info {
  margin-top: var(--space-xl);
}

.contact-item {
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.contact-icon {
  font-size: 1.5rem;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: rgba(10, 0, 20, 0.8);
  backdrop-filter: var(--blur-glass);
  border-top: 1px solid var(--color-translucent-pearl);
  padding: var(--space-xl) var(--space-md);
  margin-top: var(--space-xxl);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.footer-nav {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--color-translucent-pearl);
  transition: all var(--transition-base);
}

.footer-link:hover {
  color: var(--color-matcha-plasma);
}

.footer-copyright {
  font-size: 0.75rem;
  color: rgba(253, 253, 253, 0.5);
  text-align: center;
}

/* ============================================
   PRIVACY POPUP
   ============================================ */

.privacy-popup {
  position: fixed;
  bottom: var(--space-lg);
  left: var(--space-md);
  right: var(--space-md);
  max-width: 500px;
  z-index: 10000;
  background: var(--color-translucent-pearl);
  backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-matcha-plasma);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-float);
  animation: slide-up 0.5s ease-out;
}

@keyframes slide-up {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.privacy-popup-content h3 {
  margin-bottom: var(--space-md);
  font-size: 1.25rem;
}

.privacy-popup-content p {
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
}

.privacy-popup-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.privacy-accept {
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-matcha-plasma);
  color: var(--color-dark-space);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-base);
}

.privacy-accept:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.privacy-learn-more {
  padding: var(--space-sm) var(--space-lg);
  background: transparent;
  color: var(--color-matcha-plasma);
  border: 1px solid var(--color-matcha-plasma);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  transition: all var(--transition-base);
}

.privacy-learn-more:hover {
  background: var(--color-matcha-plasma);
  color: var(--color-dark-space);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.date {
  font-size: 0.875rem;
  color: rgba(253, 253, 253, 0.6);
  font-style: italic;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1023px) {
  .desktop-nav {
    display: none;
  }
  
  .burger-toggle {
    display: flex;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-banner {
    min-height: 50vh;
  }
  
  .hero-content {
    padding-top: var(--space-lg);
  }
}

@media (max-width: 768px) {
  :root {
    font-size: 14px;
  }
  
  .content-section {
    padding: var(--space-lg) var(--space-md);
  }
  
  .frequency-mixer-container,
  .chronograph-container,
  .terroir-container,
  .artifacts-container,
  .contact-container {
    padding: var(--space-lg) var(--space-md);
  }
  
  .nebula-display {
    height: 400px;
  }
  
  .globe-visualization {
    height: 400px;
  }
  
  .artifact-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  :root {
    font-size: 12px;
  }
  
  .site-header {
    padding: var(--space-sm);
  }
  
  main {
    margin-top: 60px;
  }
  
  .hero-banner {
    min-height: 40vh;
    padding: var(--space-lg) var(--space-sm);
  }
  
  .glass-card {
    padding: var(--space-md);
  }
  
  .chronograph-controls {
    flex-direction: column;
  }
  
  .chrono-button {
    width: 100%;
  }
}

@media (max-width: 320px) {
  :root {
    font-size: 11px;
  }
  
  .hero-banner {
    min-height: 35vh;
  }
  
  .nebula-display,
  .globe-visualization {
    height: 300px;
  }
}

