/* ==========================================================================
   Rustam Panda - Official Landing Page Design System
   Designed by @abbyisonline
   Aesthetic: Moody Alabaster Ivory & Obsidian with Warm Tobacco Cognac
   ========================================================================== */

:root {
  --bg-page: #fbfaf8;
  --bg-surface: #ffffff;
  --bg-subtle: #f6f4ee;
  --bg-elevated: #ffffff;
  --border: #e6e1d6;
  --border-sub: #eeeae1;
  --border-focus: #8d4925;
  
  --text-main: #181512;
  --text-body: #4b463f;
  --text-muted: #7f786e;
  --text-inverse: #ffffff;
  
  --accent: #8d4925;
  --accent-hover: #713516;
  --accent-subtle: rgba(141, 73, 37, 0.08);
  --accent-glow: rgba(141, 73, 37, 0.15);
  
  --green: #059669;
  --green-subtle: #ecfdf5;
  --blue: #2563eb;
  --blue-subtle: #eff6ff;
  --purple: #7c3aed;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Background Atmosphere Gradients */
.bg-decor {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 820px;
  max-width: 1400px;
  pointer-events: none;
  z-index: -1;
  background: 
    radial-gradient(ellipse 60% 45% at 50% -10%, rgba(141, 73, 37, 0.08), transparent 70%),
    radial-gradient(ellipse 40% 30% at 85% 20%, rgba(194, 65, 12, 0.05), transparent 60%),
    radial-gradient(ellipse 40% 30% at 15% 25%, rgba(120, 53, 15, 0.04), transparent 60%);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 248, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.nav-logo-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid var(--accent);
  background: #000;
}

.nav-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-brand-text {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.3px;
}

.nav-brand-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.nav-link {
  color: var(--text-body);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--accent);
}

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

/* ==========================================================================
   Buttons (Zero Cheap Shadows)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 9px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  border: 1px solid transparent;
  box-shadow: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, #8d4925 0%, #683416 100%);
  color: #ffffff;
  border-color: #5a2c11;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #713516 0%, #4a210b 100%);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-telegram {
  background: #229ed9;
  color: #ffffff;
  border-color: #1b84b8;
}

.btn-telegram:hover {
  background: #1b84b8;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 13px 26px;
  font-size: 15.5px;
  border-radius: 11px;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 12.5px;
  border-radius: 7px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 70px 0 50px;
  text-align: center;
}

.announcement-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 24px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.announcement-badge:hover {
  border-color: var(--accent);
  background: var(--bg-subtle);
}

.badge-tag {
  background: var(--accent);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(36px, 5.5vw, 62px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -1.8px;
  color: var(--text-main);
  max-width: 950px;
  margin: 0 auto 20px;
}

.hero-title-accent {
  background: linear-gradient(135deg, #8d4925 0%, #c2410c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(16px, 2vw, 19.5px);
  color: var(--text-body);
  max-width: 780px;
  margin: 0 auto 34px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.proof-item svg {
  color: var(--green);
}

/* ==========================================================================
   Interactive Live Demo Preview Terminal
   ========================================================================== */
.demo-preview-section {
  padding: 20px 0 80px;
}

.terminal-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(28, 25, 23, 0.08);
}

.terminal-topbar {
  background: #f7f5f0;
  border-bottom: 1px solid var(--border);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dots {
  display: flex;
  gap: 7px;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-url-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 16px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  width: 480px;
  max-width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-tabs {
  display: flex;
  gap: 6px;
}

.demo-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  font-family: inherit;
}

.demo-tab-btn:hover {
  background: var(--bg-subtle);
  color: var(--accent);
}

.demo-tab-btn.active {
  background: #ffffff;
  border-color: var(--border);
  color: var(--accent);
}

.terminal-body {
  padding: 24px;
  min-height: 480px;
  background: #ffffff;
}

/* Demo Content Panes */
.demo-pane {
  display: none;
}
.demo-pane.active {
  display: block;
}

/* Demo: Hierarchy Tree View */
.demo-tree-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fbfaf8;
  padding: 16px;
}

.demo-tree-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.demo-tree-node {
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #ffffff;
  margin-bottom: 10px;
  overflow: hidden;
}

.demo-tree-node-title {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  background: #fdfdfc;
  border-bottom: 1px solid var(--border-sub);
}

.demo-tree-adset {
  margin: 10px 14px;
  border: 1px dashed var(--border);
  border-radius: 7px;
  padding: 10px;
  background: #faf9f6;
}

.demo-tree-ads-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.demo-tree-ad-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 10px;
  font-size: 12px;
}

.demo-ad-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: #ecfdf5;
  color: #047857;
  margin-bottom: 6px;
}

/* Demo: AI Dossier Pane */
.demo-ai-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
  padding: 20px;
}

.demo-ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.demo-ai-model-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(141, 73, 37, 0.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.demo-ai-report-body {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
}

.demo-ai-section {
  margin-bottom: 16px;
}

.demo-ai-section-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

/* Demo: Cards Grid */
.demo-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.demo-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
}

.demo-card-media {
  height: 160px;
  background: #181512;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.demo-card-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.demo-card-info {
  padding: 12px;
  font-size: 12px;
}

.demo-card-headline {
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--text-main);
}

.demo-card-copy {
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.4;
}

/* ==========================================================================
   Bento Grid Feature Showcase
   ========================================================================== */
.features-section {
  padding: 80px 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.section-tag {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 14px;
  line-height: 1.2;
}

.section-desc {
  font-size: 16px;
  color: var(--text-body);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

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

.bento-card-large {
  grid-column: span 2;
}

.bento-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #ffffff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
}

.bento-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.bento-desc {
  font-size: 14.5px;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 14px;
}

.bento-pill-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.bento-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-body);
}

/* ==========================================================================
   Model Ecosystem Section
   ========================================================================== */
.models-section {
  padding: 80px 0;
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.model-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all 0.15s ease;
}

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

.model-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.model-name {
  font-weight: 800;
  font-size: 15px;
}

.model-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--accent);
}

.model-desc {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.5;
}

/* ==========================================================================
   How to Install Section
   ========================================================================== */
.install-section {
  padding: 80px 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.step-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}

.step-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 14px;
}

.step-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.5;
}

.code-box {
  background: #181512;
  color: #f6f4ee;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   Creator / Telegram CTA Banner
   ========================================================================== */
.cta-banner {
  padding: 80px 0;
}

.cta-box {
  background: linear-gradient(135deg, #1c1917 0%, #292524 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 50px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-content {
  max-width: 620px;
}

.cta-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
  color: #ffffff;
}

.cta-desc {
  font-size: 16px;
  color: #d6d3d1;
  line-height: 1.6;
}

.cta-author-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13.5px;
  color: #a8a29e;
}

.cta-author-tag strong {
  color: #f59e0b;
}

.cta-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-link {
  color: var(--text-body);
  text-decoration: none;
  font-weight: 600;
}

.footer-link:hover {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card-large {
    grid-column: span 1;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}
