/* ==========================================================================
   EXXOMATIC DESIGN SYSTEM - ENTERPRISE IOT & CONNECTED MOBILITY
   ========================================================================== */

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

:root {
  /* Color Palette */
  --bg-darker: #06090e;
  --bg-main: #0a0e17;
  --bg-card: #111827;
  --bg-card-hover: #162035;
  --bg-surface: #1e293b;
  --bg-glass: rgba(17, 24, 39, 0.75);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-glow: rgba(0, 229, 255, 0.35);
  --border-purple-glow: rgba(139, 92, 246, 0.35);

  --cyan-primary: #00e5ff;
  --cyan-hover: #33ebff;
  --cyan-dim: rgba(0, 229, 255, 0.12);
  --cyan-glow: 0 0 25px rgba(0, 229, 255, 0.4);

  --blue-primary: #3b82f6;
  --indigo-primary: #6366f1;
  --purple-primary: #8b5cf6;
  --purple-glow: 0 0 25px rgba(139, 92, 246, 0.4);

  --green-status: #10b981;
  --green-glow: 0 0 15px rgba(16, 185, 129, 0.4);
  --amber-status: #f59e0b;
  --rose-status: #f43f5e;

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0a0e17;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --container-max: 1240px;
  --header-height: 76px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-base: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #101c36 0%, #0a0e17 65%, #06090e 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

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

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

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

/* Utility Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-alt {
  background-color: rgba(13, 20, 36, 0.6);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 10%, #00e5ff 60%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-cyan {
  color: var(--cyan-primary);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  font-family: var(--font-heading);
}

.badge-cyan {
  background: var(--cyan-dim);
  color: var(--cyan-primary);
  border: 1px solid var(--border-glow);
}

.badge-purple {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid var(--border-purple-glow);
}

.badge-green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green-status);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--green-status);
  box-shadow: var(--green-glow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-heading);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-base);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan-primary) 0%, #0099ff 100%);
  color: #06090e;
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--cyan-hover) 0%, #2bb2ff 100%);
  box-shadow: 0 6px 26px rgba(0, 229, 255, 0.5);
  transform: translateY(-2px);
  color: #06090e;
}

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

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

.btn-outline {
  background: transparent;
  color: var(--cyan-primary);
  border: 1px solid var(--border-glow);
}

.btn-outline:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan-primary);
  box-shadow: var(--cyan-glow);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

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

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
  background: rgba(8, 12, 19, 0.95);
  border-bottom: 1px solid rgba(0, 229, 255, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.brand-logo-text {
  font-family: 'Outfit', 'Inter', system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  line-height: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan-primary), var(--purple-primary));
  transition: width var(--transition-fast);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.5rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Mobile Nav Drawer */
.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 14, 23, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 2rem 1.5rem;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-base);
  overflow-y: auto;
  border-bottom: 1px solid var(--border-glow);
}

.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.mobile-nav-link {
  font-size: 1.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-subtle);
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-link:active {
  color: var(--cyan-primary);
  background: rgba(0, 229, 255, 0.05);
}

.mobile-nav-link.active {
  color: var(--cyan-primary);
  border-bottom-color: var(--cyan-primary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 6rem 0 5rem 0;
  overflow: hidden;
}

.hero-glow-bg {
  position: absolute;
  top: -100px;
  right: -50px;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, rgba(139, 92, 246, 0.1) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 640px;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.15rem;
  margin-bottom: 2.2rem;
  color: var(--text-secondary);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.hero-stat-item h4 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.hero-stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Telemetry Preview Graphic / Dashboard Box */
.telemetry-card {
  background: linear-gradient(145deg, #131c2e, #0e1524);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 1.8rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--cyan-glow);
  position: relative;
  overflow: hidden;
}

.telemetry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan-primary), var(--purple-primary), transparent);
}

.telemetry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.telemetry-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan-primary);
}

.telemetry-badge-online {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green-status);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.telemetry-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: border-color var(--transition-fast);
}

.metric-box:hover {
  border-color: var(--cyan-primary);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.metric-val {
  font-size: 1.35rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-primary);
}

.metric-val.cyan { color: var(--cyan-primary); }
.metric-val.green { color: var(--green-status); }
.metric-val.purple { color: #a78bfa; }

.live-feed-log {
  background: #080c14;
  border-radius: var(--radius-md);
  padding: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #7dd3fc;
  border: 1px solid rgba(255, 255, 255, 0.05);
  max-height: 110px;
  overflow-y: auto;
}

.live-feed-line {
  margin-bottom: 0.3rem;
  display: flex;
  gap: 0.5rem;
}

.live-feed-time {
  color: var(--text-muted);
}

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  position: relative;
  transition: all var(--transition-base);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 229, 255, 0.15);
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--cyan-dim);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--cyan-primary);
}

.card-icon.purple {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--border-purple-glow);
  color: #a78bfa;
}

.card-icon.green {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--green-status);
}

.card h3 {
  margin-bottom: 0.8rem;
}

.card p {
  font-size: 0.98rem;
  margin-bottom: 1.2rem;
}

.card-feature-list {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.card-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.card-feature-list li svg {
  color: var(--cyan-primary);
  flex-shrink: 0;
}

/* Platform Showcase Highlight Cards */
.platform-highlight-card {
  background: linear-gradient(135deg, rgba(23, 32, 51, 0.9) 0%, rgba(13, 20, 36, 0.95) 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
  position: relative;
}

.platform-highlight-card:hover {
  border-color: var(--cyan-primary);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 229, 255, 0.12);
}

.platform-visual {
  background: #090e18;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
}

/* ==========================================================================
   ROI CALCULATOR & SIMULATOR
   ========================================================================== */
.calculator-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 2.8rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

.calc-control-group {
  margin-bottom: 2rem;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.calc-label-row label {
  font-weight: 600;
  color: var(--text-primary);
}

.calc-current-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--cyan-primary);
  font-size: 1.1rem;
}

.range-slider {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: #1e293b;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cyan-primary);
  box-shadow: var(--cyan-glow);
  cursor: pointer;
  border: 2px solid #ffffff;
  transition: transform var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-result-card {
  background: linear-gradient(145deg, #101c33, #0a1120);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.calc-result-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--green-status);
  text-shadow: var(--green-glow);
  margin: 0.8rem 0;
}

/* ==========================================================================
   INTERACTIVE TABS
   ========================================================================== */
.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.65rem 1.6rem;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.tab-btn.active {
  background: var(--cyan-dim);
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
  box-shadow: var(--cyan-glow);
}

.tab-content-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content-panel.active {
  display: block;
}

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

/* ==========================================================================
   COMPARISON TABLE
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 650px;
}

.comparison-table th, .comparison-table td {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background: #0d1527;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.comparison-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.check-icon {
  color: var(--green-status);
  display: inline-flex;
}

.cross-icon {
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.accordion-wrapper {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.accordion-item.open {
  border-color: var(--border-glow);
}

.accordion-btn {
  width: 100%;
  padding: 1.3rem 1.6rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition-fast);
}

.accordion-btn:hover {
  color: var(--cyan-primary);
}

.accordion-icon {
  transition: transform var(--transition-base);
  color: var(--cyan-primary);
  flex-shrink: 0;
  margin-left: 1rem;
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
  padding: 0 1.6rem;
}

.accordion-item.open .accordion-content {
  padding-bottom: 1.5rem;
}

/* ==========================================================================
   FORMS & CONTACT
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.8rem;
}

.contact-details-list {
  list-style: none;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--cyan-dim);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-primary);
  flex-shrink: 0;
}

.contact-form-box {
  background: linear-gradient(145deg, #121a2d, #0d1424);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 2.8rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

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

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: #090e18;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--cyan-primary);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.2);
}

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

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

.form-feedback {
  display: none;
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-top: 1.2rem;
  font-size: 0.95rem;
  text-align: center;
}

.form-feedback.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.form-feedback.error {
  display: block;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fb7185;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #06090e;
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2rem 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.92rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}

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

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

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

/* ==========================================================================
   MODAL / LIGHTBOX
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

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

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 580px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  transform: translateY(20px);
  transition: transform var(--transition-base);
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.4rem;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS & MOBILE OPTIMIZATIONS
   ========================================================================== */

/* Tablet & Smaller Desktops (≤ 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .platform-highlight-card {
    grid-template-columns: 1fr;
    padding: 2.2rem;
    gap: 2rem;
  }

  .calculator-box {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

/* Mobile Devices (≤ 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-text-size-adjust: 100%;
  }

  .container {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .section {
    padding: 3rem 0;
  }

  /* Header & Mobile Toggle */
  .brand-logo img {
    height: 32px;
  }

  .brand-logo-text {
    font-size: 1.25rem;
  }

  .nav-menu, .header-cta {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    touch-action: manipulation;
  }

  /* Hero Section */
  .hero-section {
    padding: 2rem 0 2.5rem 0;
  }

  .hero-title {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
    line-height: 1.22;
    margin-bottom: 1.1rem;
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.8rem;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
  }

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

  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding-top: 1.5rem;
    text-align: left;
  }

  .hero-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.6rem;
  }

  .hero-stat-item h4 {
    font-size: 1.5rem;
    margin-bottom: 0;
  }

  .hero-stat-item p {
    font-size: 0.82rem;
    text-align: right;
  }

  /* Telemetry Graphic Card */
  .telemetry-card {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
  }

  .telemetry-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding-bottom: 1rem;
    margin-bottom: 1.2rem;
  }

  .telemetry-tag {
    font-size: 0.78rem;
  }

  .telemetry-metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-bottom: 1rem;
  }

  .metric-box {
    padding: 0.75rem;
  }

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

  .metric-val {
    font-size: 1.1rem;
  }

  .live-feed-log {
    max-height: 90px;
    font-size: 0.72rem;
    padding: 0.7rem;
  }

  /* Grid Layouts Stacked */
  .card-grid-3, .card-grid-4, .card-grid-2 {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .card {
    padding: 1.5rem;
  }

  .card-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 1.1rem;
  }

  .platform-highlight-card {
    padding: 1.4rem;
    border-radius: var(--radius-lg);
  }

  /* Horizontally Scrollable Native-Feel Tab Navigation */
  .tabs-nav {
    display: flex;
    justify-content: flex-start;
    gap: 0.6rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tabs-nav::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    white-space: nowrap;
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
    flex-shrink: 0;
  }

  /* ROI Calculator */
  .calculator-box {
    padding: 1.4rem;
  }

  .calc-label-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .range-slider {
    height: 12px;
  }

  .range-slider::-webkit-slider-thumb {
    width: 28px;
    height: 28px;
  }

  .calc-result-number {
    font-size: 2.2rem;
  }

  /* Forms & Touch Optimization */
  .form-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .form-control {
    font-size: 16px; /* Prevents auto-zoom in iOS Safari */
    padding: 0.9rem 1rem;
    min-height: 48px;
  }

  .contact-info-card, .contact-form-box {
    padding: 1.5rem;
  }

  /* Comparison Table Mobile Hint & Scroll */
  .table-responsive {
    position: relative;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
  }

  .table-responsive::after {
    content: '← Swipe horizontally to inspect all platform tiers →';
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--cyan-primary);
    padding: 0.6rem;
    background: rgba(0, 229, 255, 0.06);
    border-top: 1px solid var(--border-subtle);
  }

  .comparison-table th, .comparison-table td {
    padding: 0.9rem 1rem;
    font-size: 0.88rem;
  }

  /* Modal Optimization on Mobile */
  .modal-overlay {
    padding: 0.75rem;
  }

  .modal-card {
    padding: 1.6rem 1.2rem;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: var(--radius-lg);
  }

  .modal-close-btn {
    top: 0.8rem;
    right: 0.8rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Footer on Mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
  }

  /* Active Touch Feedback */
  .btn:active, .tab-btn:active, .mobile-toggle:active {
    transform: scale(0.97);
  }
}

/* ==========================================================================
   LEGAL & COMPLIANCE PAGES (PRIVACY POLICY & TERMS OF SERVICE)
   ========================================================================== */

.legal-header-banner {
  padding: 4.5rem 0 2.5rem 0;
  text-align: center;
  position: relative;
}

.legal-header-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.legal-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.legal-doc-switcher {
  display: inline-flex;
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid var(--border-medium);
  padding: 0.35rem;
  border-radius: var(--radius-full);
  margin: 2rem auto 0 auto;
  gap: 0.4rem;
  backdrop-filter: blur(12px);
}

.legal-doc-btn {
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-doc-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.legal-doc-btn.active {
  background: var(--cyan-dim);
  color: var(--cyan-primary);
  border-color: var(--border-glow);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
}

.legal-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
  padding-bottom: 5rem;
}

/* Sticky Sidebar Table of Contents */
.legal-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.legal-toc-card {
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.95), rgba(11, 16, 26, 0.98));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.legal-toc-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-search-box {
  position: relative;
  margin-bottom: 1.2rem;
}

.legal-search-input {
  width: 100%;
  padding: 0.65rem 0.9rem 0.65rem 2.2rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: var(--font-body);
  transition: all var(--transition-fast);
}

.legal-search-input:focus {
  outline: none;
  border-color: var(--cyan-primary);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
  background: rgba(0, 0, 0, 0.6);
}

.legal-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.legal-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 0.4rem;
}

.legal-toc-list::-webkit-scrollbar {
  width: 4px;
}

.legal-toc-list::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

.legal-toc-link {
  display: block;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  border-left: 2px solid transparent;
  line-height: 1.4;
}

.legal-toc-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  border-left-color: var(--text-muted);
}

.legal-toc-link.active {
  color: var(--cyan-primary);
  background: var(--cyan-dim);
  border-left-color: var(--cyan-primary);
  font-weight: 600;
}

.legal-action-card {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Legal Main Article Area */
.legal-main-content {
  background: rgba(17, 24, 39, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3rem;
  position: relative;
}

.legal-section {
  scroll-margin-top: calc(var(--header-height) + 2rem);
  padding-bottom: 2.75rem;
  margin-bottom: 2.75rem;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.legal-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.legal-section-header {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.legal-section-num {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--cyan-primary);
  font-weight: 700;
  flex-shrink: 0;
}

.legal-section-title {
  font-size: 1.55rem;
  color: var(--text-primary);
}

.legal-body p {
  margin-bottom: 1rem;
  font-size: 1.02rem;
  line-height: 1.75;
}

.legal-body ul, .legal-body ol {
  margin: 1rem 0 1.5rem 1.4rem;
  color: var(--text-secondary);
}

.legal-body li {
  margin-bottom: 0.6rem;
  line-height: 1.65;
}

.legal-body li strong {
  color: var(--text-primary);
}

/* Legal Highlight / Callout Banners */
.legal-callout {
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.4rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.6;
}

.legal-callout-icon {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.legal-callout-cyan {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--border-glow);
  color: #bae6fd;
}
.legal-callout-cyan .legal-callout-icon { color: var(--cyan-primary); }

.legal-callout-purple {
  background: rgba(139, 92, 246, 0.09);
  border: 1px solid var(--border-purple-glow);
  color: #ddd6fe;
}
.legal-callout-purple .legal-callout-icon { color: #a78bfa; }

.legal-callout-green {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
}
.legal-callout-green .legal-callout-icon { color: var(--green-status); }

.legal-callout-amber {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde68a;
}
.legal-callout-amber .legal-callout-icon { color: var(--amber-status); }

/* Quick Highlight Badges inside text */
.legal-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cyan-primary);
  border: 1px solid rgba(0, 229, 255, 0.25);
  margin: 0 0.2rem;
  vertical-align: middle;
}

/* Search match highlights */
.legal-highlight {
  background-color: rgba(0, 229, 255, 0.3);
  color: #ffffff;
  padding: 0 2px;
  border-radius: 2px;
}

.legal-section.search-hidden {
  display: none !important;
}

/* Officer Card / Contact Box */
.legal-contact-card {
  background: linear-gradient(135deg, rgba(23, 32, 51, 0.8), rgba(13, 20, 36, 0.9));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
}

.legal-contact-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--cyan-dim);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-primary);
}

/* Responsiveness for Legal Pages */
@media (max-width: 992px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .legal-sidebar {
    position: static;
    order: -1;
  }

  .legal-toc-list {
    max-height: 220px;
  }

  .legal-main-content {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 640px) {
  .legal-doc-switcher {
    flex-direction: column;
    width: 100%;
    border-radius: var(--radius-lg);
  }

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

  .legal-header-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .legal-contact-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .legal-section-header {
    flex-direction: column;
    gap: 0.3rem;
  }
}

/* Print Stylesheet */
@media print {
  body {
    background: #ffffff !important;
    color: #111827 !important;
  }

  .site-header, .mobile-drawer, .site-footer, .legal-sidebar, .legal-doc-switcher, .btn, .modal-overlay, #mobileToggleBtn {
    display: none !important;
  }

  .legal-main-content {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  .legal-section {
    page-break-inside: avoid;
    border-bottom: 1px solid #e5e7eb !important;
    padding-bottom: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }

  .legal-section-title, h1, h2, h3 {
    color: #000000 !important;
  }

  p, li, span {
    color: #374151 !important;
  }

  .legal-callout {
    background: #f3f4f6 !important;
    border: 1px solid #d1d5db !important;
    color: #1f2937 !important;
  }
}

