/* --- DESIGN SYSTEM & VARIABLES --- */
:root {
  /* Colors - Dark Mode (Default) */
  --bg-primary: #030303;
  --bg-secondary: #080710;
  --bg-card: rgba(255, 255, 255, 0.02);
  --bg-card-hover: rgba(255, 255, 255, 0.04);

  --color-primary: #a855f7;
  /* Purple */
  --color-primary-rgb: 168, 85, 247;
  --color-secondary: #6366f1;
  /* Indigo */
  --color-secondary-rgb: 99, 102, 241;
  --color-accent: #3b82f6;
  /* Blue */
  --color-accent-rgb: 59, 130, 246;

  --text-primary: #f9fafb;
  /* Gray 50 */
  --text-secondary: #9ca3af;
  /* Gray 400 */
  --text-muted: #4b5563;
  /* Gray 600 */

  --border-color: rgba(255, 255, 255, 0.07);
  --border-color-hover: rgba(255, 255, 255, 0.14);

  --glow-opacity: 0.22;
  --noise-opacity: 0.022;

  /* Fonts */
  --font-heading: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --container-max-width: 1200px;
  --header-height: 96px;
  --border-radius-lg: 16px;
  --border-radius-md: 12px;
  --border-radius-sm: 8px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Colors - Light Mode */
html.light {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  /* Slate 50 */
  --bg-card: rgba(15, 23, 42, 0.015);
  --bg-card-hover: rgba(15, 23, 42, 0.035);

  --text-primary: #0f172a;
  /* Slate 900 */
  --text-secondary: #475569;
  /* Slate 600 */
  --text-muted: #94a3b8;
  /* Slate 400 */

  --border-color: rgba(15, 23, 42, 0.06);
  --border-color-hover: rgba(15, 23, 42, 0.12);

  --glow-opacity: 0.08;
  /* Softer pastel glows */
  --noise-opacity: 0.015;
}

/* --- RESET & BASE STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Scroll Offset for Fixed Header */
section {
  scroll-margin-top: calc(var(--header-height) + 40px);
}

/* Extra offset for short sections to center them on click */
#projects {
  scroll-margin-top: calc(var(--header-height) + 140px);
}

body {
  overflow-x: hidden;
  position: relative;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: var(--noise-opacity);
  pointer-events: none;
  z-index: 9999;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Ensure all page content sits above the dash particle canvas (z-index: 0) */
.site-header {
  z-index: 100;
}

main {
  position: relative;
  z-index: 1;
}

.site-footer {
  position: relative;
  z-index: 1;
}

#cursor-glow {
  z-index: 0;
}

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

/* --- THEME TRANSITION CLASS --- */
.theme-transitioning,
.theme-transitioning * {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease !important;
}

/* --- GRID BACKDROP (ATTIO / LINEAR) --- */
.grid-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 50px 50px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  pointer-events: none;
  z-index: -2;
}

html.light .grid-backdrop {
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.015) 1px, transparent 1px);
}

/* --- ANTIGRAVITY: AURORA MESH GRADIENT ORB BACKDROP --- */
.glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: var(--glow-opacity);
}

.glow-1 {
  top: -20%;
  left: 15%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.9) 0%, transparent 70%);
  animation: stripe-mesh-1 25s infinite alternate ease-in-out;
}

.glow-2 {
  top: 15%;
  right: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(var(--color-secondary-rgb), 0.8) 0%, transparent 70%);
  animation: stripe-mesh-2 28s infinite alternate-reverse ease-in-out;
}

.glow-3 {
  bottom: -10%;
  left: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.6) 0%, transparent 70%);
  animation: stripe-mesh-1 22s infinite alternate-reverse ease-in-out;
}

@keyframes stripe-mesh-1 {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }

  50% {
    transform: translate(80px, -80px) scale(1.15) rotate(180deg);
  }

  100% {
    transform: translate(-40px, 40px) scale(0.9) rotate(360deg);
  }
}

@keyframes stripe-mesh-2 {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }

  50% {
    transform: translate(-100px, 100px) scale(0.85) rotate(-180deg);
  }

  100% {
    transform: translate(50px, -50px) scale(1.1) rotate(-360deg);
  }
}

/* --- TYPOGRAPHY & LAYOUT --- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* gradient-text shimmer is defined in the animation section below */

.accent-text {
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

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

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  gap: 8px;
  border: 1px solid transparent;
}

.btn-primary {
  background: #fff;
  color: #000;
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.18);
}

html.light .btn-primary {
  background: #0f172a;
  color: #fff;
}

html.light .btn-primary:hover {
  background: #1e293b;
  box-shadow: 0 0 25px rgba(15, 23, 42, 0.15);
}

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

html.light .btn-secondary {
  background: rgba(15, 23, 42, 0.02);
}

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

.btn-tertiary {
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.inline-capabilities-link {
  display: inline-block;
  color: var(--text-secondary);
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-left: 6px;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.inline-capabilities-link:hover {
  color: var(--color-primary);
}

.btn-full {
  width: 100%;
}

.btn-arrow {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* --- STRIPE-STYLE BUTTON SHINE --- */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 30%;
  height: 200%;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.35) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: rotate(30deg);
  pointer-events: none;
  z-index: 1;
  animation: auto-shine 6s infinite ease-in-out;
}

@keyframes auto-shine {
  0% {
    transform: translate(-100%, 0) rotate(30deg);
  }

  12%,
  100% {
    transform: translate(500%, 0) rotate(30deg);
  }
}

.btn-shine:hover::after {
  animation: none;
  transform: translate(500%, 0) rotate(30deg);
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* --- HEADER --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  border-bottom: 1px solid rgba(168, 85, 247, 0.18);
  backdrop-filter: blur(20px);
  background:
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.12), transparent 35%),
    linear-gradient(90deg, #020617 0%, #081120 35%, #0f172a 70%, #111827 100%);
  background-size: 200% 200%;
  animation: header-aurora 15s ease infinite alternate;
  transition: var(--transition-fast);
}

/* Faint grid texture overlay */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  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: 30px 30px;
  background-position: center;
  pointer-events: none;
  z-index: -1;
  opacity: 0.8;
}

@keyframes header-aurora {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

html.light .site-header {
  background: rgba(255, 255, 255, 0.7);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.logo-icon {
  width: 24px;
  height: 24px;
}

.site-logo {
  height: 60px; /* Perfect balance in a 96px header */
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.35)) drop-shadow(0 0 15px rgba(59, 130, 246, 0.2));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.site-logo:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.55)) drop-shadow(0 0 20px rgba(59, 130, 246, 0.35));
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: #D1D5DB;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
  padding: 8px 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #A855F7, #3B82F6);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

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

/* Glassmorphism CTA Button for Header */
.site-header .btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none;
}

.site-header .btn-secondary:hover {
  transform: translateY(-2px);
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.12), rgba(59, 130, 246, 0.12));
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.25);
}

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

/* Theme Toggle Button (Sleek Morph Animation) */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  position: absolute;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

/* Dark mode default: Show sun (to toggle to light), hide moon */
.theme-toggle-btn .sun-icon {
  opacity: 1;
  transform: rotate(0deg);
}

.theme-toggle-btn .moon-icon {
  opacity: 0;
  transform: rotate(90deg);
}

/* Light mode active: Show moon (to toggle to dark), hide sun */
html.light .theme-toggle-btn .sun-icon {
  opacity: 0;
  transform: rotate(-90deg);
}

html.light .theme-toggle-btn .moon-icon {
  opacity: 1;
  transform: rotate(0deg);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-fast);
}

/* --- HERO SECTION --- */
.hero-section {
  padding-top: calc(var(--header-height) + 80px);
  padding-bottom: 120px;
  position: relative;
  text-align: center;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 840px;
}

.hero-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.15);
  margin-bottom: 28px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #000000;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tag-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 100px;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.15);
  pointer-events: none;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.typing-effect {
  display: inline-block;
  min-height: 1.1em;
  vertical-align: bottom;
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 44px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

/* --- AI COMMAND BAR / PLAYGROUND --- */
.ai-prompt-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 540px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  padding: 6px 14px;
  margin: 0 auto 50px auto;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 10;
  position: relative;
}

html.light .ai-prompt-bar {
  background: rgba(15, 23, 42, 0.015);
}

.prompt-symbol {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 600;
  white-space: nowrap;
}

.prompt-commands {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.prompt-commands::-webkit-scrollbar {
  display: none;
}

.prompt-cmd-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.76rem;
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

html.light .prompt-cmd-btn {
  background: rgba(15, 23, 42, 0.01);
}

.prompt-cmd-btn:hover,
.prompt-cmd-btn.active {
  color: #fff;
  border-color: var(--color-primary);
  background: rgba(168, 85, 247, 0.15);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
}

html.light .prompt-cmd-btn:hover,
html.light .prompt-cmd-btn.active {
  color: var(--color-primary);
  background: rgba(168, 85, 247, 0.06);
}

/* --- INTERACTIVE CONSOLE MOCKUP --- */
.console-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.console-border-glow {
  position: absolute;
  inset: -1px;
  border-radius: var(--border-radius-lg);
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.4), rgba(var(--color-secondary-rgb), 0.4));
  z-index: -1;
  filter: blur(14px);
  opacity: 0.35;
}

/* Always Dark Console */
.console-container {
  background: rgba(8, 7, 12, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.01);
}

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

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot.red {
  background: #ef4444;
}

.dot.yellow {
  background: #eab308;
}

.dot.green {
  background: #22c55e;
}

.console-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #4b5563;
  /* Fixed dark gray */
}

.console-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #22c55e;
}

.status-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 1.5s infinite;
}

.console-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 340px;
  text-align: left;
}

.console-sidebar {
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(0, 0, 0, 0.15);
}

/* Framer-style sliding indicator */
.tab-indicator-pill {
  position: absolute;
  left: 12px;
  height: 36px;
  width: calc(100% - 24px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius-sm);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.sidebar-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
  color: #9ca3af;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 1;
}

.sidebar-item.active,
.sidebar-item:hover {
  color: #fff;
}

.sidebar-item .icon {
  width: 15px;
  height: 15px;
}

.console-content {
  padding: 24px;
}

/* Tab contents */
.tab-content {
  display: none;
}

.tab-content.active {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dash-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.dash-card-label {
  font-size: 0.7rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dash-card-value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.value-sub {
  font-size: 0.75rem;
  font-weight: 400;
  color: #9ca3af;
}

.progress-bar-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.dash-card-chart {
  height: 30px;
  margin-top: 4px;
}

.mini-chart {
  width: 100%;
  height: 100%;
}

.system-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #9ca3af;
}

.pulse-ring {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 0 rgba(var(--color-primary-rgb), 0.7);
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(var(--color-primary-rgb), 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(var(--color-primary-rgb), 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(var(--color-primary-rgb), 0);
  }
}

.console-logs {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-md);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.logs-header {
  font-size: 0.65rem;
  color: #6b7280;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.logs-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 90px;
  overflow-y: hidden;
}

.log-line {
  line-height: 1.4;
  color: #f9fafb;
}

.log-time {
  color: #6b7280;
}

.log-tag {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  margin-right: 4px;
}

.tag-ai {
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
}

.tag-dev {
  background: rgba(99, 102, 241, 0.15);
  color: #c7d2fe;
}

.tag-api-log {
  background: rgba(59, 130, 246, 0.15);
  color: #bfdbfe;
}

/* API Tab styling (Stripe-inspired) */
.api-code-container {
  background: #09090e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-md);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  overflow: hidden;
  height: 240px;
}

.code-header {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  font-size: 0.75rem;
}

.code-copy {
  cursor: pointer;
}

.code-copy:hover {
  color: #fff;
}

.api-code-container pre {
  padding: 20px;
  overflow-x: auto;
  line-height: 1.5;
  color: #e5e7eb;
}

.code-keyword {
  color: #f472b6;
}

.code-string {
  color: #34d399;
}

.code-comment {
  color: #6b7280;
}

.code-number {
  color: #fbbf24;
}

/* Blinking terminal cursor */
.typing-cursor {
  font-weight: bold;
  color: var(--color-primary);
  animation: cursor-blink 0.9s step-end infinite;
}

@keyframes cursor-blink {

  from,
  to {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* --- LINEAR-STYLE BORDER BEAM EFFECT --- */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.border-beam-element {
  position: relative;
}

.border-beam-element::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(var(--angle), transparent 60%, rgba(var(--color-primary-rgb), 0.7) 85%, rgba(var(--color-secondary-rgb), 1) 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 10;
  animation: rotate-beam 4.5s linear infinite;
  opacity: 0.7;
}

html.light .border-beam-element::after {
  /* Softer beam in light mode */
  opacity: 0.35;
}

@keyframes rotate-beam {
  to {
    --angle: 360deg;
  }
}

/* --- GLOW CARDS (MOUSE HOVER GLOW SYSTEM WITH 3D TILT) --- */
.glow-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  transform-style: preserve-3d;
  perspective: 1000px;
  backface-visibility: hidden;
}

.glow-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

html.light .glow-card:hover {
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

/* 3D Parallax Elements inside Cards */
.glow-card .value-icon-wrapper,
.glow-card .service-icon,
.glow-card .value-card-title,
.glow-card .service-title {
  transform: translateZ(24px);
}

.glow-card .value-card-desc,
.glow-card .service-desc,
.glow-card .service-tags {
  transform: translateZ(12px);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(350px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(255, 255, 255, 0.04),
      transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
}

html.light .card-glow {
  /* Use dark glow for light cards */
  background: radial-gradient(350px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(15, 23, 42, 0.025),
      transparent 40%);
}

.glow-card:hover .card-glow {
  opacity: 1;
}

/* --- VALUE PROP SECTION --- */
.value-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-color);
}

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

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

.section-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #fff 10%, rgba(255, 255, 255, 0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html.light .section-title {
  background: linear-gradient(180deg, #0f172a 10%, rgba(15, 23, 42, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.5;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.value-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

html.light .value-icon-wrapper {
  background: rgba(15, 23, 42, 0.015);
}

.value-icon-wrapper svg {
  width: 22px;
  height: 22px;
}

.value-card-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.4;
}

.value-card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- SERVICES SECTION (PREMIUM BENTO GRID) --- */
.services-section {
  padding: 120px 0;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-color);
}

html.light .services-section {
  background: rgba(15, 23, 42, 0.005);
}

.services-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-item {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
  height: 100%;
}

/* Large bento item content split (text left, scanner visual right) */
.bento-grid-content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

@media (max-width: 1024px) {
  .bento-large {
    grid-column: span 2;
  }

  .bento-grid-content-split {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .bento-large {
    grid-column: span 1;
  }

  .bento-grid-content-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.bento-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 3;
  flex: 1;
}

.service-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  margin-bottom: 8px;
}

html.light .service-icon {
  background: rgba(15, 23, 42, 0.015);
}

.service-icon svg {
  width: 20px;
  height: 20px;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.4;
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.badge {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

html.light .badge {
  background: rgba(15, 23, 42, 0.015);
}

/* --- SOLUTIONS LAYOUT & INTERACTIVE PREVIEW PANEL --- */
.solutions-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: stretch;
  margin-top: 50px;
  text-align: left;
}

.solutions-list-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.solution-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.012);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
  overflow: hidden;
  will-change: transform;
}

html.light .solution-card {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(15, 23, 42, 0.06);
}

.solution-card:hover,
.solution-card.active {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.08);
  transform: translateY(-2px);
}

html.light .solution-card:hover,
html.light .solution-card.active {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(168, 85, 247, 0.25);
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.04);
}

.solution-card-icon {
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

.solution-card:hover .solution-card-icon {
  transform: scale(1.15);
}

.solution-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Dynamic Preview Panel */
.solutions-preview-panel {
  position: relative;
  background: rgba(8, 7, 12, 0.45);
  border-radius: var(--border-radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 40px;
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.6);
  min-height: 460px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

html.light .solutions-preview-panel {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow: 0 30px 60px -10px rgba(15, 23, 42, 0.04);
}

.preview-content-wrapper {
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 1;
  transform: scale(1);
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
}

.preview-content-wrapper.fade-out {
  opacity: 0;
  transform: scale(0.97);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.preview-icon-large {
  font-size: 2.2rem;
  min-width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-md);
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.15);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.08);
}

html.light .preview-icon-large {
  background: rgba(168, 85, 247, 0.05);
  border-color: rgba(168, 85, 247, 0.1);
}

.preview-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary);
}

.preview-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.preview-capabilities-box {
  margin-bottom: 32px;
}

.capabilities-header {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-primary);
  margin-bottom: 16px;
  font-weight: 600;
}

.preview-capabilities-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.preview-capabilities-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-visual-box {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px;
}

html.light .preview-visual-box {
  border-top-color: rgba(15, 23, 42, 0.06);
}

.preview-visual-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Custom Visual Component Animations */
.visual-soundwaves {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 80px;
}

.visual-soundwaves span {
  width: 4px;
  height: 40px;
  background: var(--color-primary);
  border-radius: 2px;
  animation: sound-bounce 0.6s infinite alternate ease-in-out;
  transform-origin: center;
}

.visual-soundwaves span:nth-child(2) {
  animation-delay: 0.1s;
  height: 65px;
}

.visual-soundwaves span:nth-child(3) {
  animation-delay: 0.25s;
  height: 35px;
}

.visual-soundwaves span:nth-child(4) {
  animation-delay: 0.35s;
  height: 55px;
}

.visual-soundwaves span:nth-child(5) {
  animation-delay: 0.15s;
  height: 25px;
}

.visual-soundwaves span:nth-child(6) {
  animation-delay: 0.3s;
  height: 70px;
}

.visual-soundwaves span:nth-child(7) {
  animation-delay: 0.05s;
  height: 45px;
}

.visual-soundwaves span:nth-child(8) {
  animation-delay: 0.4s;
  height: 30px;
}

@keyframes sound-bounce {
  0% {
    transform: scaleY(0.25);
  }

  100% {
    transform: scaleY(1);
  }
}

.visual-scan {
  width: 120px;
  height: 80px;
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  background: rgba(168, 85, 247, 0.02);
}

.scan-line {
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c084fc, transparent);
  animation: scanning 2s infinite alternate ease-in-out;
  box-shadow: 0 0 8px #a855f7;
}

.agentic-orbit {
  transform-origin: 120px 40px;
  animation: rotate-orbit 12s linear infinite;
}

@keyframes rotate-orbit {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes scanning {
  0% {
    top: 0;
  }

  100% {
    top: 100%;
  }
}

.visual-db {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.db-cylinder {
  width: 80px;
  height: 20px;
  border-radius: 40px / 10px;
  border: 1.5px solid rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.06);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.05);
}

.visual-chat {
  position: relative;
  width: 60px;
  height: 60px;
}

.chat-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.02);
  animation: chat-wave 2s infinite linear;
}

.chat-circle.delay-1 {
  animation-delay: 0.6s;
}

.chat-circle.delay-2 {
  animation-delay: 1.2s;
}

@keyframes chat-wave {
  0% {
    transform: scale(0.3);
    opacity: 1;
  }

  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.visual-rack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 140px;
}

.rack-slot {
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.01);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

html.light .rack-slot {
  border-color: rgba(15, 23, 42, 0.08);
}

.rack-slot span {
  width: 50px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1px;
}

html.light .rack-slot span {
  background: rgba(15, 23, 42, 0.08);
}

.rack-slot .led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.2);
}

.rack-slot .led.active {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: led-blink 1s infinite alternate;
}

@keyframes led-blink {
  0% {
    opacity: 0.3;
  }

  100% {
    opacity: 1;
  }
}

.visual-mobileframe {
  width: 60px;
  height: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

html.light .visual-mobileframe {
  border-color: rgba(15, 23, 42, 0.15);
  background: rgba(255, 255, 255, 0.4);
}

.mobileframe-speaker {
  width: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 auto 4px auto;
  border-radius: 1px;
}

.mobileframe-card {
  height: 24px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 4px;
  animation: mobile-card-float 2s infinite alternate ease-in-out;
}

.mobileframe-card:nth-child(2) {
  animation-delay: 1s;
}

@keyframes mobile-card-float {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }

  100% {
    transform: scale(1.02);
    opacity: 1;
  }
}

.visual-rocket {
  position: relative;
  width: 50px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.rocket-fire {
  width: 24px;
  height: 24px;
  border-radius: 50% 0 50% 50%;
  background: var(--color-primary);
  transform: rotate(-45deg);
  box-shadow: 0 0 20px var(--color-primary);
  animation: fire-thrust 0.15s infinite alternate linear;
}

@keyframes fire-thrust {
  0% {
    transform: rotate(-45deg) scale(0.9);
  }

  100% {
    transform: rotate(-45deg) scale(1.1);
  }
}

.visual-webframe {
  width: 140px;
  height: 90px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(8, 7, 12, 0.5);
  overflow: hidden;
  margin: 0 auto;
}

html.light .visual-webframe {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.4);
}

.webframe-header {
  height: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 8px;
}

html.light .webframe-header {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

.webframe-header span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.webframe-body {
  display: flex;
  height: calc(100% - 16px);
}

.webframe-side {
  width: 24px;
  background: rgba(255, 255, 255, 0.01);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

html.light .webframe-side {
  border-right-color: rgba(15, 23, 42, 0.08);
}

.webframe-main {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pulse-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  width: 100%;
  animation: web-bar-pulse 1.5s infinite alternate;
}

html.light .pulse-bar {
  background: rgba(15, 23, 42, 0.08);
}

@keyframes web-bar-pulse {
  to {
    background: rgba(168, 85, 247, 0.25);
  }
}

.visual-svg-chart,
.visual-svg-nodes,
.visual-svg-forecast {
  width: 100%;
  max-width: 240px;
  height: 80px;
  margin: 0 auto;
  display: block;
}

.chart-path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw-chart 2s forwards ease-in-out infinite alternate;
}

@keyframes draw-chart {
  to {
    stroke-dashoffset: 0;
  }
}

.node-pulse {
  animation: node-glowing 2s infinite alternate ease-in-out;
}

@keyframes node-glowing {
  0% {
    opacity: 0.4;
    r: 5px;
  }

  100% {
    opacity: 0.9;
    r: 7px;
  }
}

/* RESPONSIVE SOLUTIONS GRID */
@media (max-width: 992px) {
  .solutions-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .solutions-list-column {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .solutions-list-column {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .solutions-list-column::-webkit-scrollbar {
    display: none;
  }

  .solution-card {
    flex: 0 0 170px;
    scroll-snap-align: start;
    padding: 16px;
    justify-content: center;
  }

  .solutions-preview-panel {
    min-height: auto;
    padding: 30px 24px;
  }

  .preview-capabilities-list {
    grid-template-columns: 1fr;
  }
}

/* --- INTERACTIVE COMPUTER VISION SCANNER --- */
.ai-scanner-visual {
  position: relative;
  width: 100%;
  height: 200px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

html.light .ai-scanner-visual {
  background: rgba(15, 23, 42, 0.02);
}

.scanner-grid {
  position: absolute;
  inset: 0;
  background-size: 20px 20px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
}

html.light .scanner-grid {
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
}

/* Scanning Laser Line */
.scanner-laser {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-secondary), transparent);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}

.glow-card:hover .scanner-laser {
  opacity: 1;
  animation: laser-scan 4s linear infinite;
}

@keyframes laser-scan {
  0% {
    top: 0%;
  }

  50% {
    top: 100%;
  }

  100% {
    top: 0%;
  }
}

/* Scanner Nodes & Bounding Boxes */
.scanner-node {
  position: absolute;
  width: 8px;
  height: 8px;
  z-index: 3;
}

.node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-secondary);
  display: block;
  position: relative;
}

.glow-card:hover .node-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--color-secondary);
  animation: node-pulse-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes node-pulse-ping {

  75%,
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.scanner-box {
  position: absolute;
  top: -12px;
  left: -12px;
  border: 1px dashed var(--color-primary);
  border-radius: 4px;
  width: 110px;
  height: 44px;
  background: rgba(168, 85, 247, 0.03);
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.glow-card:hover .scanner-box {
  opacity: 1;
  transform: scale(1);
}

.box-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--color-primary);
  background: #09090d;
  border: 1px solid var(--border-color);
  padding: 1px 4px;
  border-radius: 2px;
  position: absolute;
  top: -10px;
  left: 6px;
  white-space: nowrap;
}

html.light .box-label {
  background: #fff;
}

/* --- ABOUT US SECTION --- */
.about-section {
  padding: 120px 0;
  border-top: 1px solid var(--border-color);
  background: radial-gradient(circle at 80% 50%, rgba(var(--color-primary-rgb), 0.05) 0%, transparent 50%);
}

.about-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}

.about-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.vision-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.box-icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

.vision-box h4 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
}

.vision-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Abstract Graphic / Neural Canvas */
.about-graphic-column {
  display: flex;
  justify-content: center;
}

.abstract-canvas {
  width: 340px;
  height: 340px;
  position: relative;
  background: rgba(255, 255, 255, 0.005);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

html.light .abstract-canvas {
  background: rgba(15, 23, 42, 0.003);
}

#neural-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* --- HOW WE WORK / PROCESS SECTION --- */
.process-section {
  padding: 120px 0;
  position: relative;
}

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 60px;
  position: relative;
}

.process-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 20px;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.4), 0 0 48px rgba(168, 85, 247, 0.15);
  flex-shrink: 0;
}

.process-connector {
  height: 2px;
  flex: 0 0 40px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  opacity: 0.35;
  margin-top: 31px;
  position: relative;
}

.process-connector::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-secondary);
  opacity: 0.6;
}

.step-content {
  flex: 1;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 220px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .process-steps {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .process-step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 20px;
    padding: 0 0 40px 0;
  }

  .step-number {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .step-content {
    padding-top: 8px;
  }

  .step-desc {
    max-width: 100%;
    margin: 0;
  }

  .process-connector {
    width: 2px;
    height: 40px;
    flex: none;
    margin: 0 0 0 31px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
  }

  .process-connector::after {
    right: auto;
    left: 50%;
    bottom: -6px;
    top: auto;
    transform: translateX(-50%);
  }
}

/* --- STATS / ACHIEVEMENTS SECTION --- */
.stats-section {
  padding: 80px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.stat-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.stat-num-wrapper {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.stat-suffix {
  color: var(--color-primary);
}

.stat-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

.stat-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 240px;
}

/* --- TESTIMONIAL SECTION --- */
.testimonial-section {
  padding: 120px 0;
  position: relative;
}

.testimonial-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 80px;
  border-radius: var(--border-radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  text-align: center;
  position: relative;
}

.testimonial-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 100px;
  background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.quote-icon {
  color: rgba(255, 255, 255, 0.03);
  width: 48px;
  height: 48px;
  margin: 0 auto 24px;
}

html.light .quote-icon {
  color: rgba(15, 23, 42, 0.03);
}

.testimonial-text {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--text-primary);
  font-weight: 400;
  margin-bottom: 32px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid var(--border-color);
}

.author-info {
  text-align: left;
}

.author-name {
  display: block;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  font-style: normal;
}

.author-role {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* --- CONTACT SECTION --- */
.contact-section {
  padding: 120px 0;
  border-top: 1px solid var(--border-color);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact-title {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 24px;
}

.contact-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.contact-guarantees {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.guarantee-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}

.guarantee-item:not(:first-child) .guarantee-icon {
  color: var(--color-primary);
  font-weight: 800;
}

.contact-checklist {
  margin-top: 30px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-family: var(--font-heading);
  color: var(--text-primary);
}

.checklist-icon {
  color: #22c55e;
  font-weight: 800;
  font-size: 1.25rem;
}

.contact-response-note {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 36px;
  opacity: 0.85;
}

.form-heading {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.service-chip {
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.015);
  color: var(--text-secondary);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

html.light .service-chip {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.08);
}

.service-chip:hover {
  border-color: rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.03);
}

.service-chip.active {
  border-color: var(--color-primary);
  background: rgba(168, 85, 247, 0.1);
  color: #fff;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.15);
}

html.light .service-chip.active {
  color: var(--color-primary);
  background: rgba(168, 85, 247, 0.05);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.05);
}

.contact-form-wrapper {
  position: relative;
}

.form-glow {
  position: absolute;
  inset: -1px;
  border-radius: var(--border-radius-lg);
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.2), rgba(var(--color-secondary-rgb), 0.2));
  z-index: -1;
  filter: blur(10px);
  opacity: 0.25;
}

.contact-form {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  background: var(--bg-card-hover);
  border-color: var(--color-primary);
  box-shadow: 0 0 12px rgba(var(--color-primary-rgb), 0.2);
}

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: "↓";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--text-secondary);
  pointer-events: none;
}

.form-group select {
  width: 100%;
  appearance: none;
}

.form-status {
  font-size: 0.9rem;
  text-align: center;
  margin-top: 10px;
}

.form-status.success {
  color: #22c55e;
}

.form-status.error {
  color: #ef4444;
}

.form-direct-contact {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}

html.light .form-direct-contact {
  border-top-color: rgba(15, 23, 42, 0.06);
}

.form-direct-contact span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.direct-contact-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.contact-link-item {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-link-item .link-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.contact-link-item a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link-item a:hover {
  color: var(--color-primary);
}

/* --- FOOTER --- */
.site-footer {
  background: #020202;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

html.light .site-footer {
  background: #f8fafc;
}

.footer-container {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 480px;
  margin: 0 auto;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 12px;
}

.footer-address {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 16px;
  opacity: 0.85;
}

.footer-links {
  display: flex;
  gap: 80px;
}

.footer-link-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link-group h5 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

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

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

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }

  .services-bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }

  .bento-large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .about-container,
  .contact-container {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .desktop-only-btn {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-primary);
    flex-direction: column;
    padding: 40px;
    gap: 24px;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s ease;
    z-index: 99;
    border-top: 1px solid var(--border-color);
    visibility: hidden;
    pointer-events: none;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-only-btn {
    width: 100%;
    margin-top: auto;
  }

  .hero-title {
    font-size: 2.25rem;
    line-height: 1.2;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .console-header {
    padding: 12px 16px;
  }

  .console-title {
    display: none;
  }

  .console-body {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
  }

  .console-sidebar {
    display: flex;
    flex-direction: row;
    padding: 8px 12px;
    gap: 8px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .console-sidebar::-webkit-scrollbar {
    display: none;
  }

  .console-sidebar .tab-indicator-pill {
    left: 0;
  }

  .sidebar-item {
    padding: 8px 12px;
    white-space: nowrap;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .services-bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-large,
  .bento-medium {
    grid-column: span 1;
  }

  .about-container,
  .contact-container {
    grid-template-columns: 1fr;
  }

  .about-graphic-column {
    order: -1;
  }

  .abstract-canvas {
    width: 280px;
    height: 280px;
  }

  .value-card {
    padding: 24px;
  }

  .bento-item {
    padding: 24px;
  }

  .vision-mission-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .testimonial-wrapper {
    padding: 40px 24px;
  }

  .testimonial-text {
    font-size: 1.1rem;
  }

  .contact-title {
    font-size: 2.2rem;
  }

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

  .contact-form {
    padding: 24px;
  }

  .footer-container {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links {
    gap: 40px;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .ai-prompt-bar {
    gap: 8px;
    padding: 6px 10px;
    margin-bottom: 30px;
  }

  .prompt-symbol {
    font-size: 0.75rem;
  }

  .prompt-cmd-btn {
    padding: 4px 10px;
    font-size: 0.7rem;
  }
}

/* --- Rentention of @property for browsers lacking support --- */
.border-beam-element::after {
  animation: rotate-beam 6s linear infinite;
}

/* --- FRAMER-LIKE SCROLL REVEAL ANIMATIONS --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(6px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Staggered delays for grid children */
.value-grid .scroll-reveal:nth-child(1),
.stats-grid .scroll-reveal:nth-child(1),
.services-bento-grid .scroll-reveal:nth-child(1) {
  transition-delay: 0ms;
}

.value-grid .scroll-reveal:nth-child(2),
.stats-grid .scroll-reveal:nth-child(2),
.services-bento-grid .scroll-reveal:nth-child(2) {
  transition-delay: 100ms;
}

.value-grid .scroll-reveal:nth-child(3),
.stats-grid .scroll-reveal:nth-child(3),
.services-bento-grid .scroll-reveal:nth-child(3) {
  transition-delay: 200ms;
}

.process-steps .scroll-reveal:nth-child(1) {
  transition-delay: 0ms;
}

.process-steps .scroll-reveal:nth-child(3) {
  transition-delay: 120ms;
}

.process-steps .scroll-reveal:nth-child(5) {
  transition-delay: 240ms;
}

.process-steps .scroll-reveal:nth-child(7) {
  transition-delay: 360ms;
}

/* --- ANTIGRAVITY: GRADIENT TEXT SHIMMER --- */
.gradient-text,
.gradient-text .hero-word {
  background: linear-gradient(110deg,
      #fff 0%,
      rgba(255, 255, 255, 0.55) 30%,
      #fff 50%,
      rgba(255, 255, 255, 0.4) 80%,
      #fff 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer-sweep 6s ease-in-out infinite;
}

html.light .gradient-text,
html.light .gradient-text .hero-word {
  background: linear-gradient(110deg,
      #0f172a 0%,
      rgba(15, 23, 42, 0.5) 30%,
      #0f172a 50%,
      rgba(15, 23, 42, 0.45) 80%,
      #0f172a 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer-sweep 6s ease-in-out infinite;
}

@keyframes shimmer-sweep {
  0% {
    background-position: 200% center;
  }

  100% {
    background-position: -100% center;
  }
}

/* --- ANTIGRAVITY: HERO WORD REVEAL --- */
.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  filter: blur(5px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-word.word-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* --- ANTIGRAVITY: CUSTOM GLOW CURSOR --- */
#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle,
      rgba(168, 85, 247, 0.07) 0%,
      rgba(99, 102, 241, 0.04) 35%,
      transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  will-change: transform;
}

/* Hide cursor glow on touch devices */
@media (hover: none) {
  #cursor-glow {
    display: none;
  }
}

/* --- ANTIGRAVITY: AURORA ORB ENHANCED MOTION --- */
.glow-1 {
  animation: aurora-float-1 30s infinite alternate ease-in-out;
}

.glow-2 {
  animation: aurora-float-2 35s infinite alternate-reverse ease-in-out;
}

.glow-3 {
  animation: aurora-float-3 25s infinite alternate ease-in-out;
}

@keyframes aurora-float-1 {
  0% {
    transform: translate(0px, 0px) scale(1) rotate(0deg);
    opacity: 0.22;
  }

  25% {
    transform: translate(80px, -60px) scale(1.12) rotate(45deg);
    opacity: 0.28;
  }

  50% {
    transform: translate(40px, -120px) scale(0.95) rotate(90deg);
    opacity: 0.18;
  }

  75% {
    transform: translate(-60px, -40px) scale(1.08) rotate(180deg);
    opacity: 0.25;
  }

  100% {
    transform: translate(-30px, 60px) scale(1.02) rotate(270deg);
    opacity: 0.22;
  }
}

@keyframes aurora-float-2 {
  0% {
    transform: translate(0px, 0px) scale(1) rotate(0deg);
    opacity: 0.22;
  }

  30% {
    transform: translate(-90px, 80px) scale(0.88) rotate(-60deg);
    opacity: 0.16;
  }

  60% {
    transform: translate(-50px, 120px) scale(1.15) rotate(-120deg);
    opacity: 0.26;
  }

  100% {
    transform: translate(70px, -80px) scale(0.92) rotate(-200deg);
    opacity: 0.20;
  }
}

@keyframes aurora-float-3 {
  0% {
    transform: translate(0px, 0px) scale(1);
    opacity: 0.15;
  }

  40% {
    transform: translate(100px, -70px) scale(1.2);
    opacity: 0.22;
  }

  100% {
    transform: translate(-60px, 50px) scale(0.85);
    opacity: 0.12;
  }
}

/* --- ANTIGRAVITY: MAGNETIC BUTTON EFFECT --- */
.btn-primary,
.btn-secondary {
  transition:
    background var(--transition-fast),
    box-shadow var(--transition-fast),
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    color var(--transition-fast),
    border-color var(--transition-fast);
  will-change: transform;
}

/* --- ANTIGRAVITY: SECTION TITLE UNDERLINE REVEAL --- */
.section-title {
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 2px;
  transform-origin: center;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-header.revealed .section-title::after,
.revealed .section-title::after {
  transform: translateX(-50%) scaleX(1);
}

.section-header.left-align .section-title::after {
  left: 0;
  transform: translateX(0) scaleX(0);
  transform-origin: left;
}

.section-header.left-align.revealed .section-title::after,
.about-text-column.revealed .section-title::after {
  transform: translateX(0) scaleX(1);
}

/* --- ANTIGRAVITY: HERO TAG PULSE RING --- */
.hero-tag {
  animation: tag-pulse 3s ease-in-out infinite;
}

@keyframes tag-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.15), 0 0 15px rgba(168, 85, 247, 0.1);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(168, 85, 247, 0), 0 0 25px rgba(168, 85, 247, 0.2);
  }
}

/* --- ANTIGRAVITY: FLOATING HERO ICONS / BADGE --- */
.hero-tag {
  animation: tag-pulse 3s ease-in-out infinite, tag-float 6s ease-in-out infinite;
}

@keyframes tag-float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-4px);
  }
}

/* --- ANTIGRAVITY: STEP NUMBER GLOW PULSE --- */
.step-number {
  animation: step-glow 3s ease-in-out infinite;
}

.process-step:nth-child(1) .step-number {
  animation-delay: 0s;
}

.process-step:nth-child(3) .step-number {
  animation-delay: 0.8s;
}

.process-step:nth-child(5) .step-number {
  animation-delay: 1.6s;
}

.process-step:nth-child(7) .step-number {
  animation-delay: 2.4s;
}

@keyframes step-glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.35), 0 0 40px rgba(168, 85, 247, 0.12);
  }

  50% {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6), 0 0 60px rgba(168, 85, 247, 0.25);
  }
}

/* --- ANTIGRAVITY: ACCENT TEXT GRADIENT FLOW --- */
.accent-text {
  background: linear-gradient(90deg, #a855f7 0%, #818cf8 40%, #6366f1 70%, #a855f7 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: accent-flow 5s linear infinite;
}

@keyframes accent-flow {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 200% center;
  }
}

/* --- ANTIGRAVITY: STAT CARD GLOW ON REVEAL --- */
.stat-card.revealed .stat-number {
  animation: number-glow 2s ease-out;
}

@keyframes number-glow {
  0% {
    text-shadow: 0 0 0 transparent;
  }

  40% {
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
  }

  100% {
    text-shadow: 0 0 0 transparent;
  }
}

/* --- ANTIGRAVITY: HERO SECTION AMBIENT NOISE VIGNETTE --- */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(168, 85, 247, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* --- ANTIGRAVITY: PROGRESS BAR FILL ANIMATION --- */
.progress-bar {
  animation: bar-fill 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: left;
}

@keyframes bar-fill {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* --- ANTIGRAVITY: NAV LINK HOVER LINE --- */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- ANTIGRAVITY: CONTACT TITLE GRADIENT HIGHLIGHT --- */
.contact-title {
  background: linear-gradient(135deg, var(--text-primary) 50%, rgba(168, 85, 247, 0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html.light .contact-title {
  background: linear-gradient(135deg, var(--text-primary) 50%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- MOCKUP SCREEN DISPLAY & TRANSITIONS --- */
.mockup-display-container {
  grid-column: 1 / -1;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #030303;
  display: block;
}

.mockup-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.mockup-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.mockup-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* WIPE TRANSITION */
.mockup-slide.incoming.trans-wipe {
  animation: wipe-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  z-index: 5;
}

@keyframes wipe-in {
  from {
    clip-path: inset(0 100% 0 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

/* RIPPLE TRANSITION */
.mockup-slide.incoming.trans-ripple {
  animation: ripple-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  z-index: 5;
}

@keyframes ripple-in {
  from {
    clip-path: circle(0% at 50% 50%);
  }

  to {
    clip-path: circle(125% at 50% 50%);
  }
}

/* ORBIT TRANSITIONS */
.mockup-slide.outgoing.trans-orbit-out {
  animation: orbit-out 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  z-index: 1;
}

.mockup-slide.incoming.trans-orbit-in {
  animation: orbit-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  z-index: 5;
}

@keyframes orbit-out {
  from {
    transform: scale(1) rotate(0deg);
    opacity: 1;
    filter: blur(0);
  }

  to {
    transform: scale(0.6) rotate(-180deg);
    opacity: 0;
    filter: blur(4px);
  }
}

@keyframes orbit-in {
  from {
    transform: scale(1.4) rotate(180deg);
    opacity: 0;
    filter: blur(4px);
  }

  to {
    transform: scale(1) rotate(0deg);
    opacity: 1;
    filter: blur(0);
  }
}

/* DYNAMIC BLINDS OVERLAY */
.transition-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.blind-bar {
  position: absolute;
  top: 0;
  height: 100%;
  background-repeat: no-repeat;
  will-change: transform;
}

.checker-cell {
  position: absolute;
  background-repeat: no-repeat;
  will-change: transform, opacity;
}

/* --- FUTURISTIC AI ECOSYSTEM (WHY US) --- */
.ecosystem-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 60px auto 0 auto;
  padding: 60px 40px;
  background: rgba(8, 7, 12, 0.45);
  border-radius: var(--border-radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 40px 100px -10px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  text-align: left;
}

html.light .ecosystem-container {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow: 0 40px 100px -10px rgba(15, 23, 42, 0.06);
}

.ecosystem-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

html.light .ecosystem-aurora {
  opacity: 0.05;
}

.ecosystem-aurora.aurora-1 {
  background: var(--color-primary);
  width: 320px;
  height: 320px;
  top: 10%;
  left: 15%;
  animation: aurora-float-1 20s infinite alternate ease-in-out;
}

.ecosystem-aurora.aurora-2 {
  background: var(--color-secondary);
  width: 350px;
  height: 350px;
  bottom: 10%;
  right: 15%;
  animation: aurora-float-2 24s infinite alternate-reverse ease-in-out;
}

@keyframes aurora-float-1 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(60px, 40px) scale(1.15);
  }
}

@keyframes aurora-float-2 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(-50px, -45px) scale(1.1);
  }
}

.ecosystem-connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.connection-line {
  fill: none;
  stroke: rgba(168, 85, 247, 0.28);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
}

html.light .connection-line {
  stroke: rgba(168, 85, 247, 0.22);
}

.connection-particle {
  fill: #c084fc;
  filter: drop-shadow(0 0 3px #a855f7);
}

.ecosystem-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.ecosystem-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ecosystem-card {
  position: relative;
  background: rgba(255, 255, 255, 0.012);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 28px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
  will-change: transform;
  transform-style: preserve-3d;
}

html.light .ecosystem-card {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(15, 23, 42, 0.07);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.03);
}

.ecosystem-card:hover {
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 16px 40px rgba(168, 85, 247, 0.12);
}

html.light .ecosystem-card:hover {
  border-color: rgba(168, 85, 247, 0.25);
  box-shadow: 0 16px 40px rgba(168, 85, 247, 0.06);
}

.ecosystem-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  transform: translateZ(20px);
  /* 3D effect depth */
}

.ecosystem-card-icon {
  font-size: 1.45rem;
}

.ecosystem-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.ecosystem-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  transform: translateZ(10px);
}

.ecosystem-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
}

.ecosystem-core-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ecosystem-core {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.16) 0%, rgba(59, 130, 246, 0.04) 70%, transparent 100%);
  border: 2px solid rgba(168, 85, 247, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.15), inset 0 0 25px rgba(168, 85, 247, 0.15);
  animation: core-pulse-glow 5s infinite ease-in-out;
  position: relative;
  z-index: 3;
}

html.light .ecosystem-core {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, rgba(59, 130, 246, 0.02) 70%, transparent 100%);
  border-color: rgba(168, 85, 247, 0.2);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.08), inset 0 0 15px rgba(168, 85, 247, 0.08);
}

.core-glow-layer {
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, rgba(59, 130, 246, 0.15) 50%, transparent 75%);
  filter: blur(12px);
  z-index: -1;
  animation: glow-layer-breathe 5s infinite ease-in-out alternate;
}

.core-orbit-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.core-orbit-ring.ring-1 {
  width: 180px;
  height: 180px;
  border: 1px dashed rgba(168, 85, 247, 0.2);
  animation: rotate-ring-cw 25s linear infinite;
}

.core-orbit-ring.ring-2 {
  width: 216px;
  height: 216px;
  border: 1px dashed rgba(59, 130, 246, 0.12);
  animation: rotate-ring-ccw 30s linear infinite;
}

@keyframes core-pulse-glow {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.15), inset 0 0 25px rgba(168, 85, 247, 0.15);
  }

  50% {
    transform: scale(1.04);
    box-shadow: 0 0 60px rgba(168, 85, 247, 0.3), inset 0 0 35px rgba(168, 85, 247, 0.25);
    border-color: rgba(168, 85, 247, 0.45);
  }
}

@keyframes glow-layer-breathe {

  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.12);
    opacity: 0.85;
  }
}

@keyframes rotate-ring-cw {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rotate-ring-ccw {
  to {
    transform: rotate(-360deg);
  }
}

.core-content {
  text-align: center;
  z-index: 4;
}

.core-logo {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #ffffff 40%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

html.light .core-logo {
  background: linear-gradient(135deg, #0f172a 40%, #7e22ce 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.core-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
  letter-spacing: 3px;
  font-weight: 600;
  margin-top: 5px;
  display: block;
}

/* RESPONSIVE ECOSYSTEM SECTION */
@media (max-width: 1024px) {
  .ecosystem-layout {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .ecosystem-center,
  .ecosystem-connections {
    display: none;
  }

  .ecosystem-container {
    padding: 40px 30px;
  }
}

@media (max-width: 680px) {
  .ecosystem-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ecosystem-container {
    padding: 30px 20px;
    margin-top: 40px;
  }
}

/* --- ANTIGRAVITY: REDUCED MOTION SAFETY --- */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    transition: opacity 0.4s ease;
    transform: none;
    filter: none;
  }

  .gradient-text,
  .accent-text,
  .hero-tag,
  .step-number,
  .glow-1,
  .glow-2,
  .glow-3 {
    animation: none;
  }

  #cursor-glow {
    display: none;
  }
}