/* ===== Variables ===== */
:root {
  --navy: #0a1628;
  --navy-light: #132240;
  --cyan: #00d4ff;
  --cyan-dark: #00a8cc;
  --gold: #c9a227;
  --gold-light: #e8c547;
  --white: #ffffff;
  --gray-100: #f0f4f8;
  --gray-200: #d9e2ec;
  --gray-400: #829ab1;
  --gray-600: #486581;
  --text: #243b53;
  --shadow: 0 4px 24px rgba(10, 22, 40, 0.12);
  --shadow-lg: 0 12px 48px rgba(10, 22, 40, 0.18);
  --radius: 12px;
  --radius-lg: 20px;
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

#storeProducts,
#filterToolbar,
#inventory,
.filter-toolbar,
.page-section,
section[id] {
  scroll-margin-top: 100px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

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

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

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(0, 212, 255, 0.5);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-call {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-call:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--gold-light);
  box-shadow: 0 8px 32px rgba(201, 162, 39, 0.25);
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-arrow {
  transition: transform 0.25s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-full {
  width: 100%;
  text-align: center;
  border: none;
}

/* ===== Top Bar ===== */
.top-bar {
  background: var(--navy);
  color: var(--gray-400);
  font-size: 0.82rem;
  padding: 8px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== Header ===== */
.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-text strong {
  display: block;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: 0.05em;
}

.logo-text small {
  font-size: 0.7rem;
  color: var(--gray-600);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-600);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--cyan-dark);
}

.header-cta {
  padding: 10px 22px;
  font-size: 0.88rem;
  white-space: nowrap;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  width: 100%;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--white);
  padding: 120px 0 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  animation: heroKenBurns 20s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(10, 22, 40, 0.92) 0%, rgba(10, 22, 40, 0.75) 45%, rgba(10, 22, 40, 0.55) 100%),
    linear-gradient(to top, rgba(10, 22, 40, 0.85) 0%, transparent 50%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

.hero-glow-1 {
  width: 480px;
  height: 480px;
  top: -10%;
  right: -5%;
  background: rgba(0, 212, 255, 0.18);
}

.hero-glow-2 {
  width: 360px;
  height: 360px;
  bottom: 5%;
  left: 10%;
  background: rgba(201, 162, 39, 0.12);
  animation-delay: -4s;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 212, 255, 0.12);
  color: var(--cyan);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
  border: 1px solid rgba(0, 212, 255, 0.25);
}

.hero-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 60%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-weight: 500;
  color: var(--gray-200);
  letter-spacing: 0.01em;
  margin-bottom: 44px;
  max-width: 520px;
  line-height: 1.5;
}

.hero-tagline::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 24px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  border-radius: 2px;
}

.hero-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat strong {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1.1;
  margin-bottom: 4px;
}

.hero-stat span {
  font-size: 0.85rem;
  color: var(--gray-400);
  letter-spacing: 0.02em;
}

.hero-stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
}

/* Hero animations */
@keyframes heroKenBurns {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}

@keyframes heroGlow {
  from { opacity: 0.6; transform: scale(1); }
  to   { opacity: 1; transform: scale(1.15); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  opacity: 0;
  animation: fadeInUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-delay-1 { animation-delay: 0.15s; }
.animate-delay-2 { animation-delay: 0.3s; }
.animate-delay-3 { animation-delay: 0.45s; }
.animate-delay-4 { animation-delay: 0.65s; }

/* ===== Section Header ===== */
.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  color: var(--cyan-dark);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--gray-600);
}

/* ===== Categories ===== */
.categories {
  padding: 100px 0;
  background: var(--gray-100);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid transparent;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 212, 255, 0.2);
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.category-card h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 8px;
  font-weight: 700;
}

.category-card p {
  color: var(--gray-600);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.category-link {
  color: var(--cyan-dark);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.category-link:hover {
  color: var(--gold);
}

/* ===== Inventory Products ===== */
.inventory-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

/* E-commerce product card */
.ecommerce-card {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid #e8edf2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(10, 22, 40, 0.06);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s ease;
}

.ecommerce-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(10, 22, 40, 0.14);
  border-color: rgba(0, 168, 204, 0.25);
}

.ecommerce-card .product-image-wrap {
  height: 260px;
  background: linear-gradient(180deg, #fafbfc 0%, #f0f4f8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  position: relative;
}

.ecommerce-card .product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ecommerce-card:hover .product-image-wrap img {
  transform: scale(1.06);
}

.ecommerce-card .product-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

.product-name {
  color: var(--navy);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}

.product-price-block {
  margin-bottom: 12px;
}

.product-price-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.product-price {
  color: var(--navy);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.product-desc-short {
  color: var(--gray-600);
  font-size: 0.84rem;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.product-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin-bottom: 20px;
  padding: 14px;
  background: var(--gray-100);
  border-radius: 12px;
}

.product-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.35;
}

.product-feature-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 6px;
  font-size: 0.75rem;
  box-shadow: 0 1px 4px rgba(10, 22, 40, 0.08);
}

.product-feature-text {
  font-weight: 500;
}

.btn-view-details {
  width: 100%;
  padding: 13px 20px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  margin-top: auto;
}

.btn-view-details:hover {
  background: linear-gradient(135deg, var(--cyan-dark) 0%, var(--cyan) 100%);
  color: var(--navy);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.35);
  transform: translateY(-1px);
}

.btn-view-details:active {
  transform: translateY(0);
}

.inventory-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--gray-600);
  padding: 56px 24px;
  background: var(--white);
  border-radius: 16px;
  border: 2px dashed var(--gray-200);
  box-shadow: 0 2px 12px rgba(10, 22, 40, 0.04);
}

/* Product details modal */
.product-modal[hidden] {
  display: none;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: modalFadeIn 0.3s ease;
}

.product-modal-dialog {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(10, 22, 40, 0.25);
  animation: modalSlideUp 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}

.product-modal-close:hover {
  background: var(--gray-200);
}

.product-modal-content {
  padding: 32px;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.modal-image-wrap {
  background: linear-gradient(180deg, #fafbfc 0%, #f0f4f8 100%);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.modal-image-wrap img {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.modal-info h2 {
  font-size: 1.35rem;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
  padding-right: 40px;
}

.modal-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}

.modal-desc {
  color: var(--gray-600);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.modal-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.modal-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.modal-spec {
  background: var(--gray-100);
  padding: 12px 14px;
  border-radius: 10px;
}

.modal-spec span {
  display: block;
  font-size: 0.7rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.modal-spec strong {
  font-size: 0.88rem;
  color: var(--navy);
}

.modal-call-btn {
  margin-top: 8px;
}

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

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {
  .product-list {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
  }

  .ecommerce-card .product-image-wrap {
    height: 220px;
  }

  .modal-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .modal-image-wrap {
    min-height: 240px;
    padding: 24px;
  }

  .product-modal-content {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .product-features,
  .modal-features {
    grid-template-columns: 1fr;
  }

  .modal-specs {
    grid-template-columns: 1fr;
  }

  .product-list {
    grid-template-columns: 1fr;
  }
}

/* ===== Features ===== */
.features {
  padding: 80px 0;
  background: var(--navy);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 32px;
}

.feature {
  text-align: center;
  color: var(--white);
}

.feature-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.feature h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--cyan);
}

.feature p {
  font-size: 0.88rem;
  color: var(--gray-400);
}

/* ===== About ===== */
.about {
  padding: 100px 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--gray-600);
  margin-bottom: 16px;
}

.about-text .btn {
  margin-top: 16px;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-card {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  border-left: 4px solid var(--cyan);
}

.about-card.accent {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  border-left-color: var(--gold);
}

.about-card span {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.about-card strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.about-card p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.about-card.accent p {
  color: var(--gray-400);
}

/* ===== Contact ===== */
.contact {
  padding: 100px 0;
  background: var(--gray-100);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 24px;
}

.contact-info ul {
  list-style: none;
}

.contact-info li {
  padding: 12px 0;
  color: var(--gray-600);
  font-size: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  color: var(--navy);
  margin-bottom: 24px;
  font-size: 1.2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 16px;
  transition: border-color 0.2s;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--cyan);
}

.contact-form textarea {
  resize: vertical;
}

/* ===== Footer ===== */
.footer {
  background: var(--navy);
  color: var(--gray-400);
  padding-top: 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}

.footer-brand small {
  display: block;
  font-size: 0.75rem;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.88rem;
}

.footer-links h5 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 0.88rem;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav,
  .header-cta {
    display: none;
  }

  .about-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

@media (max-width: 600px) {
  .hero {
    min-height: 88vh;
    padding: 96px 0 72px;
  }

  .hero-stat-divider {
    display: none;
  }

  .hero-stats {
    gap: 28px;
    padding-top: 28px;
  }

  .hero-buttons {
    flex-direction: column;
    margin-bottom: 48px;
  }

  .btn-hero {
    width: 100%;
    justify-content: center;
  }

  .categories,
  .about,
  .contact {
    padding: 64px 0;
  }

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

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