/* ============================================================
   4K NET — ENTERPRISE DESIGN SYSTEM
   Premium Telecommunications Platform
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800;900&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand Colors */
  --brand-navy:       #060F1E;
  --brand-navy-800:   #0A1628;
  --brand-navy-700:   #0F2040;
  --brand-navy-600:   #162952;
  --brand-blue:       #0055D4;
  --brand-blue-light: #1A6FFF;
  --brand-blue-glow:  rgba(0, 85, 212, 0.2);
  --brand-orange:     #FF6B00;
  --brand-orange-light:#FF8C33;
  --brand-orange-glow:rgba(255, 107, 0, 0.2);
  --brand-cyan:       #00C8FF;

  /* Semantic Colors */
  --success:          #00C853;
  --success-bg:       rgba(0, 200, 83, 0.1);
  --warning:          #FFB300;
  --warning-bg:       rgba(255, 179, 0, 0.1);
  --danger:           #FF3B30;
  --danger-bg:        rgba(255, 59, 48, 0.1);
  --info:             #0055D4;
  --info-bg:          rgba(0, 85, 212, 0.1);

  /* Surface Colors — Light Mode */
  --bg-base:          #F0F4FA;
  --bg-surface:       #FFFFFF;
  --bg-surface-2:     #F7F9FC;
  --bg-surface-3:     #EEF2F8;
  --bg-overlay:       rgba(6, 15, 30, 0.6);

  /* Text */
  --text-primary:     #060F1E;
  --text-secondary:   #3D4F6B;
  --text-muted:       #6B7A99;
  --text-disabled:    #A8B5CC;
  --text-inverse:     #FFFFFF;
  --text-link:        #0055D4;
  --text-link-hover:  #1A6FFF;

  /* Borders */
  --border:           rgba(6, 15, 30, 0.1);
  --border-strong:    rgba(6, 15, 30, 0.2);
  --border-focus:     #0055D4;
  --border-brand:     rgba(0, 85, 212, 0.3);

  /* Shadows */
  --shadow-xs:        0 1px 2px rgba(6, 15, 30, 0.05);
  --shadow-sm:        0 2px 8px rgba(6, 15, 30, 0.06), 0 1px 2px rgba(6, 15, 30, 0.04);
  --shadow-md:        0 8px 24px rgba(6, 15, 30, 0.08), 0 2px 8px rgba(6, 15, 30, 0.04);
  --shadow-lg:        0 20px 48px rgba(6, 15, 30, 0.1), 0 8px 24px rgba(6, 15, 30, 0.06);
  --shadow-xl:        0 32px 64px rgba(6, 15, 30, 0.12);
  --shadow-blue:      0 8px 32px rgba(0, 85, 212, 0.25);
  --shadow-orange:    0 8px 32px rgba(255, 107, 0, 0.25);

  /* Spacing */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   20px;
  --space-6:   24px;
  --space-8:   32px;
  --space-10:  40px;
  --space-12:  48px;
  --space-16:  64px;
  --space-20:  80px;
  --space-24:  96px;
  --space-32:  128px;

  /* Border Radius */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-full: 9999px;

  /* Typography */
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* Transitions */
  --ease-fast:    all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-smooth:  all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce:  all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container-max:  1280px;
  --container-wide: 1440px;
  --header-height:  72px;
}

/* Dark Mode Tokens */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-base:       #060F1E;
    --bg-surface:    #0A1628;
    --bg-surface-2:  #0F2040;
    --bg-surface-3:  #162952;
    --text-primary:  #F0F4FA;
    --text-secondary:#A8B5CC;
    --text-muted:    #6B7A99;
    --border:        rgba(255,255,255,0.08);
    --border-strong: rgba(255,255,255,0.15);
  }
}

body.theme-dark {
  --bg-base:       #060F1E;
  --bg-surface:    #0A1628;
  --bg-surface-2:  #0F2040;
  --bg-surface-3:  #162952;
  --text-primary:  #F0F4FA;
  --text-secondary:#A8B5CC;
  --text-muted:    #6B7A99;
  --border:        rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.15);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--text-link);
  text-decoration: none;
  transition: var(--ease-fast);
}

a:hover { color: var(--text-link-hover); }

button {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: var(--font-sans);
  font-size: 1rem;
}

ul, ol { list-style: none; }

::selection {
  background: var(--brand-blue);
  color: #fff;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-blue); }

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1, .h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

h3, .h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

h4, .h4 { font-size: 1.125rem; font-weight: 600; line-height: 1.4; color: var(--text-primary); }
h5, .h5 { font-size: 1rem; font-weight: 600; color: var(--text-primary); }
h6, .h6 { font-size: 0.875rem; font-weight: 600; color: var(--text-secondary); }

.text-lg    { font-size: 1.125rem; line-height: 1.6; }
.text-base  { font-size: 1rem; }
.text-sm    { font-size: 0.875rem; }
.text-xs    { font-size: 0.75rem; }

.font-bold    { font-weight: 700; }
.font-semi    { font-weight: 600; }
.font-medium  { font-weight: 500; }

.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-inverse   { color: var(--text-inverse); }
.text-brand     { color: var(--brand-blue); }
.text-orange    { color: var(--brand-orange); }
.text-success   { color: var(--success); }
.text-danger    { color: var(--danger); }

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

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-orange {
  background: linear-gradient(135deg, var(--brand-orange) 0%, #FFD600 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-wide {
  max-width: var(--container-wide);
}

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

.section-sm { padding: var(--space-12) 0; }
.section-lg { padding: var(--space-32) 0; }

.section-header {
  max-width: 640px;
  margin: 0 auto var(--space-12) auto;
  text-align: center;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: var(--space-3);
}

/* Grid */
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* Flex */
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center{ align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.flex-wrap   { flex-wrap: wrap; }
.gap-2  { gap: var(--space-2); }
.gap-3  { gap: var(--space-3); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0 var(--space-6);
  height: 48px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: var(--ease-smooth);
  white-space: nowrap;
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1;
  position: relative;
  overflow: hidden;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary */
.btn-primary {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}
.btn-primary:hover {
  background: var(--brand-blue-light);
  border-color: var(--brand-blue-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
  color: #fff;
}
.btn-primary:active { transform: translateY(0); }

/* Orange CTA */
.btn-cta {
  background: var(--brand-orange);
  color: #fff;
  border-color: var(--brand-orange);
}
.btn-cta:hover {
  background: var(--brand-orange-light);
  border-color: var(--brand-orange-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-orange);
  color: #fff;
}

/* Secondary (outline) */
.btn-secondary {
  background: transparent;
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}
.btn-secondary:hover {
  background: var(--brand-blue);
  color: #fff;
  transform: translateY(-1px);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--bg-surface-3);
  border-color: var(--border-strong);
}

/* Ghost inverse (on dark bg) */
.btn-ghost-white {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

/* Danger */
.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.btn-danger:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  color: #fff;
}

/* Sizes */
.btn-sm { height: 36px; padding: 0 var(--space-4); font-size: 0.8125rem; border-radius: var(--radius-sm); }
.btn-lg { height: 56px; padding: 0 var(--space-8); font-size: 1.0625rem; border-radius: var(--radius-lg); }
.btn-xl { height: 64px; padding: 0 var(--space-10); font-size: 1.125rem; border-radius: var(--radius-lg); }
.btn-block { width: 100%; }

/* Loading state */
.btn.loading {
  color: transparent;
  pointer-events: none;
}
.btn.loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: var(--ease-smooth);
}

.card:hover {
  border-color: var(--border-brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-flat {
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.card-dark {
  background: var(--brand-navy-700);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  color: #fff;
}

/* Plan Card */
.plan-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  transition: var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.plan-card:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-blue);
  transform: translateY(-4px);
}

.plan-card.featured {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-blue);
}

.plan-card.featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
}

.plan-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--info-bg);
  color: var(--brand-blue);
  margin-bottom: var(--space-4);
}

.plan-badge.popular { background: var(--brand-orange-glow); color: var(--brand-orange); }
.plan-badge.best    { background: rgba(0,200,83,0.1); color: var(--success); }

.plan-price-block { margin: var(--space-4) 0; }
.plan-price {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
}
.plan-price-currency {
  font-size: 1.25rem;
  font-weight: 700;
  vertical-align: top;
  margin-top: 8px;
  display: inline-block;
}
.plan-price-period { font-size: 0.875rem; color: var(--text-muted); }
.plan-speed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-blue);
  background: var(--info-bg);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.plan-features-list {
  margin: var(--space-5) 0 var(--space-6) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.plan-feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.plan-feature-item::before {
  content: '';
  width: 18px;
  height: 18px;
  min-width: 18px;
  background: var(--success-bg);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300C853' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Product Card */
.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--ease-smooth);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.product-card:hover {
  border-color: var(--border-brand);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.04);
}

.product-card-emoji {
  font-size: 3.5rem;
}

.product-card-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-brand {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.product-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  line-height: 1.4;
  flex: 1;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.product-price-original {
  font-size: 0.875rem;
  text-decoration: line-through;
  color: var(--text-muted);
  margin-left: var(--space-2);
  font-weight: 400;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

/* Stock badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-success  { background: var(--success-bg); color: var(--success); }
.badge-danger   { background: var(--danger-bg); color: var(--danger); }
.badge-warning  { background: var(--warning-bg); color: var(--warning); }
.badge-info     { background: var(--info-bg); color: var(--brand-blue); }
.badge-orange   { background: var(--brand-orange-glow); color: var(--brand-orange); }
.badge-neutral  { background: var(--bg-surface-3); color: var(--text-muted); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-required::after {
  content: ' *';
  color: var(--danger);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  height: 48px;
  padding: 0 var(--space-4);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  transition: var(--ease-fast);
  outline: none;
}

.form-textarea {
  height: auto;
  padding: var(--space-3) var(--space-4);
  resize: vertical;
  min-height: 120px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px var(--brand-blue-glow);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-disabled); }

.form-input.error { border-color: var(--danger); }
.form-input.error:focus { box-shadow: 0 0 0 3px var(--danger-bg); }

.form-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.form-error-msg {
  font-size: 0.8125rem;
  color: var(--danger);
  font-weight: 500;
}

/* ============================================================
   NAVIGATION (Enterprise)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--ease-smooth);
}

body.theme-dark .site-header {
  background: rgba(10,22,40,0.92);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  gap: var(--space-6);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
  justify-content: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--ease-fast);
  white-space: nowrap;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-surface-3);
}

.nav-link.active {
  color: var(--brand-blue);
  font-weight: 600;
}

/* Dropdown chevron */
.nav-chevron {
  width: 14px;
  height: 14px;
  opacity: 0.5;
  transition: transform 0.2s;
}

.nav-item:hover .nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-3);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: var(--ease-smooth);
  pointer-events: none;
  z-index: 100;
}

.nav-item {
  position: relative;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--ease-fast);
  text-decoration: none;
}

.nav-dropdown-item:hover {
  background: var(--bg-surface-3);
  color: var(--text-primary);
}

.nav-dropdown-icon {
  font-size: 1rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-2);
  border-radius: var(--radius-sm);
}

/* Mega menu */
.nav-mega {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-60%) translateY(8px);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-6);
  width: 540px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transition: var(--ease-smooth);
  pointer-events: none;
  z-index: 100;
}

.nav-item:hover .nav-mega {
  opacity: 1;
  visibility: visible;
  transform: translateX(-60%) translateY(0);
  pointer-events: all;
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* Mobile toggle */
.nav-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  cursor: pointer;
  transition: var(--ease-fast);
  color: var(--text-primary);
}

.nav-mobile-toggle:hover {
  background: var(--bg-surface-3);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-surface);
  z-index: 999;
  flex-direction: column;
  padding: var(--space-6);
  overflow-y: auto;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}

.nav-mobile-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 1.25rem;
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.nav-mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--ease-fast);
}

.nav-mobile-link:hover {
  background: var(--bg-surface-3);
  color: var(--brand-blue);
}

.nav-mobile-footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--brand-navy-800);
  color: rgba(255,255,255,0.7);
  padding: var(--space-20) 0 0 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: var(--space-10);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img {
  height: 36px;
  width: auto;
  object-fit: contain;
  margin-bottom: var(--space-4);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 260px;
  margin-bottom: var(--space-5);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-2);
}

.footer-col-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--space-5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: var(--ease-fast);
}

.footer-link:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) 0;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-legal-links {
  display: flex;
  gap: var(--space-5);
}

.footer-legal-links a {
  color: rgba(255,255,255,0.4);
  font-size: 0.8125rem;
  transition: var(--ease-fast);
}

.footer-legal-links a:hover { color: rgba(255,255,255,0.8); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--brand-navy-800);
  color: #fff;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

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

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,85,212,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,85,212,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, var(--brand-blue) 0%, transparent 70%);
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
  background: radial-gradient(circle, var(--brand-orange) 0%, transparent 70%);
  opacity: 0.25;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-24) var(--space-6);
  width: 100%;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  border: 1px solid rgba(0,200,255,0.3);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-cyan);
  background: rgba(0,200,255,0.08);
  margin-bottom: var(--space-6);
}

.hero-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-cyan);
  animation: pulse 2s infinite;
}

.hero h1 {
  color: #fff;
  margin-bottom: var(--space-5);
  max-width: 720px;
}

.hero-sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

/* Hero stats strip */
.hero-stats {
  display: flex;
  gap: var(--space-10);
  flex-wrap: wrap;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

/* ============================================================
   FEATURE / BENEFIT CARDS
   ============================================================ */
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: var(--ease-smooth);
}

.feature-card:hover {
  border-color: var(--border-brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-5);
  background: var(--info-bg);
  color: var(--brand-blue);
}

.feature-icon.orange {
  background: var(--brand-orange-glow);
  color: var(--brand-orange);
}

.feature-icon.green {
  background: var(--success-bg);
  color: var(--success);
}

/* ============================================================
   TRUST BAR / LOGOS
   ============================================================ */
.trust-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-6) 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  justify-content: center;
  flex-wrap: wrap;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ============================================================
   AVAILABILITY CHECKER
   ============================================================ */
.availability-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
}

.availability-tabs {
  display: flex;
  gap: var(--space-2);
  background: var(--bg-surface-2);
  border-radius: var(--radius-lg);
  padding: var(--space-1);
  margin-bottom: var(--space-6);
}

.availability-tab {
  flex: 1;
  height: 40px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ease-fast);
  color: var(--text-muted);
  border: none;
  background: transparent;
}

.availability-tab.active {
  background: var(--bg-surface);
  color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   STATUS PILLS
   ============================================================ */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
}

.status-pill.operational {
  background: var(--success-bg);
  color: var(--success);
}

.status-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8125rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.breadcrumb-sep { opacity: 0.4; }

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--text-primary); }
.breadcrumb .active { color: var(--text-primary); font-weight: 500; }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--brand-navy-800);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  pointer-events: all;
  animation: slideInToast 0.3s ease;
  max-width: 380px;
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger); }
.toast.info    { border-left: 3px solid var(--brand-blue); }

/* ============================================================
   SKELETON LOADERS
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--bg-surface-2) 25%, var(--bg-surface-3) 50%, var(--bg-surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* ============================================================
   SECTION DIVIDERS
   ============================================================ */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ============================================================
   ALERT BANNERS
   ============================================================ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
}

.alert-info    { background: var(--info-bg); border: 1px solid rgba(0,85,212,0.2); color: var(--brand-blue); }
.alert-success { background: var(--success-bg); border: 1px solid rgba(0,200,83,0.2); color: var(--success); }
.alert-warning { background: var(--warning-bg); border: 1px solid rgba(255,179,0,0.2); color: var(--warning); }
.alert-danger  { background: var(--danger-bg); border: 1px solid rgba(255,59,48,0.2); color: var(--danger); }

/* ============================================================
   DARK SECTION VARIANTS
   ============================================================ */
.section-dark {
  background: var(--brand-navy-800);
  color: #fff;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #fff;
}

.section-dark p {
  color: rgba(255,255,255,0.65);
}

.section-navy {
  background: var(--brand-navy-700);
  color: #fff;
}

/* ============================================================
   ANIMATION UTILITIES
   ============================================================ */
@keyframes spin {
  to { transform: rotate(360deg); }
}

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

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes slideInToast {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

.animate-fade-in { animation: fadeIn 0.4s ease both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   RESPONSIVE & MOBILE OPTIMIZATIONS
   ============================================================ */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav-mega { width: 440px; }
}

@media (max-width: 768px) {
  /* Prevent iOS input zoom */
  input, select, textarea {
    font-size: 16px !important;
  }

  /* Header adjustments */
  .nav-primary,
  .nav-actions > a.btn:not([href="cart.html"]) {
    display: none !important;
  }

  .nav-mobile-toggle { display: flex; }

  /* Keep cart icon visible next to toggle */
  .nav-actions {
    gap: var(--space-2);
  }

  /* Layout & Section padding */
  .section { padding: var(--space-10) 0; }
  .section-sm { padding: var(--space-6) 0; }
  .section-lg { padding: var(--space-16) 0; }

  /* Typography scaled for mobile */
  .display-xl { font-size: 2.25rem; }
  .display-lg { font-size: 1.85rem; }
  .display-md { font-size: 1.5rem; }
  h1, .h1 { font-size: 1.75rem; }
  h2, .h2 { font-size: 1.4rem; }
  h3, .h3 { font-size: 1.15rem; }

  /* Grids collapse to single column */
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-auto {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  /* Shop product grid on mobile — 2 columns for phones */
  .shop-preview-grid,
  .products-grid-shop {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-3) !important;
  }

  .product-card-body {
    padding: var(--space-3);
  }

  .product-card-emoji {
    font-size: 2.5rem;
  }

  /* Hero section */
  .hero { min-height: auto; padding: var(--space-8) 0; }
  .hero-content { padding: var(--space-12) var(--space-4); }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: var(--space-4); flex-wrap: wrap; }
  .hero-stats > div { padding-left: 0 !important; border-left: none !important; margin-bottom: var(--space-2); }

  /* Availability & Forms */
  .avail-form {
    grid-template-columns: 1fr !important;
  }

  /* Footer */
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
  }

  /* Responsive tables wrapper */
  .table-responsive,
  .table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: var(--space-4);
  }

  /* Toast notification on mobile */
  .toast-container {
    left: var(--space-4);
    right: var(--space-4);
    bottom: var(--space-4);
  }

  .toast {
    max-width: 100%;
  }

  /* Buttons on mobile */
  .btn-xl, .btn-lg {
    height: 48px;
    font-size: 1rem;
    padding: 0 var(--space-5);
  }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-4); }

  .hero-actions {
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

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

  .shop-preview-grid,
  .products-grid-shop {
    grid-template-columns: 1fr !important;
  }

  .plan-card {
    padding: var(--space-5);
  }

  .plan-price {
    font-size: 2.25rem;
  }

  .card {
    padding: var(--space-4);
  }
}

