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

/* --- Design Tokens & Variables --- */
:root {
  /* Color Palette (Ultra Deep Dark Midnight Blue Theme) */
  --bg-base: hsl(230, 75%, 2%);
  --bg-surface: hsl(230, 60%, 5%);
  --bg-glass: hsla(230, 60%, 8%, 0.55);
  --bg-glass-hover: hsla(230, 60%, 12%, 0.7);
  
  /* Accents mapped to Electric Cyan and Luminous Sky Blue */
  --accent-cyan: hsl(195, 100%, 50%);
  --accent-emerald: hsl(215, 100%, 60%);
  --accent-glow: hsla(195, 100%, 50%, 0.3);
  
  --text-main: hsl(0, 0%, 98%);
  --text-muted: hsl(230, 20%, 72%);
  --text-dim: hsl(230, 15%, 52%);
  
  --border-glass: hsla(0, 0%, 100%, 0.08);
  --border-glass-hover: hsla(195, 100%, 50%, 0.35);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions & Shadows */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  
  --shadow-glass: 0 8px 32px 0 hsla(0, 0%, 0%, 0.5);
  --shadow-glow: 0 0 25px var(--accent-glow);
}

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

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface);
  border-radius: 5px;
  border: 1px solid var(--border-glass);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Global Background Glow Accents */
.bg-glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
  animation: pulse-glow 10s infinite alternate ease-in-out;
}

.blob-top-left {
  top: -10%;
  left: -5%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, hsla(195, 100%, 50%, 0.12), transparent 70%);
}

.blob-top-right {
  top: 10%;
  right: -5%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, hsla(215, 100%, 60%, 0.1), transparent 70%);
  animation-delay: -5s;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--text-main) 20%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.accent-gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-emerald));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px hsla(195, 100%, 50%, 0.2));
}

/* --- Utility Components --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* Glassmorphism Cards */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  box-shadow: var(--shadow-glass);
  transition: var(--transition-normal);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-normal);
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-emerald));
  color: hsl(230, 80%, 2%);
  border: none;
  box-shadow: 0 4px 15px hsla(195, 100%, 50%, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, hsla(0,0%,100%,0.3), transparent);
  transition: var(--transition-slow);
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 22px hsla(195, 100%, 50%, 0.5);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 1rem;
  z-index: 100;
  margin-bottom: -6rem; /* adjusted to account for taller navigation element */
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 2rem;
  background: hsla(230, 75%, 2%, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 120px; /* Massively expanded footprint for maximum prominence and clear visual display */
  width: auto;
  border-radius: 14px;
  transition: var(--transition-normal);
  filter: drop-shadow(0 0 15px hsla(0,0%,100%,0.25));
}

.brand:hover .brand-logo {
  transform: scale(1.03);
  filter: drop-shadow(0 0 22px var(--accent-glow));
}

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

.mobile-menu-toggle {
  display: none;
  background: hsla(230, 60%, 15%, 0.6);
  border: 1px solid var(--border-glass);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: var(--transition-fast);
}

.hamburger-bar {
  width: 20px;
  height: 2px;
  background-color: var(--accent-cyan);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile sliding overlay base styling */
.mobile-nav-overlay {
  position: fixed;
  top: 95px;
  left: 1.5rem;
  right: 1.5rem;
  background: var(--bg-glass);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-glass-hover);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-shadow: var(--shadow-glass), var(--shadow-glow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: var(--transition-normal);
  z-index: 99;
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

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

.mobile-nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  font-family: var(--font-heading);
}

.mobile-nav-cta {
  width: 100%;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: var(--transition-fast);
}

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

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

/* --- Hero Section --- */
.hero {
  padding-top: 12rem; /* increased top padding to leave headroom below the large sticky logo */
  padding-bottom: 6rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

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

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: hsla(195, 100%, 50%, 0.1);
  border: 1px solid hsla(195, 100%, 50%, 0.25);
  border-radius: 100px;
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
  animation: float-badge 4s infinite ease-in-out;
}

.hero h1 {
  font-size: 4rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-glass), var(--shadow-glow);
  border: 1px solid var(--border-glass-hover);
  animation: float-graphic 6s infinite alternate ease-in-out;
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.02);
  transition: var(--transition-slow);
}

.hero-visual:hover img {
  transform: scale(1.05);
}

.visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-base) 2%, transparent 40%);
  pointer-events: none;
}

/* --- Section Formatting --- */
.section-padding {
  padding: 8rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.15rem;
}

/* --- Capabilities / Features Grid --- */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.agent-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

.agent-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: hsla(230, 60%, 10%, 0.6);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-cyan);
  transition: var(--transition-normal);
}

.agent-card:hover .agent-icon-wrapper {
  background: var(--accent-cyan);
  color: var(--bg-base);
  box-shadow: 0 0 20px var(--accent-glow);
}

.agent-card h3 {
  font-size: 1.5rem;
}

.agent-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.agent-status {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-emerald);
}

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

/* --- Interactive Showcase --- */
.showcase-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  min-height: 450px;
}

.tabs-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tab-btn {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tab-btn:hover {
  color: var(--text-main);
  background: var(--bg-glass-hover);
}

.tab-btn.active {
  background: var(--bg-surface);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: inset 4px 0 0 var(--accent-cyan), var(--shadow-glow);
}

.preview-column {
  position: relative;
  display: flex;
}

.preview-content {
  width: 100%;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-normal);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.preview-content.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-glass);
}

.preview-header h4 {
  font-size: 1.75rem;
  color: var(--text-main);
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.step-item {
  background: hsla(230, 60%, 6%, 0.5);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  position: relative;
}

.step-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: hsla(195, 100%, 50%, 0.15);
  position: absolute;
  top: 0.5rem;
  right: 1rem;
}

.step-item h5 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--accent-cyan);
}

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

/* --- Stats Grid --- */
.stats-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-card {
  padding: 2.5rem 1.5rem;
}

.stat-val {
  font-size: 3.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border-glass);
  background-color: var(--bg-surface);
  padding: 5rem 0 2rem;
  margin-top: 4rem;
}

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

.footer-about p {
  color: var(--text-muted);
  margin-top: 1rem;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-heading {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

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

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

.newsletter-input {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  color: var(--text-main);
  outline: none;
  font-family: var(--font-body);
  width: 100%;
  transition: var(--transition-fast);
}

.newsletter-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-glow);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid hsla(0,0%,100%,0.05);
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* --- Keyframe Animations --- */
@keyframes pulse-glow {
  0% { transform: scale(1); opacity: 0.3; }
  100% { transform: scale(1.15); opacity: 0.5; }
}

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

@keyframes float-graphic {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-12px) rotate(0.5deg); }
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 hsla(195, 100%, 50%, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px hsla(195, 100%, 50%, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 hsla(195, 100%, 50%, 0); }
}

/* Scroll reveal helper classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-content {
    align-items: center;
  }
  .hero h1 {
    font-size: 3.25rem;
  }
  .showcase-container {
    grid-template-columns: 1fr;
  }
  .workflow-steps {
    grid-template-columns: 1fr;
  }
  .stats-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links, #nav-cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .brand-logo {
    height: 70px;
  }
  .nav-container {
    padding: 0.5rem 1.25rem;
  }
  .hero {
    padding-top: 8rem;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .section-padding {
    padding: 5rem 0;
  }
  .stats-wrapper {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .preview-content {
    padding: 1.5rem;
  }
}
