/* ==========================================================================
   CORTEX CLOUD AI (cortexcloud-ai.com) — Ultra-Modern SaaS Stylesheet
   Inspired by modern developer-first AI platforms & wywo.ai elegance
   ========================================================================== */

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

/* --- CSS Variables --- */
:root {
  --bg-body: #06080F;
  --bg-surface: #0B101D;
  --bg-surface-elevated: #11182B;
  --bg-card: rgba(13, 19, 36, 0.7);
  --bg-card-hover: rgba(20, 30, 58, 0.85);
  --bg-glass: rgba(11, 16, 29, 0.75);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 242, 254, 0.45);
  --border-card: rgba(255, 255, 255, 0.1);

  --accent-cyan: #00F2FE;
  --accent-blue: #4FACFE;
  --accent-indigo: #6366F1;
  --accent-purple: #7928CA;
  --accent-emerald: #10B981;
  --accent-amber: #F59E0B;
  --accent-rose: #F43F5E;

  --grad-primary: linear-gradient(135deg, #00F2FE 0%, #4FACFE 50%, #7928CA 100%);
  --grad-glow: radial-gradient(circle at 50% 0%, rgba(0, 242, 254, 0.18) 0%, rgba(79, 172, 254, 0.05) 50%, transparent 70%);
  --grad-card: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%);

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dark: #64748B;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-accent: 'Space Grotesk', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-card: 0 12px 36px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px -10px rgba(0, 242, 254, 0.25);
  --shadow-glow-lg: 0 0 80px -15px rgba(79, 172, 254, 0.35);

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background Ambient Lighting Canvas */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.ambient-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  z-index: 0;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 50% 20%, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, black 40%, transparent 85%);
}

.content-wrapper {
  position: relative;
  z-index: 1;
}

/* --- Typography Helpers --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
}

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

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-cyan { color: var(--accent-cyan); }
.text-emerald { color: var(--accent-emerald); }
.text-amber { color: var(--accent-amber); }
.text-muted { color: var(--text-muted); }

/* --- Layout Container --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-spacing {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  font-family: var(--font-accent);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--font-accent);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: 1px solid transparent;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #060911;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 242, 254, 0.55);
}

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

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

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-glow:hover::after {
  opacity: 1;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13.5px;
}

.btn-lg {
  padding: 16px 34px;
  font-size: 16.5px;
}

/* --- Top Announcement Bar --- */
.top-bar {
  background: linear-gradient(90deg, rgba(0, 242, 254, 0.15), rgba(121, 40, 202, 0.15));
  border-bottom: 1px solid rgba(0, 242, 254, 0.2);
  padding: 8px 16px;
  font-size: 13px;
  font-family: var(--font-accent);
  text-align: center;
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.top-bar-badge {
  background: var(--accent-cyan);
  color: #060911;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
}

.top-bar a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

/* --- Sticky Glass Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 0;
  background: rgba(6, 8, 15, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(6, 8, 15, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

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

.nav-logo img {
  height: 38px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-cyan);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  padding: 90px 0 80px 0;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(0, 242, 254, 0.18) 0%, rgba(121, 40, 202, 0.12) 45%, transparent 75%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s;
}

.hero-pill:hover {
  border-color: var(--accent-cyan);
}

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

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-muted);
  max-width: 740px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-family: var(--font-accent);
  font-size: 13.5px;
  color: var(--text-dark);
  flex-wrap: wrap;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-badge-item svg {
  color: var(--accent-cyan);
}

/* --- Hero Interactive Telemetry Dashboard Card --- */
.hero-dashboard-preview {
  margin-top: 60px;
  position: relative;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid rgba(0, 242, 254, 0.25);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 45px -10px rgba(0, 242, 254, 0.2);
  overflow: hidden;
  text-align: left;
}

.dashboard-header {
  background: rgba(6, 8, 15, 0.9);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.dashboard-title-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 400px;
}

.dashboard-sidebar {
  background: rgba(8, 12, 22, 0.6);
  border-right: 1px solid var(--border-subtle);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cluster-metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.metric-label {
  font-size: 11.5px;
  font-family: var(--font-accent);
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  justify-content: space-between;
}

.metric-val {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-main);
  margin-top: 4px;
}

.dashboard-main {
  padding: 24px;
  display: flex;
  flex-direction: column;
  background: #080C16;
}

.terminal-stream-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-cyan);
}

.terminal-logs {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: #CBD5E1;
  overflow-y: auto;
  max-height: 280px;
  padding-right: 10px;
}

.log-entry {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
  animation: fadeIn 0.4s ease;
}

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

.log-time {
  color: var(--text-dark);
  flex-shrink: 0;
}
.log-tag {
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
}
.tag-scale { background: rgba(0, 242, 254, 0.15); color: var(--accent-cyan); }
.tag-finops { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.tag-router { background: rgba(99, 102, 241, 0.15); color: var(--accent-indigo); }
.tag-mcp { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }

/* --- Marquee Section --- */
.marquee-section {
  padding: 30px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(11, 16, 29, 0.4);
  overflow: hidden;
  position: relative;
}

.marquee-label {
  text-align: center;
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 20px;
}

.marquee-track {
  display: flex;
  gap: 50px;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-accent);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}

.marquee-item:hover {
  opacity: 1;
  color: #FFFFFF;
}

.marquee-item svg {
  width: 24px;
  height: 24px;
}

/* --- Bento Grid Features --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
}

.bento-card.span-8 { grid-column: span 8; }
.bento-card.span-4 { grid-column: span 4; }
.bento-card.span-6 { grid-column: span 6; }
.bento-card.span-12 { grid-column: span 12; }

.bento-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 22px;
}

.bento-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.bento-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.bento-visual {
  margin-top: 24px;
  background: rgba(6, 9, 16, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

/* --- Interactive ROI Calculator --- */
.calculator-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 48px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.calc-slider-wrapper {
  margin: 32px 0;
}

.calc-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: var(--font-accent);
}

.calc-slider-val {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.calc-range-input {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.calc-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan);
  cursor: pointer;
  transition: transform 0.1s;
}

.calc-range-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-options-group {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.calc-chip {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-accent);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.calc-chip.active, .calc-chip:hover {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--accent-cyan);
  color: #FFFFFF;
}

.calc-result-card {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.08) 0%, rgba(121, 40, 202, 0.08) 100%);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
}

.calc-savings-number {
  font-size: clamp(42px, 5vw, 60px);
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-emerald);
  margin: 12px 0 6px 0;
  letter-spacing: -0.02em;
}

.calc-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  text-align: left;
}

.breakdown-item h5 {
  font-size: 12px;
  color: var(--text-dark);
  font-family: var(--font-accent);
  text-transform: uppercase;
}

.breakdown-item p {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-main);
  margin-top: 4px;
}

/* --- Interactive Simulator / Playground --- */
.simulator-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.sim-tabs-header {
  display: flex;
  background: rgba(6, 8, 15, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 20px;
  overflow-x: auto;
}

.sim-tab-btn {
  padding: 16px 24px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.sim-tab-btn.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
}

.sim-body {
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.sim-input-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sim-textarea {
  width: 100%;
  height: 120px;
  background: rgba(6, 8, 15, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 13.5px;
  resize: none;
  outline: none;
}

.sim-textarea:focus {
  border-color: var(--accent-cyan);
}

.sim-output-box {
  background: #080C16;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.sim-telemetry-badge {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* --- Architecture Steps --- */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.arch-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
}

.arch-step-num {
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 800;
  color: rgba(0, 242, 254, 0.2);
  margin-bottom: 12px;
}

/* --- Integrations Filter Grid --- */
.integrations-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-accent);
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn.active, .filter-btn:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent-cyan);
  color: #FFFFFF;
}

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

.integration-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.25s ease;
}

.integration-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

.integration-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.integration-info h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.integration-info p {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* --- Pricing Section --- */
.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
  font-family: var(--font-accent);
}

.toggle-switch {
  position: relative;
  width: 56px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  cursor: pointer;
  transition: background 0.3s;
}

.toggle-switch.active {
  background: var(--accent-cyan);
}

.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: #FFFFFF;
  border-radius: 50%;
  transition: transform 0.3s;
}

.toggle-switch.active .toggle-knob {
  transform: translateX(26px);
  background: #060911;
}

.discount-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card.popular {
  border-color: var(--accent-cyan);
  background: linear-gradient(180deg, rgba(0, 242, 254, 0.08) 0%, rgba(13, 19, 36, 0.85) 100%);
  box-shadow: 0 0 50px -10px rgba(0, 242, 254, 0.3);
  transform: scale(1.03);
}

.popular-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-primary);
  color: #060911;
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.price-box {
  margin: 24px 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-currency {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-muted);
}

.price-amount {
  font-size: 52px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-main);
}

.price-period {
  font-size: 14px;
  color: var(--text-dark);
}

.pricing-feature-list {
  list-style: none;
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pricing-feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: var(--text-muted);
}

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

/* --- FAQ Accordion --- */
.faq-wrap {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s;
}

.faq-item.active {
  border-color: var(--border-focus);
}

.faq-question {
  width: 100%;
  padding: 22px 26px;
  background: none;
  border: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 17.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
  color: var(--accent-cyan);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 26px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  padding-bottom: 24px;
}

/* --- Final CTA Banner --- */
.final-cta {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.12) 0%, rgba(121, 40, 202, 0.15) 100%);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-xl);
  padding: 70px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 80px -20px rgba(0, 242, 254, 0.25);
}

/* --- Footer --- */
.site-footer {
  background: #04060B;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 30px 0;
  margin-top: 80px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 18px 0 22px 0;
  max-width: 320px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-emerald);
}

.footer-col h5 {
  font-size: 14px;
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
  color: var(--text-main);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
}

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

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text-dark);
}

/* --- Floating AI Assistant Widget ("Ask Cortex AI") --- */
.ai-widget-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: var(--grad-primary);
  color: #060911;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 30px rgba(0, 242, 254, 0.45);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
}

.ai-widget-launcher:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 242, 254, 0.6);
}

.ai-chat-drawer {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 380px;
  height: 520px;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.ai-chat-drawer.open {
  display: flex;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.chat-header {
  background: rgba(6, 8, 15, 0.95);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
}

.chat-messages {
  flex: 1;
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.5;
}

.chat-msg.bot {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  align-self: flex-start;
  color: var(--text-main);
}

.chat-msg.user {
  background: var(--accent-cyan);
  color: #060911;
  font-weight: 500;
  align-self: flex-end;
}

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 12px 16px;
}

.quick-reply-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
}

.chat-input-bar {
  padding: 12px 16px;
  background: rgba(6, 8, 15, 0.9);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 8px;
}

.chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: #FFFFFF;
  font-size: 13.5px;
  outline: none;
}

.chat-send-btn {
  background: var(--accent-cyan);
  border: none;
  border-radius: var(--radius-sm);
  color: #060911;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 700;
}

/* --- Modals --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 5, 10, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  padding: 36px;
  position: relative;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), var(--shadow-glow);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 22px;
}

/* Form Styles inside Modals & Pages */
.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 13px;
  font-family: var(--font-accent);
  margin-bottom: 6px;
  color: var(--text-muted);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(6, 8, 15, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.2s;
}

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

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--accent-cyan);
  color: var(--text-main);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-accent);
  font-size: 13.5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .bento-card.span-8, .bento-card.span-4, .bento-card.span-6 {
    grid-column: span 12;
  }
  .pricing-cards-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .pricing-card.popular {
    transform: none;
  }
  .arch-grid {
    grid-template-columns: 1fr;
  }
  .calculator-grid, .sim-body {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-secondary {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .mobile-nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(6, 8, 15, 0.98);
    padding: 24px;
    border-bottom: 1px solid var(--border-subtle);
  }
  .hero-section {
    padding: 60px 0 40px 0;
  }
  .calculator-box {
    padding: 24px;
  }
  .ai-chat-drawer {
    width: calc(100vw - 32px);
    right: 16px;
    left: 16px;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}
