/* ============================================
   MentionAgent — Landing Page Styles
   ============================================ */

:root {
  --color-dark: #2E2E2E;
  --color-orange: #f5895a;
  --color-orange-hover: #e0743f;
  --color-bg: #f4efe7;
  --color-bg-alt: #eee9e0;
  --color-bg-white: #faf8f4;
  --color-text: #444444;
  --color-text-light: #777777;
  --color-border: #e0dbd3;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 1120px;
  --radius: 8px;
  --radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---- Utilities ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  background: var(--color-orange);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.btn:hover {
  background: var(--color-orange-hover);
  transform: translateY(-1px);
}

.btn--sm {
  padding: 10px 24px;
  font-size: 1.05rem;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn--cta {
  padding: 20px 48px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: 60px;
  background: linear-gradient(135deg, #f5895a 0%, #e0643a 100%);
  box-shadow: 0 4px 20px rgba(245, 137, 90, 0.4), 0 0 0 0 rgba(245, 137, 90, 0);
  position: relative;
  overflow: hidden;
  animation: cta-pulse 2.5s ease-in-out infinite;
}

.btn--cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: cta-shine 3s ease-in-out infinite;
}

.btn--cta:hover {
  background: linear-gradient(135deg, #e0743f 0%, #d05a30 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(245, 137, 90, 0.5);
}

.btn--cta:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(245, 137, 90, 0.4);
}

@keyframes cta-shine {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(245, 137, 90, 0.4), 0 0 0 0 rgba(245, 137, 90, 0.3); }
  50% { box-shadow: 0 4px 20px rgba(245, 137, 90, 0.4), 0 0 0 10px rgba(245, 137, 90, 0); }
}

.btn--full {
  width: 100%;
}

/* ============================================
   Nav
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(244, 239, 231, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  position: relative;
}

.btn--nav-cta {
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: 60px;
  background: linear-gradient(135deg, #f5895a 0%, #e0643a 100%);
  box-shadow: 0 2px 12px rgba(245, 137, 90, 0.3);
  animation: none;
}

.btn--nav-cta::before {
  display: none;
}

.btn--nav-cta:hover {
  background: linear-gradient(135deg, #e0743f 0%, #d05a30 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(245, 137, 90, 0.45);
}

.nav__logo img {
  height: 56px;
  width: auto;
}

.nav__center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__center a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.2s;
}

.nav__center a:hover {
  color: var(--color-orange);
}

.nav__links {
  display: none;
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-bg);
  padding: 80px 0 40px;
}

.hero__inner {
  max-width: 720px;
  margin: 0 auto;
}

/* ---- Hero Pipeline ---- */
.hero__pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
  opacity: 0;
  animation: pipeline-appear 0.6s ease 0.2s forwards;
}

@keyframes pipeline-appear {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  opacity: 0.4;
  transition: opacity 0.5s ease;
}

.hero__step--active {
  opacity: 1;
}

.hero__step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-bg-white);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.5s, box-shadow 0.5s, background 0.5s;
}

.hero__step--active .hero__step-icon {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 4px rgba(245, 137, 90, 0.15), 0 4px 16px rgba(245, 137, 90, 0.2);
  background: #fff7f3;
}

.hero__step-icon svg {
  width: 22px;
  height: 22px;
  color: var(--color-text-light);
  transition: color 0.5s;
}

.hero__step--active .hero__step-icon svg {
  color: var(--color-orange);
}

.hero__step-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-light);
  transition: color 0.5s;
}

.hero__step--active .hero__step-label {
  color: var(--color-dark);
}

.hero__step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background 0.5s, box-shadow 0.5s;
}

.hero__step--active .hero__step-dot {
  background: #4caf50;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
  animation: dot-pulse 1.5s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 4px rgba(76, 175, 80, 0.3); }
  50% { box-shadow: 0 0 12px rgba(76, 175, 80, 0.8); }
}

/* Connector line between steps */
.hero__connector {
  width: 60px;
  height: 2px;
  background: var(--color-border);
  position: relative;
  margin: 0 12px;
  margin-bottom: 36px;
  border-radius: 2px;
  overflow: hidden;
}

.hero__connector span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--color-orange);
  border-radius: 2px;
  transition: width 0.6s ease;
}

.hero__connector--filled span {
  width: 100%;
}

.hero__title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero__sub {
  font-size: 1.2rem;
  color: var(--color-text-light);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero__trust {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.hero__testimonial {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  max-width: 480px;
  text-align: left;
}

.hero__testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.hero__testimonial-text {
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.5;
  margin: 0;
  font-style: italic;
}

.hero__testimonial-name {
  font-size: 0.88rem;
  color: var(--color-text-light);
  opacity: 0.7;
  margin: 4px 0 0;
}

/* Hero inline scanner */
.hero__scanner {
  max-width: 520px;
  margin: 0 auto;
}

.hero__scanner-wrap {
  display: flex;
  gap: 0;
  background: var(--color-bg-white);
  border: 2px solid var(--color-border);
  border-radius: 60px;
  padding: 6px 6px 6px 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hero__scanner-wrap:focus-within {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 4px rgba(245, 137, 90, 0.15);
}

.hero__scanner-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-family: var(--font);
  color: var(--color-dark);
  background: transparent;
  min-width: 0;
  padding: 8px 0;
}

.hero__scanner-input::placeholder {
  color: var(--color-text-light);
}

.hero__scanner-btn {
  flex-shrink: 0;
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: 60px;
  white-space: nowrap;
}

.hero__scanner-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  animation: none;
}

.hero__scanner-error {
  color: #d32f2f;
  font-size: 0.88rem;
  margin-top: 8px;
  min-height: 1.2em;
}

/* ============================================
   URL Scanner
   ============================================ */
.scanner {
  padding: 0 0 96px;
  background: var(--color-bg);
  text-align: center;
}

.scanner__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.scanner__sub {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

.scanner__form {
  max-width: 560px;
  margin: 0 auto;
}

.scanner__input-wrap {
  display: flex;
  gap: 12px;
  background: var(--color-bg-white);
  border: 2px solid var(--color-border);
  border-radius: 60px;
  padding: 6px 6px 6px 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.scanner__input-wrap:focus-within {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 4px rgba(245, 137, 90, 0.1);
}

.scanner__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: var(--font);
  color: var(--color-dark);
  background: transparent;
  min-width: 0;
}

.scanner__input::placeholder {
  color: var(--color-text-light);
}

.scanner__btn {
  flex-shrink: 0;
  border-radius: 60px;
  white-space: nowrap;
}

.scanner__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.scanner__error {
  color: #d32f2f;
  font-size: 0.88rem;
  margin-top: 10px;
  min-height: 1.3em;
}

/* Loading */
.scanner__loading {
  display: none;
  max-width: 400px;
  margin: 32px auto 0;
  text-align: left;
}

.scanner__loading--visible {
  display: block;
}

.scanner__loading-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scanner__loading-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--color-text-light);
  opacity: 0.4;
  transition: opacity 0.4s, color 0.4s;
}

.scanner__loading-step--active {
  opacity: 1;
  color: var(--color-dark);
}

.scanner__loading-step--done {
  opacity: 0.6;
  color: #4caf50;
}

.scanner__loading-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  flex-shrink: 0;
  transition: background 0.4s, box-shadow 0.4s;
}

.scanner__loading-step--active .scanner__loading-dot {
  background: var(--color-orange);
  box-shadow: 0 0 8px rgba(245, 137, 90, 0.5);
  animation: scanner-dot-pulse 1s ease-in-out infinite;
}

.scanner__loading-step--done .scanner__loading-dot {
  background: #4caf50;
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.4);
  animation: none;
}

@keyframes scanner-dot-pulse {
  0%, 100% { box-shadow: 0 0 4px rgba(245, 137, 90, 0.3); }
  50% { box-shadow: 0 0 12px rgba(245, 137, 90, 0.7); }
}

/* Results */
.scanner__results {
  display: none;
  max-width: 700px;
  margin: 40px auto 0;
  text-align: left;
}

.scanner__results--visible {
  display: block;
  animation: scanner-fade-in 0.5s ease;
}

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

.scanner__results-title {
  text-align: center;
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.scanner__cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scanner__card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 20px 24px;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.scanner__card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-color: var(--color-orange);
}

.scanner__card-body {
  flex: 1;
  min-width: 0;
}

.scanner__card-domain {
  font-size: 0.8rem;
  color: var(--color-orange);
  font-weight: 600;
  margin-bottom: 4px;
}

.scanner__card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scanner__card-snippet {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.scanner__card-rank {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 8px 12px;
  min-width: 52px;
}

.scanner__card-rank-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
}

.scanner__card-rank-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-light);
}

/* Locked / blurred cards */
.scanner__locked-wrap {
  position: relative;
  margin-top: 12px;
}

.scanner__locked-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
}

.scanner__cta-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(244, 239, 231, 0.6);
  border-radius: 24px;
}

.scanner__cta-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-dark);
}

.scanner__cta-btn {
  padding: 16px 36px;
  font-size: 1.05rem;
}

@media (max-width: 768px) {
  .scanner {
    padding: 48px 0 56px;
  }

  .scanner__title {
    font-size: 1.35rem;
    margin-bottom: 8px;
  }

  .scanner__sub {
    font-size: 0.9rem;
    margin-bottom: 24px;
  }

  .scanner__input-wrap {
    flex-direction: column;
    border: none;
    background: none;
    border-radius: 0;
    padding: 0;
    gap: 12px;
  }

  .scanner__input-wrap:focus-within {
    border-color: transparent;
    box-shadow: none;
  }

  .scanner__input {
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    font-size: 0.95rem;
    background: var(--color-bg-white);
    transition: border-color 0.2s, box-shadow 0.2s;
  }

  .scanner__input:focus {
    border-color: var(--color-orange);
    box-shadow: 0 0 0 4px rgba(245, 137, 90, 0.1);
  }

  .scanner__btn {
    border-radius: var(--radius-lg);
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
  }

  .scanner__card {
    flex-direction: column;
    gap: 10px;
    padding: 16px;
  }

  .scanner__card-rank {
    flex-direction: row;
    gap: 6px;
    padding: 6px 10px;
  }

  .scanner__card-title {
    white-space: normal;
  }

  .scanner__cta-btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 96px 0;
}

.section--alt {
  background: var(--color-bg);
}

.section__title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 56px;
}

/* ============================================
   Benefits
   ============================================ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.benefit-card {
  text-align: center;
  padding: 40px 28px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  transition: box-shadow 0.3s, transform 0.3s;
}

.benefit-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* -- Benefit icons -- */
.benefit-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  position: relative;
}

/* AI icon: orbiting dots */
.benefit-icon--ai .orbit {
  width: 100%;
  height: 100%;
  position: relative;
  animation: orbit-spin 6s linear infinite;
}

.benefit-icon--ai .orbit::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--color-orange);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.benefit-icon--ai .dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--color-dark);
  border-radius: 50%;
  top: 50%;
  left: 50%;
}

.benefit-icon--ai .dot:nth-child(1) {
  animation: orbit-dot 3s ease-in-out infinite;
}

.benefit-icon--ai .dot:nth-child(2) {
  animation: orbit-dot 3s ease-in-out infinite 1s;
}

.benefit-icon--ai .dot:nth-child(3) {
  animation: orbit-dot 3s ease-in-out infinite 2s;
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes orbit-dot {
  0%, 100% { transform: translate(-50%, -50%) translateY(-28px); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) translateY(-28px) scale(1.4); opacity: 1; }
}

/* Links icon: connected nodes */
.benefit-icon--links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.link-node {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-dark);
  animation: link-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.link-node--center {
  width: 16px;
  height: 16px;
  background: var(--color-orange);
  animation: link-pulse-center 2s ease-in-out infinite;
}

.link-line {
  width: 12px;
  height: 2px;
  background: var(--color-dark);
  opacity: 0.3;
  animation: link-line-glow 2s ease-in-out infinite;
}

@keyframes link-pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.3); opacity: 1; }
}

@keyframes link-pulse-center {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 137, 90, 0.4); }
  50% { transform: scale(1.2); box-shadow: 0 0 12px 4px rgba(245, 137, 90, 0.2); }
}

@keyframes link-line-glow {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.8; background: var(--color-orange); }
}

/* SEO icon: rising bars */
.benefit-icon--seo .bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 100%;
}

.benefit-icon--seo .bar {
  width: 10px;
  border-radius: 3px 3px 0 0;
  background: var(--color-dark);
}

.benefit-icon--seo .bar:nth-child(1) {
  animation: bar-grow 2.5s ease-in-out infinite;
  animation-delay: 0s;
}

.benefit-icon--seo .bar:nth-child(2) {
  animation: bar-grow 2.5s ease-in-out infinite;
  animation-delay: 0.2s;
}

.benefit-icon--seo .bar:nth-child(3) {
  animation: bar-grow 2.5s ease-in-out infinite;
  animation-delay: 0.4s;
}

.benefit-icon--seo .bar:nth-child(4) {
  animation: bar-grow 2.5s ease-in-out infinite;
  animation-delay: 0.6s;
  background: var(--color-orange);
}

@keyframes bar-grow {
  0%, 100% { height: 20%; opacity: 0.4; }
  50% { height: 90%; opacity: 1; }
}

.benefit-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.benefit-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ============================================
   How It Works — Steps
   ============================================ */
.section__subtitle {
  text-align: center;
  color: var(--color-text-light);
  font-size: 1.05rem;
  margin-top: -20px;
  margin-bottom: 56px;
}

/* ---- Telegram Demo ---- */
.tg-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  max-width: 640px;
  margin: 0 auto;
}

.tg-demo__phone {
  width: 100%;
  max-width: 400px;
  background: #17212b;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.08),
    0 12px 40px rgba(0,0,0,0.16),
    0 0 0 1px rgba(0,0,0,0.06);
}

/* Telegram header */
.tg-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #212d3b;
}

.tg-header__back {
  width: 20px;
  height: 20px;
  color: #6ab3f3;
  flex-shrink: 0;
}

.tg-header__back svg {
  width: 100%;
  height: 100%;
}

.tg-header__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #fff;
  padding: 2px;
}

.tg-header__info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.tg-header__name {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.tg-header__status {
  color: #6ab3f3;
  font-size: 0.72rem;
}

/* Chat area */
.tg-chat {
  padding: 18px 14px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #0e1621;
}

/* Messages */
.tg-msg {
  display: flex;
}

.tg-msg--bot {
  justify-content: flex-start;
}

.tg-msg--user {
  justify-content: flex-end;
}

.tg-msg__bubble {
  max-width: 88%;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.55;
}

.tg-msg--bot .tg-msg__bubble {
  background: #182533;
  color: #dce1e6;
  border-top-left-radius: 3px;
}

.tg-msg--user .tg-msg__bubble {
  background: #2b5278;
  color: #e1eaf4;
  border-top-right-radius: 3px;
}

.tg-msg__bubble strong {
  color: #fff;
}

.tg-msg__dim {
  color: #7e919f;
  font-size: 0.78rem;
}

.tg-msg__email-to,
.tg-msg__email-subject {
  display: block;
  font-size: 0.75rem;
  color: #6ab3f3;
  margin-bottom: 2px;
}

.tg-msg__email-subject {
  margin-bottom: 8px;
  font-weight: 600;
}

.tg-msg__email-body {
  display: block;
  font-size: 0.8rem;
  color: #9baab8;
  line-height: 1.55;
}

.tg-msg__bubble--success {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6abf6e;
}

.tg-msg__check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #6abf6e;
}

/* Message card (bubble + inline buttons) */
.tg-msg__card {
  max-width: 88%;
}

.tg-msg__bubble--no-radius-bottom {
  border-radius: 10px 10px 0 0;
  border-top-left-radius: 3px;
}

/* Inline buttons (Telegram style) */
.tg-msg__actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 4px 6px;
  background: #182533;
  border-radius: 0 0 10px 10px;
}

.tg-btn-row {
  display: flex;
  gap: 4px;
}

.tg-btn {
  flex: 1;
  padding: 8px 0;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: default;
  font-family: var(--font);
  text-align: center;
  background: #1f3145;
  color: #6ab3f3;
}

.tg-btn--approve {
  font-weight: 600;
}

.tg-btn--secondary {
  color: #6ab3f3;
}

/* Animation */
.tg-msg--animate {
  opacity: 0;
  transform: translateY(10px);
}

.tg-msg--visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
  transition-delay: var(--delay, 0s);
}

/* Steps below phone */
.tg-demo__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  width: 100%;
  max-width: 720px;
  text-align: center;
}

.tg-demo__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.tg-demo__step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.tg-demo__step p {
  color: var(--color-text);
  font-size: 0.92rem;
  line-height: 1.5;
}

.tg-demo__step p strong {
  color: var(--color-dark);
}

/* ============================================
   Features Grid
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 36px 28px;
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
  border-color: var(--color-orange);
}

.feature-card:hover .feature-icon {
  color: var(--color-orange);
}

/* Feature icons */
.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--color-text-light);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* ============================================
   Pricing
   ============================================ */
.pricing-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--color-bg-white);
  border: 2px solid var(--color-orange);
  border-radius: 32px;
  overflow: hidden;
  text-align: center;
}

.pricing-card__top {
  padding: 40px 40px 32px;
}

.pricing-card__top .btn--cta {
  padding: 14px 32px;
  font-size: 1rem;
}

.pricing-card__trial-sub {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.pricing-card__divider {
  height: 1px;
  background: var(--color-border);
  margin: 0 40px;
}

.pricing-card__bottom {
  padding: 24px 40px 40px;
}

.pricing-card__then {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 2px;
}

.pricing-card__allowance {
  font-size: 0.88rem;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.pricing-card__features {
  text-align: left;
  margin-bottom: 24px;
}

.pricing-card__features li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--color-text);
}

.pricing-card__features li::before {
  content: "\2713";
  color: var(--color-orange);
  font-weight: 700;
  margin-right: 10px;
}

.pricing-card__note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.pricing-card__requires {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--color-text-light);
}

.pricing-card__requires a {
  color: var(--color-orange);
  text-decoration: underline;
}

.pricing-card__requires a:hover {
  color: var(--color-orange-hover);
}

/* ============================================
   Integrations
   ============================================ */
.integrations {
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
}

.integrations__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.integrations__label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-light);
}

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

.integrations__provider {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-dark);
}

.integrations__provider--soon {
  color: var(--color-text-light);
  font-weight: 500;
}

.integrations__logo {
  height: 20px;
  width: auto;
}

.integrations__divider {
  width: 1px;
  height: 20px;
  background: var(--color-border);
}

.integrations__badge {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--color-bg-alt);
  color: var(--color-text-light);
}

/* ============================================
   Readiness Check
   ============================================ */
.readiness {
  background: var(--color-bg);
}

.readiness__card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.readiness__title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 20px;
  line-height: 1.3;
}

.readiness__text {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 16px;
}

.readiness__text strong {
  color: var(--color-dark);
}

.readiness__checks {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 32px 0;
}

.readiness__check {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 28px;
  border: 2px solid var(--color-border);
  border-radius: 24px;
  background: var(--color-bg-white);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  flex: 1;
  max-width: 280px;
}

.readiness__check:hover {
  border-color: var(--color-orange);
  box-shadow: 0 4px 20px rgba(245, 137, 90, 0.12);
  transform: translateY(-2px);
}

.readiness__check-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-dark);
}

.readiness__arrow {
  width: 36px;
  height: 36px;
  color: var(--color-orange);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.readiness__check:hover .readiness__arrow {
  transform: translate(4px, -4px) scale(1.15);
}

.readiness__check-source {
  font-size: 0.78rem;
  color: var(--color-text-light);
}

.readiness__footnote {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .readiness__title {
    font-size: 1.4rem;
  }

  .readiness__checks {
    flex-direction: column;
    align-items: center;
  }

  .readiness__check {
    max-width: 100%;
    width: 100%;
  }
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
  padding: 20px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-text-light);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  padding: 0 0 20px;
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-dark);
  color: #ccc;
  padding: 0 0 48px;
}

/* -- Agents strip -- */
.footer__agents {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 36px 24px 16px;
}

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

.footer__pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4caf50;
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.6);
  animation: agent-blink 2s ease-in-out infinite;
}

.footer__pulse--2 {
  animation-delay: 0.6s;
}

.footer__pulse--3 {
  animation-delay: 1.2s;
}

@keyframes agent-blink {
  0%, 100% { opacity: 0.3; box-shadow: 0 0 4px rgba(76, 175, 80, 0.3); }
  50% { opacity: 1; box-shadow: 0 0 10px rgba(76, 175, 80, 0.7); }
}

.footer__agent-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: #aaa;
  letter-spacing: 0.2px;
}

.footer__agents-label {
  text-align: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #666;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 36px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer__logo img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 0.9rem;
  color: #aaa;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: #fff;
}

.footer__copy {
  font-size: 0.8rem;
  color: #777;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__center,
  .nav__cta-desktop {
    display: none;
  }

  .nav__links {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 0 24px;
    gap: 0;
    text-align: center;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
  }

  .nav__links.open {
    max-height: 300px;
    opacity: 1;
    padding: 16px 24px;
    gap: 16px;
  }

  .nav__links a {
    padding: 8px 0;
  }

  /* Smaller CTA buttons on mobile */
  .btn--cta {
    padding: 12px 28px;
    font-size: 0.95rem;
  }

  .btn--lg {
    padding: 14px 28px;
    font-size: 1rem;
  }

  .btn--nav-cta {
    padding: 10px 22px;
    font-size: 0.92rem;
  }

  .hero {
    min-height: 100svh;
    padding: 80px 0 40px;
  }

  .hero__pipeline {
    gap: 0;
    margin-bottom: 28px;
  }

  .hero__step-icon {
    width: 40px;
    height: 40px;
  }

  .hero__step-icon svg {
    width: 18px;
    height: 18px;
  }

  .hero__step-label {
    font-size: 0.72rem;
  }

  .hero__connector {
    width: 32px;
    margin: 0 6px;
  }

  .hero__title {
    font-size: 1.85rem;
  }

  .hero__sub {
    font-size: 0.95rem;
    margin-bottom: 28px;
  }

  .hero__trust {
    font-size: 0.82rem;
  }

  .hero__testimonial {
    display: flex;
    padding: 12px 16px;
    gap: 10px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__testimonial-avatar {
    width: 44px;
    height: 44px;
  }

  .hero__testimonial-text {
    font-size: 0.82rem;
  }

  .hero__scanner-wrap {
    flex-direction: column;
    border-radius: 16px;
    padding: 12px;
    gap: 8px;
  }

  .hero__scanner-input {
    font-size: 1rem;
    padding: 8px 8px;
    text-align: center;
  }

  .hero__scanner-btn {
    width: 100%;
    padding: 14px 24px;
  }

  .tg-demo__steps {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: left;
  }

  .tg-demo__step {
    flex-direction: row;
    gap: 14px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 28px 20px;
  }

  .benefit-card {
    padding: 28px 20px;
  }

  .section {
    padding: 56px 0;
  }

  .section__title {
    font-size: 1.5rem;
    margin-bottom: 32px;
  }

  .pricing-card {
    padding: 32px 20px;
  }

  .pricing-card__top,
  .pricing-card__bottom {
    padding-left: 24px;
    padding-right: 24px;
  }

  .pricing-card__divider {
    margin: 0 24px;
  }

  .footer__agents {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
  }

  .footer__links a {
    font-size: 0.82rem;
  }

  /* Scanner CTA overlay button */
  .scanner__cta-text {
    font-size: 1rem;
  }

  .scanner__cta-btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   Get Started Modal
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal {
  background: var(--color-bg-white);
  border-radius: 24px;
  padding: 40px 36px 36px;
  max-width: 520px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  animation: modal-in 0.3s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--color-text-light);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}

.modal__close:hover {
  color: var(--color-dark);
}

.modal__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 24px;
}

.modal__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.modal__step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.modal__step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  background: var(--color-orange);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

.modal__step strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.modal__step p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.55;
  margin: 0;
}

.modal__step a {
  color: var(--color-orange);
  text-decoration: underline;
}

.modal__step a:hover {
  color: var(--color-orange-hover);
}

.modal__cta {
  display: block;
  text-align: center;
}

@media (max-width: 768px) {
  .modal {
    padding: 32px 24px 28px;
  }

  .modal__title {
    font-size: 1.2rem;
  }

  .modal__step-num {
    min-width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
}
