/* Telegram Bot Lab — Design System (based on nemplat-dark-site-builder) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Brand — Telegram blue */
  --primary: #0088cc;
  --primary-hover: #00a8e6;
  --primary-lighter: #33b3e6;
  --primary-rgb: 0, 136, 204;

  /* Dark theme */
  --background: #08090a;
  --background-panel: #0f1011;
  --background-elevated: #191a1b;
  --surface: #0f1011;
  --text-primary: #f7f8f8;
  --text-secondary: #d0d6e0;
  --text-tertiary: #8a8f98;
  --text-quaternary: #62666d;
  --border: rgba(255,255,255,0.05);
  --border-standard: rgba(255,255,255,0.08);
  --border-solid: #23252a;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #fb565b;
  --info: #3b82f6;

  /* Typography */
  --font-primary: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;
}

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

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

body {
  font-family: var(--font-primary);
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; color: var(--text-primary); }
h1 { font-size: 72px; }
h2 { font-size: 48px; }
h3 { font-size: 32px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 18px; }

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

a { color: var(--primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--primary-hover); }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-lg); }

/* Navigation */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(15, 16, 17, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { font-size: 24px; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: var(--space-sm); }
.nav-logo span { color: var(--primary); }
.nav-links { display: flex; gap: var(--space-xl); list-style: none; }
.nav-links a { color: var(--text-secondary); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text-primary); }
.nav-cta { background: var(--primary); color: white; padding: 10px 20px; border-radius: var(--radius-md); font-weight: 500; font-size: 14px; transition: background 0.2s; }
.nav-cta:hover { background: var(--primary-hover); color: white; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm); padding: 12px 24px; border-radius: var(--radius-md); font-size: 16px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; border: none; font-family: var(--font-primary); }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); color: white; }
.btn-ghost { background: transparent; color: var(--text-primary); border: 1px solid var(--border-standard); }
.btn-ghost:hover { background: rgba(255,255,255,0.05); }
.btn-large { padding: 16px 32px; font-size: 18px; }

/* Cards */
.card { background: var(--background-panel); border: 1px solid var(--border-standard); border-radius: var(--radius-lg); padding: var(--space-xl); transition: border-color 0.3s, box-shadow 0.3s; }
.card:hover { border-color: rgba(255,255,255,0.12); box-shadow: 0 0 40px rgba(0, 136, 204, 0.1); }
.card-icon { width: 48px; height: 48px; background: rgba(0, 136, 204, 0.15); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: var(--space-lg); }

/* Grid */
.grid { display: grid; gap: var(--space-lg); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Badges */
.badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: var(--radius-full); font-size: 12px; font-weight: 500; background: var(--primary); color: white; }

/* Sections */
.section { padding: var(--space-3xl) 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto var(--space-3xl); }
.section-header h2 { margin-bottom: var(--space-md); }
.section-header p { font-size: 18px; color: var(--text-tertiary); }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: 72px; position: relative; overflow: hidden; }
.hero-badge { display: inline-flex; align-items: center; gap: var(--space-sm); padding: 8px 16px; border-radius: var(--radius-full); background: rgba(0, 136, 204, 0.15); border: 1px solid rgba(0, 136, 204, 0.3); font-size: 14px; color: var(--primary-lighter); margin-bottom: var(--space-xl); }
.hero h1 { font-size: 72px; line-height: 1.0; letter-spacing: -2px; margin-bottom: var(--space-lg); background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 20px; color: var(--text-tertiary); max-width: 600px; margin: 0 auto var(--space-xl); }
.hero-buttons { display: flex; gap: var(--space-md); justify-content: center; }
.hero-glow { position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(0, 136, 204, 0.15) 0%, transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: -1; }

/* Features */
.feature-card h3 { font-size: 20px; margin-bottom: var(--space-sm); }
.feature-card p { color: var(--text-tertiary); font-size: 15px; }

/* Steps */
.step-number { width: 40px; height: 40px; border-radius: var(--radius-full); background: rgba(0, 136, 204, 0.2); border: 1px solid rgba(0, 136, 204, 0.4); display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--primary); flex-shrink: 0; }

/* CTA */
.cta-section { background: var(--background-panel); border: 1px solid var(--border-standard); border-radius: var(--radius-xl); padding: var(--space-3xl); text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; width: 400px; height: 400px; background: radial-gradient(circle, rgba(0, 136, 204, 0.2) 0%, transparent 70%); top: -100px; right: -100px; pointer-events: none; }

/* Footer */
.footer { border-top: 1px solid var(--border-standard); padding: var(--space-3xl) 0 var(--space-xl); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--space-xl); margin-bottom: var(--space-2xl); }
.footer-brand { font-size: 24px; font-weight: 700; margin-bottom: var(--space-md); }
.footer-brand span { color: var(--primary); }
.footer-links h4 { font-size: 14px; color: var(--text-tertiary); margin-bottom: var(--space-lg); text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: var(--space-sm); }
.footer-links a { color: var(--text-tertiary); font-size: 14px; }
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: var(--space-lg); display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--text-quaternary); }

/* Mobile */
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text-primary); font-size: 24px; cursor: pointer; }

/* Accordion / FAQ */
.faq-item { border-bottom: 1px solid var(--border-standard); }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: var(--space-lg) 0; cursor: pointer; font-weight: 500; font-size: 18px; }
.faq-question::after { content: '+'; color: var(--primary); font-size: 20px; transition: transform 0.2s; }
.faq-question.active::after { content: '−'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0 0; }
.faq-answer.open { max-height: 300px; padding: 0 0 var(--space-lg); }

/* Price cards */
.price-card { border: 2px solid var(--border-standard); border-radius: var(--radius-xl); padding: var(--space-2xl); text-align: center; position: relative; }
.price-card.featured { border-color: var(--primary); }
.price-card .price { font-size: 48px; font-weight: 700; color: var(--text-primary); margin: var(--space-md) 0; }
.price-card .price span { font-size: 16px; color: var(--text-tertiary); }
.price-features { list-style: none; margin: var(--space-xl) 0; text-align: left; }
.price-features li { padding: var(--space-sm) 0; color: var(--text-secondary); font-size: 15px; display: flex; gap: var(--space-sm); }
.price-features li::before { content: '✓'; color: var(--primary); }

/* Responsive */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1, .hero h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  h3 { font-size: 24px; }
  .hero p { font-size: 18px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .mobile-menu-btn { display: block; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-md); text-align: center; }
  .section { padding: var(--space-2xl) 0; }
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.6s ease forwards; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb { background: var(--border-solid); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--text-quaternary); }

::selection { background: rgba(0, 136, 204, 0.3); color: var(--text-primary); }
