/* ==========================================================================
   Íris AI API - Official Developer Portal & Website Stylesheet
   DSS-TECH Ecosystem • Quantum Gold & Cyber Ultraviolet Theme
   ========================================================================== */

:root {
  --bg-core: #040711;
  --bg-surface: #0a0f20;
  --bg-card: rgba(13, 19, 38, 0.75);
  --bg-card-hover: rgba(20, 29, 56, 0.85);
  --bg-code: #070a14;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(168, 85, 247, 0.35);
  --border-gold: rgba(251, 191, 36, 0.4);
  --border-cyan: rgba(56, 189, 248, 0.4);

  --accent-gold: #fbbf24;
  --accent-gold-glow: rgba(251, 191, 36, 0.25);
  --accent-purple: #a855f7;
  --accent-purple-light: #c084fc;
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --accent-ruby: #ef4444;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-core);
  color: var(--text-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Selection */
::selection {
  background: rgba(168, 85, 247, 0.35);
  color: #ffffff;
}

/* Background Gradients & Canvas */
#cyber-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.ambient-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
}

.ambient-glow-top {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, rgba(251, 191, 36, 0.08) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

/* Layout Wrapper */
.site-wrapper {
  position: relative;
  z-index: 10;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem 1.5rem;
}

/* Header & Navbar */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 7, 17, 0.9);
  margin-bottom: 2.5rem;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-logo-frame {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  padding: 2px;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid var(--border-glow);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.25);
  overflow: hidden;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.brand-group:hover .brand-logo-frame {
  transform: scale(1.05);
  border-color: var(--accent-gold);
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.35);
}

.brand-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.brand-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.2;
}

.brand-status-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #34d399;
  white-space: nowrap;
  margin-top: 0.15rem;
  line-height: 1.2;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  flex-shrink: 1;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition-fast);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

/* Live Heartbeat Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: #34d399;
  white-space: nowrap;
  flex-shrink: 0;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-ring 2s infinite ease-out;
  flex-shrink: 0;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; filter: drop-shadow(0 0 6px #10b981); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Language Selector */
.lang-selector-container {
  position: relative;
  flex-shrink: 0;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-purple);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #090e1f;
  border: 1px solid var(--border-glow);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8), 0 0 20px rgba(168, 85, 247, 0.2);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  display: none;
  min-width: 190px;
  max-height: 380px;
  overflow-y: auto;
  z-index: 200;
  backdrop-filter: blur(16px);
}

.lang-dropdown.open {
  display: block;
}

.lang-opt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: var(--transition-fast);
}

.lang-opt:hover, .lang-opt.active {
  background: rgba(168, 85, 247, 0.2);
  color: #ffffff;
}

/* Primary Action Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.55rem 1.25rem;
  background: linear-gradient(135deg, var(--accent-purple) 0%, #7e22ce 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition-normal);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.55);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.4rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-normal);
}

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

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.4rem;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #d97706 100%);
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.35);
  transition: var(--transition-normal);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.6);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem 0 4.5rem 0;
}

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

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-full);
  color: var(--accent-purple-light);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  width: fit-content;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.hero-title-highlight {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-gold) 60%, var(--accent-purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #ffffff;
}

.stat-val-gold { color: var(--accent-gold); }
.stat-val-purple { color: var(--accent-purple-light); }
.stat-val-cyan { color: var(--accent-cyan); }
.stat-val-emerald { color: var(--accent-emerald); }

.stat-lbl {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-top: 0.2rem;
}

/* 3D Interactive Pedestal Showcase */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.pedestal-3d-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(168, 85, 247, 0.2);
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  backdrop-filter: blur(16px);
}

.pedestal-3d-card:hover {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 60px rgba(251, 191, 36, 0.3);
  border-color: var(--border-gold);
}

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

.pedestal-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.pedestal-image-frame {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #02040a;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pedestal-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pedestal-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  box-shadow: 0 0 12px var(--accent-cyan);
  animation: scan-vertical 4s infinite linear;
  opacity: 0.7;
}

@keyframes scan-vertical {
  0% { top: 0%; opacity: 0; }
  20% { opacity: 0.8; }
  80% { opacity: 0.8; }
  100% { top: 100%; opacity: 0; }
}

.pedestal-footer {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pedestal-meta-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.pedestal-meta-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.pedestal-telemetry-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   FEATURE PILLARS SECTION
   ========================================================================== */
.section-wrapper {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem auto;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.6rem 0;
  color: #ffffff;
}

.section-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
  opacity: 0;
  transition: var(--transition-fast);
}

.pillar-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 25px rgba(168, 85, 247, 0.15);
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pillar-card:nth-child(1) .pillar-icon-box { border-color: rgba(251, 191, 36, 0.4); color: var(--accent-gold); background: rgba(251, 191, 36, 0.1); }
.pillar-card:nth-child(2) .pillar-icon-box { border-color: rgba(56, 189, 248, 0.4); color: var(--accent-cyan); background: rgba(56, 189, 248, 0.1); }
.pillar-card:nth-child(3) .pillar-icon-box { border-color: rgba(16, 185, 129, 0.4); color: var(--accent-emerald); background: rgba(16, 185, 129, 0.1); }
.pillar-card:nth-child(4) .pillar-icon-box { border-color: rgba(168, 85, 247, 0.4); color: var(--accent-purple-light); background: rgba(168, 85, 247, 0.1); }
.pillar-card:nth-child(5) .pillar-icon-box { border-color: rgba(239, 68, 68, 0.4); color: var(--accent-ruby); background: rgba(239, 68, 68, 0.1); }
.pillar-card:nth-child(6) .pillar-icon-box { border-color: rgba(59, 130, 246, 0.4); color: #60a5fa; background: rgba(59, 130, 246, 0.1); }

.pillar-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.pillar-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   INTERACTIVE PLAYGROUND SECTION
   ========================================================================== */
.playground-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(168, 85, 247, 0.15);
  overflow: hidden;
}

.playground-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.pg-tab-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.pg-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.pg-tab-btn.active {
  color: var(--accent-gold);
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.35);
}

.playground-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-subtle);
}

.playground-panel {
  background: var(--bg-code);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

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

.panel-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.code-editor-area {
  flex-grow: 1;
  min-height: 240px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #38bdf8;
  resize: vertical;
  outline: none;
  line-height: 1.5;
}

.code-editor-area:focus {
  border-color: var(--accent-purple);
}

.response-terminal {
  flex-grow: 1;
  min-height: 240px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #34d399;
  overflow-y: auto;
  line-height: 1.5;
  white-space: pre;
}

.playground-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--border-subtle);
}

.route-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.method-tag {
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.7rem;
}

.method-post { background: rgba(251, 191, 36, 0.2); color: var(--accent-gold); border: 1px solid rgba(251, 191, 36, 0.4); }
.method-get { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }

/* ==========================================================================
   CODE EXPLORER / SDK SECTION
   ========================================================================== */
.sdk-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.sdk-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.sdk-tab-group {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
}

.sdk-tab-btn {
  padding: 0.45rem 0.9rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: var(--transition-fast);
}

.sdk-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.sdk-tab-btn.active {
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
}

.btn-copy-code {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-copy-code:hover {
  color: #ffffff;
  border-color: var(--accent-gold);
}

.sdk-code-block {
  padding: 1.5rem;
  background: var(--bg-code);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.65;
  color: #e2e8f0;
  overflow-x: auto;
}

/* ==========================================================================
   ENDPOINTS DIRECTORY SECTION
   ========================================================================== */
.endpoints-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  flex-grow: 1;
  max-width: 480px;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition-fast);
}

.search-input:focus {
  border-color: var(--accent-purple);
  background: rgba(255, 255, 255, 0.06);
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.filter-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-tag-btn {
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-tag-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-tag-btn.active {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--accent-purple);
  color: #ffffff;
}

.endpoints-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.endpoint-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  backdrop-filter: blur(12px);
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.endpoint-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.endpoint-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.endpoint-path {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
}

.endpoint-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.endpoint-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.6rem;
}

.swagger-cta-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   PRICING & SLA SECTION
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  position: relative;
  transition: var(--transition-normal);
}

.pricing-card.featured {
  border-color: var(--border-glow);
  background: rgba(20, 29, 60, 0.85);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(168, 85, 247, 0.25);
  transform: scale(1.03);
}

.pricing-card.featured::before {
  content: 'POPULAR';
  position: absolute;
  top: -12px;
  right: 24px;
  background: linear-gradient(135deg, var(--accent-purple), #7e22ce);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.pricing-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.pricing-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  min-height: 40px;
}

.pricing-price-box {
  margin: 1.5rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.pricing-price {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #ffffff;
}

.pricing-period {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pricing-features svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 1.5rem 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 340px repeat(3, 1fr);
  gap: 3rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

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

.footer-brand-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  white-space: normal;
  word-wrap: break-word;
}

.footer-col-title {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 0.06em;
  margin-bottom: 1.1rem;
  white-space: nowrap;
}

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

.footer-links-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.84rem;
  white-space: nowrap;
  transition: var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   ARABIC (RTL) STYLING OVERRIDES
   ========================================================================== */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

[dir="rtl"] .search-input {
  padding: 0.75rem 2.5rem 0.75rem 1rem;
}

[dir="rtl"] .search-icon {
  left: auto;
  right: 0.85rem;
}

[dir="rtl"] .pricing-card.featured::before {
  right: auto;
  left: 24px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1200px) {
  .brand-sub {
    display: none;
  }
  .nav-menu {
    gap: 0.9rem;
  }
}

@media (max-width: 1040px) {
  .status-pill {
    display: none;
  }
  .nav-menu {
    gap: 0.75rem;
  }
}

@media (max-width: 960px) {
  .nav-menu {
    display: none;
  }
}

@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card.featured {
    transform: none;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .playground-body {
    grid-template-columns: 1fr;
  }
  .endpoints-grid {
    grid-template-columns: 1fr;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
