/* CSS FLOWFIN FRONTEND By DrD */
:root {
  --primary-color: #17c8bd;
  --secondary-color: #01274f;
  --blue-color: #0866b3;
  --primary-gradient: linear-gradient(135deg, #17c8bd 0%, #01274f 100%);
  --secondary-gradient: linear-gradient(135deg, #01274f 0%, #17c8bd 100%);
  --success-gradient: linear-gradient(135deg, #28a745 0%, #0a8a82 100%);
  --danger-gradient: linear-gradient(135deg, #ff6b6b 0%, #c44569 100%);
  --warning-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  --info-gradient: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  --shadow-soft: 0 8px 32px rgba(0,0,0,0.1);
  --shadow-hover: 0 15px 45px rgba(0,0,0,0.15);
  --sidebar-bg: linear-gradient(180deg, #01274f 0%, #0a3a6b 100%);
  --sidebar-glass: rgba(1,39,79,0.95);
  --text-primary: #ffffff;
  --text-secondary: rgba(255,255,255,0.8);
  --text-muted: rgba(255,255,255,0.6);
  --hover-bg: rgba(23,200,189,0.15);
  --active-bg: rgba(23,200,189,0.25);
  --border-color: rgba(23,200,189,0.2);
  --glass-effect: rgba(245,241,241,0.989);
}

[data-theme="dark"] {
  --bg: #020e1f;
  --bg2: #041a35;
  --bg3: #062048;
  --card-bg: rgba(1,39,79,0.6);
  --card-border: rgba(23,200,189,0.15);
  --nav-bg: rgba(2,14,31,0.92);
  --txt: #ffffff;
  --txt2: rgba(255,255,255,0.75);
  --txt3: rgba(255,255,255,0.45);
  --input-bg: rgba(1,39,79,0.5);
  --input-border: rgba(23,200,189,0.25);
  --divider: rgba(23,200,189,0.1);
  --sidebar-bg: rgba(1,39,79,0.8);
  --code-bg: rgba(0,0,0,0.3);
  --code-border: rgba(23,200,189,0.15);
  --search-bg: rgba(1,39,79,0.6);
  --callout-info: rgba(8,102,179,0.12);
  --callout-warn: rgba(245,158,11,0.1);
  --callout-danger: rgba(255,107,107,0.1);
  --callout-success: rgba(40,167,69,0.1);
}

[data-theme="light"] {
  --bg: #f0f4f8;
  --bg2: #e2ecf5;
  --bg3: #d0e2f0;
  --card-bg: rgba(255,255,255,0.85);
  --card-border: rgba(8,102,179,0.12);
  --nav-bg: rgba(255,255,255,0.94);
  --txt: #01274f;
  --txt2: rgba(1,39,79,0.75);
  --txt3: rgba(1,39,79,0.45);
  --input-bg: rgba(255,255,255,0.8);
  --input-border: rgba(8,102,179,0.2);
  --divider: rgba(8,102,179,0.1);
  --sidebar-bg: rgba(255,255,255,0.9);
  --code-bg: rgba(1,39,79,0.06);
  --code-border: rgba(8,102,179,0.15);
  --search-bg: rgba(255,255,255,0.8);
  --callout-info: rgba(8,102,179,0.07);
  --callout-warn: rgba(245,158,11,0.07);
  --callout-danger: rgba(255,107,107,0.07);
}

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

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

body {
  font-family: Helvetica, Georgia, Arial, Tahoma, Geneva, Verdana;
  background: var(--bg);
  color: var(--txt);
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

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

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--divider);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Helvetica, Georgia, Arial, Tahoma, Geneva, Verdana;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--txt);
  text-decoration: none;
}

.nav-logo span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--txt2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

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

.doc-search {
  flex: 1;
  max-width: 400px;
  margin: 0 2rem;
  position: relative;
}

.doc-search input {
  width: 100%;
  padding: 0.45rem 1rem 0.45rem 2.4rem;
  background: var(--search-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  color: var(--txt);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.doc-search input::placeholder {
  color: var(--txt3);
}

.doc-search input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(23,200,189,0.1);
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--txt3);
  pointer-events: none;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
  display: none;
  z-index: 300;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.search-results.show {
  display: block;
}

.search-result-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--txt2);
  border-bottom: 1px solid var(--divider);
  transition: background 0.15s;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--card-bg);
  color: var(--primary-color);
}

.search-result-item .sr-section {
  font-size: 0.7rem;
  color: var(--txt3);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  width: 44px;
  height: 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s;
  flex-shrink: 0;
}

.theme-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-gradient);
  transition: transform 0.3s;
}

[data-theme="light"] .theme-toggle::after {
  transform: translateX(20px);
}

.btn {
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-family: Helvetica, Georgia, Tahoma, Geneva, Verdana;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(23,200,189,0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(23,200,189,0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--txt2);
  border: 1px solid var(--divider);
}

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--txt);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--divider);
  padding: 1.5rem 2rem;
  z-index: 99;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: var(--txt2);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--divider);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  padding: 120px 2rem 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(23,200,189,0.12) 0%, transparent 70%),
              radial-gradient(ellipse 50% 50% at 10% 80%, rgba(8,102,179,0.08) 0%, transparent 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--divider) 1px, transparent 1px),
                    linear-gradient(90deg, var(--divider) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(23,200,189,0.1);
  border: 1px solid rgba(23,200,189,0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-color);
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-family: Helvetica, Georgia, Arial, Tahoma, Geneva, Verdana;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--txt);
}

.hero h1 .highlight {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--txt2);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-cta .btn {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--divider);
}

.hero-stat {
  text-align: left;
}

.hero-stat-num {
  font-family: Helvetica, Georgia, Arial, Tahoma, Geneva, Verdana;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-color);
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--txt3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== DASHBOARD PREVIEW ===== */
.dashboard-preview {
  position: relative;
}

.dash-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.dash-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-gradient);
}

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

.dash-title {
  font-family: Helvetica, Georgia, Arial, Tahoma, Geneva, Verdana;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--txt);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dash-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color);
  animation: pulse 2s infinite;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.kpi-box {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 0.75rem;
  text-align: center;
}

.kpi-val {
  font-family: Helvetica, Georgia, Arial, Tahoma, Geneva, Verdana;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
}

.kpi-lbl {
  font-size: 0.65rem;
  color: var(--txt3);
  margin-top: 2px;
}

.mini-chart {
  height: 80px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 0.5rem;
  background: var(--input-bg);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--primary-gradient);
  opacity: 0.7;
  transition: opacity 0.2s;
  animation: barGrow 1s ease backwards;
}

.bar:hover {
  opacity: 1;
}

.bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.bar:nth-child(2) { height: 65%; animation-delay: 0.15s; }
.bar:nth-child(3) { height: 50%; animation-delay: 0.2s; }
.bar:nth-child(4) { height: 80%; animation-delay: 0.25s; }
.bar:nth-child(5) { height: 55%; animation-delay: 0.3s; }
.bar:nth-child(6) { height: 90%; background: var(--success-gradient); animation-delay: 0.35s; }
.bar:nth-child(7) { height: 70%; animation-delay: 0.4s; }

@keyframes barGrow {
  from { height: 0; opacity: 0; }
}

.tx-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--divider);
  font-size: 0.8rem;
}

.tx-row:last-child {
  border-bottom: none;
}

.tx-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-right: 8px;
}

.tx-meta {
  flex: 1;
}

.tx-name {
  color: var(--txt);
  font-weight: 500;
  font-size: 0.78rem;
}

.tx-date {
  color: var(--txt3);
  font-size: 0.68rem;
}

.tx-amount {
  font-weight: 600;
  font-size: 0.82rem;
}

.tx-amount.pos {
  color: #28a745;
}

.tx-amount.neg {
  color: #ff6b6b;
}

.float-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  background: var(--success-gradient);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(40,167,69,0.4);
}

.float-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  min-width: 160px;
  box-shadow: var(--shadow-soft);
}

.float-card-lbl {
  font-size: 0.7rem;
  color: var(--txt3);
}

.float-card-val {
  font-family: Helvetica, Georgia, Arial, Tahoma, Geneva, Verdana;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
}

.float-card-diff {
  font-size: 0.7rem;
  color: #28a745;
}

/* ===== COMMON SECTIONS ===== */
section {
  position: relative;
  z-index: 1;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: Helvetica, Georgia, Arial, Tahoma, Geneva, Verdana;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--txt);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--txt2);
  line-height: 1.7;
  max-width: 600px;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== FEATURES ===== */
.features {
  /* padding-bottom: 20px */
  background: var(--bg2);
  padding-bottom: 20px;
}

.features-head {
  text-align: center;
  margin-bottom: 1rem;
}

.features-head .section-sub {
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.feat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 16px;
}

.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(23,200,189,0.4);
}

.feat-card:hover::after {
  opacity: 0.04;
}

.feat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.feat-title {
  font-family: Helvetica, Georgia, Arial, Tahoma, Geneva, Verdana;
  font-size: 1rem;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.feat-desc {
  font-size: 0.875rem;
  color: var(--txt2);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* ===== MODULES ===== */
.modules {
  padding-top: 30px;
  padding-bottom: 20px
}

.modules-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.modules-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.module-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.module-item:hover,
.module-item.active {
  border-color: var(--primary-color);
  background: var(--hover-bg);
}

.module-item.active {
  background: var(--active-bg);
}

.module-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.module-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--txt);
  margin-bottom: 2px;
}

.module-desc {
  font-size: 0.8rem;
  color: var(--txt3);
  line-height: 1.5;
}

/* ===== PRICING ===== */
.pricing {
  padding-bottom: 20px;
  padding-top: 30px;
  background: var(--bg2);
}

.pricing-head {
  text-align: center;
  margin-bottom: 4rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.price-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(10px);
}

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.price-card.featured {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(23,200,189,0.08) 0%, rgba(1,39,79,0.6) 100%);
}

.price-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
}

.price-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--primary-gradient);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-plan {
  font-family: Helvetica, Georgia, Arial, Tahoma, Geneva, Verdana;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--txt3);
  margin-bottom: 1rem;
}

.price-amount {
  font-family: Helvetica, Georgia, Arial, Tahoma, Geneva, Verdana;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--txt);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.price-amount sup {
  font-size: 1.2rem;
  vertical-align: super;
}

.price-amount span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--txt3);
}

.price-desc {
  font-size: 0.85rem;
  color: var(--txt2);
  margin-bottom: 1.5rem;
}

.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--txt2);
}

.price-features li::before {
  content: '✓';
  width: 18px;
  height: 18px;
  background: rgba(23,200,189,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--primary-color);
  flex-shrink: 0;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding-bottom: 20px;
  padding-top: 30px;
}

.testimonials-head {
  text-align: center;
  margin-bottom: 4rem;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testi-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.75rem;
  backdrop-filter: blur(10px);
  transition: transform 0.3s;
}

.testi-card:hover {
  transform: translateY(-3px);
}

.testi-stars {
  color: #f59e0b;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.testi-text {
  font-size: 0.9rem;
  color: var(--txt2);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 0.85rem;
}

.testi-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--txt);
}

.testi-role {
  font-size: 0.75rem;
  color: var(--txt3);
}

/* ===== CTA BAND ===== */
.cta-band {
  padding: 80px 0;
  background: var(--bg2);
}

.cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem;
  background: var(--primary-gradient);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='80' fill='rgba(255,255,255,0.04)'/%3E%3Ccircle cx='150' cy='150' r='60' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E");
  background-size: cover;
}

.cta-title {
  font-family: Helvetica, Georgia, Arial, Tahoma, Geneva, Verdana;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  position: relative;
}

.cta-sub {
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  position: relative;
}

.cta-inner .btn-white {
  background: white;
  color: var(--secondary-color);
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.cta-inner .btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg3);
  border-top: 1px solid var(--divider);
  padding: 60px 0 30px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.footer-brand p {
  color: var(--txt3);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 260px;
}

.footer-col h4 {
  font-family: Helvetica, Georgia, Arial, Tahoma, Geneva, Verdana;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--txt);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--txt3);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid var(--divider);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--txt3);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  color: var(--txt2);
  transition: all 0.2s;
}

.social-btn:hover {
  background: var(--hover-bg);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== PAGE HEADER (CONTACT/DOCS) ===== */
.page-header {
  padding: 120px 2rem 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(23,200,189,0.1) 0%, transparent 70%);
}

.page-header-inner {
  position: relative;
  z-index: 1;
}

.page-title {
  font-family: Helvetica, Georgia, Arial, Tahoma, Geneva, Verdana;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--txt);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.page-title .hl {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-sub {
  font-size: 1rem;
  color: var(--txt2);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  padding: 40px 2rem 100px;
  position: relative;
  z-index: 1;
}

.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s, transform 0.2s;
}

.info-card:hover {
  border-color: rgba(23,200,189,0.4);
  transform: translateX(4px);
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.info-label {
  font-size: 0.75rem;
  color: var(--txt3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.info-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--txt);
  margin-bottom: 2px;
}

.info-val {
  font-size: 0.875rem;
  color: var(--txt2);
  line-height: 1.5;
}

.demo-card {
  background: var(--primary-gradient);
  border-radius: 16px;
  padding: 1.75rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.demo-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.demo-card h3 {
  font-family: Helvetica, Georgia, Arial, Tahoma, Geneva, Verdana;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
}

.demo-card p {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 1rem;
  line-height: 1.6;
  position: relative;
}

.btn-white {
  background: white;
  color: var(--secondary-color);
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  border: none;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.form-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
}

.form-title {
  font-family: Helvetica, Georgia, Arial, Tahoma, Geneva, Verdana;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 0.5rem;
}

.form-subtitle {
  font-size: 0.875rem;
  color: var(--txt2);
  margin-bottom: 2rem;
}

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

.form-full {
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--txt2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.input-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--txt3);
  pointer-events: none;
}

input, select, textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 0.7rem 0.9rem 0.7rem 2.4rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--txt);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}

textarea {
  padding-left: 0.9rem;
  resize: vertical;
  min-height: 120px;
}

select {
  cursor: pointer;
}

input::placeholder, textarea::placeholder {
  color: var(--txt3);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(23,200,189,0.12);
}

.interests-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--txt2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.6rem;
}

.interest-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 0.75rem;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.8rem;
  color: var(--txt2);
}

.interest-item:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.interest-item input[type="checkbox"] {
  display: none;
}

.interest-item .check-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--input-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
  transition: all 0.2s;
}

.interest-item.checked {
  border-color: var(--primary-color);
  background: rgba(23,200,189,0.1);
  color: var(--primary-color);
}

.interest-item.checked .check-icon {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.form-submit-area {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.privacy-note {
  font-size: 0.78rem;
  color: var(--txt3);
  max-width: 260px;
  line-height: 1.5;
}

.btn-submit {
  padding: 0.85rem 2rem;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(23,200,189,0.3);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(23,200,189,0.4);
}

.btn-submit:active {
  transform: translateY(0);
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem;
  gap: 1rem;
}

.form-success.show {
  display: flex;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--success-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  animation: popIn 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
}

@keyframes popIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-title {
  font-family: Helvetica, Georgia, Arial, Tahoma, Geneva, Verdana;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--txt);
}

.success-sub {
  font-size: 0.9rem;
  color: var(--txt2);
  line-height: 1.6;
  max-width: 320px;
}

/* ===== FAQ ===== */
.faq-section {
  padding: 80px 2rem;
  background: var(--bg2);
  position: relative;
  z-index: 1;
}

.faq-inner {
  max-width: 780px;
  margin: 0 auto;
}

.faq-head {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-title {
  font-family: Helvetica, Georgia, Arial, Tahoma, Geneva, Verdana;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--txt);
  margin-bottom: 0.5rem;
}

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

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: rgba(23,200,189,0.3);
}

.faq-question {
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--txt);
  gap: 1rem;
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.3s;
}

.faq-item.open .faq-icon {
  background: var(--primary-color);
  color: white;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  font-size: 0.875rem;
  color: var(--txt2);
  line-height: 1.7;
  padding: 0 1.25rem;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 1.25rem 1.1rem;
}

/* ===== UTILITY CLASSES ===== */
.grad {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.doc-badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-color);
  background: rgba(23,200,189,0.12);
  border: 1px solid rgba(23,200,189,0.25);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 4px;
}

/* ===== DOCUMENTATION LAYOUT ===== */
.doc-layout {
  display: flex;
  padding-top: 60px;
  min-height: 100vh;
}

.doc-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: fixed;
  top: 60px;
  left: 0;
  bottom: 0;
  background: var(--sidebar-bg);
  backdrop-filter: blur(15px);
  border-right: 1px solid var(--divider);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.5rem 0;
  transition: transform 0.3s, background 0.4s;
  z-index: 100;
}

.doc-sidebar::-webkit-scrollbar {
  width: 4px;
}

.doc-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.doc-sidebar::-webkit-scrollbar-thumb {
  background: rgba(23,200,189,0.25);
  border-radius: 2px;
}

.sidebar-section {
  margin-bottom: 2rem;
}

.sidebar-section-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--txt3);
  padding: 0 1.25rem;
  margin-bottom: 0.5rem;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.45rem 1.25rem;
  font-size: 0.855rem;
  color: var(--txt2);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  border-left: 2px solid transparent;
}

.sidebar-item:hover {
  color: var(--primary-color);
  background: rgba(23,200,189,0.06);
}

.sidebar-item.active {
  color: var(--primary-color);
  background: rgba(23,200,189,0.1);
  border-left-color: var(--primary-color);
  font-weight: 500;
}

.sidebar-item .si-icon {
  font-size: 14px;
  flex-shrink: 0;
  opacity: 0.7;
}

.sidebar-item .si-badge {
  margin-left: auto;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(23,200,189,0.15);
  color: var(--primary-color);
}

.doc-content {
  flex: 1;
  margin-left: 260px;
  padding: 2.5rem 3rem 4rem;
  max-width: 900px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--txt3);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--txt3);
}

.doc-page {
  display: none;
}

.doc-page.active {
  display: block;
}

.doc-page-header {
  border-bottom: 1px solid var(--divider);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.doc-page-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.doc-page-title {
  font-family: Helvetica, Georgia, Arial, Tahoma, Geneva, Verdana;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--txt);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.doc-page-sub {
  font-size: 1rem;
  color: var(--txt2);
  line-height: 1.7;
  max-width: 680px;
}

.doc-page-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--txt3);
}

/* Content Typography */
.doc-content h2 {
  font-family: Helvetica, Georgia, Arial, Tahoma, Geneva, Verdana;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--txt);
  margin: 2rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  scroll-margin-top: 80px;
}

.doc-content h2::before {
  content: '';
  width: 4px;
  height: 1.3rem;
  background: var(--primary-gradient);
  border-radius: 2px;
  display: inline-block;
}

.doc-content h3 {
  font-family: Helvetica, Georgia, Arial, Tahoma, Geneva, Verdana;
  font-size: 1rem;
  font-weight: 700;
  color: var(--txt);
  margin: 1.5rem 0 0.75rem;
  scroll-margin-top: 80px;
}

.doc-content p {
  font-size: 0.9rem;
  color: var(--txt2);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.doc-content ul, .doc-content ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.doc-content li {
  font-size: 0.9rem;
  color: var(--txt2);
  line-height: 1.7;
  margin-bottom: 0.4rem;
}

.doc-content a {
  color: var(--primary-color);
  text-decoration: none;
}

.doc-content a:hover {
  text-decoration: underline;
}

strong {
  color: var(--txt);
  font-weight: 600;
}

/* Code blocks */
.code-block {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 10px;
  overflow: hidden;
  margin: 1.25rem 0;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: rgba(0,0,0,0.15);
  border-bottom: 1px solid var(--code-border);
  font-size: 0.75rem;
}

.code-lang {
  font-family: 'JetBrains Mono', monospace;
  color: var(--primary-color);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.copy-btn {
  background: none;
  border: 1px solid var(--code-border);
  border-radius: 5px;
  padding: 2px 8px;
  color: var(--txt3);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.copy-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.copy-btn.copied {
  color: #28a745;
  border-color: #28a745;
}

pre {
  padding: 1.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--txt2);
  overflow-x: auto;
}

pre .kw { color: #17c8bd; }
pre .str { color: #f39c12; }
pre .num { color: #e74c3c; }
pre .cmt { color: var(--txt3); font-style: italic; }
pre .key { color: #9b59b6; }
pre .func { color: #3498db; }
pre .ok { color: #28a745; }

code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82em;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--primary-color);
}

/* Callouts */
.callout {
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  display: flex;
  gap: 0.75rem;
  border: 1px solid;
  font-size: 0.875rem;
  line-height: 1.65;
}

.callout-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.callout-content strong {
  display: block;
  margin-bottom: 3px;
}

.callout.info {
  background: var(--callout-info);
  border-color: rgba(8,102,179,0.25);
}

.callout.info .callout-icon {
  color: #0866b3;
}

.callout.info strong {
  color: #4d9ee8;
}

.callout.warn {
  background: var(--callout-warn);
  border-color: rgba(245,158,11,0.25);
}

.callout.warn .callout-icon {
  color: #f59e0b;
}

.callout.warn strong {
  color: #f59e0b;
}

.callout.danger {
  background: var(--callout-danger);
  border-color: rgba(255,107,107,0.25);
}

.callout.danger .callout-icon {
  color: #ff6b6b;
}

.callout.danger strong {
  color: #ff6b6b;
}

.callout.success {
  background: var(--callout-success);
  border-color: rgba(40,167,69,0.25);
}

.callout.success .callout-icon {
  color: #28a745;
}

.callout.success strong {
  color: #28a745;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border-radius: 10px;
  border: 1px solid var(--card-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead {
  background: var(--code-bg);
}

thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-family: Helvetica, Georgia, Arial, Tahoma, Geneva, Verdana;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--txt3);
  border-bottom: 1px solid var(--divider);
}

tbody td {
  padding: 0.7rem 1rem;
  color: var(--txt2);
  font-size: 0.875rem;
  border-bottom: 1px solid var(--divider);
}

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

tbody tr:hover td {
  background: rgba(23,200,189,0.04);
}

/* Cards grid */
.doc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.doc-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.25rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  display: block;
}

.doc-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.doc-card-icon {
  font-size: 24px;
  margin-bottom: 0.75rem;
}

.doc-card-title {
  font-family: Helvetica, Georgia, Arial, Tahoma, Geneva, Verdana;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 0.3rem;
}

.doc-card-desc {
  font-size: 0.8rem;
  color: var(--txt3);
  line-height: 1.5;
}

/* Steps */
.steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.25rem 0;
}

.step {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: white;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content {
  flex: 1;
}

.step-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--txt);
  margin-bottom: 4px;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--txt2);
  line-height: 1.6;
}

/* Badges for methods */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-get {
  background: rgba(40,167,69,0.15);
  color: #28a745;
}

.badge-post {
  background: rgba(8,102,179,0.15);
  color: #4d9ee8;
}

.badge-put {
  background: rgba(245,158,11,0.15);
  color: #f59e0b;
}

.badge-delete {
  background: rgba(255,107,107,0.15);
  color: #ff6b6b;
}

/* API endpoint */
.endpoint {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.endpoint-path {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--txt2);
}

.endpoint-desc {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--txt3);
}

/* On this page */
.on-this-page {
  position: fixed;
  top: 80px;
  right: 1.5rem;
  width: 200px;
  display: none;
}

@media (min-width: 1300px) {
  .on-this-page {
    display: block;
  }
}

.otp-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--txt3);
  margin-bottom: 0.75rem;
}

.otp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.otp-list a {
  font-size: 0.8rem;
  color: var(--txt3);
  text-decoration: none;
  padding: 2px 0 2px 10px;
  border-left: 2px solid var(--divider);
  display: block;
  transition: all 0.15s;
  line-height: 1.4;
}

.otp-list a:hover,
.otp-list a.active {
  color: var(--primary-color);
  border-left-color: var(--primary-color);
}

/* Page navigation (prev/next) */
.page-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--divider);
  gap: 1rem;
}

.page-nav-btn {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 0.875rem 1.25rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  flex: 1;
  max-width: 240px;
}

.page-nav-btn:hover {
  border-color: var(--primary-color);
}

.page-nav-btn.next {
  text-align: right;
  margin-left: auto;
}

.pnb-label {
  font-size: 0.72rem;
  color: var(--txt3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}

.pnb-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--txt);
}

/* Mobile sidebar toggle */
.sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-gradient);
  border: none;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 4px 16px rgba(23,200,189,0.4);
  transition: transform 0.2s;
}

.sidebar-toggle:hover {
  transform: scale(1.05);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}

.sidebar-overlay.show {
  display: block;
}

/* ===== RESPONSIVE STYLES (grouped) ===== */
@media (max-width: 1024px) {
  .doc-content {
    max-width: 100%;
  }
  .doc-search {
    max-width: 260px;
  }
}

@media (max-width: 900px) {
  .nav-links,
  .nav-actions .btn-ghost {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .dashboard-preview {
    order: -1;
  }
  .float-card {
    display: none;
  }
  .modules-inner {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .contact-inner {
    grid-template-columns: 1fr;
  }
  .contact-info {
    order: 1;
  }
}

@media (max-width: 768px) {
  .doc-sidebar {
    transform: translateX(-100%);
    width: 280px;
    box-shadow: 4px 0 20px rgba(0,0,0,0.3);
  }
  .doc-sidebar.open {
    transform: translateX(0);
  }
  .doc-content {
    margin-left: 0;
    padding: 1.5rem 1.25rem 3rem;
  }
  .sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .doc-search {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
}

@media (max-width: 600px) {
  nav {
    padding: 0 1.25rem;
  }
  .hero {
    padding: 100px 1.25rem 60px;
  }
  .container {
    padding: 0 1.25rem;
  }
  .hero-stats {
    gap: 1.25rem;
  }
  .kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-header {
    padding: 100px 1.25rem 40px;
  }
  .contact-section {
    padding: 20px 1.25rem 60px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-card {
    padding: 1.5rem;
  }
  .form-submit-area {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-submit {
    width: 100%;
    justify-content: center;
  }
  .faq-section {
    padding: 60px 1.25rem;
  }
  .footer-bottom {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 0 1rem;
  }
  .doc-page-title {
    font-size: 1.5rem;
  }
}

.info-val a {
    text-decoration: none;
    font-size: 1rem;
    color: var(--txt2);
    transition: all 0.2s ease;
    display: inline-block;
}

.info-val a:hover {
    color: var(--primary-color);
    transform: scale(1.02);
}

 /* Classes personnalisées pour la page À propos */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.about-text p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--txt2);
}
.about-stats-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--card-border);
}
.stat-icon {
    font-size: 3rem;
    color: var(--primary-color);
}
.stat-number {
    font-size: 2rem;
    font-weight: 800;
    margin: 1rem 0 0.5rem;
    color: var(--primary-color);
    font-family:  Helvetica, Georgia, Arial, Tahoma, Geneva, Verdana;
}
.stat-label {
    font-size: 0.9rem;
    color: var(--txt3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.stats-divider {
    margin: 1rem 0;
    border-color: var(--divider);
}
.values-grid, .team-grid, .partners-tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.value-card, .team-card, .partner-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--card-border);
    transition: transform 0.3s, box-shadow 0.3s;
}
.value-card:hover, .team-card:hover, .partner-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.value-icon, .team-icon, .partner-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}
.value-title, .team-name, .partner-name {
    margin: 1rem 0 0.5rem;
    font-family:  Helvetica, Georgia, Arial, Tahoma, Geneva, Verdana;
    font-weight: 700;
    color: var(--txt);
}
.team-role {
    color: var(--primary-color);
    font-weight: 500;
}
.partner-desc, .team-bio {
    font-size: 0.85rem;
    color: var(--txt3);
    margin-top: 0.25rem;
}
.bank-logos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}
.bank-item {
    background: white;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s;
}
.bank-item:hover {
    transform: scale(1.05);
}
.partner-cta {
    margin-top: 3rem;
    text-align: center;
}
.subsection-title {
    font-family:  Helvetica, Georgia, Arial, Tahoma, Geneva, Verdana;
    margin: 2rem 0 1rem;
    font-size: 1.3rem;
    color: var(--txt);
}
.text-center {
    text-align: center;
}
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.error {
    color: #ff6b6b;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}
.interest-item {
    cursor: pointer;
}
.interest-item.checked {
    border-color: var(--primary-color);
    background: rgba(23,200,189,0.1);
    color: var(--primary-color);
}
