:root {
  /* Color Palette - Royal Obsidian Collection */
  --primary: #0A1022;
  --secondary: #0F1A33;
  --tertiary: #111C2A;
  --accent: #152238;
  --deep: #1A2F45;
  
  /* Luminous Neutrals */
  --light-100: #FFFFFF;
  --light-90: #F8FAFB;
  --light-80: #ECF1F4;
  --light-70: #DFE6EA;
  --neutral-50: #A8B5BF;
  --neutral-60: #8896A2;
  
  /* Eco Accent Tones */
  --eco-mint: #A8E6CF;
  --eco-sage: #88D4AB;
  --eco-ocean: #56B7D1;
  
  /* Spacing Rhythm */
  --space-xs: 0.375rem;
  --space-sm: 0.625rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Typography Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 0.9375rem;
  --text-md: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.25rem;
  --text-3xl: 3rem;
  
  /* Elevation System */
  --shadow-sm: 0 1px 3px rgba(10, 16, 34, 0.08);
  --shadow-md: 0 4px 12px rgba(10, 16, 34, 0.12);
  --shadow-lg: 0 8px 24px rgba(10, 16, 34, 0.15);
  --shadow-xl: 0 16px 48px rgba(10, 16, 34, 0.18);
  
  /* Border Architecture */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 50%;
  
  /* Motion Choreography */
  --transition-quick: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-elegant: 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  
  /* Layout Constraints */
  --container-max: 75rem;
  --container-narrow: 50rem;
  --container-wide: 90rem;
}

/* ===== FOUNDATIONAL RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--primary);
  background: var(--light-90);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== TYPOGRAPHY ORCHESTRATION ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-md); }
h6 { font-size: var(--text-base); }

p {
  margin-bottom: var(--space-md);
  color: var(--accent);
}

a {
  color: var(--eco-ocean);
  text-decoration: none;
  transition: color var(--transition-quick);
}

a:hover {
  color: var(--eco-sage);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== INNOVATIVE HEADER CONSTELLATION ===== */
.celestial-header {
  position: relative;
  padding: var(--space-lg) 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  box-shadow: var(--shadow-md);
  z-index: 1000;
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-constellation {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-text {
  font-family: 'Poppins', sans-serif;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--light-100);
  letter-spacing: -0.02em;
  text-transform: capitalize;
}

/* Navigation Symphony */
.nav-symphony {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
}

.nav-symphony a {
  color: var(--light-90);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition-smooth);
  position: relative;
}

.nav-symphony a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--eco-mint);
  transition: width var(--transition-smooth);
}

.nav-symphony a:hover::after {
  width: 80%;
}

.nav-symphony a:hover {
  color: var(--eco-mint);
  background: rgba(168, 230, 207, 0.1);
}

/* Burger Mechanism */
.burger-trigger {
  display: none;
  flex-direction: column;
  gap: 0.375rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.burger-line {
  width: 1.75rem;
  height: 2px;
  background: var(--light-100);
  transition: all var(--transition-smooth);
  border-radius: var(--radius-sm);
}

.burger-trigger.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translateY(0.5rem);
}

.burger-trigger.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-trigger.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translateY(-0.5rem);
}

/* ===== IMMERSIVE SECTION ARCHITECTURE ===== */
.section-canvas {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section-canvas:nth-child(even) {
  background: var(--light-100);
}

.container-fluid {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-crown {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-subtitle {
  color: var(--eco-ocean);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: var(--text-2xl);
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.section-description {
  max-width: var(--container-narrow);
  margin: 0 auto;
  color: var(--accent);
  font-size: var(--text-base);
}

/* ===== HERO CONSTELLATION ===== */
.hero-realm {
  min-height: 65vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--tertiary) 0%, var(--deep) 100%);
  position: relative;
  overflow: hidden;
  padding: var(--space-3xl) 0;
}

.hero-realm::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(168, 230, 207, 0.15), transparent 50%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(var(--text-2xl), 5vw, var(--text-3xl));
  color: var(--light-100);
  margin-bottom: var(--space-lg);
  font-weight: 700;
  line-height: 1.1;
}

.hero-description {
  font-size: var(--text-md);
  color: var(--light-80);
  max-width: 45rem;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}

/* ===== BUTTON CONSTELLATION ===== */
.btn-crystalline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--primary);
  background: var(--eco-mint);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.btn-crystalline:hover {
  background: var(--eco-sage);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--light-100);
  border: 2px solid var(--light-100);
}

.btn-ghost:hover {
  background: var(--light-100);
  color: var(--primary);
}

.btn-compact {
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-sm);
}

/* ===== GRID ECOSYSTEM ===== */
.grid-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.grid-two {
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
}

.grid-three {
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

/* ===== CARD ARCHITECTURE ===== */
.card-essence {
  background: var(--light-100);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  border: 1px solid var(--light-70);
}

.card-essence:hover {
  transform: translateY(-0.375rem);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--eco-mint), var(--eco-sage));
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  color: var(--primary);
  font-size: 1.5rem;
}

.card-title {
  font-size: var(--text-lg);
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.card-text {
  color: var(--accent);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* ===== PRODUCT SHOWCASE ===== */
.product-prism {
  background: var(--light-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-smooth);
  border: 1px solid var(--light-70);
}

.product-prism:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow-xl);
}

.product-visual {
  width: 100%;
  height: 14rem;
  background: linear-gradient(135deg, var(--light-80), var(--light-90));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--eco-mint);
  color: var(--primary);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
}

.product-details {
  padding: var(--space-lg);
}

.product-name {
  font-size: var(--text-lg);
  color: var(--primary);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.product-description {
  color: var(--accent);
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.product-price {
  font-size: var(--text-xl);
  color: var(--eco-ocean);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.feature-tag {
  padding: var(--space-xs) var(--space-sm);
  background: var(--light-80);
  color: var(--accent);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 500;
}

/* ===== CONTACT SANCTUARY ===== */
.contact-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
}

.contact-portal {
  background: var(--light-100);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.form-cluster {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  font-size: var(--text-base);
  font-family: 'Inter', sans-serif;
  color: var(--primary);
  background: var(--light-90);
  border: 2px solid var(--light-70);
  border-radius: var(--radius-md);
  transition: all var(--transition-quick);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--eco-ocean);
  background: var(--light-100);
  box-shadow: 0 0 0 3px rgba(86, 183, 209, 0.1);
}

.form-textarea {
  min-height: 9rem;
  resize: vertical;
}

.checkbox-constellation {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.checkbox-constellation input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.125rem;
  cursor: pointer;
  accent-color: var(--eco-ocean);
}

.checkbox-constellation label {
  font-size: var(--text-sm);
  color: var(--accent);
  cursor: pointer;
  line-height: 1.5;
}

/* ===== CONTACT INFO CARDS ===== */
.info-constellation {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.info-crystal {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--light-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--eco-mint);
}

.info-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--eco-mint), var(--eco-sage));
  border-radius: var(--radius-md);
  color: var(--primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.info-content h4 {
  font-size: var(--text-base);
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.info-content p {
  font-size: var(--text-sm);
  color: var(--accent);
  margin: 0;
}

.info-content a {
  color: var(--eco-ocean);
  word-break: break-all;
}

/* ===== MAP INTEGRATION ===== */
.map-container {
  width: 100%;
  height: 22rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: var(--space-xl);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== FOOTER MINIMALISM ===== */
.footer-realm {
  background: var(--primary);
  padding: var(--space-xl) 0 var(--space-lg);
  color: var(--light-80);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.footer-column h4 {
  color: var(--light-100);
  font-size: var(--text-base);
  margin-bottom: var(--space-md);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--light-80);
  font-size: var(--text-sm);
  transition: color var(--transition-quick);
}

.footer-links a:hover {
  color: var(--eco-mint);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--text-xs);
  color: var(--light-70);
}

/* ===== PRIVACY POPUP PORTAL ===== */
.privacy-veil {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--light-100);
  padding: var(--space-lg);
  box-shadow: var(--shadow-xl);
  z-index: 10000;
  transform: translateY(100%);
  transition: transform var(--transition-elegant);
  border-top: 3px solid var(--eco-mint);
}

.privacy-veil.visible {
  transform: translateY(0);
}

.privacy-content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.privacy-text {
  flex: 1;
  min-width: 18rem;
}

.privacy-text h4 {
  font-size: var(--text-md);
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.privacy-text p {
  font-size: var(--text-sm);
  color: var(--accent);
  margin: 0;
}

.privacy-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ===== 404 AESTHETIC ===== */
.error-sanctuary {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-md);
}

.error-content {
  max-width: 36rem;
}

.error-code {
  font-size: 7rem;
  font-weight: 700;
  color: var(--eco-mint);
  line-height: 1;
  margin-bottom: var(--space-lg);
}

.error-title {
  font-size: var(--text-2xl);
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.error-description {
  color: var(--accent);
  margin-bottom: var(--space-xl);
}

/* ===== THANK YOU REALM ===== */
.gratitude-sphere {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-md);
  background: linear-gradient(135deg, var(--light-90) 0%, var(--light-100) 100%);
}

.gratitude-content {
  max-width: 40rem;
}

.gratitude-icon {
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--eco-mint), var(--eco-sage));
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-xl);
  color: var(--primary);
  font-size: 2.5rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ===== RESPONSIVE CHOREOGRAPHY ===== */
@media (max-width: 64rem) {
  :root {
    --text-3xl: 2.5rem;
    --text-2xl: 2rem;
    --space-3xl: 4.5rem;
  }
}

@media (max-width: 48rem) {
  :root {
    --text-3xl: 2rem;
    --text-2xl: 1.75rem;
    --text-xl: 1.5rem;
    --space-2xl: 3rem;
    --space-3xl: 3.5rem;
  }
  
  .nav-symphony {
    position: fixed;
    top: 0;
    right: -100%;
    width: 16rem;
    height: 100vh;
    background: var(--primary);
    flex-direction: column;
    padding: var(--space-3xl) var(--space-xl);
    gap: var(--space-lg);
    transition: right var(--transition-elegant);
    box-shadow: var(--shadow-xl);
    z-index: 999;
  }
  
  .nav-symphony.active {
    right: 0;
  }
  
  .burger-trigger {
    display: flex;
  }
  
  .grid-matrix {
    grid-template-columns: 1fr;
  }
  
  .contact-matrix {
    grid-template-columns: 1fr;
  }
  
  .privacy-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 30rem) {
  :root {
    --text-3xl: 1.75rem;
    --text-2xl: 1.5rem;
    --text-xl: 1.25rem;
    --space-md: 0.875rem;
    --space-lg: 1.25rem;
    --space-xl: 2rem;
    --space-2xl: 2.5rem;
    --space-3xl: 3rem;
  }
  
  .hero-realm {
    min-height: 55vh;
  }
  
  .card-essence {
    padding: var(--space-lg);
  }
  
  .map-container {
    height: 16rem;
  }
}
/* ===== ULTRA-SMALL DEVICES — 320px PERFECT OPTIMIZATION ===== */
@media (max-width: 20rem) { /* 320px */

  :root {
    /* Even tighter spacing + smaller typographic scale */
    --text-3xl: 1.5rem;
    --text-2xl: 1.35rem;
    --text-xl: 1.125rem;
    --text-lg: 1rem;
    --text-base: 0.875rem;
    --text-sm: 0.8rem;
    
    --space-xl: 1.5rem;
    --space-lg: 1rem;
    --space-md: 0.75rem;
    --space-sm: 0.5rem;
  }

  /* HEADER */
  .header-inner {
    padding: 0 var(--space-sm);
  }

  .logo-text {
    font-size: 1.125rem;
  }

  /* BURGER MENU */
  .burger-line {
    width: 1.5rem;
  }

  /* NAV DRAWER */
  .nav-symphony {
    width: 14rem;
    padding: var(--space-2xl) var(--space-lg);
  }

  /* HERO SECTION */
  .hero-title {
    font-size: 1.4rem;
  }

  .hero-description {
    font-size: var(--text-sm);
    padding: 0 var(--space-sm);
  }

  .btn-crystalline,
  .btn-ghost {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-sm);
  }

  /* GRID */
  .grid-matrix {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* CARD */
  .card-essence {
    padding: var(--space-md);
  }

  .card-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }

  /* PRODUCT CARD */
  .product-visual {
    height: 10rem;
  }

  .product-details {
    padding: var(--space-md);
  }

  .product-name {
    font-size: var(--text-lg);
  }

  /* CONTACT FORM */
  .form-input,
  .form-textarea {
    padding: var(--space-sm);
    font-size: var(--text-sm);
  }

  .contact-matrix {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  /* INFO BLOCKS */
  .info-crystal {
    padding: var(--space-lg);
    gap: var(--space-sm);
  }

  .info-icon {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }

  /* MAP */
  .map-container {
    height: 14rem;
  }

  /* FOOTER */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* PRIVACY POPUP */
  .privacy-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }

  .privacy-actions {
    width: 100%;
    justify-content: center;
  }

  .privacy-veil {
    padding: var(--space-md);
  }

  /* 404 PAGE */
  .error-code {
    font-size: 4rem;
  }

  .error-title {
    font-size: var(--text-xl);
  }

  .error-description {
    font-size: var(--text-sm);
  }

  /* THANK YOU PAGE */
  .gratitude-icon {
    width: 4rem;
    height: 4rem;
    font-size: 2rem;
  }

}


/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--eco-ocean); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mt-xl { margin-top: var(--space-xl); }