:root {
  /* Color Palette */
  --color-jet-black: #0E0F12;
  --color-dark-ash: #1D2025;
  --color-shadow-gray: #252931;
  --color-deep-space: #10141A;
  --color-blackened-steel: #1A1C22;
  
  /* Accent Colors */
  --color-accent-primary: #00D9FF;
  --color-accent-secondary: #7B68EE;
  --color-accent-tertiary: #00FFB3;
  --color-text-primary: #E8E9ED;
  --color-text-secondary: #9BA1B0;
  --color-text-muted: #6B7280;
  
  /* Typography */
  --font-primary: 'Space Grotesk', sans-serif;
  --font-secondary: 'JetBrains Mono', monospace;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px rgba(0, 217, 255, 0.3);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
  
  /* Layout */
  --max-width-sm: 640px;
  --max-width-md: 768px;
  --max-width-lg: 1024px;
  --max-width-xl: 1280px;
  --max-width-2xl: 1536px;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-jet-black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--font-size-4xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--font-size-3xl);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-base);
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
}

a {
  color: var(--color-accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-tertiary);
}

/* ============================================
   Innovative Header Design
   ============================================ */
.site-header {
  position: relative;
  background: linear-gradient(135deg, var(--color-deep-space) 0%, var(--color-blackened-steel) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
}

.header-inner {
  max-width: var(--max-width-xl);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
  transition: transform var(--transition-base);
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent-primary), var(--color-accent-tertiary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.logo:hover {
  transform: translateY(-2px);
}

.logo:hover::after {
  transform: scaleX(1);
}

/* Navigation */
.main-nav {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
}

.main-nav a {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  padding: var(--space-sm) 0;
  transition: color var(--transition-fast);
}

.main-nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--color-accent-primary);
  transform: translateX(-50%);
  transition: width var(--transition-base);
}

.main-nav a:hover {
  color: var(--color-text-primary);
}

.main-nav a:hover::before {
  width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-text-primary);
  transition: all var(--transition-base);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-deep-space) 0%, var(--color-jet-black) 100%);
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width-lg);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
}

.hero-title {
  font-size: var(--font-size-5xl);
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--color-text-primary), var(--color-accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-cta {
  display: inline-flex;
  gap: var(--space-md);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary));
  color: var(--color-jet-black);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 2px solid var(--color-accent-primary);
}

.btn-secondary:hover {
  background: var(--color-accent-primary);
  color: var(--color-jet-black);
  transform: translateY(-2px);
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: var(--space-4xl) var(--space-md);
  position: relative;
}

.section-container {
  max-width: var(--max-width-xl);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-title {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent-primary), var(--color-accent-tertiary));
}

.section-description {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* Alternating Section Backgrounds */
.section:nth-child(even) {
  background: var(--color-dark-ash);
}

/* ============================================
   Grid Layouts
   ============================================ */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* ============================================
   Card Components
   ============================================ */
.card {
  background: var(--color-shadow-gray);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.05), rgba(123, 104, 238, 0.05));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent-primary);
  box-shadow: var(--shadow-xl);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 50px;
  height: 50px;
  margin-bottom: var(--space-lg);
  color: var(--color-accent-primary);
}

.card-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

.card-description {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ============================================
   Product Cards
   ============================================ */
.product-card {
  background: var(--color-shadow-gray);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent-primary);
  box-shadow: 0 20px 40px rgba(0, 217, 255, 0.2);
}

.product-header {
  padding: var(--space-xl);
  background: linear-gradient(135deg, var(--color-deep-space), var(--color-blackened-steel));
  border-bottom: 2px solid var(--color-accent-primary);
}

.product-title {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-sm);
}

.product-price {
  font-size: var(--font-size-3xl);
  color: var(--color-accent-primary);
  font-weight: var(--font-weight-bold);
  font-family: var(--font-secondary);
}

.product-price-period {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  font-weight: var(--font-weight-normal);
}

.product-body {
  padding: var(--space-xl);
  flex: 1;
}

.product-features {
  list-style: none;
  margin-bottom: var(--space-xl);
}

.product-features li {
  padding: var(--space-sm) 0;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.product-features li::before {
  content: '✓';
  color: var(--color-accent-tertiary);
  font-weight: var(--font-weight-bold);
}

/* ============================================
   Contact Form
   ============================================ */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-info {
  position: relative;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  background: var(--color-shadow-gray);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-accent-primary);
}

.contact-info-icon {
  width: 24px;
  height: 24px;
  color: var(--color-accent-primary);
  flex-shrink: 0;
}

.contact-info-content h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-xs);
}

.contact-info-content p {
  color: var(--color-text-secondary);
  margin: 0;
}

.contact-form {
  background: var(--color-shadow-gray);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  background: var(--color-deep-space);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  transition: all var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.form-checkbox {
  margin-top: 4px;
  cursor: pointer;
}

.form-checkbox-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  cursor: pointer;
}

.form-checkbox-label a {
  color: var(--color-accent-primary);
  text-decoration: underline;
}

/* ============================================
   Map
   ============================================ */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: var(--space-2xl);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(100%) invert(90%) contrast(90%);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--color-deep-space);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: var(--space-2xl) var(--space-md) var(--space-lg);
}

.footer-content {
  max-width: var(--max-width-xl);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-xl);
  justify-content: center;
}

.footer-nav a {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--color-accent-primary);
}

.footer-bottom {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

/* ============================================
   Privacy Popup
   ============================================ */
.privacy-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-shadow-gray);
  border-top: 2px solid var(--color-accent-primary);
  padding: var(--space-lg) var(--space-md);
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
}

.privacy-popup.show {
  transform: translateY(0);
}

.privacy-popup-content {
  max-width: var(--max-width-lg);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.privacy-popup-text {
  flex: 1;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.privacy-popup-actions {
  display: flex;
  gap: var(--space-md);
}

.btn-accept {
  background: var(--color-accent-primary);
  color: var(--color-jet-black);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
}

.btn-accept:hover {
  background: var(--color-accent-tertiary);
}

/* ============================================
   Thank You Page
   ============================================ */
.thank-you-container {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
}

.thank-you-content {
  max-width: 600px;
}

.thank-you-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-xl);
  color: var(--color-accent-tertiary);
  animation: scaleIn 0.5s ease-out;
}

.thank-you-title {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-lg);
}

.thank-you-message {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2xl);
}

/* ============================================
   404 Page
   ============================================ */
.error-container {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
}

.error-content {
  max-width: 600px;
}

.error-code {
  font-size: 8rem;
  font-weight: var(--font-weight-bold);
  background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-lg);
}

.error-title {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-md);
}

.error-message {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2xl);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
  :root {
    --font-size-5xl: 2rem;
    --font-size-4xl: 1.75rem;
    --font-size-3xl: 1.5rem;
    --space-4xl: 3rem;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: var(--color-deep-space);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-4xl) var(--space-xl);
    gap: var(--space-lg);
    transition: left var(--transition-base);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .main-nav.active {
    left: 0;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .privacy-popup-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--font-size-3xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-base);
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   Ultra-Small Screens – 320px Optimization
   ============================================ */
@media (max-width: 320px) {

  /* Typography Adjustments */
  :root {
    --font-size-5xl: 1.75rem;
    --font-size-4xl: 1.5rem;
    --font-size-3xl: 1.25rem;
    --font-size-2xl: 1.1rem;
    --font-size-xl: 1rem;
    --font-size-lg: 0.9rem;
    --font-size-base: 0.85rem;
    --font-size-sm: 0.75rem;

    --space-4xl: 2.5rem;
    --space-3xl: 1.75rem;
    --space-2xl: 1.25rem;
    --space-xl: 1rem;
    --space-lg: 0.75rem;
    --space-md: 0.65rem;
    --space-sm: 0.35rem;
  }

  /* Header */
  .header-inner {
    padding: var(--space-md) var(--space-sm);
  }

  .logo {
    font-size: var(--font-size-lg);
  }

  .menu-toggle span {
    width: 20px;
  }

  /* Nav Menu */
  .main-nav {
    width: 85%;
    padding: var(--space-3xl) var(--space-lg);
  }

  /* Hero Section */
  .hero-content {
    padding: var(--space-3xl) var(--space-sm);
  }

  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .hero-subtitle {
    font-size: var(--font-size-base);
  }

  /* Buttons */
  .hero-cta {
    width: 100%;
    flex-direction: column;
  }

  .btn {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
  }

  /* Section */
  .section {
    padding: var(--space-3xl) var(--space-sm);
  }

  .section-header {
    margin-bottom: var(--space-2xl);
  }

  /* Cards */
  .card,
  .product-card {
    padding: var(--space-md);
  }

  .product-header {
    padding: var(--space-lg);
  }

  /* Contact */
  .contact-container {
    gap: var(--space-xl);
  }

  .contact-info-item {
    flex-direction: column;
    text-align: center;
    padding: var(--space-md);
  }

  .contact-form {
    padding: var(--space-xl) var(--space-md);
  }

  /* Map */
  .map-container {
    height: 260px;
  }

  /* Footer */
  .footer-content {
    gap: var(--space-md);
  }

  .footer-nav {
    gap: var(--space-sm) var(--space-lg);
  }

  /* ============================================
     Privacy Popup – Fully Optimized for 320px
     ============================================ */
  .privacy-popup {
    padding: var(--space-md) var(--space-sm);
  }

  .privacy-popup-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }

  .privacy-popup-text {
    font-size: var(--font-size-sm);
    width: 100%;
  }

  .privacy-popup-actions {
    flex-direction: column;
    width: 100%;
    gap: var(--space-sm);
  }

  .btn-accept {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
  }
}
