/* ==========================================================================
   IX PACE — INNOVATION IN EVERY LINE
   Black & White Monochrome Luxury Design System
   ========================================================================== */

:root {
  /* Color Palette — Cosmic Deep Space & Astral Luxury */
  --bg-primary: #020008;
  --bg-secondary: #080514;
  --bg-tertiary: #100a24;
  --bg-card: rgba(13, 10, 28, 0.72);
  --bg-card-hover: rgba(22, 16, 46, 0.88);
  --bg-glass: rgba(8, 5, 18, 0.82);
  
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #818cf8;
  --text-inverse: #020008;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(168, 85, 247, 0.22);
  --border-bright: rgba(56, 189, 248, 0.45);
  --border-focus: #a855f7;

  --accent-white: #ffffff;
  --accent-silver: #e2e8f0;
  --accent-glow: rgba(168, 85, 247, 0.3);
  --accent-glow-strong: rgba(56, 189, 248, 0.6);

  /* Cosmic Astral Accents */
  --cosmic-cyan: #38bdf8;
  --cosmic-violet: #a855f7;
  --cosmic-indigo: #6366f1;
  --cosmic-pink: #ec4899;
  --cosmic-amber: #f59e0b;

  /* Typography */
  --font-heading: 'Syne', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  /* Spacing */
  --container-width: 1280px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows & Cosmic Glassmorphism */
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--border-subtle), 0 0 20px rgba(129, 140, 248, 0.04);
  --shadow-hover: 0 20px 45px -12px rgba(0, 0, 0, 0.95), 0 0 25px rgba(168, 85, 247, 0.18), 0 0 0 1px var(--border-medium);
  --shadow-glow: 0 0 35px rgba(56, 189, 248, 0.25);
  --backdrop-blur: blur(20px);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-size: 16px;
  overflow-x: clip;
}

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

/* Fullscreen Cosmic Universe Canvas (Single Unified Background) */
.cosmic-universe-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  display: block;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

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

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: 7rem 0;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}

@media (max-width: 768px) {
  .section {
    padding: 4.5rem 0;
  }
}

/* Section Header Styles */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 4rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-silver);
  margin-bottom: 1.25rem;
}

.section-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-white);
  box-shadow: 0 0 8px #ffffff;
  animation: pulseDot 2s infinite ease-in-out;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.section-title span.highlight {
  background: linear-gradient(180deg, #ffffff 0%, #888888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Navigation Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all var(--transition-smooth);
}

.site-header.scrolled {
  padding: 0.75rem 0;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.brand-symbol {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.brand-symbol::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.4) 50%, transparent 60%);
  transform: rotate(30deg);
  transition: transform 0.8s ease;
}

.brand-logo:hover .brand-symbol::before {
  transform: rotate(30deg) translate(50%, 50%);
}

.brand-logo:hover .brand-symbol {
  border-color: var(--border-bright);
  transform: translateY(-1px);
}

.brand-logo-img {
  max-height: 42px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.08));
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.02);
  filter: drop-shadow(0 4px 14px rgba(255, 255, 255, 0.16));
}

.brand-name {
  display: flex;
  flex-direction: column;
}

.brand-name .logo-main {
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.brand-name .logo-tag {
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 500;
  margin-top: 3px;
  text-transform: uppercase;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--accent-white);
  transition: width var(--transition-fast), left var(--transition-fast);
}

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

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
  left: 0;
}

.nav-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  background: #ffffff;
  color: #000000;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  margin-left: 0.4rem;
  font-weight: 700;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.8rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--accent-white);
  color: var(--text-inverse);
  border-color: var(--accent-white);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background-color: #e5e5e5;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-medium);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-medium);
}

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

.btn .icon {
  display: inline-flex;
  transition: transform var(--transition-fast);
}

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

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-toggle:hover {
  border-color: var(--accent-white);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: #0a0a0a;
  border-left: 1px solid var(--border-medium);
  z-index: 1050;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.8);
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.mobile-close-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-links a {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.mobile-nav-links a:hover {
  color: var(--text-primary);
}

.mobile-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 860px) {
  .nav-links, .nav-actions .btn-sm {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
}

/* ==========================================================================
   HERO SECTION (COSMIC CELESTIAL ODYSSEY)
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(168, 85, 247, 0.12);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1.25rem;
  background: rgba(16, 10, 32, 0.75);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: #e2e8f0;
  margin-bottom: 2rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(168, 85, 247, 0.18);
  transition: all var(--transition-fast);
}

.hero-badge:hover {
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(56, 189, 248, 0.3);
}

.hero-badge .glow-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 12px #38bdf8, 0 0 20px rgba(56, 189, 248, 0.6);
  animation: pulseDot 2s infinite ease-in-out;
}

.hero-title {
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  text-shadow: 0 0 40px rgba(168, 85, 247, 0.25);
}

.hero-title .tagline-accent {
  display: block;
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-top: 0.5rem;
  color: #ffffff;
  position: relative;
  padding: 0.2rem 0;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .tagline-accent::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #a855f7 30%, #38bdf8 70%, transparent);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.8);
}

.hero-description {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: #cbd5e1;
  max-width: 740px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.75;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 4.5rem;
}

/* Hero Stats Bar (Cosmic Glass) */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2.25rem 2rem;
  background: rgba(12, 9, 24, 0.72);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(129, 140, 248, 0.08);
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.hero-stats-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.5), rgba(56, 189, 248, 0.5), transparent);
}

.stat-card {
  text-align: center;
  position: relative;
}

.stat-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -0.75rem;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.stat-label {
  font-size: 0.8rem;
  color: #a5b4fc;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-family: var(--font-mono);
}

@media (max-width: 768px) {
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .stat-card:nth-child(2)::after {
    display: none;
  }
}

/* ==========================================================================
   CORE 4 PILLARS (SERVICES GRID)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.7), rgba(56, 189, 248, 0.7), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.service-card:hover {
  border-color: rgba(168, 85, 247, 0.45);
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.95), 0 0 25px rgba(168, 85, 247, 0.16);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.service-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-white);
  transition: all var(--transition-fast);
}

.service-card:hover .service-icon-box {
  border-color: var(--accent-white);
  background: #ffffff;
  color: #000000;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.service-number {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
}

.service-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.service-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.service-features-list {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--accent-silver);
}

.service-feature-item svg {
  flex-shrink: 0;
  color: var(--accent-white);
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.service-timing {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   READY-MADE SYSTEMS SHOWCASE (MARKETPLACE)
   ========================================================================== */
.systems-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-mono);
}

.filter-btn:hover {
  border-color: var(--border-bright);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--accent-white);
  color: #000000;
  border-color: var(--accent-white);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.25);
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .systems-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .systems-grid {
    grid-template-columns: 1fr;
  }
}

.system-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.system-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.95), 0 0 30px rgba(56, 189, 248, 0.18);
}

.system-card-preview {
  height: 200px;
  background: #111111;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.system-card-preview .preview-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  background-image: radial-gradient(#ffffff 1px, transparent 1px);
  background-size: 16px 16px;
}

.system-card-preview .system-mockup-graphic {
  position: relative;
  z-index: 1;
  width: 85%;
  height: 80%;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: #080808;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
  transition: transform var(--transition-smooth);
}

.system-card:hover .system-mockup-graphic {
  transform: scale(1.03);
  border-color: var(--border-bright);
}

.system-badge-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--border-medium);
  color: var(--accent-white);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  backdrop-filter: blur(8px);
  z-index: 2;
}

.system-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.system-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.system-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
}

.system-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.system-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.system-tag-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--accent-silver);
  border: 1px solid var(--border-subtle);
}

.system-card-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.system-price-box {
  display: flex;
  flex-direction: column;
}

.system-price-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.system-price-val {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--accent-white);
}

/* ==========================================================================
   INTERACTIVE PROJECT ESTIMATOR
   ========================================================================== */
.estimator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  max-width: 1050px;
  margin: 0 auto;
  backdrop-filter: var(--backdrop-blur);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.estimator-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
}

.estimator-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3.5rem;
}

@media (max-width: 960px) {
  .estimator-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .estimator-card {
    padding: 2rem 1.5rem;
  }
}

.estimator-step {
  margin-bottom: 2.25rem;
}

.step-label {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.step-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

/* Selectable Cards Grid */
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 600px) {
  .option-grid {
    grid-template-columns: 1fr;
  }
}

.option-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.option-box:hover {
  border-color: var(--border-bright);
  background: rgba(30, 30, 30, 0.8);
}

.option-box.selected {
  border-color: var(--accent-white);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.option-box-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.option-box-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.option-box-price {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-silver);
  margin-top: 0.75rem;
}

/* Add-ons Checkboxes */
.addons-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 600px) {
  .addons-list {
    grid-template-columns: 1fr;
  }
}

.addon-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.addon-item:hover {
  border-color: var(--border-medium);
}

.addon-item.checked {
  border-color: var(--accent-white);
  background: rgba(255, 255, 255, 0.05);
}

.addon-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.custom-check {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: all var(--transition-fast);
}

.addon-item.checked .custom-check {
  background: var(--accent-white);
  border-color: var(--accent-white);
  color: #000000;
}

.addon-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.addon-price {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Estimator Live Summary Panel (Cosmic Glass) */
.estimator-summary-panel {
  background: rgba(10, 7, 22, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(168, 85, 247, 0.12);
  position: relative;
}

.summary-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.summary-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.summary-breakdown {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.breakdown-row.total-row {
  border-top: 1px solid var(--border-medium);
  padding-top: 1rem;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.total-display {
  text-align: center;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
}

.total-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.total-amount {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--accent-white);
  letter-spacing: -0.02em;
}

.estimated-delivery {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-silver);
  margin-top: 0.35rem;
}

/* ==========================================================================
   THE INNOVATION BLUEPRINT (WORKFLOW PROCESS)
   ========================================================================== */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

@media (max-width: 900px) {
  .timeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 550px) {
  .timeline-grid {
    grid-template-columns: 1fr;
  }
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: all var(--transition-smooth);
}

.timeline-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.timeline-step-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: #000000;
  background: #ffffff;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 1.25rem;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   TESTIMONIALS / TRUST MATRIX
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--transition-smooth);
}

.testimonial-card:hover {
  border-color: rgba(168, 85, 247, 0.45);
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.95), 0 0 25px rgba(168, 85, 247, 0.15);
}

.testimonial-quote {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  position: relative;
}

.client-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.client-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(22, 16, 46, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.15);
}

.client-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.client-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--transition-fast);
}

.faq-item:hover, .faq-item.active {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(56, 189, 248, 0.1);
}

.faq-question {
  width: 100%;
  padding: 1.5rem 1.75rem;
  text-align: left;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.faq-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
  color: var(--accent-white);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.75rem 1.5rem 1.75rem;
}

/* ==========================================================================
   CONTACT & INITIATION HUB
   ========================================================================== */
.contact-section-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .contact-section-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.contact-info-block h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.contact-info-block p {
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.channel-card:hover {
  border-color: var(--border-bright);
  transform: translateX(5px);
}

.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-white);
}

.channel-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.channel-val {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Contact Form */
.contact-form-box {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  backdrop-filter: var(--backdrop-blur);
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-silver);
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--accent-white);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
  background: #181818;
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 550px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SYSTEM DETAIL MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: #0d0d0d;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 255, 255, 0.1);
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition-smooth);
}

.modal-overlay.open .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

.modal-close-btn:hover {
  background: #ffffff;
  color: #000000;
}

.modal-content {
  padding: 2.5rem;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: #141414;
  border: 1px solid var(--accent-white);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  color: #ffffff;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInToast 0.35s ease forwards;
}

/* ==========================================================================
   FOOTER (UNIFIED COSMIC CANVAS)
   ========================================================================== */
.site-footer {
  background: transparent;
  border-top: 1px solid rgba(168, 85, 247, 0.15);
  padding: 5rem 0 2.5rem 0;
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 550px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

.footer-brand-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 360px;
  margin: 1.25rem 0 1.5rem 0;
  line-height: 1.7;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  flex-wrap: wrap;
  gap: 1rem;
}

/* Cross-device foundations */
html {
  scrollbar-gutter: stable;
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button,
[role="button"],
a {
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--cosmic-cyan);
  outline-offset: 3px;
}

.container,
.section,
.hero-section,
.site-footer {
  min-width: 0;
}

@media (max-width: 1100px) {
  .nav-links,
  .nav-actions .btn-sm {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-header {
    padding-top: max(0.75rem, env(safe-area-inset-top));
  }

  .brand-logo-img {
    max-width: min(46vw, 180px);
  }

  .hero-section {
    padding-top: 7rem;
    padding-bottom: 3.5rem;
  }

  .hero-title {
    overflow-wrap: anywhere;
  }

  .hero-title .tagline-accent {
    letter-spacing: 0.1em;
  }

  .hero-cta-group,
  .hero-cta-group .btn {
    width: 100%;
  }

  .hero-cta-group .btn {
    max-width: 360px;
  }

  .hero-stats-grid {
    padding: 1.5rem 1rem;
    gap: 1rem;
  }

  .service-card,
  .timeline-card,
  .testimonial-card,
  .contact-form-box,
  .modal-content {
    padding: 1.5rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .faq-question {
    padding: 1.25rem;
    gap: 1rem;
  }

  .faq-answer,
  .faq-item.active .faq-answer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .toast {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .brand-name .logo-main {
    font-size: 1.1rem;
  }

  .brand-name .logo-tag {
    font-size: 0.45rem;
  }

  .brand-symbol {
    width: 34px;
    height: 34px;
  }

  .hero-badge {
    max-width: 100%;
    text-align: left;
  }

  .hero-description,
  .section-subtitle {
    font-size: 1rem;
  }

  .hero-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-number {
    font-size: 1.9rem;
  }

  .stat-label {
    font-size: 0.68rem;
  }

  .form-row,
  .addons-list,
  .option-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
