/* ======================================================================
   NEXORA — AI SaaS & Agent Platform Web Template
   Main Stylesheet
   Author: Nexora Themes
   License: See documentation.html (Envato Regular/Extended License)
   Table of Contents:
     1. CSS Reset & Base
     2. CSS Variables (Design Tokens)
     3. Typography
     4. Utility Classes
     5. Buttons
     6. Layout / Grid helpers
     7. Header & Navigation
     8. Hero Section
     9. Stats Counter
    10. Logo Cloud
    11. Features Grid
    12. Product Showcase Tabs
    13. AI Playground Demo
    14. How it Works / Steps
    15. Pricing
    16. Testimonials
    17. FAQ Accordion
    18. CTA Section
    19. Footer
    20. Blog / Documentation layout
    21. Contact Page + Form Validation styles
    22. Animations & Keyframes
    23. Accessibility helpers
    24. Responsive Media Queries
   ====================================================================== */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }

/* ----------------------------------------------------------------------
   2. CSS Variables (Design Tokens)
   ---------------------------------------------------------------------- */
:root {
  /* Core palette - Dark Cyber/SaaS theme */
  --bg-base: #0B0F19;
  --bg-elevated: #0F1424;
  --bg-elevated-2: #121829;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Accents */
  --accent-cyan: #22D3EE;
  --accent-cyan-dim: #0EA5C4;
  --accent-purple: #A855F7;
  --accent-purple-dim: #7C3AED;
  --accent-pink: #F472B6;
  --gradient-primary: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
  --gradient-primary-hover: linear-gradient(135deg, #2DE1FF 0%, #B968FF 100%);
  --gradient-text: linear-gradient(135deg, #67E8F9 0%, #C084FC 60%, #F0ABFC 100%);
  --gradient-radial-glow: radial-gradient(circle at center, rgba(34, 211, 238, 0.18) 0%, rgba(168, 85, 247, 0.08) 45%, transparent 70%);

  /* Status */
  --success: #34D399;
  --warning: #FBBF24;
  --danger: #F87171;

  /* Text */
  --text-primary: #F8FAFC;
  --text-secondary: #B6BECF;
  --text-muted: #8690A6;
  --text-on-accent: #061018;

  /* Typography scale */
  --font-heading: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Spacing / radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 999px;

  --container-width: 1280px;
  --section-pad-y: 7rem;

  /* Shadows */
  --shadow-glow-cyan: 0 0 40px rgba(34, 211, 238, 0.25);
  --shadow-glow-purple: 0 0 40px rgba(168, 85, 247, 0.25);
  --shadow-card: 0 20px 60px -20px rgba(0, 0, 0, 0.6);

  /* Transitions */
  --ease-default: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.2s var(--ease-default);
  --transition-med: 0.4s var(--ease-default);
}

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

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }

p { color: var(--text-secondary); }

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

.lead { font-size: 1.15rem; color: var(--text-secondary); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.eyebrow i { font-size: 0.75rem; }

/* ----------------------------------------------------------------------
   4. Utility Classes
   ---------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section { padding-block: var(--section-pad-y); position: relative; }
.section-sm { padding-block: 4rem; }
.section-head { max-width: 680px; margin-bottom: 3.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--accent-cyan);
  color: var(--text-on-accent);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 10000;
  transition: top var(--transition-fast);
}
.skip-link:focus { top: 1rem; }

.relative { position: relative; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: 0.75rem; }
.gap-md { gap: 1.5rem; }
.mt-0 { margin-top: 0; }

.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
}

.divider-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

/* Blobs / ambient glow backgrounds */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}
.bg-glow.cyan { background: var(--accent-cyan); }
.bg-glow.purple { background: var(--accent-purple); }

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* ----------------------------------------------------------------------
   5. Buttons
   ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-full);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
  position: relative;
}

.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-on-accent);
  box-shadow: 0 8px 30px -8px rgba(34, 211, 238, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -8px rgba(168, 85, 247, 0.55); background: var(--gradient-primary-hover); }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover { border-color: var(--accent-cyan); background: rgba(34, 211, 238, 0.08); transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn-ghost:hover { background: rgba(255,255,255,0.09); }

.btn-lg { padding: 1.1rem 2.3rem; font-size: 1.02rem; }
.btn-sm { padding: 0.6rem 1.3rem; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ----------------------------------------------------------------------
   7. Header & Navigation
   ---------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding-block: 1.1rem;
  transition: background var(--transition-med), padding var(--transition-med), border-color var(--transition-med);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(11, 15, 25, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border-subtle);
  padding-block: 0.75rem;
}

.navbar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.brand img { height: 32px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  margin-inline: auto;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding-block: 0.3rem;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text-primary); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.nav-has-dropdown { position: relative; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 1.1rem);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 260px;
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  box-shadow: var(--shadow-card);
}
.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.nav-dropdown a:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.nav-dropdown i { color: var(--accent-cyan); width: 18px; text-align: center; }

.nav-actions { display: flex; align-items: center; gap: 0.9rem; flex-shrink: 0; }
.nav-actions .btn-outline { display: none; }
@media (min-width: 992px) { .nav-actions .btn-outline { display: inline-flex; } }

/* ----------------------------------------------------------------------
   7b. Language / RTL Switch Control
   A compact EN | AR pill group. Logic lives in js/i18n.js — it toggles
   <html dir> + <html lang> and swaps every [data-i18n*] string in the DOM.
   ---------------------------------------------------------------------- */
.lang-switch {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  flex-shrink: 0;
}
.lang-option {
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  line-height: 1;
}
.lang-option:hover { color: var(--text-primary); }
.lang-option[aria-pressed="true"] {
  background: var(--gradient-primary);
  color: var(--text-on-accent);
}
.mobile-menu .lang-switch { margin-top: 0; align-self: flex-start; }
.mobile-menu .nav-actions-mobile .lang-switch { align-self: stretch; justify-content: center; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  height: 20px;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  top: 0;
  background: var(--bg-base);
  z-index: 999;
  padding: 6rem 1.5rem 2rem;
  transform: translateX(100%);
  transition: transform var(--transition-med);
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu ul { display: flex; flex-direction: column; gap: 0.3rem; }
.mobile-menu a {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.9rem 0.3rem;
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-menu .nav-actions-mobile { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.9rem; }

@media (min-width: 992px) {
  .nav-toggle { display: none; }
  .mobile-menu { display: none; }
}
@media (max-width: 991.98px) {
  .nav-links { display: none; }
}

/* ----------------------------------------------------------------------
   8. Hero Section
   ---------------------------------------------------------------------- */
.hero {
  padding-top: 11rem;
  padding-bottom: 6rem;
  position: relative;
  overflow: hidden;
}
.hero .bg-glow.cyan { width: 480px; height: 480px; top: -120px; left: -120px; }
.hero .bg-glow.purple { width: 520px; height: 520px; top: 10%; right: -160px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 1100px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

.hero-content h1 { margin-bottom: 1.4rem; }
.hero-content .lead { max-width: 560px; margin-bottom: 2.2rem; }
.hero-cta-group { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }

.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; }
.hero-trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-muted); }
.hero-trust-item i { color: var(--success); }

.hero-visual { position: relative; }
.hero-mockup {
  position: relative;
  padding: 1.5rem;
  box-shadow: var(--shadow-card), var(--shadow-glow-purple);
  animation: floatY 6s ease-in-out infinite;
}
.hero-mockup-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.hero-mockup-dots { display: flex; gap: 6px; }
.hero-mockup-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.hero-mockup-dots span:nth-child(1) { background: #F87171; }
.hero-mockup-dots span:nth-child(2) { background: #FBBF24; }
.hero-mockup-dots span:nth-child(3) { background: #34D399; }

.hero-mockup-body { display: flex; flex-direction: column; gap: 0.9rem; }
.hero-chat-bubble {
  max-width: 85%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.5;
  animation: fadeInUp 0.6s var(--ease-default) both;
}
.hero-chat-bubble.user { align-self: flex-end; background: rgba(34,211,238,0.12); border: 1px solid rgba(34,211,238,0.25); color: var(--text-primary); }
.hero-chat-bubble.ai { align-self: flex-start; background: var(--bg-elevated-2); border: 1px solid var(--border-subtle); }
.hero-chat-bubble.ai .typing-dots { display: inline-flex; gap: 4px; }
.hero-chat-bubble.ai .typing-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-cyan); animation: typingBlink 1.2s infinite ease-in-out; }
.hero-chat-bubble.ai .typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.hero-chat-bubble.ai .typing-dots span:nth-child(3) { animation-delay: 0.4s; }

.hero-float-card {
  position: absolute;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  box-shadow: var(--shadow-card);
  animation: floatY 5s ease-in-out infinite;
  font-size: 0.85rem;
  font-weight: 600;
}
.hero-float-card .icon-badge { width: 34px; height: 34px; }
.hero-float-card.card-1 { top: -8%; right: -8%; animation-delay: 0.5s; }
.hero-float-card.card-2 { bottom: -6%; left: -8%; animation-delay: 1.2s; }

.icon-badge {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-primary);
  color: var(--text-on-accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.icon-badge.outline {
  background: rgba(34,211,238,0.1);
  border: 1px solid rgba(34,211,238,0.3);
  color: var(--accent-cyan);
}

/* ----------------------------------------------------------------------
   9. Stats Counter
   ---------------------------------------------------------------------- */
.stats-strip {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding-block: 3rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.stat-item .stat-label { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.3rem; }

/* ----------------------------------------------------------------------
   10. Logo Cloud
   ---------------------------------------------------------------------- */
.logo-cloud-label { text-align: center; color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 2rem; }
.logo-cloud-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: center;
  opacity: 0.75;
}
@media (min-width: 768px) { .logo-cloud-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .logo-cloud-grid { grid-template-columns: repeat(6, 1fr); } }
.logo-cloud-grid .brand-mark {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: var(--text-muted);
  filter: grayscale(1);
  transition: filter var(--transition-fast), opacity var(--transition-fast);
}
.logo-cloud-grid .brand-mark:hover { filter: grayscale(0); opacity: 1; color: var(--text-primary); }

/* ----------------------------------------------------------------------
   11. Features Grid
   ---------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  padding: 2rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
  height: 100%;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.35);
  background: var(--bg-card-hover);
}
.feature-card .icon-badge { margin-bottom: 1.4rem; }
.feature-card h3 { margin-bottom: 0.7rem; }
.feature-card p { font-size: 0.95rem; }
.feature-card.featured { border-color: rgba(168, 85, 247, 0.4); background: linear-gradient(160deg, rgba(168,85,247,0.1), rgba(34,211,238,0.04)); }

/* ----------------------------------------------------------------------
   12. Product Showcase Tabs
   ---------------------------------------------------------------------- */
.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.showcase-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.showcase-tab-btn i { font-size: 1rem; }
.showcase-tab-btn:hover { color: var(--text-primary); border-color: var(--border-strong); }
.showcase-tab-btn[aria-selected="true"] {
  background: var(--gradient-primary);
  color: var(--text-on-accent);
  border-color: transparent;
  box-shadow: 0 8px 24px -8px rgba(34,211,238,0.5);
}

.showcase-panel { display: none; }
.showcase-panel.is-active { display: block; animation: fadeInUp 0.5s var(--ease-default) both; }

.showcase-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem;
}
@media (min-width: 992px) { .showcase-content { grid-template-columns: 1fr 1fr; padding: 3rem; } }

.showcase-text .pill-list { margin-top: 1.6rem; display: flex; flex-direction: column; gap: 0.9rem; }
.pill-list li { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.95rem; color: var(--text-secondary); }
.pill-list i { color: var(--accent-cyan); margin-top: 3px; }

.showcase-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  position: relative;
  min-height: 280px;
  background: var(--bg-elevated-2);
}
.showcase-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.showcase-media-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11,15,25,0.85) 100%);
}

/* Mock console / terminal for Automation tab */
.mock-console {
  background: #060911;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  font-family: "Fira Code", monospace;
  font-size: 0.85rem;
  color: #9fe6ff;
  min-height: 280px;
}
.mock-console .console-line { margin-bottom: 0.55rem; opacity: 0; animation: fadeInUp 0.4s ease forwards; }
.mock-console .console-line.success { color: var(--success); }
.mock-console .console-prompt { color: var(--accent-purple); margin-right: 0.5rem; }

/* Audio waveform mock */
.waveform { display: flex; align-items: center; gap: 4px; height: 90px; }
.waveform span {
  width: 5px;
  background: var(--gradient-primary);
  border-radius: 4px;
  animation: waveBounce 1.4s ease-in-out infinite;
}

/* ----------------------------------------------------------------------
   13. AI Playground Demo
   ---------------------------------------------------------------------- */
.playground-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
@media (min-width: 992px) { .playground-shell { grid-template-columns: 280px 1fr; } }

.playground-sidebar {
  background: var(--bg-elevated-2);
  border-right: 1px solid var(--border-subtle);
  padding: 1.5rem;
}
.playground-sidebar h4 { margin-bottom: 1.1rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.model-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-align: left;
}
.model-option:hover { background: var(--bg-card-hover); }
.model-option[aria-pressed="true"] { background: rgba(34,211,238,0.1); border-color: rgba(34,211,238,0.3); color: var(--text-primary); }
.model-option i { color: var(--accent-cyan); width: 16px; }

.playground-main { display: flex; flex-direction: column; min-height: 460px; }
.playground-mode-tabs { display: flex; gap: 0.5rem; padding: 1rem 1.5rem 0; border-bottom: 1px solid var(--border-subtle); }
.mode-tab-btn {
  padding: 0.7rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
}
.mode-tab-btn[aria-selected="true"] { color: var(--text-primary); border-color: var(--accent-cyan); }

.chat-window { flex: 1; padding: 1.5rem; overflow-y: auto; max-height: 420px; display: flex; flex-direction: column; gap: 1rem; }
.chat-msg { display: flex; gap: 0.8rem; max-width: 85%; }
.chat-msg.from-user { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg .avatar-dot { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.chat-msg.from-user .avatar-dot { background: rgba(255,255,255,0.08); }
.chat-msg.from-ai .avatar-dot { background: var(--gradient-primary); color: var(--text-on-accent); }
.chat-bubble-text { padding: 0.9rem 1.1rem; border-radius: var(--radius-md); font-size: 0.92rem; line-height: 1.55; }
.chat-msg.from-user .chat-bubble-text { background: rgba(34,211,238,0.12); border: 1px solid rgba(34,211,238,0.25); }
.chat-msg.from-ai .chat-bubble-text { background: var(--bg-elevated-2); border: 1px solid var(--border-subtle); }

.playground-input-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}
.playground-input-bar input[type="text"] {
  flex: 1;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.85rem 1.3rem;
  color: var(--text-primary);
  font-size: 0.92rem;
}
.playground-input-bar input[type="text"]::placeholder { color: var(--text-muted); }
.playground-input-bar .btn-send {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gradient-primary); color: var(--text-on-accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform var(--transition-fast);
}
.playground-input-bar .btn-send:hover { transform: scale(1.08); }

.prompt-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0 1.5rem 1rem; }
.prompt-chip {
  font-size: 0.8rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.prompt-chip:hover { border-color: var(--accent-cyan); color: var(--text-primary); }

.typing-indicator { display: inline-flex; gap: 4px; padding: 0.3rem 0; }
.typing-indicator span { width: 6px; height: 6px; background: var(--accent-cyan); border-radius: 50%; animation: typingBlink 1.2s infinite ease-in-out; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

/* ----------------------------------------------------------------------
   14. How it Works / Steps
   ---------------------------------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  counter-reset: step-counter;
  position: relative;
}
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }

.step-card { padding: 2rem 1.8rem; position: relative; counter-increment: step-counter; }
.step-card .step-number {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.18);
  margin-bottom: 1rem;
  display: block;
}
.step-card h3 { margin-bottom: 0.6rem; font-size: 1.15rem; }
.step-card p { font-size: 0.92rem; }
.step-connector {
  display: none;
}
@media (min-width: 1100px) {
  .step-card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2.6rem; right: -1.15rem;
    width: 1.3rem; height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  }
}

/* ----------------------------------------------------------------------
   15. Pricing
   ---------------------------------------------------------------------- */
.pricing-toggle-wrap { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 3.5rem; flex-wrap: wrap; }
.pricing-toggle-wrap .save-badge {
  font-size: 0.75rem; font-weight: 700; color: var(--success);
  background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52,211,153,0.3);
  padding: 0.25rem 0.6rem; border-radius: var(--radius-full);
}
.toggle-label { font-weight: 600; font-size: 0.95rem; color: var(--text-muted); transition: color var(--transition-fast); }
.toggle-label.is-active { color: var(--text-primary); }

.switch {
  position: relative;
  width: 58px; height: 32px;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}
.switch .switch-knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gradient-primary);
  transition: transform var(--transition-fast);
}
.switch[aria-checked="true"] .switch-knob { transform: translateX(26px); }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: stretch;
}
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }

.pricing-card {
  padding: 2.4rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.pricing-card:hover { transform: translateY(-6px); }
.pricing-card.popular {
  border: 1px solid rgba(168,85,247,0.5);
  background: linear-gradient(170deg, rgba(168,85,247,0.12), rgba(34,211,238,0.05));
  box-shadow: var(--shadow-glow-purple);
}
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gradient-primary); color: var(--text-on-accent);
  font-size: 0.75rem; font-weight: 700; padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full); white-space: nowrap;
}
.pricing-card h3 { margin-bottom: 0.4rem; }
.pricing-card .plan-desc { font-size: 0.88rem; margin-bottom: 1.6rem; }
.price-row { display: flex; align-items: baseline; gap: 0.4rem; margin-bottom: 1.8rem; }
.price-row .price-amount { font-family: var(--font-heading); font-size: 2.8rem; font-weight: 700; }
.price-row .price-period { color: var(--text-muted); font-size: 0.9rem; }
.price-amount[data-yearly] { display: none; }
.is-yearly .price-amount[data-monthly] { display: none; }
.is-yearly .price-amount[data-yearly] { display: inline; }

.pricing-feature-list { display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 2rem; flex: 1; }
.pricing-feature-list li { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.9rem; color: var(--text-secondary); }
.pricing-feature-list li.disabled { color: var(--text-muted); opacity: 0.55; }
.pricing-feature-list i.fa-circle-check { color: var(--accent-cyan); margin-top: 2px; }
.pricing-feature-list i.fa-circle-xmark { color: var(--text-muted); margin-top: 2px; }

/* Comparison table */
.comparison-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-subtle); }
.comparison-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.comparison-table th, .comparison-table td {
  padding: 1.1rem 1.4rem;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}
.comparison-table th:first-child, .comparison-table td:first-child { text-align: left; color: var(--text-primary); font-weight: 500; }
.comparison-table thead th { background: var(--bg-elevated-2); font-family: var(--font-heading); font-size: 1rem; padding-top: 1.6rem; }
.comparison-table thead th.highlight-col { color: var(--accent-cyan); position: relative; }
.comparison-table tbody tr:hover { background: var(--bg-card-hover); }
.comparison-table i.fa-check { color: var(--success); }
.comparison-table i.fa-xmark { color: var(--text-muted); }
.comparison-table .row-group-title td { background: var(--bg-elevated); font-weight: 700; text-align: left; color: var(--accent-purple); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* ----------------------------------------------------------------------
   16. Testimonials
   ---------------------------------------------------------------------- */
.testimonial-slider { position: relative; max-width: 820px; margin-inline: auto; }
.testimonial-track { overflow: hidden; }
.testimonial-slides { display: flex; transition: transform 0.55s var(--ease-default); }
.testimonial-slide { min-width: 100%; padding: 1rem; }
.testimonial-card { padding: 2.8rem; text-align: center; }
.testimonial-card .stars { color: var(--warning); margin-bottom: 1.3rem; font-size: 0.95rem; }
.testimonial-card blockquote { font-size: 1.2rem; font-family: var(--font-heading); font-weight: 500; color: var(--text-primary); margin-bottom: 1.8rem; line-height: 1.5; }
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 0.9rem; }
.testimonial-author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-cyan); }
.testimonial-author .name { font-weight: 700; font-size: 0.95rem; }
.testimonial-author .role { font-size: 0.82rem; color: var(--text-muted); }

.slider-controls { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 2rem; }
.slider-arrow {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-fast);
}
.slider-arrow:hover { background: var(--accent-cyan); color: var(--text-on-accent); border-color: var(--accent-cyan); }
.slider-dots { display: flex; gap: 0.5rem; }
.slider-dots button { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); transition: all var(--transition-fast); }
.slider-dots button[aria-current="true"] { background: var(--gradient-primary); width: 26px; border-radius: var(--radius-full); }

/* ----------------------------------------------------------------------
   17. FAQ Accordion
   ---------------------------------------------------------------------- */
.faq-list { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { overflow: hidden; }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.7rem;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}
.faq-question .icon-plus { flex-shrink: 0; width: 24px; height: 24px; position: relative; }
.faq-question .icon-plus::before, .faq-question .icon-plus::after {
  content: ""; position: absolute; background: var(--accent-cyan); border-radius: 2px;
  transition: transform var(--transition-fast);
}
.faq-question .icon-plus::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-question .icon-plus::after { left: 50%; top: 0; height: 100%; width: 2px; transform: translateX(-50%); }
.faq-question[aria-expanded="true"] .icon-plus::after { transform: translateX(-50%) scaleY(0); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease-default); }
.faq-answer-inner { padding: 0 1.7rem 1.5rem; font-size: 0.93rem; color: var(--text-secondary); }

/* ----------------------------------------------------------------------
   18. CTA Section
   ---------------------------------------------------------------------- */
.cta-section {
  padding: 4.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(34,211,238,0.12), rgba(168,85,247,0.14));
  border: 1px solid var(--border-subtle);
}
.cta-section h2 { max-width: 700px; margin-inline: auto 0.8rem; margin-bottom: 1rem; }
.cta-section p { max-width: 560px; margin-inline: auto; margin-bottom: 2.2rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ----------------------------------------------------------------------
   19. Footer
   ---------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border-subtle); padding-top: 5rem; margin-top: 6rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.4fr repeat(4, 1fr); } }

.footer-brand p { max-width: 320px; margin-block: 1.1rem 1.5rem; font-size: 0.92rem; }
.footer-socials { display: flex; gap: 0.7rem; }
.footer-socials a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}
.footer-socials a:hover { background: var(--gradient-primary); color: var(--text-on-accent); border-color: transparent; }

.footer-col h6 { color: var(--text-primary); margin-bottom: 1.3rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-col a { font-size: 0.9rem; color: var(--text-secondary); transition: color var(--transition-fast); }
.footer-col a:hover { color: var(--accent-cyan); }

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-block: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-bottom-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom-links a:hover { color: var(--text-primary); }

.footer-newsletter { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer-newsletter input {
  flex: 1; background: var(--bg-elevated-2); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full); padding: 0.7rem 1.1rem; color: var(--text-primary); font-size: 0.85rem;
}

/* ----------------------------------------------------------------------
   20. Blog / Documentation layout
   ---------------------------------------------------------------------- */
.page-header {
  padding: 9.5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header .breadcrumb { display: flex; justify-content: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.2rem; }
.page-header .breadcrumb a:hover { color: var(--accent-cyan); }

.blog-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card { overflow: hidden; display: flex; flex-direction: column; transition: transform var(--transition-fast); }
.blog-card:hover { transform: translateY(-6px); }
.blog-card-media { height: 200px; overflow: hidden; position: relative; }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-default); }
.blog-card:hover .blog-card-media img { transform: scale(1.08); }
.blog-card-category {
  position: absolute; top: 1rem; left: 1rem;
  background: rgba(11,15,25,0.8); backdrop-filter: blur(6px);
  padding: 0.35rem 0.9rem; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 700; color: var(--accent-cyan);
}
.blog-card-body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.blog-card-meta { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.8rem; }
.blog-card h3 { font-size: 1.15rem; margin-bottom: 0.7rem; }
.blog-card p { font-size: 0.9rem; margin-bottom: 1.2rem; flex: 1; }
.blog-card .read-more { font-size: 0.85rem; font-weight: 700; color: var(--accent-cyan); display: inline-flex; align-items: center; gap: 0.4rem; }
.blog-card .read-more i { transition: transform var(--transition-fast); }
.blog-card .read-more:hover i { transform: translateX(4px); }

.blog-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 992px) { .blog-layout { grid-template-columns: 2.3fr 1fr; } }

.article-content h2 { margin-top: 2.4rem; margin-bottom: 1rem; }
.article-content h3 { margin-top: 1.8rem; margin-bottom: 0.8rem; }
.article-content p { margin-bottom: 1.2rem; font-size: 1.02rem; }
.article-content ul, .article-content ol { margin: 0 0 1.2rem 1.4rem; color: var(--text-secondary); }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 0.5rem; }
.article-content blockquote {
  border-left: 3px solid var(--accent-cyan);
  padding: 0.5rem 0 0.5rem 1.4rem;
  font-style: italic;
  color: var(--text-primary);
  margin: 1.6rem 0;
}
.article-content pre {
  background: #060911; border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 1.3rem; overflow-x: auto;
  font-family: "Fira Code", monospace; font-size: 0.85rem; color: #9fe6ff; margin-bottom: 1.4rem;
}
.article-content code {
  background: rgba(255,255,255,0.08); padding: 0.15rem 0.45rem; border-radius: 4px;
  font-family: "Fira Code", monospace; font-size: 0.88em; color: var(--accent-cyan);
}
.article-content pre code { background: none; padding: 0; color: inherit; }
.article-content img { border-radius: var(--radius-md); margin: 1.8rem 0; }
.article-content figcaption { text-align: center; font-size: 0.82rem; color: var(--text-muted); margin-top: -1.3rem; margin-bottom: 1.8rem; }

.article-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.article-tags a { font-size: 0.8rem; padding: 0.4rem 0.9rem; border-radius: var(--radius-full); background: var(--bg-card); border: 1px solid var(--border-subtle); }

.author-box { display: flex; gap: 1.2rem; padding: 1.8rem; margin-top: 2.5rem; align-items: center; }
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box h4 { margin-bottom: 0.3rem; }
.author-box p { font-size: 0.88rem; margin: 0; }

.blog-sidebar { display: flex; flex-direction: column; gap: 1.8rem; }
.sidebar-widget { padding: 1.6rem; }
.sidebar-widget h5 { margin-bottom: 1.2rem; }
.sidebar-search { display: flex; border: 1px solid var(--border-subtle); border-radius: var(--radius-full); overflow: hidden; }
.sidebar-search input { flex: 1; background: transparent; border: none; padding: 0.7rem 1.1rem; color: var(--text-primary); font-size: 0.88rem; }
.sidebar-search button { padding: 0 1rem; color: var(--accent-cyan); }
.sidebar-widget .toc-list { display: flex; flex-direction: column; gap: 0.7rem; }
.sidebar-widget .toc-list a { font-size: 0.88rem; color: var(--text-secondary); }
.sidebar-widget .toc-list a:hover { color: var(--accent-cyan); }
.sidebar-post { display: flex; gap: 0.9rem; align-items: center; margin-bottom: 1.1rem; }
.sidebar-post img { width: 60px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.sidebar-post h6 { font-size: 0.85rem; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--text-primary); margin: 0; }
.sidebar-post span { font-size: 0.75rem; color: var(--text-muted); }
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sidebar-tags a { font-size: 0.78rem; padding: 0.35rem 0.8rem; border-radius: var(--radius-full); border: 1px solid var(--border-subtle); color: var(--text-secondary); }

.pagination { display: flex; justify-content: center; gap: 0.6rem; margin-top: 3rem; }
.pagination a, .pagination span {
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1px solid var(--border-subtle); font-size: 0.9rem;
}
.pagination a:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.pagination .is-active { background: var(--gradient-primary); color: var(--text-on-accent); border-color: transparent; }

/* ----------------------------------------------------------------------
   21. Documentation layout
   ---------------------------------------------------------------------- */
.docs-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 992px) { .docs-layout { grid-template-columns: 280px 1fr; } }

.docs-sidebar { position: relative; }
@media (min-width: 992px) {
  .docs-sidebar-inner { position: sticky; top: 6.5rem; max-height: calc(100vh - 7rem); overflow-y: auto; padding-right: 0.5rem; }
}
.docs-nav-group { margin-bottom: 1.6rem; }
.docs-nav-group h6 { color: var(--text-muted); margin-bottom: 0.8rem; font-size: 0.75rem; }
.docs-nav-group ul { display: flex; flex-direction: column; gap: 0.3rem; }
.docs-nav-group a {
  display: block; padding: 0.55rem 0.9rem; border-radius: var(--radius-sm);
  font-size: 0.89rem; color: var(--text-secondary);
}
.docs-nav-group a:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.docs-nav-group a.is-active { background: rgba(34,211,238,0.1); color: var(--accent-cyan); font-weight: 600; }

.docs-content section { margin-bottom: 3.5rem; scroll-margin-top: 6rem; }
.docs-content h2 { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.2rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--border-subtle); }
.docs-content h2 .icon-badge { width: 40px; height: 40px; font-size: 1rem; }
.docs-content h3 { margin-top: 1.6rem; margin-bottom: 0.8rem; }
.docs-content p { margin-bottom: 1.1rem; }
.docs-content ul, .docs-content ol { margin: 0 0 1.2rem 1.4rem; color: var(--text-secondary); }
.docs-content ul { list-style: disc; }
.docs-content ol { list-style: decimal; }
.docs-content li { margin-bottom: 0.5rem; }
.docs-content code { background: rgba(255,255,255,0.08); padding: 0.15rem 0.45rem; border-radius: 4px; font-family: "Fira Code", monospace; font-size: 0.88em; color: var(--accent-cyan); }
.docs-content pre { background: #060911; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 1.3rem; overflow-x: auto; font-family: "Fira Code", monospace; font-size: 0.85rem; color: #9fe6ff; margin-bottom: 1.4rem; position: relative; }
.docs-content pre code { background: none; padding: 0; color: inherit; }
.code-copy-btn {
  position: absolute; top: 0.7rem; right: 0.7rem;
  font-size: 0.75rem; padding: 0.35rem 0.7rem; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08); color: var(--text-secondary);
  display: flex; align-items: center; gap: 0.4rem;
}
.code-copy-btn:hover { background: rgba(255,255,255,0.14); color: var(--text-primary); }

.docs-callout {
  display: flex; gap: 1rem; padding: 1.3rem 1.5rem; border-radius: var(--radius-md);
  border: 1px solid rgba(34,211,238,0.3); background: rgba(34,211,238,0.07); margin-bottom: 1.4rem;
}
.docs-callout.warning { border-color: rgba(251,191,36,0.35); background: rgba(251,191,36,0.07); }
.docs-callout i { color: var(--accent-cyan); font-size: 1.2rem; margin-top: 2px; flex-shrink: 0; }
.docs-callout.warning i { color: var(--warning); }
.docs-callout p { margin: 0; font-size: 0.92rem; }

.folder-tree { background: #060911; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 1.4rem 1.6rem; font-family: "Fira Code", monospace; font-size: 0.86rem; line-height: 2; color: var(--text-secondary); }
.folder-tree .fa-folder { color: var(--accent-purple); margin-right: 0.5rem; }
.folder-tree .fa-file-code, .folder-tree .fa-file { color: var(--accent-cyan); margin-right: 0.5rem; }
.folder-tree .indent-1 { padding-left: 1.4rem; }
.folder-tree .indent-2 { padding-left: 2.8rem; }

.docs-table { width: 100%; border-collapse: collapse; margin-bottom: 1.4rem; }
.docs-table th, .docs-table td { padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--border-subtle); text-align: left; font-size: 0.88rem; }
.docs-table th { color: var(--text-primary); font-family: var(--font-heading); background: var(--bg-elevated-2); }

.credits-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .credits-grid { grid-template-columns: repeat(2, 1fr); } }
.credit-item { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; }
.credit-item i { font-size: 1.4rem; color: var(--accent-cyan); }
.credit-item h6 { margin: 0 0 0.2rem; color: var(--text-primary); font-size: 0.92rem; letter-spacing: 0; text-transform: none; }
.credit-item span { font-size: 0.8rem; color: var(--text-muted); }

/* ----------------------------------------------------------------------
   22. Contact Page + Form Validation
   ---------------------------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 992px) { .contact-layout { grid-template-columns: 0.85fr 1.15fr; } }

.contact-info-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.contact-info-item { display: flex; gap: 1rem; padding: 1.4rem; align-items: flex-start; }
.contact-info-item h6 { color: var(--text-primary); margin-bottom: 0.3rem; font-size: 0.92rem; letter-spacing: 0; text-transform: none; }
.contact-info-item p { margin: 0; font-size: 0.88rem; }

.contact-map { margin-top: 2rem; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-subtle); height: 220px; }
.contact-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(0.92) contrast(0.85); }

.contact-form-card { padding: 2.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 1.3rem; }
@media (min-width: 640px) { .form-grid.two-col { grid-template-columns: 1fr 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; position: relative; }
.form-group label { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); }
.form-group label .required { color: var(--accent-pink); }
.form-group input, .form-group textarea, .form-group select {
  background: var(--bg-elevated-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--accent-cyan); box-shadow: 0 0 0 4px rgba(34,211,238,0.12);
}
.form-group.has-error input, .form-group.has-error textarea, .form-group.has-error select {
  border-color: var(--danger); box-shadow: 0 0 0 4px rgba(248,113,113,0.1);
}
.form-group .error-message {
  font-size: 0.8rem; color: var(--danger); display: none; align-items: center; gap: 0.4rem;
}
.form-group.has-error .error-message { display: flex; }
.form-group .success-check { position: absolute; right: 1rem; top: 2.55rem; color: var(--success); display: none; }
.form-group.is-valid .success-check { display: block; }

.checkbox-row { display: flex; align-items: flex-start; gap: 0.7rem; }
.checkbox-row input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent-cyan); flex-shrink: 0;
}
.checkbox-row label { font-size: 0.85rem; color: var(--text-secondary); font-weight: 400; }

.form-status-banner {
  display: none;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.3rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin-top: 1.2rem;
}
.form-status-banner.is-visible { display: flex; }
.form-status-banner.success { background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.35); color: var(--success); }
.form-status-banner.error { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.35); color: var(--danger); }

/* ----------------------------------------------------------------------
   23. Animations & Keyframes
   ---------------------------------------------------------------------- */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes typingBlink {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.85); }
  30% { opacity: 1; transform: scale(1); }
}
@keyframes waveBounce {
  0%, 100% { height: 14px; }
  50% { height: 70px; }
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

[data-animate] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-default), transform 0.7s var(--ease-default); }
[data-animate].in-view { opacity: 1; transform: translateY(0); }
[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }

/* ----------------------------------------------------------------------
   24. Accessibility helpers
   ---------------------------------------------------------------------- */
::selection { background: var(--accent-purple); color: #fff; }

.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--text-on-accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all var(--transition-fast);
  z-index: 900;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* Scrollbar (progressive enhancement, non-blocking) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-cyan); }

/* ----------------------------------------------------------------------
   Page intro loader (lightweight, no external deps)
   ---------------------------------------------------------------------- */
.page-loader {
  position: fixed; inset: 0; background: var(--bg-base);
  display: flex; align-items: center; justify-content: center;
  z-index: 10001; transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.is-hidden { opacity: 0; visibility: hidden; }
.loader-ring {
  width: 48px; height: 48px; border-radius: 50%;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent-cyan);
  animation: spinSlow 0.9s linear infinite;
}

/* ----------------------------------------------------------------------
   Misc components
   ---------------------------------------------------------------------- */
.badge-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: var(--radius-full);
  background: rgba(168,85,247,0.12); color: var(--accent-purple); border: 1px solid rgba(168,85,247,0.3);
}

.table-wrap { overflow-x: auto; }

.integration-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (min-width: 640px) { .integration-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 992px) { .integration-grid { grid-template-columns: repeat(6, 1fr); } }
.integration-tile {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); font-size: 1.5rem; color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.integration-tile:hover { color: var(--accent-cyan); transform: translateY(-4px); border-color: rgba(34,211,238,0.4); }

/* 404-like empty states / general card */
.info-banner { display: flex; align-items: center; gap: 1rem; padding: 1.3rem 1.6rem; }
.info-banner i { color: var(--accent-cyan); font-size: 1.3rem; }

/* Print styles (basic, satisfies broad compatibility checks) */
@media print {
  .site-header, .back-to-top, .mobile-menu, .page-loader { display: none !important; }
  body { background: #fff; color: #000; }
}
