:root {
  --bg-main: #080c10;
  --bg-surface: #0e1318;
  --bg-card: rgba(18, 24, 32, 0.85);
  --bg-card-hover: rgba(24, 32, 42, 0.95);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 193, 7, 0.4);
  --accent: #FFC107;
  --accent-hover: #FFD54F;
  --accent-glow: rgba(255, 193, 7, 0.25);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --code-bg: #0b0f14;
  --code-border: #1e293b;
  --success: #22c55e;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --max-width: 1140px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-main);
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at 50% 0%, rgba(255, 193, 7, 0.08) 0%, transparent 60%),
              linear-gradient(180deg, var(--bg-main) 0%, #05080b 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(8, 12, 16, 0.8);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.brand-icon svg {
  width: 20px;
  height: 20px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-mark {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-accent {
  color: var(--accent);
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #0b0f14;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 0 16px var(--accent-glow);
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(255, 193, 7, 0.4);
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero */
.hero {
  padding: 5rem 0 3.5rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: #fff;
}

.hero-title span {
  background: linear-gradient(135deg, #FFC107 0%, #FFA000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent);
  color: #080c10;
  font-weight: 700;
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  box-shadow: 0 0 20px var(--accent-glow);
  transition: all 0.2s ease;
}

.primary-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 193, 7, 0.45);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Terminal Card */
.terminal-section {
  padding: 2rem 0 4rem;
}

.terminal-card {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  max-width: 820px;
  margin: 0 auto;
  overflow: hidden;
}

.terminal-header {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #10b981; }

.terminal-title {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.92rem;
}

.cmd-group {
  margin-bottom: 1.25rem;
}

.cmd-group:last-child {
  margin-bottom: 0;
}

.cmd-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cmd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  gap: 1rem;
}

.cmd-code {
  color: #38bdf8;
  word-break: break-all;
}

.cmd-code .kw {
  color: var(--accent);
  font-weight: 600;
}

.cmd-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cmd-copy:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.cmd-copy.copied {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.4);
}

/* Features */
.features-section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 193, 7, 0.25);
  transform: translateY(-3px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

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

.feature-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Telegram Preview */
.preview-section {
  padding: 4rem 0;
}

.preview-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.preview-copy {
  flex: 1;
  min-width: 300px;
  max-width: 480px;
}

.preview-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.preview-heading {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.preview-lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.tg-bubble-card {
  width: 100%;
  max-width: 420px;
  background: #18222d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.tg-bubble-header {
  background: #1e2c3a;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tg-bot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tg-bot-avatar svg {
  width: 20px;
  height: 20px;
  stroke: #080c10;
}

.tg-bot-info {
  display: flex;
  flex-direction: column;
}

.tg-bot-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.tg-bot-handle {
  font-size: 0.75rem;
  color: #7dd3fc;
}

.tg-bubble-body {
  padding: 1.25rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #e2e8f0;
}

.tg-bubble-body strong {
  color: #fff;
}

.tg-bubble-body code {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: #38bdf8;
}

.tg-bubble-footer {
  padding: 0.5rem 1rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tg-bubble-btn {
  display: block;
  text-align: center;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  padding: 0.5rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* How It Works Steps */
.steps-section {
  padding: 4rem 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

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

.step-num {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-text {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  background: #050709;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

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

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0f172a;
  border: 1px solid rgba(255, 193, 7, 0.4);
  color: #fff;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
  .nav-links {
    display: none;
  }
}
