:root {
  --bg-primary: #0E131F;
  --bg-surface: #161C2C;
  --accent-primary: #D9A05B;
  --accent-secondary: #C26D4F;
  --text-primary: #F4EAD4;
  --text-muted: rgba(244, 234, 212, 0.6);
  --border: rgba(244, 234, 212, 0.15);
  --sage-green: #4A5D4E;
  --dusty-blue: #5A7B8C;
  --deep-forest: #1C2D24;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

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

/* Utilities */
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-white { color: #FFF !important; }
.centered { text-align: center; margin-left: auto; margin-right: auto; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 0 20px;
}

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

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 55px;
  height: 55px;
  object-fit: cover;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 0 50 C 0 10 10 0 50 0 C 90 0 100 10 100 50 C 100 90 90 100 50 100 C 10 100 0 90 0 50 Z' /%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 0 50 C 0 10 10 0 50 0 C 90 0 100 10 100 50 C 100 90 90 100 50 100 C 10 100 0 90 0 50 Z' /%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

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

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  opacity: 0.8;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 1;
}

.badge-link {
  display: flex;
  align-items: center;
  opacity: 1 !important;
}

.app-store-badge-nav {
  height: 40px;
  transition: transform 0.2s;
}

.app-store-badge-nav:hover {
  transform: scale(1.05);
}

/* Immersive Hero */
.immersive-hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transform: scale(1.05);
  animation: subtleZoom 20s infinite alternate;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(14, 19, 31, 0.3), rgba(14, 19, 31, 0.85));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 20px;
  max-width: 800px;
}

.badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.glass-badge {
  background: rgba(244, 234, 212, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(244, 234, 212, 0.2);
  color: var(--text-primary);
}

.headline-xl {
  font-size: 5.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1rem;
}

.subheadline-light {
  font-size: 1.8rem;
  font-weight: 400;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 980px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-accent {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

.btn-accent:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.app-store-badge-hero {
  height: 52px;
  transition: transform 0.2s;
}

.app-store-badge-hero:hover {
  transform: scale(1.05);
}

/* Statement Section */
.statement-section {
  padding: 120px 20px;
  background: var(--bg-primary);
  text-align: center;
}

.statement-container {
  max-width: 1000px;
  margin: 0 auto;
}

.statement-text {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-muted);
}

.statement-text .highlight {
  color: var(--text-primary);
}

/* Split Section */
.split-section {
  display: flex;
  min-height: 700px;
}

.split-section.dark-split {
  background: var(--bg-surface);
}

.split-section.reverse {
  flex-direction: row-reverse;
}

.split-text {
  flex: 1;
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-image {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.image-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.split-section:hover .image-bg {
  transform: scale(1.03);
}

.section-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.section-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
}

/* Category Pills */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.5rem;
}

.category-pills .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
}

.category-pills .pill-icon {
  font-size: 1.1rem;
}

.pill-acoustic { border-bottom: 2px solid var(--accent-primary) !important; }
.pill-hydro { border-bottom: 2px solid var(--dusty-blue) !important; }
.pill-atmo { border-bottom: 2px solid #7B6F8A !important; }
.pill-bio { border-bottom: 2px solid var(--sage-green) !important; }
.pill-cozy { border-bottom: 2px solid var(--accent-secondary) !important; }

/* Mockup Card */
.mockup-card {
  background: var(--bg-surface);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  max-width: 400px;
  border: 1px solid var(--border);
}

/* Venue Cards */
.venue-section {
  padding: 120px 20px;
  background: var(--bg-primary);
}
.venue-container {
  max-width: 1200px;
  margin: 0 auto;
}
.venue-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.venue-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 280px;
  background-size: cover;
  background-position: center;
}

.venue-card-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, transparent, rgba(14, 19, 31, 0.9));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}

.venue-card h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.venue-card p {
  font-size: 1rem;
  color: var(--text-muted);
}

.venue-label {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
  color: var(--text-primary);
}

.venue-mood { border-bottom: 4px solid #D4894A; }
.venue-nature { border-bottom: 4px solid #7BC4B8; }
.venue-focus { border-bottom: 4px solid #9BB8D4; }
.venue-gallery { border-bottom: 4px solid #A78BFA; }


/* Dark Feature Section (for Nox) */
.nox-section {
  padding: 150px 20px;
  background: #07080F;
  text-align: center;
}

.nox-container {
  max-width: 800px;
  margin: 0 auto;
}

.nox-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.feature-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}

.feature-pill {
  background: rgba(194, 109, 79, 0.15);
  color: var(--accent-secondary);
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Immersive Feature (for Spatium) */
.immersive-feature {
  position: relative;
  height: 800px;
  display: flex;
  align-items: center;
  padding: 0 80px;
}

.immersive-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.immersive-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to right, rgba(14, 19, 31, 0.9) 0%, rgba(14, 19, 31, 0.2) 100%);
  z-index: 2;
}

.immersive-text {
  position: relative;
  z-index: 3;
  max-width: 600px;
}

/* Alchemy Section */
.alchemy-section {
  padding: 120px 20px;
  background: var(--bg-primary);
}

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

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.recipe-card {
  background: var(--bg-surface);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.recipe-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.recipe-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(217, 160, 91, 0.15);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.recipe-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.recipe-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.recipe-difficulty {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-weight: bold;
}

.recipe-locked {
  opacity: 0.4;
}
.recipe-locked .recipe-icon {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
}

/* iPhone Frame mockup */
.iphone-frame {
  width: 320px;
  height: 650px;
  background: #1C1C1E;
  border-radius: 50px;
  padding: 10px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  position: relative;
  margin: 0 auto;
}

.iphone-screen {
  width: 100%;
  height: 100%;
  border-radius: 40px;
  background: var(--bg-primary);
  overflow: hidden;
  position: relative;
}

.dynamic-island {
  width: 100px;
  height: 30px;
  background: #000;
  border-radius: 15px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.app-ui {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.app-ui-header {
    padding: 60px 20px 20px;
    background: var(--bg-surface);
}
.app-ui-body {
    padding: 20px;
    flex: 1;
}
.grid-item {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Stat Counter Row */
.stat-row {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 3rem;
  flex-wrap: wrap;
}

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

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-primary);
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Footer */
.footer {
  background: var(--bg-surface);
  padding: 80px 20px 40px;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  margin-bottom: 60px;
}
.footer-col h4 {
  font-size: 0.9rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.footer-col p, .footer-col a {
  color: var(--text-muted);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 12px;
}
.footer-col a:hover {
  color: var(--text-primary);
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 30px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUpAnim 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@keyframes subtleZoom {
  to { transform: scale(1.0); }
}

.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(217, 160, 91, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(217, 160, 91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 160, 91, 0); }
}

/* Legal Pages */
.legal-section {
  padding: 140px 20px 80px;
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-primary);
}
.legal-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.legal-subtitle {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1.1rem;
}
.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 30px 0 15px;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  color: var(--text-primary);
}
.legal-content p {
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-primary);
}
.legal-content ul {
  margin: 0 0 20px 24px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-primary);
}
.legal-content li {
  margin-bottom: 8px;
}
.legal-content a {
  color: var(--accent-primary);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .headline-xl { font-size: 4rem; }
  .statement-text { font-size: 2.5rem; }
  .split-section { flex-direction: column; }
  .split-section.reverse { flex-direction: column; }
  .split-text { padding: 60px 20px; text-align: center;}
  .split-image { min-height: 400px; }
  .immersive-feature { padding: 0 20px; text-align: center; justify-content: center; }
  .immersive-overlay { background: linear-gradient(to bottom, rgba(14,19,31,0.6), rgba(14,19,31,0.6)); }
  .footer-content { flex-direction: column; gap: 40px; }
  .venue-grid { grid-template-columns: 1fr; }
  .recipe-grid { grid-template-columns: repeat(2, 1fr); }
  .category-pills { justify-content: center; }
  .section-desc { margin-left: auto; margin-right: auto; }
}

@media (max-width: 480px) {
  .headline-xl { 
    font-size: 13vw; 
    word-break: break-word; 
  }
  .subheadline-light { font-size: 1.2rem; }
  .statement-text { font-size: 1.8rem; }
  .section-title { font-size: 2rem; }
  .statement-section { padding: 80px 20px; }
  .nox-section { padding: 80px 20px; }
  .venue-section { padding: 80px 20px; }
  .alchemy-section { padding: 80px 20px; }
  .split-text { padding: 40px 20px; }
  .immersive-feature { height: 600px; }
  .nav-links a:not(.badge-link) { display: none; }
  .recipe-grid { grid-template-columns: 1fr; }
  .stat-number { font-size: 2.2rem; }
  .stat-row { gap: 30px; }
}
