/* ==========================================================================
   Ebere Design System — Warm AI-Native Landing
   Palette: Burnt Orange + Golden Amber | Fonts: Varela Round / Nunito Sans
   ========================================================================== */

/* 1. Global Reset & Custom Properties */
:root {
  /* Core palette — derived from the Ebere icon */
  --color-primary: #C04A1D;
  --color-primary-light: #D97A4A;
  --color-primary-dark: #9A3A14;
  --color-secondary: #D4A429;
  --color-secondary-light: #E5C462;
  --color-secondary-dark: #B08820;

  /* Surfaces */
  --color-bg: #FFFAF5;
  --color-bg-warm: #FFF5EB;
  --color-bg-card: rgba(255, 255, 255, 0.82);
  --color-bg-card-solid: #ffffff;
  --color-bg-hero-gradient: linear-gradient(160deg, #FFFAF5 0%, #FDEBD0 40%, #FFF5EB 100%);
  --color-bg-section-alt: #FFF3E6;

  /* Text */
  --color-text: #2D1A0E;
  --color-text-sub: #5C432E;
  --color-text-muted: #9B8574;
  --color-text-on-primary: #ffffff;

  /* Borders */
  --color-border: #F0DCC8;
  --color-border-strong: #DBBFA3;

  /* Brand channels */
  --color-tg: #0088CC;
  --color-wa: #25D366;

  /* Accents */
  --color-success: #22C55E;
  --color-error: #EF4444;
  --color-warning: #D4A429;
  --color-info: #3B82F6;

  /* Fonts */
  --font-display: 'Varela Round', 'Nunito Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-soft: 0 2px 16px rgba(192, 74, 29, 0.06);
  --shadow-card: 0 4px 24px rgba(192, 74, 29, 0.08), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 8px 40px rgba(192, 74, 29, 0.14), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-glow: 0 0 40px rgba(192, 74, 29, 0.15);
  --shadow-btn: 0 2px 12px rgba(192, 74, 29, 0.25);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.18s var(--ease-smooth);
  --transition-med: 0.28s var(--ease-smooth);
}

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

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

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

/* Ambient gradient blobs */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  filter: blur(100px);
  opacity: 0.35;
}

body::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-primary-light), transparent 70%);
  top: -200px;
  right: -150px;
}

body::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-secondary-light), transparent 70%);
  bottom: -100px;
  left: -150px;
}

/* App wrapper above blobs */
.app-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* ==========================================================================
   2. Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.15;
}

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

.text-primary { color: var(--color-primary) !important; }
.text-success { color: var(--color-success) !important; }
.text-error { color: var(--color-error) !important; }
.text-secondary { color: var(--color-warning) !important; }
.text-muted { color: var(--color-text-muted) !important; }
.text-center { text-align: center; }

/* ==========================================================================
   3. Buttons
   ========================================================================== */
.btn {
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-solid {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-text-on-primary);
  box-shadow: var(--shadow-btn);
}

.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(192, 74, 29, 0.35);
  background: linear-gradient(135deg, #D97A4A, var(--color-primary));
}

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

.btn-green {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(212, 164, 41, 0.3);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(212, 164, 41, 0.4);
}

.btn-outline {
  background: var(--color-bg-card);
  color: var(--color-primary);
  border: 1.5px solid var(--color-border-strong);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(192, 74, 29, 0.06);
  border-color: var(--color-primary-light);
  transform: translateY(-2px);
}

.btn-large {
  padding: 15px 30px;
  font-size: 16px;
}

.w-100 { width: 100%; }

.btn i, .btn svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   4. Navigation
   ========================================================================== */
.navbar {
  height: var(--nav-height);
  background: rgba(255, 250, 245, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(240, 220, 200, 0.5);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 32px;
  width: 32px;
  object-fit: contain;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.5px;
  color: var(--color-primary);
}

.logo-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  background: var(--color-bg-card);
  color: var(--color-primary);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text-sub);
  font-size: 14px;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transition: width var(--transition-fast);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  gap: 12px;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--color-border-strong);
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-text);
  transition: background var(--transition-fast);
}

.mobile-nav-toggle:hover {
  background: rgba(192, 74, 29, 0.06);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--color-bg);
  border-left: 1px solid var(--color-border);
  z-index: 200;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  transition: right 0.35s var(--ease-smooth);
  box-shadow: -8px 0 40px rgba(0,0,0,0.1);
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-close {
  background: none;
  border: 1.5px solid var(--color-border-strong);
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-text);
  transition: background var(--transition-fast);
}

.drawer-close:hover {
  background: rgba(192, 74, 29, 0.06);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.drawer-links a {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text-sub);
  font-size: 18px;
  transition: color var(--transition-fast);
}

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

.drawer-actions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Mobile drawer overlay */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(45, 26, 14, 0.4);
  z-index: 199;
  backdrop-filter: blur(4px);
}

.drawer-overlay.active {
  display: block;
}

/* ==========================================================================
   5. Section Utilities
   ========================================================================== */
.section-block {
  padding: 100px 28px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.section-header {
  margin-bottom: 56px;
  max-width: 620px;
}

.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-label::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
}

.section-title {
  font-size: 40px;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.1;
}

.section-subtitle {
  font-size: 17px;
  color: var(--color-text-sub);
  line-height: 1.6;
}

/* ==========================================================================
   6. Hero Section
   ========================================================================== */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 28px 100px;
  min-height: calc(100vh - var(--nav-height));
  width: 100%;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Status badge */
.tag-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-bg-card);
  backdrop-filter: blur(8px);
  border: 1.5px solid var(--color-border);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-sub);
  margin-bottom: 28px;
  animation: fadeInDown 0.6s var(--ease-smooth) both;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-secondary);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 164, 41, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(212, 164, 41, 0); }
}

.hero-headline {
  font-size: 64px;
  letter-spacing: -2px;
  margin-bottom: 20px;
  line-height: 1.05;
  animation: fadeInUp 0.6s var(--ease-smooth) 0.1s both;
}

.hero-headline .highlight {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtext {
  font-size: 18px;
  max-width: 520px;
  margin-bottom: 36px;
  color: var(--color-text-sub);
  line-height: 1.7;
  animation: fadeInUp 0.6s var(--ease-smooth) 0.2s both;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-bottom: 56px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s var(--ease-smooth) 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  animation: fadeInUp 0.6s var(--ease-smooth) 0.4s both;
}

.stat-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
}

.stat-label {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Entrance animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   7. Chat Preview Card (Hero right)
   ========================================================================== */
.hero-chat-preview {
  width: 100%;
  max-width: 420px;
  animation: floatIn 0.8s var(--ease-smooth) 0.3s both;
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(32px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-preview-card {
  background: var(--color-bg-card-solid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-med);
}

.chat-preview-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.chat-preview-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-warm);
}

.chat-preview-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: white;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.chat-avatar .online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  background: var(--color-secondary);
  border: 2px solid var(--color-bg-card-solid);
  border-radius: 50%;
}

.chat-avatar-info {
  display: flex;
  flex-direction: column;
}

.chat-avatar-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text);
}

.chat-avatar-status {
  font-size: 12px;
  color: var(--color-secondary);
  font-weight: 600;
}

.chat-preview-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
  background: var(--color-bg);
}

/* Preview chat bubbles */
.preview-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.5;
  animation: bubbleIn 0.3s var(--ease-smooth) both;
}

.preview-bubble-user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  border-bottom-right-radius: 4px;
}

.preview-bubble-bot {
  align-self: flex-start;
  background: var(--color-bg-card-solid);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-bottom-left-radius: 4px;
}

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.preview-typing {
  display: flex;
  gap: 5px;
  padding: 12px 16px;
  background: var(--color-bg-card-solid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  width: fit-content;
}

.preview-typing-dot {
  width: 7px;
  height: 7px;
  background: var(--color-primary-light);
  border-radius: 50%;
  animation: typingPulse 1.2s infinite ease-in-out;
}

.preview-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.preview-typing-dot:nth-child(3) { animation-delay: 0.3s; }

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

.chat-preview-input {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-card-solid);
}

.chat-preview-input span {
  font-size: 14px;
  color: var(--color-text-muted);
  flex: 1;
}

.chat-preview-input .send-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.chat-preview-input .send-icon svg,
.chat-preview-input .send-icon i {
  width: 16px;
  height: 16px;
}

/* Channel badges under chat preview */
.channel-badges {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
}

.channel-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-sub);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
}

.channel-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.channel-badge.tg { border-color: rgba(0,136,204,0.3); }
.channel-badge.tg:hover { background: rgba(0,136,204,0.08); color: var(--color-tg); }

.channel-badge.wa { border-color: rgba(37,211,102,0.3); }
.channel-badge.wa:hover { background: rgba(37,211,102,0.08); color: var(--color-wa); }

.channel-badge.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  background: var(--color-bg-card);
  border-color: var(--color-border);
  color: var(--color-text-muted) !important;
}
.channel-badge.disabled:hover {
  transform: none;
  box-shadow: none;
  background: var(--color-bg-card);
}

.badge-soon {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-warm);
  color: var(--color-primary);
  border: 1px solid var(--color-border-strong);
  margin-left: 8px;
  vertical-align: middle;
  text-transform: uppercase;
}

.channel-badge i, .channel-badge svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   8. How It Works Section
   ========================================================================== */
.how-it-works-bg {
  background: var(--color-bg-section-alt);
  position: relative;
}

.how-it-works-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-strong), transparent);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step-counter;
}

.step-card {
  background: var(--color-bg-card-solid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition-med);
  cursor: pointer;
  position: relative;
  counter-increment: step-counter;
}

.step-card::before {
  content: counter(step-counter);
  position: absolute;
  top: -14px;
  left: 24px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: white;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-primary-light);
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(192, 74, 29, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.step-icon i, .step-icon svg {
  width: 24px;
  height: 24px;
}

.step-title {
  font-size: 20px;
  font-weight: 700;
}

.step-desc {
  font-size: 15px;
  color: var(--color-text-sub);
  line-height: 1.6;
}

/* ==========================================================================
   9. Features Grid
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--color-bg-card-solid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-med);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-primary-light);
}

.feature-card:hover::after {
  opacity: 1;
}

.card-icon-container {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(192, 74, 29, 0.08);
  color: var(--color-primary);
  transition: background var(--transition-fast);
}

.feature-card:hover .card-icon-container {
  background: rgba(192, 74, 29, 0.14);
}

.card-icon-container i,
.card-icon-container svg {
  width: 22px;
  height: 22px;
}

.card-title {
  font-size: 19px;
  margin-bottom: 10px;
  font-weight: 700;
}

.card-desc {
  font-size: 14px;
  color: var(--color-text-sub);
  margin-bottom: 20px;
  flex-grow: 1;
  line-height: 1.6;
}

.card-code {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg-warm);
}

.code-header {
  background: rgba(192, 74, 29, 0.04);
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 6px 14px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.code-content {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 12px 14px;
  color: var(--color-text);
  word-break: break-word;
  line-height: 1.5;
}

/* ==========================================================================
   10. Playground / Simulator Section
   ========================================================================== */
.playground-bg {
  background: var(--color-bg-section-alt);
  position: relative;
}

.playground-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-strong), transparent);
}

.presets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.preset-btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  background: var(--color-bg-card-solid);
  color: var(--color-text-sub);
  border: 1.5px solid var(--color-border);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.preset-btn i, .preset-btn svg {
  width: 15px;
  height: 15px;
}

.preset-btn:hover {
  border-color: var(--color-primary-light);
  color: var(--color-primary);
  background: rgba(192, 74, 29, 0.04);
}

.preset-btn.active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-btn);
}

.workspace-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

/* Workspace Windows */
.workspace-window {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-card-solid);
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-med);
}

.workspace-window:hover {
  box-shadow: var(--shadow-card-hover);
}

.window-header {
  height: 48px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-warm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}

.window-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.window-title-group i, .window-title-group svg {
  width: 16px;
  height: 16px;
}

.window-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--color-text);
}

.window-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
}

.status-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  border: 1.5px solid var(--color-border);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--color-bg-card-solid);
  color: var(--color-secondary);
}

.status-pill.pulse::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--color-secondary);
  border-radius: 50%;
  margin-right: 6px;
  animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}

.window-body {
  padding: 16px;
}

/* Dashboard / Terminal */
.dashboard-preview {
  max-width: 100%;
}

.terminal-body {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  background: #2D1A0E;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 280px;
  padding: 18px;
  color: #F0DCC8;
}

.terminal-line {
  color: #F0DCC8;
  word-break: break-all;
}

.term-prompt {
  color: var(--color-primary-light);
  font-weight: 700;
}

.term-success {
  color: var(--color-secondary-light);
}

/* Chat Simulator */
.chat-window {
  min-height: 500px;
}

.avatar-group {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: white;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-status {
  width: 8px;
  height: 8px;
  background-color: var(--color-secondary);
  border: 2px solid var(--color-bg-card-solid);
  border-radius: 50%;
  position: absolute;
  bottom: -2px;
  right: -2px;
}

.chat-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 380px;
  overflow-y: auto;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.chat-bubble {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.5;
  animation: slide-up 0.25s var(--ease-smooth);
}

.bubble-user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  border-bottom-right-radius: 4px;
}

.bubble-bot {
  align-self: flex-start;
  background: var(--color-bg-card-solid);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

@keyframes slide-up {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.typing-indicator {
  display: flex;
  gap: 5px;
  padding: 10px 14px;
  background: var(--color-bg-card-solid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  align-self: flex-start;
}

.typing-dot {
  width: 7px;
  height: 7px;
  background: var(--color-primary-light);
  border-radius: 50%;
  animation: typing-bounce 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }

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

.chat-input-area {
  display: flex;
  border-top: none;
}

#chatInput {
  flex-grow: 1;
  border: none;
  padding: 16px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--color-bg-card-solid);
  outline: none;
  color: var(--color-text);
}

#chatInput::placeholder {
  color: var(--color-text-muted);
}

.chat-send-btn {
  background: var(--color-bg-card-solid);
  border: none;
  border-left: 1px solid var(--color-border);
  width: 52px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  color: var(--color-primary);
}

.chat-send-btn:hover {
  background: rgba(192, 74, 29, 0.06);
}

.chat-send-btn i, .chat-send-btn svg {
  width: 18px;
  height: 18px;
}

/* Database Panel */
.database-window {
  min-height: 500px;
}

.database-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-warm);
}

.tab-btn {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  background: none;
  border: none;
  border-right: 1px solid var(--color-border);
  padding: 10px 20px;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--color-primary);
  background: rgba(192, 74, 29, 0.04);
}

.tab-btn.active {
  background: var(--color-bg-card-solid);
  color: var(--color-primary);
}

.database-body {
  height: 432px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 0;
  background: var(--color-bg-card-solid);
}

.tab-content {
  display: none;
  padding: 16px;
  height: 100%;
}

.tab-content.active {
  display: block;
}

#jsonDisplay {
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--color-primary);
}

/* Ledger Visualizer */
.ledger-visualizer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.ledger-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.ledger-stat {
  display: flex;
  flex-direction: column;
  padding: 14px;
  background: var(--color-bg-warm);
  border-right: 1px solid var(--color-border);
}

.ledger-stat:last-child {
  border-right: none;
}

.ledger-stat .lbl {
  font-size: 10px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ledger-stat .val {
  font-size: 16px;
  font-weight: 700;
  margin-top: 4px;
}

.ledger-table-wrapper {
  flex-grow: 1;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow-y: auto;
}

.ledger-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.ledger-table th, .ledger-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  font-size: 12px;
}

.ledger-table th {
  background: var(--color-bg-warm);
  border-bottom: 1px solid var(--color-border-strong);
  font-weight: 700;
  color: var(--color-text);
}

.ledger-table tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   11. Connection / Get Started Section
   ========================================================================== */
.connection-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.connect-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  background: var(--color-bg-card-solid);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all var(--transition-med);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.connect-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.connect-card.card-tg::before {
  background: linear-gradient(90deg, var(--color-tg), #00B2FF);
}

.connect-card.card-wa::before {
  background: linear-gradient(90deg, var(--color-wa), #34E878);
}

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

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

.connect-header i, .connect-header svg {
  width: 32px;
  height: 32px;
}

.connect-header h3 {
  font-size: 22px;
  font-weight: 700;
}

.icon-tg { color: var(--color-tg); }
.icon-wa { color: var(--color-wa); }

.connect-body {
  font-size: 15px;
  color: var(--color-text-sub);
  line-height: 1.7;
  flex-grow: 1;
}

.connect-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.connect-badge {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
}

/* Telegram / WhatsApp specific CTA buttons */
.btn-tg {
  background: linear-gradient(135deg, var(--color-tg), #00A0E6);
  color: white;
  box-shadow: 0 2px 12px rgba(0, 136, 204, 0.3);
}

.btn-tg:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 136, 204, 0.4);
}

.btn-wa {
  background: linear-gradient(135deg, var(--color-wa), #1EBE55);
  color: white;
  box-shadow: 0 2px 12px rgba(37, 211, 102, 0.3);
}

.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.btn-wa[disabled], .btn[disabled] {
  background: var(--color-border-strong) !important;
  color: var(--color-text-muted) !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
  pointer-events: none;
}
.btn-wa[disabled]:hover, .btn[disabled]:hover {
  transform: none !important;
  box-shadow: none !important;
  background: var(--color-border-strong) !important;
}

/* ==========================================================================
   12. Footer
   ========================================================================== */
.footer {
  background: #2D1A0E;
  padding: 48px 28px;
  width: 100%;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary-light), transparent);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer .logo-text {
  color: white;
}

.footer .logo-badge {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: var(--color-primary-light);
}

.footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  margin-top: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.footer-links .divider {
  color: rgba(255, 255, 255, 0.2);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer-copyright {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  text-align: center;
  margin-top: 16px;
}

/* ==========================================================================
   13. Scroll Reveal Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}

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

/* Stagger children */
.reveal-stagger > .reveal {
  transition-delay: calc(var(--i, 0) * 0.08s);
}

/* ==========================================================================
   14. Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   15. Custom Scrollbar
   ========================================================================== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border-strong);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-light);
}

/* ==========================================================================
   16. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 60px 28px 80px;
    min-height: auto;
  }

  .hero-headline {
    font-size: 52px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .section-title {
    font-size: 34px;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .hero-section {
    padding: 40px 20px 60px;
  }

  .hero-right {
    display: none;
  }

  .hero-headline {
    font-size: 42px;
    letter-spacing: -1.5px;
  }

  .hero-subtext {
    font-size: 16px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
  }

  .stat-box {
    text-align: center;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 14px 8px;
  }

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

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

  .section-block {
    padding: 64px 20px;
  }

  .section-title {
    font-size: 30px;
  }

  .workspace-layout {
    grid-template-columns: 1fr;
  }

  .connection-layout {
    grid-template-columns: 1fr;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-right {
    align-items: flex-start;
  }

  .channel-badges {
    flex-direction: column;
  }

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

  .ledger-stats {
    grid-template-columns: 1fr;
  }

  .ledger-stat {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .ledger-stat:last-child {
    border-bottom: none;
  }
}

@media (max-width: 375px) {
  .hero-headline {
    font-size: 34px;
    letter-spacing: -1px;
  }

  .nav-container {
    padding: 0 16px;
  }

  .section-block {
    padding: 48px 16px;
  }
}

/* ==========================================================================
   17. Legal Page Styles
   ========================================================================== */
.legal-container {
  max-width: 800px;
  margin: 60px auto 100px;
  padding: 0 20px;
  animation: fadeInUp 0.6s var(--ease-smooth) both;
}

.legal-card {
  background: var(--color-bg-card-solid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-card);
}

.legal-title {
  font-size: 36px;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 16px;
}

.legal-content h2 {
  font-size: 20px;
  margin: 32px 0 12px;
  color: var(--color-text);
}

.legal-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-sub);
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .legal-card {
    padding: 32px 20px;
  }
  .legal-title {
    font-size: 28px;
  }
}
