:root {
  /* Colors */
  --color-bg-primary: #0E0E10;
  --color-bg-secondary: #1C1F26;
  --color-panel: #2F3640;
  --color-text-primary: #ffffff;
  --color-text-secondary: #5E6C84;
  --color-accent: #00ADB5;
  --color-accent-hover: #00c2cb;
  --color-overlay: rgba(14, 14, 16, 0.8);
  
  /* Typography */
  --font-primary: 'Space Grotesk', sans-serif;
  --font-secondary: 'Outfit', sans-serif;
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-md: 1.125rem;   /* 18px */
  --text-lg: 1.25rem;    /* 20px */
  --text-xl: 1.5rem;     /* 24px */
  --text-2xl: 1.875rem;  /* 30px */
  --text-3xl: 2.25rem;   /* 36px */
  --text-4xl: 3rem;      /* 48px */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-loose: 1.8;
  
  /* Spacing */
  --space-xs: 0.25rem;   /* 4px */
  --space-sm: 0.5rem;    /* 8px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4rem;     /* 64px */
  
  /* Borders */
  --radius-sm: 0.25rem;  /* 4px */
  --radius-md: 0.5rem;   /* 8px */
  --radius-lg: 0.75rem;  /* 12px */
  --radius-xl: 1rem;     /* 16px */
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 15px rgba(0, 173, 181, 0.5);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;
  
  /* Container */
  --container-padding: 1.5rem;
  --container-max-width: 1200px;
}

/* RESET & BASE STYLES */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-normal);
}

a:hover {
  color: var(--color-accent-hover);
}

button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  background-color: var(--color-accent);
  color: var(--color-bg-primary);
}

button:hover, .btn:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--text-4xl);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

h6 {
  font-size: var(--text-md);
}

p {
  margin-bottom: var(--space-md);
}

small {
  font-size: var(--text-xs);
}

/* LAYOUT */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--space-2xl) 0;
}

.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-lg);
}

/* HEADER */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) 0;
  transition: all var(--transition-normal);
  background-color: transparent;
}

.header.scrolled {
  background-color: var(--color-overlay);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  padding: var(--space-sm) 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-secondary);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo span {
  color: var(--color-accent);
}

.nav {
  display: flex;
  gap: var(--space-xl);
}

.nav-link {
  color: var(--color-text-primary);
  position: relative;
  font-weight: 500;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: var(--text-xl);
  cursor: pointer;
}

/* HERO SECTION */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-primary);
  padding-top: 120px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xl);
  color: var(--color-text-secondary);
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: 1;
  opacity: 0.8;
  background: linear-gradient(90deg, var(--color-bg-primary), transparent);
  background-size: cover;
  background-position: center;
}

.hero-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background-color: var(--color-accent);
  border-radius: 50%;
  opacity: 0.5;
  z-index: 1;
  animation: float 15s infinite linear;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(50px, -50px);
  }
  50% {
    transform: translate(100px, 0);
  }
  75% {
    transform: translate(50px, 50px);
  }
}

/* CARDS */
.card {
  background-color: var(--color-panel);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: var(--space-lg);
}

.card-title {
  margin-bottom: var(--space-sm);
}

.card-text {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid rgba(94, 108, 132, 0.2);
}

/* FEATURES */
.features {
  padding: var(--space-3xl) 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.feature-title {
  margin-bottom: var(--space-sm);
}

.feature-text {
  color: var(--color-text-secondary);
}

/* PRODUCTS */
.product-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-panel);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.product-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-body {
  padding: var(--space-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  margin-bottom: var(--space-sm);
}

.product-description {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.product-price {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

/* CONTACT */
.contact-form {
  display: grid;
  gap: var(--space-md);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-label {
  font-weight: 500;
}

.form-input,
.form-textarea {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-text-secondary);
  background-color: var(--color-panel);
  color: var(--color-text-primary);
  font-family: var(--font-primary);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 173, 181, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.checkbox-group {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.form-checkbox {
  margin-top: 5px;
}

/* FOOTER */
.footer {
  background-color: var(--color-bg-secondary);
  padding: var(--space-xl) 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
}

.footer-logo {
  margin-bottom: var(--space-md);
}

.footer-text {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: var(--space-sm);
}

.footer-link a {
  color: var(--color-text-secondary);
  transition: color var(--transition-normal);
}

.footer-link a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(94, 108, 132, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-copyright {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

/* COOKIE CONSENT */
.cookie-consent {
  position: fixed;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 500px;
  background-color: var(--color-panel);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cookie-text {
  margin-bottom: var(--space-sm);
}

.cookie-buttons {
  display: flex;
  gap: var(--space-md);
}

/* ANIMATIONS */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

/* THANK YOU PAGE */
.thank-you {
  text-align: center;
  padding: var(--space-3xl) 0;
}

.thank-you-icon {
  font-size: 4rem;
  color: var(--color-accent);
  margin-bottom: var(--space-xl);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* 404 PAGE */
.error-page {
  text-align: center;
  padding: var(--space-3xl) 0;
}

.error-code {
  font-size: 8rem;
  font-weight: 900;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  line-height: 1;
}

/* MAP */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* MEDIA QUERIES */
@media (max-width: 1024px) {
  :root {
    --container-padding: 1.25rem;
  }
  
  .grid {
    gap: var(--space-md);
  }
  
  .hero-bg {
    width: 40%;
  }
}

@media (max-width: 768px) {
  :root {
    --text-4xl: 2.5rem;
    --text-3xl: 2rem;
    --text-2xl: 1.75rem;
    --text-xl: 1.25rem;
    --container-padding: 1rem;
  }
  
  .hero-section {
    min-height: auto;
    padding: var(--space-3xl) 0;
  }
  
  .hero-bg {
    width: 100%;
    opacity: 0.2;
  }
  
  .section {
    padding: var(--space-xl) 0;
  }
  
  .feature-grid, 
  .grid {
    grid-template-columns: repeat(1, 1fr);
  }
  
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-bg-secondary);
    flex-direction: column;
    padding: var(--space-2xl);
    gap: var(--space-lg);
    transition: right var(--transition-normal);
    z-index: 200;
  }
  
  .nav.open {
    right: 0;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .mobile-menu-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  :root {
    --text-base: 0.875rem;
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
  }
  
  h1 {
    font-size: var(--text-3xl);
  }
  
  .card, .product-card {
    width: 100%;
  }
  
  .error-code {
    font-size: 6rem;
  }
}