/**
 * DataIntellit Enterprise Design System
 * Engineered for Ultra-Performance, Visual Excellence, and Cloudflare Edge Delivery
 */

:root {
  /* Surface & Background Hierarchy */
  --bg-canvas: #05070e;
  --bg-subtle: #090e1a;
  --bg-card: #0e1526;
  --bg-card-hover: #131c33;
  --bg-elevated: #17223d;
  --bg-overlay: rgba(5, 7, 14, 0.82);
  --bg-glass: rgba(14, 21, 38, 0.72);

  /* Border Tokens */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.13);
  --border-strong: rgba(255, 255, 255, 0.22);
  --border-accent: rgba(99, 102, 241, 0.35);

  /* Text Hierarchy */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-inverse: #030712;

  /* Accent Color Palette */
  --brand-indigo: #6366f1;
  --brand-indigo-light: #818cf8;
  --brand-indigo-glow: rgba(99, 102, 241, 0.28);
  
  --rf-emerald: #10b981;
  --rf-emerald-light: #34d399;
  --rf-emerald-glow: rgba(16, 185, 129, 0.25);
  
  --edu-cyan: #06b6d4;
  --edu-cyan-light: #38bdf8;
  --edu-cyan-glow: rgba(6, 182, 212, 0.25);

  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-violet: #a855f7;

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

  /* Transitions & Shadows */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.7);
  --shadow-glow-indigo: 0 0 40px var(--brand-indigo-glow);
  --shadow-glow-rf: 0 0 40px var(--rf-emerald-glow);
  --shadow-glow-edu: 0 0 40px var(--edu-cyan-glow);

  /* Layout */
  --container-max: 1240px;
  --header-height: 74px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
}

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

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

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

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

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

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

.mono {
  font-family: var(--font-mono);
}

/* Ambient Background Light Mesh */
.ambient-glow-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  max-width: 1100px;
  height: 520px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.08) 35%, rgba(16, 185, 129, 0.04) 65%, transparent 80%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  max-width: 900px;
  height: 480px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(99, 102, 241, 0.06) 50%, transparent 75%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

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

.section {
  position: relative;
  padding: 5.5rem 0;
  z-index: 1;
}

.section-hero {
  padding: 4rem 0 5rem;
}

.section-sm {
  padding: 3.5rem 0;
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.75rem);
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.gradient-text-hero {
  background: linear-gradient(135deg, #ffffff 30%, #c7d2fe 70%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-rf {
  background: linear-gradient(135deg, #ffffff 20%, #34d399 70%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-edu {
  background: linear-gradient(135deg, #ffffff 20%, #38bdf8 70%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead-text {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.68;
}

/* Header & Navigation Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--bg-overlay);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-normal), border-color var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(5, 7, 14, 0.95);
  border-bottom-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.28rem;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.brand-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #06b6d4 70%, #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.brand-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rf-emerald);
  box-shadow: 0 0 10px var(--rf-emerald);
  animation: pulse-emerald 2s infinite;
}

@keyframes pulse-emerald {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

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

.nav-item a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.4rem 0.2rem;
  position: relative;
}

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

.nav-item a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-indigo), var(--edu-cyan));
  border-radius: 2px;
}

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

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  font-size: 1.3rem;
  cursor: pointer;
}

/* Badges & Chips */
.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(99, 102, 241, 0.12);
  color: var(--brand-indigo-light);
  border: 1px solid rgba(99, 102, 241, 0.28);
}

.badge-rf {
  background: rgba(16, 185, 129, 0.12);
  color: var(--rf-emerald-light);
  border-color: rgba(16, 185, 129, 0.3);
}

.badge-edu {
  background: rgba(6, 182, 212, 0.12);
  color: var(--edu-cyan-light);
  border-color: rgba(6, 182, 212, 0.3);
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(99, 102, 241, 0.55);
}

.btn-rf {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #03140c;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

.btn-rf:hover {
  background: #34d399;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.55);
  color: #03140c;
}

.btn-edu {
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  color: #021824;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.35);
}

.btn-edu:hover {
  background: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(6, 182, 212, 0.55);
  color: #021824;
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

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

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

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

/* Card System */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.card-glow-rf:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), var(--shadow-glow-rf);
}

.card-glow-edu:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), var(--shadow-glow-edu);
}

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

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

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

/* Hero Section */
.hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2.25rem;
  flex-wrap: wrap;
}

.hero-stats-row {
  display: flex;
  justify-content: center;
  gap: 3.5rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-val {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-lbl {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Interactive Product Switcher / Tab System */
.product-showcase-container {
  margin-top: 3.5rem;
}

.product-toggle-bar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.product-tab-btn {
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-medium);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.product-tab-btn.active.tab-rf {
  background: rgba(16, 185, 129, 0.15);
  color: var(--rf-emerald-light);
  border-color: var(--rf-emerald);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}

.product-tab-btn.active.tab-edu {
  background: rgba(6, 182, 212, 0.15);
  color: var(--edu-cyan-light);
  border-color: var(--edu-cyan);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.25);
}

.product-panel {
  display: none;
  animation: fadeIn 0.35s ease;
}

.product-panel.active {
  display: block;
}

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

/* Interactive App Showcase Frame */
.app-mockup-frame {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.mockup-header {
  background: var(--bg-elevated);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.mockup-title {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.mockup-body {
  padding: 2rem;
  background: radial-gradient(ellipse at top, #111a33 0%, #0a0f21 100%);
  min-height: 380px;
}

/* Feature Item Highlights */
.feature-box {
  display: flex;
  gap: 1.2rem;
}

.feature-icon-box {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.feature-icon-rf {
  background: rgba(16, 185, 129, 0.14);
  color: var(--rf-emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.feature-icon-edu {
  background: rgba(6, 182, 212, 0.14);
  color: var(--edu-cyan-light);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.feature-icon-indigo {
  background: rgba(99, 102, 241, 0.14);
  color: var(--brand-indigo-light);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

/* Comparison Matrix */
.comparison-table-wrapper {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

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

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

.comparison-table th {
  background: var(--bg-elevated);
  font-size: 0.92rem;
  font-weight: 700;
}

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

.check-icon {
  color: var(--rf-emerald);
  font-size: 1.2rem;
}

.dash-icon {
  color: var(--text-tertiary);
}

/* Download Hub Cards */
.download-hero-card {
  background: linear-gradient(135deg, #0e1528 0%, #151d38 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  position: relative;
  overflow: hidden;
}

.download-hero-card::after {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Pricing Switcher & Cards */
.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.toggle-switch {
  position: relative;
  width: 54px;
  height: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform var(--transition-fast);
}

.toggle-switch.annual .toggle-slider {
  transform: translateX(26px);
  background: var(--rf-emerald-light);
}

.pricing-discount-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--rf-emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
}

.pricing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-card.featured {
  border-color: var(--brand-indigo);
  background: linear-gradient(180deg, #111a33 0%, #0d1326 100%);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), var(--shadow-glow-indigo);
}

.pricing-price-num {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
}

.pricing-features-list {
  list-style: none;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

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

/* Footer */
.site-footer {
  background: #030409;
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 2.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

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

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

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

/* Responsive Media Queries */
@media (max-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-menu {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .hero-stats-row {
    gap: 2rem;
  }
  .section {
    padding: 3.5rem 0;
  }
  .download-hero-card {
    padding: 1.75rem;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: var(--bg-canvas);
  z-index: 99;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 1.15rem;
  font-weight: 700;
}
