:root {
  /* Colors */
  --color-ultra-black: #0d0d0d;
  --color-carbon: #1a1a1a;
  --color-graphite: #121417;
  --color-slate: #1f2428;
  --color-steel: #2a2f33;
  --color-accent: #00d9ff;
  --color-accent-soft: #4dffea;
  --color-text: #e8e8e8;
  --color-text-dim: #9ca3af;
  --color-success: #10b981;
  --color-warning: #f59e0b;

  /* Typography */
  --font-display: "Orbitron", sans-serif;
  --font-body: "Archivo", sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  --font-size-4xl: 3.5rem;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Layout */
  --container-max: 1200px;
  --container-padding: var(--space-md);
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;

  /* Effects */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(0, 217, 255, 0.3);
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background: var(--color-ultra-black);
  overflow-x: hidden;
}

/* Background Pattern */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(0, 217, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(0, 217, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h1 {
  font-size: clamp(var(--font-size-2xl), 5vw, var(--font-size-4xl));
  background: linear-gradient(
    135deg,
    var(--color-accent) 0%,
    var(--color-accent-soft) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 14px;
  color: var(--color-accent-soft);
}

h3 {
  font-size: var(--font-size-xl);
  color: var(--color-text);
}

h4 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: var(--space-sm);
  color: var(--color-text-dim);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  width: 100%;
}

a:hover {
  color: var(--color-accent-soft);
}

/* Header */
.header {
  position: relative;
  background: linear-gradient(to bottom, var(--color-carbon), transparent);
  padding: var(--space-md) 0;
  z-index: 100;
}

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all var(--transition-base);
}

.logo:hover {
  text-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

/* Navigation */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  padding: var(--space-xs) var(--space-sm);
  cursor: pointer;
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-lg);
  transition: all var(--transition-fast);
}

.nav-toggle:hover {
  background: var(--color-accent);
  color: var(--color-ultra-black);
  box-shadow: var(--shadow-glow);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
}

.main-nav a {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding: var(--space-xs) 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* Mobile Menu */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--color-carbon);
    padding: var(--space-xl) var(--space-lg);
    transition: right var(--transition-base);
    box-shadow: var(--shadow-lg);
    z-index: 200;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: var(--space-md);
  }

  .main-nav a {
    font-size: var(--font-size-base);
    display: block;
  }
}

/* Main Content */
.main-content {
  position: relative;
  z-index: 1;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Sections */
section {
  padding: var(--space-xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-subtitle {
  color: var(--color-text-dim);
  font-size: var(--font-size-lg);
  margin-top: var(--space-sm);
}

/* Hero Section */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-2xl) 0;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(
    circle,
    rgba(0, 217, 255, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

.hero-content {
  max-width: 700px;
  animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  margin-bottom: var(--space-md);
}

.hero p {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-lg);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-display);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--color-accent) 0%,
    var(--color-accent-soft) 100%
  );
  color: var(--color-ultra-black);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
  background: var(--color-accent);
  color: var(--color-ultra-black);
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Cards */
.card {
  background: linear-gradient(
    135deg,
    var(--color-graphite) 0%,
    var(--color-slate) 100%
  );
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--color-steel);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 217, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-5px);
}

.card-icon {
  font-size: var(--font-size-3xl);
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.card h3 {
  margin-bottom: var(--space-sm);
}

/* Product Cards */
.product-card {
  background: var(--color-carbon);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-steel);
  transition: all var(--transition-base);
}

.product-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
}

.product-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--color-slate), var(--color-steel));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-4xl);
  color: var(--color-accent);
}

.product-content {
  padding: var(--space-md);
}

.product-price {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  color: var(--color-accent-soft);
  margin: var(--space-sm) 0;
}

.product-features {
  list-style: none;
  margin: var(--space-md) 0;
}

.product-features li {
  padding: var(--space-xs) 0;
  color: var(--color-text-dim);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.product-features li::before {
  content: "▹";
  color: var(--color-accent);
  font-weight: bold;
}

/* Form Elements */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  color: var(--color-text);
  font-size: var(--font-size-sm);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-sm);
  background: var(--color-graphite);
  border: 1px solid var(--color-steel);
  border-radius: var(--border-radius-sm);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: start;
  gap: var(--space-xs);
}

.form-checkbox input {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-checkbox label {
  font-size: var(--font-size-sm);
  color: var(--color-text-dim);
  cursor: pointer;
}

/* Contact Section */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-info {
  background: linear-gradient(
    135deg,
    var(--color-graphite),
    var(--color-slate)
  );
  padding: var(--space-lg);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-steel);
}

.contact-item {
  display: flex;
  align-items: start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contact-icon {
  font-size: var(--font-size-xl);
  color: var(--color-accent);
  min-width: 40px;
}

.map-container {
  margin-top: var(--space-lg);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-steel);
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: none;
  filter: grayscale(1) invert(0.9) contrast(0.9);
}

/* Footer */
.footer {
  background: var(--color-carbon);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-steel);
  margin-top: var(--space-2xl);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-nav {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: var(--font-size-sm);
  color: var(--color-text-dim);
}

.footer-nav a:hover {
  color: var(--color-accent);
}

.copyright {
  font-size: var(--font-size-sm);
  color: var(--color-text-dim);
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  background: var(--color-carbon);
  padding: var(--space-md);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-accent);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: bottom var(--transition-base);
}

.cookie-popup.show {
  bottom: var(--space-md);
}

.cookie-popup-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.cookie-popup-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-dim);
}

.cookie-popup-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
}

.cookie-popup-actions .btn {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--font-size-sm);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-accent {
  color: var(--color-accent);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mt-lg {
  margin-top: var(--space-lg);
}

/* Animations */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.slide-up {
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --font-size-4xl: 2.5rem;
    --font-size-3xl: 2rem;
    --font-size-2xl: 1.5rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: var(--space-sm);
    --space-lg: 1.5rem;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* 404 Page */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-code {
  font-size: clamp(4rem, 15vw, 10rem);
  font-family: var(--font-display);
  background: linear-gradient(
    135deg,
    var(--color-accent) 0%,
    var(--color-accent-soft) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-md);
}

/* Thank You Page */
.thank-you-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.thank-you-icon {
  font-size: 5rem;
  color: var(--color-success);
  margin-bottom: var(--space-md);
  animation: scaleIn 0.5s ease-out;
}

/* ============================================================
   EXTRA SMALL DEVICES — 320px OPTIMIZATION (BEST POSSIBLE)
   Ultra-compact layout, perfect spacing, readable typography
   ============================================================ */
@media (max-width: 320px) {
  /* Core Adjustments */
  :root {
    --font-size-base: 0.9rem;
    --font-size-sm: 0.8rem;
    --font-size-xs: 0.7rem;

    --space-sm: 0.6rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;

    --container-padding: 0.75rem;
  }

  body {
    font-size: var(--font-size-base);
  }

  /* Logo */
  .logo {
    font-size: 13px;
    letter-spacing: 0.05em;
  }

  /* Header Fix */
  .header-container {
    padding: 0 var(--container-padding);
  }

  .nav-toggle {
    padding: 0.25rem 0.6rem;
    font-size: 1rem;
  }

  /* Mobile Nav Panel */
  .main-nav {
    width: 85%;
    max-width: 260px;
    padding: var(--space-lg);
  }

  .main-nav a {
    font-size: var(--font-size-base);
  }

  /* HERO SECTION */
  .hero {
    padding: 2rem 0;
    min-height: 55vh;
  }

  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
  }

  .hero-content {
    padding: 0 var(--container-padding);
  }

  /* Buttons */
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  /* GRID Fixes */
  .grid,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr !important;
    gap: var(--space-md);
  }

  /* Cards */
  .card {
    padding: 1rem;
  }

  .card-icon {
    font-size: 2rem;
  }

  /* Product Cards */
  .product-image {
    height: 160px;
  }

  .product-price {
    font-size: 1.4rem;
  }

  /* Forms */
  .form-input,
  .form-textarea {
    font-size: 0.9rem;
    padding: 0.6rem;
  }

  .form-group {
    margin-bottom: var(--space-sm);
  }

  /* Contact Section */
  .contact-wrapper {
    grid-template-columns: 1fr !important;
    gap: var(--space-lg);
  }

  .contact-item {
    gap: var(--space-sm);
  }

  .contact-icon {
    font-size: 1.2rem;
    min-width: 28px;
  }

  .map-container iframe {
    height: 220px;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
    gap: 0.75rem;
  }

  .footer-nav a {
    font-size: 0.75rem;
  }

  /* Cookie Popup */
  .cookie-popup {
    width: 94%;
    padding: var(--space-sm);
  }

  .cookie-popup-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cookie-popup-actions .btn {
    width: 100%;
  }

  /* Error Page & Thank You */
  .error-code {
    font-size: 4rem !important;
  }

  .thank-you-icon {
    font-size: 3.5rem;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
