/* ============================================
   Aruva AI — Marketing Website Styles
   ============================================ */

/* --- CSS Variables: Light Mode (default) --- */
:root {
  --color-bg: #ffffff;
  --color-bg-elevated: #f4f4f5;
  --color-bg-card: #ffffff;
  --color-bg-card-hover: #f9f9fb;
  --color-surface: rgba(0, 0, 0, 0.02);
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-hover: rgba(0, 0, 0, 0.15);
  --color-text: #18181b;
  --color-text-secondary: #52525b;
  --color-text-muted: #a1a1aa;
  --color-primary: #7c3aed;
  --color-primary-light: #7c3aed;
  --color-primary-dark: #6d28d9;
  --color-primary-glow: rgba(124, 58, 237, 0.12);
  --color-blue: #2563eb;
  --color-green: #16a34a;
  --color-orange: #ea580c;
  --color-red: #dc2626;
  --color-teal: #0d9488;
  --color-gradient: linear-gradient(135deg, #8b5cf6, #6366f1, #3b82f6);
  --color-gradient-text: linear-gradient(135deg, #7c3aed, #6366f1, #3b82f6);
  --nav-scrolled-bg: rgba(255, 255, 255, 0.85);
  --mobile-menu-bg: rgba(255, 255, 255, 0.98);
  --hero-grid-line: rgba(0, 0, 0, 0.04);
  --code-bar-bg: rgba(0, 0, 0, 0.03);
  --table-header-bg: rgba(0, 0, 0, 0.02);
  --table-row-hover: rgba(0, 0, 0, 0.02);
  --highlight-card-bg: linear-gradient(135deg, rgba(139, 92, 246, 0.06), rgba(99, 102, 241, 0.03));
  --highlight-border: rgba(139, 92, 246, 0.2);
  --highlight-border-hover: rgba(139, 92, 246, 0.35);
  --highlight-cell-bg: rgba(139, 92, 246, 0.04);
  --ghost-btn-bg: rgba(0, 0, 0, 0.04);
  --ghost-btn-hover: rgba(0, 0, 0, 0.08);
  --badge-bg: rgba(124, 58, 237, 0.08);
  --badge-border: rgba(124, 58, 237, 0.15);
  --chat-bubble-user-bg: #f4f4f5;
  --chat-bubble-ai-bg: rgba(139, 92, 246, 0.06);
  --chat-bubble-ai-border: rgba(139, 92, 246, 0.12);
  --icon-bg-purple: rgba(139, 92, 246, 0.08);
  --icon-bg-blue: rgba(59, 130, 246, 0.08);
  --icon-bg-green: rgba(34, 197, 94, 0.08);
  --icon-bg-orange: rgba(249, 115, 22, 0.08);
  --icon-bg-red: rgba(239, 68, 68, 0.08);
  --icon-bg-teal: rgba(20, 184, 166, 0.08);
  --shield-ring-1: rgba(124, 58, 237, 0.08);
  --shield-ring-2: rgba(124, 58, 237, 0.12);
  --shield-ring-3: rgba(124, 58, 237, 0.18);
  --shield-core-bg: rgba(124, 58, 237, 0.08);
  --code-highlight-bg: rgba(139, 92, 246, 0.06);
  --code-highlight-border: rgba(139, 92, 246, 0.15);
  --tag-bg: rgba(139, 92, 246, 0.1);
  --cite-bg: rgba(59, 130, 246, 0.1);
  --orb-opacity-1: 0.07;
  --orb-opacity-2: 0.05;
  --orb-opacity-3: 0.04;
  --cta-orb-1: 0.05;
  --cta-orb-2: 0.04;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px var(--color-primary-glow);
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --container-max: 1200px;
  --nav-height: 72px;
}

/* --- CSS Variables: Dark Mode --- */
[data-theme="dark"] {
  --color-bg: #09090b;
  --color-bg-elevated: #18181b;
  --color-bg-card: #1c1c21;
  --color-bg-card-hover: #27272a;
  --color-surface: rgba(255, 255, 255, 0.03);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.15);
  --color-text: #fafafa;
  --color-text-secondary: #a1a1aa;
  --color-text-muted: #71717a;
  --color-primary: #8b5cf6;
  --color-primary-light: #a78bfa;
  --color-primary-dark: #7c3aed;
  --color-primary-glow: rgba(139, 92, 246, 0.15);
  --color-blue: #3b82f6;
  --color-green: #22c55e;
  --color-orange: #f97316;
  --color-red: #ef4444;
  --color-teal: #14b8a6;
  --color-gradient-text: linear-gradient(135deg, #c084fc, #818cf8, #60a5fa);
  --nav-scrolled-bg: rgba(9, 9, 11, 0.85);
  --mobile-menu-bg: rgba(9, 9, 11, 0.98);
  --hero-grid-line: rgba(255, 255, 255, 0.02);
  --code-bar-bg: rgba(255, 255, 255, 0.03);
  --table-header-bg: rgba(255, 255, 255, 0.03);
  --table-row-hover: rgba(255, 255, 255, 0.02);
  --highlight-card-bg: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(99, 102, 241, 0.04));
  --highlight-border: rgba(139, 92, 246, 0.2);
  --highlight-border-hover: rgba(139, 92, 246, 0.4);
  --highlight-cell-bg: rgba(139, 92, 246, 0.04);
  --ghost-btn-bg: rgba(255, 255, 255, 0.05);
  --ghost-btn-hover: rgba(255, 255, 255, 0.1);
  --badge-bg: rgba(139, 92, 246, 0.1);
  --badge-border: rgba(139, 92, 246, 0.2);
  --chat-bubble-user-bg: var(--color-bg-card);
  --chat-bubble-ai-bg: rgba(139, 92, 246, 0.08);
  --chat-bubble-ai-border: rgba(139, 92, 246, 0.15);
  --icon-bg-purple: rgba(139, 92, 246, 0.12);
  --icon-bg-blue: rgba(59, 130, 246, 0.12);
  --icon-bg-green: rgba(34, 197, 94, 0.12);
  --icon-bg-orange: rgba(249, 115, 22, 0.12);
  --icon-bg-red: rgba(239, 68, 68, 0.12);
  --icon-bg-teal: rgba(20, 184, 166, 0.12);
  --shield-ring-1: rgba(139, 92, 246, 0.1);
  --shield-ring-2: rgba(139, 92, 246, 0.15);
  --shield-ring-3: rgba(139, 92, 246, 0.25);
  --shield-core-bg: rgba(139, 92, 246, 0.1);
  --code-highlight-bg: rgba(139, 92, 246, 0.1);
  --code-highlight-border: rgba(139, 92, 246, 0.2);
  --tag-bg: rgba(139, 92, 246, 0.15);
  --cite-bg: rgba(59, 130, 246, 0.15);
  --orb-opacity-1: 0.15;
  --orb-opacity-2: 0.1;
  --orb-opacity-3: 0.08;
  --cta-orb-1: 0.08;
  --cta-orb-2: 0.06;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--color-gradient);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px var(--color-primary-glow), var(--shadow-md);
}

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

.btn--ghost:hover {
  background: var(--ghost-btn-hover);
  color: var(--color-text);
  border-color: var(--color-border-hover);
}

.btn--sm {
  padding: 8px 20px;
  font-size: 14px;
}

.btn--lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn--full {
  width: 100%;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: all var(--transition-base);
  background: transparent;
}

.nav--scrolled {
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--color-border);
}

.nav__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  z-index: 10;
}

.nav__logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: white;
}

.nav__logo-text {
  color: var(--color-text);
}

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

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

.nav__link:hover {
  color: var(--color-text);
}

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

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 10;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav__hamburger--active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger--active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger--active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: var(--mobile-menu-bg);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
}

.mobile-menu--open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__link {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.mobile-menu__link:hover {
  color: var(--color-text);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + 40px) 0 80px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}

.hero__orb--1 {
  width: 600px;
  height: 600px;
  background: var(--color-primary);
  top: -200px;
  right: -100px;
  opacity: var(--orb-opacity-1);
  animation: float 20s ease-in-out infinite;
}

.hero__orb--2 {
  width: 500px;
  height: 500px;
  background: var(--color-blue);
  bottom: -150px;
  left: -150px;
  opacity: var(--orb-opacity-2);
  animation: float 25s ease-in-out infinite reverse;
}

.hero__orb--3 {
  width: 300px;
  height: 300px;
  background: var(--color-primary-light);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: var(--orb-opacity-3);
  animation: pulse-glow 8s ease-in-out infinite;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hero-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 840px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary-light);
  margin-bottom: 24px;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-green);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero__title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

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

.hero__subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 40px;
}

.hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero__stat {
  text-align: center;
}

.hero__stat-number {
  font-size: 36px;
  font-weight: 800;
  background: var(--color-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__stat-suffix {
  font-size: 24px;
  font-weight: 700;
  background: var(--color-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__stat-label {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-top: 4px;
}

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

/* hero scroll: styles moved to scroll-progress section */

/* --- Sections --- */
.section {
  padding: 120px 0;
  position: relative;
}

.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section__tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: var(--color-primary-glow);
  color: var(--color-primary-light);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section__desc {
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* --- Problem Section --- */
.problem__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.problem__card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: all var(--transition-base);
}

.problem__card:hover {
  border-color: var(--color-border-hover);
  background: var(--color-bg-card-hover);
  transform: translateY(-4px);
}

.problem__card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--icon-bg-red);
  color: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.problem__card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.problem__card-text {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* --- Features Section --- */
.features {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-primary-glow) 50%, var(--color-bg) 100%);
}

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

/* feature-card base: moved to enhanced section below */

.feature-card--highlight {
  grid-column: span 1;
  background: var(--highlight-card-bg);
  border-color: var(--highlight-border);
}

.feature-card--highlight:hover {
  border-color: var(--highlight-border-hover);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card__icon--purple { background: var(--icon-bg-purple); color: var(--color-primary-light); }
.feature-card__icon--blue { background: var(--icon-bg-blue); color: var(--color-blue); }
.feature-card__icon--green { background: var(--icon-bg-green); color: var(--color-green); }
.feature-card__icon--orange { background: var(--icon-bg-orange); color: var(--color-orange); }
.feature-card__icon--red { background: var(--icon-bg-red); color: var(--color-red); }
.feature-card__icon--teal { background: var(--icon-bg-teal); color: var(--color-teal); }

.feature-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card__text {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.feature-card__tag {
  display: inline-block;
  margin-top: 16px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--tag-bg);
  color: var(--color-primary-light);
  font-size: 12px;
  font-weight: 600;
}

/* Features More List */
.features__more {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
}

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

.features__more-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.features__more-item svg {
  color: var(--color-green);
  flex-shrink: 0;
}

/* --- How It Works --- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.step--reverse {
  direction: rtl;
}

.step--reverse > * {
  direction: ltr;
}

.step__number {
  font-size: 80px;
  font-weight: 900;
  background: var(--color-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.2;
  line-height: 1;
  min-width: 100px;
  text-align: center;
}

.step__content {
  padding-right: 20px;
}

.step__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.step__text {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* Step Code Block */
.step__code {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
}

.step__code-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--code-bar-bg);
  border-bottom: 1px solid var(--color-border);
}

.step__code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.step__code-dot--red { background: #ff5f57; }
.step__code-dot--yellow { background: #febc2e; }
.step__code-dot--green { background: #28c840; }

.step__code-title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.step__code-body {
  padding: 16px;
}

.step__code-row {
  display: flex;
  gap: 12px;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.step__code-row--highlight {
  background: var(--code-highlight-bg);
  border: 1px solid var(--code-highlight-border);
}

.step__code-key {
  color: var(--color-primary-light);
  font-weight: 600;
  min-width: 90px;
}

.step__code-val {
  color: var(--color-text-secondary);
}

/* Step Diagram */
.step__diagram {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.step__diagram-node {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
}

.step__diagram-node--primary {
  background: var(--color-primary-glow);
  border: 1px solid var(--highlight-border);
  color: var(--color-primary-light);
}

.step__diagram-node--secondary {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

.step__diagram-arrow {
  color: var(--color-text-muted);
}

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

/* Step Chat */
.step__chat {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.step__chat-msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.step__chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.step__chat-avatar--user {
  background: var(--color-bg-card-hover);
  color: var(--color-text-secondary);
}

.step__chat-avatar--ai {
  background: var(--color-gradient);
  color: white;
}

.step__chat-bubble {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.6;
}

.step__chat-bubble--user {
  background: var(--chat-bubble-user-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

.step__chat-bubble--ai {
  background: var(--chat-bubble-ai-bg);
  border: 1px solid var(--chat-bubble-ai-border);
}

.step__chat-cite {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--cite-bg);
  color: var(--color-blue);
}

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

.stakeholder-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.stakeholder-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
}

.stakeholder-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 28px 20px;
}

.stakeholder-card__header h3 {
  font-size: 20px;
  font-weight: 700;
}

.stakeholder-card__header svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.stakeholder-card__header--purple { color: var(--color-primary-light); }
.stakeholder-card__header--blue { color: var(--color-blue); }
.stakeholder-card__header--green { color: var(--color-green); }

.stakeholder-card__body {
  padding: 0 28px 28px;
}

.stakeholder-card__lead {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  font-style: italic;
}

.stakeholder-card__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stakeholder-card__list li {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}

.stakeholder-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* --- Comparison Table --- */
.comparison {
  background: var(--color-bg-elevated);
}

.comparison__table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.comparison__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.comparison__table th,
.comparison__table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--color-border);
}

.comparison__table thead th {
  background: var(--table-header-bg);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.comparison__table thead th.comparison__highlight {
  color: var(--color-primary-light);
  background: var(--highlight-cell-bg);
}

.comparison__table tbody tr:last-child td {
  border-bottom: none;
}

.comparison__table tbody tr:hover {
  background: var(--table-row-hover);
}

td.comparison__highlight {
  background: var(--highlight-cell-bg);
}

.comparison__check {
  color: var(--color-green);
}

.comparison__partial {
  color: var(--color-text-secondary);
}

.comparison__weak {
  color: var(--color-text-muted);
}

/* --- Security --- */
.security__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.security__content .section__tag,
.security__content .section__title,
.security__content .section__desc {
  text-align: left;
}

.security__badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.security__badge {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition-fast);
}

.security__badge:hover {
  border-color: var(--color-border-hover);
}

.security__badge svg {
  color: var(--color-green);
  flex-shrink: 0;
  margin-top: 2px;
}

.security__badge strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.security__badge span {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Security Shield Animation */
.security__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.security__shield {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.security__shield-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
}

.security__shield-ring--outer {
  width: 100%;
  height: 100%;
  border-color: var(--shield-ring-1);
  animation: spin-slow 30s linear infinite;
}

.security__shield-ring--middle {
  width: 75%;
  height: 75%;
  border-color: var(--shield-ring-2);
  border-style: dashed;
  animation: spin-slow 20s linear infinite reverse;
}

.security__shield-ring--inner {
  width: 50%;
  height: 50%;
  border-color: var(--shield-ring-3);
  animation: spin-slow 15s linear infinite;
}

.security__shield-core {
  position: relative;
  z-index: 1;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--shield-core-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-light);
  animation: pulse-glow 4s ease-in-out infinite;
}

.security__shield-label {
  position: absolute;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.security__shield-label--1 { top: 10%; right: 5%; }
.security__shield-label--2 { bottom: 10%; right: 10%; }
.security__shield-label--3 { bottom: 15%; left: 5%; }
.security__shield-label--4 { top: 15%; left: 10%; }

/* --- Market --- */
.market {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--icon-bg-blue) 50%, var(--color-bg) 100%);
}

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

.market__card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  transition: all var(--transition-base);
}

.market__card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
}

.market__card-region {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.market__card-stat {
  font-size: 56px;
  font-weight: 900;
  background: var(--color-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}

.market__card-label {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.market__card-detail {
  font-size: 13px;
  color: var(--color-text-muted);
}

.market__quote {
  text-align: center;
}

.market__quote blockquote {
  font-size: 20px;
  font-weight: 500;
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
  font-style: italic;
}

/* --- CTA Section --- */
.cta {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  inset: 0;
}

.cta__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.cta__orb--1 {
  width: 500px;
  height: 500px;
  background: var(--color-primary);
  opacity: var(--cta-orb-1);
  top: -100px;
  left: -100px;
}

.cta__orb--2 {
  width: 400px;
  height: 400px;
  background: var(--color-blue);
  opacity: var(--cta-orb-2);
  bottom: -100px;
  right: -100px;
}

.cta__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.cta__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta__subtitle {
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
}

.cta__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cta__form-row {
  display: flex;
  gap: 16px;
}

.cta__input {
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 15px;
  transition: border-color var(--transition-fast);
}

.cta__input::placeholder {
  color: var(--color-text-muted);
}

.cta__input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.cta__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2371717A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.cta__textarea {
  resize: vertical;
  min-height: 80px;
}

/* --- Footer --- */
.footer {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  padding: 64px 0 32px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 64px;
  margin-bottom: 48px;
}

.footer__brand {
  max-width: 320px;
}

.footer__tagline {
  margin-top: 16px;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.footer__links {
  display: flex;
  gap: 64px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  margin-bottom: 4px;
}

.footer__link {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-text);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-text-muted);
}

/* --- Theme Toggle --- */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--ghost-btn-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  transition: all var(--transition-base);
  flex-shrink: 0;
}

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

.theme-toggle__icon--sun {
  display: none;
}

.theme-toggle__icon--moon {
  display: block;
}

[data-theme="dark"] .theme-toggle__icon--sun {
  display: block;
}

[data-theme="dark"] .theme-toggle__icon--moon {
  display: none;
}

body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light-mode card shadow boost */
:root:not([data-theme="dark"]) .problem__card,
:root:not([data-theme="dark"]) .feature-card,
:root:not([data-theme="dark"]) .stakeholder-card,
:root:not([data-theme="dark"]) .market__card,
:root:not([data-theme="dark"]) .security__badge,
:root:not([data-theme="dark"]) .features__more {
  box-shadow: var(--shadow-sm);
}

:root:not([data-theme="dark"]) .problem__card:hover,
:root:not([data-theme="dark"]) .feature-card:hover,
:root:not([data-theme="dark"]) .stakeholder-card:hover,
:root:not([data-theme="dark"]) .market__card:hover {
  box-shadow: var(--shadow-md);
}

:root:not([data-theme="dark"]) .comparison__table-wrap {
  box-shadow: var(--shadow-sm);
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--color-gradient);
  z-index: 1001;
  width: 0%;
  transition: none;
}

/* --- Cursor Glow --- */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}

.cursor-glow--visible {
  opacity: 1;
}

/* --- Hero Particles --- */
.hero__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-primary-light);
  opacity: 0;
  animation: particle-float linear infinite;
}

@keyframes particle-float {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  10% { opacity: 0.6; transform: scale(1); }
  90% { opacity: 0.2; }
  100% { opacity: 0; transform: translateY(-100vh) scale(0.5); }
}

/* --- Hero Scroll Mouse --- */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero__scroll-mouse {
  width: 24px;
  height: 38px;
  border-radius: 12px;
  border: 2px solid var(--color-text-muted);
  position: relative;
  opacity: 0.5;
}

.hero__scroll-wheel {
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: var(--color-primary-light);
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

.hero__scroll-text {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  opacity: 0.5;
}

/* --- Marquee --- */
.marquee {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.marquee__label {
  flex-shrink: 0;
  padding-left: 24px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.marquee__track {
  overflow: hidden;
  flex: 1;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee__content {
  display: flex;
  align-items: center;
  gap: 24px;
  animation: marquee-scroll 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.marquee__item {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

.marquee__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  opacity: 0.5;
}

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

/* --- Nav Link Underlines --- */
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 4px 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gradient);
  border-radius: 1px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* --- Feature Card Glow Border --- */
.feature-card__glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, transparent, var(--color-primary), var(--color-blue), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
  filter: blur(2px);
}

.feature-card:hover .feature-card__glow {
  opacity: 0.3;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 30px var(--color-primary-glow);
}

/* --- Typing Dots --- */
.step__chat-typing {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
}

.typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-text-muted);
  animation: typing-bounce 1.4s ease-in-out infinite;
}

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

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* --- Card Tilt Perspective --- */
[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
}

/* --- Button Magnetic & Ripple --- */
.btn--magnetic {
  transform-style: preserve-3d;
  will-change: transform;
}

.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(255,255,255,0.25), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* --- Animations --- */
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -40px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.15); }
  50% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.3); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Scroll Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), filter 0.7s ease;
  filter: blur(4px);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .problem__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .step {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .step--reverse {
    direction: ltr;
  }

  .step__number {
    font-size: 48px;
    min-width: auto;
    text-align: left;
  }

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

  .stakeholders__grid .stakeholder-card:last-child {
    grid-column: span 2;
  }

  .security__layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .security__content .section__tag,
  .security__content .section__title,
  .security__content .section__desc {
    text-align: center;
  }
}

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

  .nav__hamburger {
    display: flex;
  }

  .nav__actions .btn {
    display: none;
  }

  .hero__stats {
    gap: 24px;
  }

  .hero__stat-divider {
    display: none;
  }

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

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

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

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

  .stakeholders__grid .stakeholder-card:last-child {
    grid-column: span 1;
  }

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

  .comparison__table-wrap {
    margin: 0 -24px;
    border-radius: 0;
  }

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

  .security__shield {
    width: 240px;
    height: 240px;
  }

  .cta__form-row {
    flex-direction: column;
  }

  .footer__top {
    flex-direction: column;
    gap: 40px;
  }

  .footer__links {
    flex-wrap: wrap;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .section {
    padding: 80px 0;
  }

  .hero {
    padding: calc(var(--nav-height) + 20px) 0 60px;
  }

  .market__quote blockquote {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 32px;
  }

  .hero__cta {
    flex-direction: column;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .hero__stat-number {
    font-size: 28px;
  }

  .step__code-row {
    flex-direction: column;
    gap: 2px;
  }

  .step__code-key {
    min-width: auto;
  }
}
