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

/* --- DESIGN SYSTEM & TOKENS --- */
:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Colors */
  --bg-darkest: #070a13;
  --bg-darker: #0d1222;
  --bg-dark: #121829;
  --bg-card: rgba(20, 27, 47, 0.65);
  --border-glow: rgba(255, 255, 255, 0.06);
  --border-glow-hover: rgba(59, 130, 246, 0.3);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-primary: #2563eb;       /* Royal Blue */
  --accent-secondary: #06b6d4;     /* Cyan */
  --accent-purple: #7c3aed;        /* Violet */
  
  --grad-primary: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --grad-accent: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
  --grad-glow: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  --grad-glow-purple: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, rgba(0, 0, 0, 0) 70%);

  /* Animation */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-normal: 0.4s var(--ease-smooth);
  --transition-slow: 0.6s var(--ease-smooth);
}

/* --- RESET & BASIC STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-darkest);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

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

ul {
  list-style: none;
}

input, textarea, button {
  font-family: inherit;
}

/* --- LAYOUT UTILITIES --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

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

.text-gradient-purple {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem auto;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-smooth);
}

.section-header.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-secondary);
  margin-bottom: 1rem;
  display: inline-block;
}

.section-title {
  font-size: 2.75rem;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* --- BACKGROUND DECORATIONS --- */
.ambient-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
}

.glow-top-right {
  top: -100px;
  right: -100px;
  background: var(--grad-glow);
}

.glow-mid-left {
  top: 45%;
  left: -200px;
  background: var(--grad-glow-purple);
}

.glow-bottom-right {
  bottom: 0;
  right: -150px;
  background: var(--grad-glow);
}

/* Grid overlay background */
.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center top;
  pointer-events: none;
  z-index: -2;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--grad-accent);
  z-index: -1;
  opacity: 0;
  transition: var(--transition-normal);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.btn-icon {
  width: 1.2rem;
  height: 1.2rem;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: var(--transition-fast);
}

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

/* --- NAVIGATION HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
}

.header.scrolled {
  height: 70px;
  background: rgba(7, 10, 19, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.5rem;
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
}

.logo-dot {
  width: 10px;
  height: 10px;
  background: var(--grad-primary);
  border-radius: 50%;
  display: inline-block;
}

.logo-sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  display: block;
  margin-top: -2px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

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

.nav-item:hover {
  color: #fff;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  transition: var(--transition-normal);
}

.nav-item:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
}

/* Burger Menu */
.burger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
}

.burger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  padding-top: 150px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  opacity: 0;
  transform: translateY(40px);
  animation: heroReveal 1s var(--ease-smooth) forwards;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-secondary);
  margin-bottom: 1.5rem;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.8s infinite;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
}

.stat-item h4 {
  font-size: 2.25rem;
  margin-bottom: 0.25rem;
  font-weight: 800;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Visual Graphic */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0.95);
  animation: heroReveal 1.2s var(--ease-smooth) 0.2s forwards;
}

.graphic-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 480px;
}

.graphic-ring {
  position: absolute;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ring-outer {
  width: 100%;
  height: 100%;
  animation: rotateClockwise 45s linear infinite;
}

.ring-mid {
  width: 75%;
  height: 75%;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.03);
  animation: rotateCounter 30s linear infinite;
}

.ring-inner {
  width: 50%;
  height: 50%;
}

.core-sphere {
  position: absolute;
  width: 120px;
  height: 120px;
  background: var(--grad-primary);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 60px rgba(59, 130, 246, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}

.core-logo-inner {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 800;
}

.floating-node {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.node-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-secondary);
}

.floating-node span {
  font-size: 0.85rem;
  font-weight: 600;
}

.node-1 {
  top: 15%;
  left: 0;
  animation: floatNode 8s ease-in-out infinite;
}

.node-2 {
  top: 20%;
  right: -5%;
  animation: floatNode 9s ease-in-out 1s infinite;
}

.node-3 {
  bottom: 15%;
  left: 5%;
  animation: floatNode 7s ease-in-out 2s infinite;
}

.node-4 {
  bottom: 22%;
  right: 0%;
  animation: floatNode 10s ease-in-out 0.5s infinite;
}

/* --- SERVICES SECTION --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.4s var(--ease-smooth);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.03) 0%, transparent 100%);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(59, 130, 246, 0.05);
}

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-secondary);
  margin-bottom: 2rem;
  transition: var(--transition-normal);
}

.service-card:hover .service-icon-box {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.3);
  transform: scale(1.05);
}

.service-icon-box svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  min-height: 70px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-secondary);
}

.service-link svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  stroke-width: 2;
  transition: var(--transition-fast);
}

.service-card:hover .service-link svg {
  transform: translateX(4px);
}

/* --- ABOUT & STATS / HIGHLIGHT --- */
.about-section {
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-content {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-smooth);
}

.about-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.about-desc-primary {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.about-desc-secondary {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.about-benefits {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.benefit-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-check svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 3;
}

.benefit-text h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.benefit-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* About visual card stack */
.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.8s var(--ease-smooth);
}

.about-visual.visible {
  opacity: 1;
  transform: scale(1);
}

.card-stack {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1.1;
}

.visual-card {
  position: absolute;
  border-radius: 20px;
  padding: 2.25rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-main {
  width: 90%;
  height: 85%;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  top: 0;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-sub-purple {
  width: 80%;
  height: 75%;
  background: rgba(124, 58, 237, 0.05);
  border: 1px solid rgba(124, 58, 237, 0.2);
  right: 0;
  bottom: 0;
  z-index: 1;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.chart-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  color: #10b981;
  font-weight: 600;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  height: 120px;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chart-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.chart-bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: rgba(255, 255, 255, 0.05);
  transition: all 1s var(--ease-smooth);
  height: 0; /* Animated via scroll trigger */
}

.chart-bar.fill-active-1 { height: 40%; background: var(--grad-primary); }
.chart-bar.fill-active-2 { height: 65%; background: var(--grad-primary); }
.chart-bar.fill-active-3 { height: 90%; background: var(--grad-accent); }

.chart-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

/* --- AUDIENCE SEGMENTS (WHO WE HELP) --- */
.tabs-container {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 32px;
  padding: 4rem;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-smooth);
}

.tabs-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.5rem;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
  border-radius: 12px;
}

.tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
  color: #fff;
  background: rgba(59, 130, 246, 0.1);
  box-shadow: inset 0 0 12px rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.5s var(--ease-smooth) forwards;
}

.tab-panel.active {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.tab-content h3 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

.tab-content p {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.tab-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.tab-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.tab-feature-icon {
  color: var(--accent-secondary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.tab-feature-icon svg {
  width: 18px;
  height: 18px;
}

.tab-visual-wrapper {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: inset 0 4px 30px rgba(0, 0, 0, 0.2);
}

.segment-metric {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1.25rem;
}

.segment-metric:last-child {
  border: none;
  padding: 0;
}

.segment-metric-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-secondary);
  font-family: var(--font-heading);
}

.segment-metric-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* --- DEMO / INTERACTIVE SIMULATOR --- */
.demo-section {
  position: relative;
}

.demo-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.demo-content {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-smooth);
}

.demo-content.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Chat Simulator UI */
.simulator-card {
  background: #0f1423;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.8s var(--ease-smooth);
}

.simulator-card.visible {
  opacity: 1;
  transform: scale(1);
}

.sim-header {
  background: #141b2f;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sim-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sim-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-weight: 700;
}

.sim-status-dot {
  width: 10px;
  height: 10px;
  background-color: #10b981;
  border-radius: 50%;
  position: absolute;
  bottom: 0;
  right: 0;
  border: 2px solid #141b2f;
}

.sim-username {
  font-weight: 600;
  font-size: 0.95rem;
}

.sim-user-status {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.sim-header-actions {
  display: flex;
  gap: 0.75rem;
  color: var(--text-secondary);
}

.sim-body {
  height: 380px;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background-image: 
    radial-gradient(rgba(59, 130, 246, 0.02) 1px, transparent 0),
    radial-gradient(rgba(59, 130, 246, 0.02) 1px, transparent 0);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}

/* Chat bubble styling */
.msg {
  max-width: 80%;
  display: flex;
  flex-direction: column;
}

.msg-bot {
  align-self: flex-start;
}

.msg-user {
  align-self: flex-end;
}

.msg-bubble {
  padding: 0.85rem 1.25rem;
  border-radius: 18px;
  font-size: 0.92rem;
}

.msg-bot .msg-bubble {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-top-left-radius: 4px;
}

.msg-user .msg-bubble {
  background: var(--grad-primary);
  color: #fff;
  border-top-right-radius: 4px;
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.15);
}

.msg-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  align-self: flex-end;
}

.msg-bot .msg-time {
  align-self: flex-start;
}

/* Typing indicator bubble */
.typing-bubble {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  border-top-left-radius: 4px;
  width: 60px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* Simulator Choices/Footer */
.sim-footer {
  padding: 1.25rem;
  background: #141b2f;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sim-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.sim-choice-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  padding: 0.6rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.sim-choice-btn:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-1px);
}

/* --- CONTACT SECTION --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 5rem;
  align-items: flex-start;
}

.contact-info {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-smooth);
}

.contact-info.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem 2rem;
  border-radius: 20px;
  transition: var(--transition-normal);
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.contact-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-secondary);
  flex-shrink: 0;
}

.contact-icon-box svg {
  width: 22px;
  height: 22px;
}

.contact-card-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-card-val {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Contact Form UI */
.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  padding: 4rem;
  border-radius: 32px;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-smooth);
}

.contact-form-wrapper.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.form-full-width {
  grid-column: span 2;
}

.form-group {
  position: relative;
}

/* Floating labels effect */
.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  color: #fff;
  font-size: 0.95rem;
  transition: var(--transition-normal);
}

.form-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-secondary);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

.form-label {
  position: absolute;
  left: 1.25rem;
  top: 1.1rem;
  color: var(--text-secondary);
  transition: var(--transition-normal);
  pointer-events: none;
  font-size: 0.95rem;
}

/* Move label up when input focused or has text */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -10px;
  left: 0.75rem;
  font-size: 0.75rem;
  color: var(--accent-secondary);
  background-color: #0c1120;
  padding: 0 0.5rem;
  border-radius: 4px;
}

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

.form-submit-wrapper {
  grid-column: span 2;
  display: flex;
  justify-content: flex-end;
}

/* --- FOOTER --- */
.footer {
  background: #04060b;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 5rem 0 3rem 0;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-normal);
}

.social-btn:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
  position: relative;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.footer-link:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  color: #fff;
  font-size: 0.85rem;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent-secondary);
}

.newsletter-form button {
  padding: 0 1.25rem;
  border-radius: 12px;
}

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

.footer-meta-links {
  display: flex;
  gap: 2rem;
}

.footer-meta-links a:hover {
  color: #fff;
}


/* --- ANIMATIONS & KEYFRAMES --- */
@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes rotateClockwise {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotateCounter {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes float {
  0% { transform: translate(-50%, -50%) translateY(0px); }
  50% { transform: translate(-50%, -50%) translateY(-15px); }
  100% { transform: translate(-50%, -50%) translateY(0px); }
}

@keyframes floatNode {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

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

@keyframes typing {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}


/* --- RESPONSIVE MEDIA QUERIES --- */

/* High-res monitors */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Laptops & Tablets (Landscape) */
@media (max-width: 1024px) {
  .section {
    padding: 6rem 0;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-grid {
    gap: 2rem;
  }

  .about-grid, .tab-panel.active, .demo-grid, .contact-grid {
    gap: 3rem;
  }
}

/* Tablets (Portrait) */
@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .section {
    padding: 5rem 0;
  }

  .header {
    height: 70px;
  }

  .burger {
    display: flex;
  }

  /* Hamburger Active Transformation */
  .burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .burger.active span:nth-child(2) {
    opacity: 0;
  }
  .burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: #070a13;
    flex-direction: column;
    align-items: center;
    padding-top: 4rem;
    gap: 2.5rem;
    transition: var(--transition-normal);
    z-index: 999;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-cta {
    display: none; /* Handled in responsive menu if desired, or hidden for simplicity */
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 4rem;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
    gap: 2.5rem;
  }

  .about-grid, .tab-panel.active, .demo-grid, .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-visual, .simulator-card, .contact-info {
    order: 2; /* Put visual/cards below text on mobile */
  }

  .about-content, .tab-content, .demo-content, .contact-form-wrapper {
    order: 1;
  }

  .tabs-nav {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .tab-btn {
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    width: calc(50% - 0.5rem);
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .form-full-width {
    grid-column: span 1;
  }

  .form-submit-wrapper {
    grid-column: span 1;
    justify-content: center;
  }

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

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

  .footer-meta-links {
    justify-content: center;
  }
}

/* Mobile Devices */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .tab-btn {
    width: 100%;
  }

  .tab-features {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper {
    padding: 2.5rem 1.5rem;
  }

  .tabs-container {
    padding: 2rem 1.5rem;
  }

  .msg-bubble {
    font-size: 0.85rem;
  }
}
