:root {
  --color-primary: #2c6e49;
  --color-secondary: #f4f1de;
  --color-bg-soft: #F5F4F2;
  --color-mist-blue: #CFE0E8;
  --color-graphite: #2D3238;
  --color-neo-mint: #B7F2CB;
  --color-coral-sand: #F9B6A7;
  
  --font-heading: 'Inter', 'Neue Haas Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-subheading: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;
  
  --shadow-sm: 0 2px 8px rgba(45, 50, 56, 0.08);
  --shadow-md: 0 4px 16px rgba(45, 50, 56, 0.12);
  --shadow-lg: 0 8px 32px rgba(45, 50, 56, 0.16);
  --glow-soft: 0 0 20px rgba(183, 242, 203, 0.3);
  --glow-coral: 0 0 20px rgba(249, 182, 167, 0.3);
  
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  --max-width: 1200px;
  --header-height: 80px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-graphite);
  background-color: var(--color-bg-soft);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-graphite);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-family: var(--font-subheading);
}

p {
  margin-bottom: var(--space-md);
}

.site-header {
  position: relative;
  background: linear-gradient(135deg, var(--color-bg-soft) 0%, var(--color-mist-blue) 100%);
  padding: var(--space-lg) var(--space-md);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-xl);
  transition: var(--transition-base);
}

.site-header.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.brand-text {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--color-graphite);
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  align-items: center;
}

.nav-link {
  font-family: var(--font-subheading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-graphite);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  position: relative;
}

.nav-link:hover {
  color: var(--color-primary);
  background: rgba(183, 242, 203, 0.2);
}

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

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.burger-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 24px;
  z-index: 1001;
}

.burger-line {
  width: 100%;
  height: 3px;
  background: var(--color-graphite);
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
}

.burger-toggle.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.burger-toggle.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-toggle.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

main {
  min-height: calc(100vh - 300px);
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.content-container {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 0 var(--space-md);
  overflow-x: hidden;
}

.hero-section {
  position: relative;
  padding: var(--space-xxl) var(--space-md);
  text-align: center;
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-xxl);
  overflow: hidden;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.hero-section[data-bg-image] {
  background-image: var(--hero-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-section[data-bg-image]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(245, 244, 242, 0.85) 0%, rgba(207, 224, 232, 0.85) 50%, rgba(245, 244, 242, 0.85) 100%);
  z-index: 0;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, rgba(183, 242, 203, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  animation: breath 8s ease-in-out infinite;
}

@keyframes breath {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.1) translate(2%, 2%); }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--color-graphite) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--color-graphite);
  opacity: 0.8;
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-image {
  margin: var(--space-xl) auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--glow-soft);
  animation: float 6s ease-in-out infinite;
  position: relative;
}

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

.content-section {
  padding: var(--space-xxl) 0;
  position: relative;
}

.content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-mist-blue), transparent);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-neo-mint), var(--color-coral-sand));
  border-radius: var(--radius-sm);
}

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

.floating-card {
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}


.floating-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), var(--glow-soft);
}

.floating-card:hover::before {
  opacity: 1;
}

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

.card-title {
  font-family: var(--font-subheading);
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.card-text {
  font-size: 0.95rem;
  color: var(--color-graphite);
  opacity: 0.8;
  line-height: 1.7;
}

.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-subheading);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  cursor: pointer;
  text-align: center;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-graphite) 100%);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--color-neo-mint);
  color: var(--color-graphite);
}

.btn-secondary:hover {
  background: var(--color-coral-sand);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-primary);
  color: white;
}

.form-container {
  max-width: 600px;
  margin: var(--space-xl) auto;
  background: var(--color-bg-soft);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

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

.form-label {
  display: block;
  font-family: var(--font-subheading);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--color-graphite);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--color-mist-blue);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  background: white;
  transition: var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-neo-mint);
  box-shadow: 0 0 0 3px rgba(183, 242, 203, 0.2);
}

.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 {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
}

.checkbox-label {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-graphite);
  opacity: 0.8;
}

.site-footer {
  background: linear-gradient(135deg, var(--color-graphite) 0%, var(--color-primary) 100%);
  color: white;
  padding: var(--space-xl) var(--space-md);
  margin-top: var(--space-xxl);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.footer-section h4 {
  font-family: var(--font-subheading);
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  color: var(--color-neo-mint);
}

.footer-menu {
  list-style: none;
}

.footer-link {
  display: block;
  padding: var(--space-xs) 0;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-base);
}

.footer-link:hover {
  color: var(--color-neo-mint);
  padding-left: var(--space-sm);
}

.footer-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--space-lg);
  text-align: center;
  grid-column: 1 / -1;
}

.privacy-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 50, 56, 0.8);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.privacy-overlay.active {
  display: flex;
}

.privacy-popup {
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: popupSlide 0.3s ease;
}

@keyframes popupSlide {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.popup-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-mist-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-base);
}

.popup-close:hover {
  background: var(--color-coral-sand);
  transform: rotate(90deg);
}

.popup-close::before,
.popup-close::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 2px;
  background: var(--color-graphite);
}

.popup-close::before {
  transform: rotate(45deg);
}

.popup-close::after {
  transform: rotate(-45deg);
}

.spine-diagram {
  width: 100%;
  max-width: 400px;
  margin: var(--space-xl) auto;
  padding: var(--space-lg);
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.spine-visual {
  width: 100%;
  height: 300px;
  background: linear-gradient(180deg, var(--color-neo-mint) 0%, var(--color-mist-blue) 100%);
  border-radius: var(--radius-md);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.spine-line {
  width: 8px;
  height: 80%;
  background: var(--color-graphite);
  border-radius: var(--radius-sm);
  position: relative;
  transition: var(--transition-slow);
}

.spine-segment {
  position: absolute;
  width: 100%;
  height: 20%;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
}

.slider-container {
  margin: var(--space-lg) 0;
}

.slider-label {
  font-family: var(--font-subheading);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  display: flex;
  justify-content: space-between;
}

.slider-input {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-sm);
  background: var(--color-mist-blue);
  outline: none;
  -webkit-appearance: none;
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--color-neo-mint);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.slider-input::-webkit-slider-thumb:hover {
  background: var(--color-coral-sand);
  transform: scale(1.2);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.comparison-item {
  padding: var(--space-lg);
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

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

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

.comparison-card {
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

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

.comparison-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-neo-mint), var(--color-coral-sand));
}

.metric-bar {
  margin: var(--space-md) 0;
}

.metric-label {
  font-family: var(--font-subheading);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  display: flex;
  justify-content: space-between;
}

.metric-value {
  height: 8px;
  background: var(--color-mist-blue);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.metric-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-neo-mint), var(--color-primary));
  border-radius: var(--radius-sm);
  transition: var(--transition-slow);
}

.ergo-score {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin: var(--space-md) 0;
}

.workspace-builder {
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
  box-shadow: var(--shadow-md);
}

.size-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.size-option {
  padding: var(--space-md);
  background: white;
  border: 2px solid var(--color-mist-blue);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-base);
}

.size-option:hover,
.size-option.active {
  border-color: var(--color-neo-mint);
  background: rgba(183, 242, 203, 0.1);
}

.canvas-container {
  width: 100%;
  min-height: 400px;
  background: white;
  border: 2px dashed var(--color-mist-blue);
  border-radius: var(--radius-md);
  margin: var(--space-lg) 0;
  position: relative;
  overflow: hidden;
}

.furniture-item {
  position: absolute;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-neo-mint);
  border-radius: var(--radius-md);
  cursor: move;
  user-select: none;
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  font-weight: 600;
}

.warning-message {
  padding: var(--space-md);
  background: rgba(249, 182, 167, 0.2);
  border-left: 4px solid var(--color-coral-sand);
  border-radius: var(--radius-md);
  margin: var(--space-md) 0;
  font-size: 0.9rem;
}

.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: var(--space-xl) 0;
}

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

.thank-you-section {
  text-align: center;
  padding: var(--space-xxl) var(--space-md);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.thank-you-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-xl);
  background: linear-gradient(135deg, var(--color-neo-mint), var(--color-coral-sand));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: var(--glow-soft);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.error-section {
  text-align: center;
  padding: var(--space-xxl) var(--space-md);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.error-code {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  opacity: 0.3;
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-bg-soft);
    flex-direction: column;
    padding: var(--space-xxl) var(--space-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    z-index: 1000;
  }

  .nav-menu.active {
    right: 0;
  }

  .burger-toggle {
    display: flex;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .comparison-wall {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding: var(--space-xl) var(--space-md);
  }

  .content-section {
    padding: var(--space-lg) 0;
  }
}

@media (max-width: 480px) {
  :root {
    font-size: 14px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .form-container {
    padding: var(--space-lg);
  }

  .privacy-popup {
    padding: var(--space-lg);
  }

  .workspace-builder {
    padding: var(--space-lg);
  }
}

@media (max-width: 320px) {
  :root {
    font-size: 12px;
  }

  .site-header {
    padding: var(--space-md) var(--space-sm);
  }

  main {
    padding: 0 var(--space-sm);
  }
}

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

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.hidden {
  display: none !important;
}

.fade-in {
  animation: fadeIn 0.5s ease;
}

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

