:root {
  --bg: #f5f6fa;
  --text: #0f172a;
  --muted: #475569;
  --card: rgba(255, 255, 255, 0.72);
  --border: rgba(148, 163, 184, 0.35);
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #7c3aed;
  --accent-light: rgba(124, 58, 237, 0.08);
  --green: #22c55e;
  --telegram: #0088cc;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --font-body: "Manrope", "Aptos", "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Trebuchet MS", "Aptos", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: linear-gradient(160deg, #f8fafc 0%, #eef2ff 50%, #fdf2f8 100%);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo,
.agent-hero h1,
.section-heading h2 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}
.page { max-width: 1200px; margin: 0 auto; padding: 32px 24px 64px; }

/* ── Nav ── */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 0 32px; }
.logo { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; color: var(--text); }
.nav-links { display: flex; gap: 18px; color: var(--muted); font-size: 14px; }
.nav-links a { text-decoration: none; color: inherit; font-weight: 500; padding: 6px 10px; border-radius: 8px; transition: background 0.15s, color 0.15s; }
.nav-links a:hover { background: rgba(37, 99, 235, 0.06); color: var(--primary); }
.nav-links a.nav-active { color: var(--primary); background: rgba(37, 99, 235, 0.08); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.language-switcher { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.language-switcher label { font-weight: 600; }
.language-switcher select { border-radius: 999px; border: 1px solid var(--border); padding: 8px 14px; background: rgba(255,255,255,0.8); font-size: 13px; color: var(--text); cursor: pointer; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; border: 1px solid transparent; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; cursor: pointer; }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(37, 99, 235, 0.35); }
.btn-secondary { background: rgba(255,255,255,0.7); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(15,23,42,0.1); }
.btn-telegram { background: var(--telegram); color: white; box-shadow: 0 12px 30px rgba(0, 136, 204, 0.3); font-size: 16px; padding: 16px 32px; }
.btn-telegram:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0, 136, 204, 0.4); background: #0077b5; }
.btn-large { font-size: 17px; padding: 18px 36px; }

/* ── Hero ── */
.agent-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0 64px;
}
.agent-hero-content { display: flex; flex-direction: column; gap: 24px; }
.agent-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, rgba(0,136,204,0.1), rgba(124,58,237,0.1));
  border: 1px solid rgba(0,136,204,0.2);
  color: var(--telegram);
  font-weight: 600; font-size: 13px;
  padding: 6px 16px; border-radius: 999px;
  width: fit-content;
}
.agent-badge::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--telegram); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.agent-hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.agent-hero-sub { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 520px; }
.agent-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.agent-hero-stats {
  display: flex; gap: 24px; align-items: center;
  padding: 20px 0; margin-top: 8px;
}
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-number { font-size: 28px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* ── Phone Mockup ── */
.agent-hero-visual { display: flex; justify-content: center; }
.phone-mockup {
  width: 300px;
  background: #1a1a2e;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(255,255,255,0.1) inset;
  position: relative;
}
.phone-notch {
  width: 120px; height: 28px;
  background: #1a1a2e;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: relative; z-index: 2;
}
.phone-screen {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  margin-top: -14px;
}
.chat-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--telegram), #0077b5);
  color: white;
}
.chat-avatar {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.chat-name { font-weight: 600; font-size: 14px; }
.chat-status { font-size: 11px; opacity: 0.8; }
.chat-messages { padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 240px; }
.chat-msg {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 12px;
  line-height: 1.5;
  max-width: 85%;
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}
.chat-msg:nth-child(1) { animation-delay: 0.2s; }
.chat-msg:nth-child(2) { animation-delay: 0.6s; }
.chat-msg:nth-child(3) { animation-delay: 1s; }
.chat-msg:nth-child(4) { animation-delay: 1.4s; }
.chat-msg:nth-child(5) { animation-delay: 1.8s; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.chat-msg.bot {
  background: #f0f2f5;
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-msg.user {
  background: var(--telegram);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-input {
  padding: 12px 16px;
  border-top: 1px solid #e5e7eb;
  font-size: 12px;
  color: #9ca3af;
}

/* ── Platforms Bar ── */
.platforms-bar {
  text-align: center;
  padding: 32px 0 48px;
}
.platforms-label { font-size: 14px; color: var(--muted); font-weight: 500; margin-bottom: 16px; }
.platforms-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.platform-pill {
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s;
}
.platform-pill:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,23,42,0.08); }

/* ── Section Heading ── */
.section-heading { text-align: center; margin-bottom: 48px; }
.section-heading h2 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-heading p { font-size: 17px; color: var(--muted); max-width: 560px; margin: 0 auto; }

/* ── Features Grid ── */
.agent-features { padding: 48px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(219,234,254,0.4));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card:hover::before { opacity: 1; }
.feature-highlight {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(37,99,235,0.06), rgba(124,58,237,0.06));
  border-color: rgba(37,99,235,0.2);
}
.feature-icon { font-size: 32px; }
.feature-card h3 { font-size: 17px; font-weight: 700; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.feature-tag {
  display: inline-flex; width: fit-content;
  background: rgba(37,99,235,0.08);
  color: var(--primary);
  font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 999px;
  margin-top: auto;
}

/* ── Steps ── */
.agent-steps { padding: 48px 0; }
.steps-grid { display: flex; align-items: center; justify-content: center; gap: 0; }
.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  text-align: center;
  flex: 1; max-width: 320px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-number {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
}
.step-card h3 { font-size: 18px; font-weight: 700; }
.step-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.step-connector {
  width: 48px; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  flex-shrink: 0;
}

/* ── Reports ── */
.agent-reports {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0;
}
.reports-content { display: flex; flex-direction: column; gap: 20px; }
.reports-content h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; letter-spacing: -0.02em; }
.reports-content p { font-size: 16px; color: var(--muted); line-height: 1.7; }
.reports-list {
  list-style: none; display: flex; flex-direction: column; gap: 10px;
}
.reports-list li {
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(219,234,254,0.5));
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
}
.reports-list li::before {
  content: "✓";
  width: 22px; height: 22px;
  background: rgba(34,197,94,0.12);
  color: var(--green);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; flex-shrink: 0;
}
.reports-visual { display: flex; justify-content: center; }
.report-mockup {
  width: 320px;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.report-header {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.report-logo { font-weight: 800; font-size: 16px; }
.report-title-text { font-size: 13px; opacity: 0.9; }
.report-chart {
  display: flex; align-items: flex-end; gap: 12px;
  padding: 24px; height: 140px;
}
.chart-bar {
  flex: 1;
  background: linear-gradient(180deg, rgba(37,99,235,0.3), rgba(37,99,235,0.08));
  border-radius: 6px 6px 0 0;
  transition: height 0.6s ease;
}
.chart-bar.highlight { background: linear-gradient(180deg, var(--primary), rgba(37,99,235,0.4)); }
.report-metrics {
  display: flex; justify-content: space-around;
  padding: 16px 24px 20px;
  border-top: 1px solid #f1f5f9;
}
.report-metric { text-align: center; }
.metric-value { display: block; font-size: 18px; font-weight: 800; color: var(--primary); }
.metric-label { font-size: 11px; color: var(--muted); font-weight: 500; }

/* ── Referral ── */
.agent-referral { padding: 48px 0; }
.referral-card {
  background: linear-gradient(135deg, rgba(34,197,94,0.08), rgba(37,99,235,0.08));
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.referral-icon { font-size: 48px; }
.referral-card h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.referral-card p { font-size: 16px; color: var(--muted); max-width: 500px; line-height: 1.6; }

/* ── Final CTA ── */
.agent-final-cta {
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(124,58,237,0.12));
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  margin-top: 16px;
}
.agent-final-cta h2 { font-size: clamp(28px, 3vw, 42px); font-weight: 800; letter-spacing: -0.02em; }
.agent-final-cta p { font-size: 17px; color: var(--muted); }

/* ── Footer ── */
.footer {
  text-align: center; color: var(--muted); font-size: 14px;
  display: flex; flex-direction: column; gap: 12px; align-items: center; margin-top: 32px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; }
.footer-links a { color: inherit; text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--text); }
.footer-meta { font-size: 13px; }
.footer-bottom a, .footer-meta a { color: inherit; text-decoration: none; font-weight: 600; }
.footer-bottom a:hover, .footer-meta a:hover { color: var(--primary); }

/* ── Hamburger ── */
.hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 36px; height: 36px; background: none; border: none; cursor: pointer;
  padding: 4px; border-radius: 8px; flex-shrink: 0; transition: background 0.15s;
}
.hamburger:hover { background: rgba(0,0,0,0.05); }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s, opacity 0.2s; transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; width: 100%;
    flex-direction: column; gap: 0; background: white; border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 8px 0; margin-top: 4px;
    box-shadow: 0 8px 24px rgba(15,23,42,0.12); z-index: 100;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 20px; font-size: 16px; border-radius: 0; color: var(--text); }
  .nav-links a:hover { background: rgba(37,99,235,0.05); }
  .nav { flex-wrap: wrap; position: relative; }
  .nav-actions { gap: 10px; justify-content: flex-end; }
  .language-switcher label { display: none; }
  .btn.btn-primary { padding: 8px 14px; font-size: 13px; }

  .agent-hero { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .agent-hero-content { align-items: center; }
  .agent-hero-sub { max-width: 100%; }
  .agent-hero-actions { justify-content: center; }
  .agent-hero-stats { justify-content: center; }

  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-highlight { grid-column: span 2; }

  .steps-grid { flex-direction: column; gap: 0; }
  .step-connector { width: 2px; height: 32px; }

  .agent-reports { grid-template-columns: 1fr; }
  .reports-visual { order: -1; }
}

@media (max-width: 600px) {
  .page { padding: 24px 16px 48px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-highlight { grid-column: span 1; }
  .phone-mockup { width: 260px; }
  .agent-final-cta { padding: 40px 24px; }
  .referral-card { padding: 32px 24px; }
}
