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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1a2e;
  background: #f8f9fc;
  min-height: 100dvh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

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

/* ===== Nav ===== */
.nav {
  padding: 16px 0;
  text-align: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1a1a2e;
  font-weight: 700;
  font-size: 1.5rem;
}

.logo-icon {
  width: 34px;
  height: 34px;
}


/* ===== Hero ===== */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 0 24px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Legend */
.hero-legend {
  order: 0;
  text-align: center;
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.accent {
  color: #2B59C3;
}

.hero-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: #2B59C3;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 14px;
  text-decoration: none;
  transition: background .2s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}

.cta:active {
  transform: scale(0.97);
}

.cta:hover {
  background: #2249a8;
}

.cta-icon {
  flex-shrink: 0;
}

/* Badges */
.hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  background: #eef1f8;
  color: #2B59C3;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
}

/* ===== Chat bubbles ===== */
.hero-chat {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
  padding: 20px 16px;
  background: #e8e8e8;
  border-radius: 20px;
}

.tg-msg {
  max-width: 85%;
  padding: 10px 14px 6px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.tg-msg p {
  margin-bottom: 2px;
}

.tg-time {
  display: block;
  text-align: right;
  font-size: 0.65rem;
  opacity: 0.4;
  margin-top: 2px;
}

.tg-msg--bot {
  background: #fff;
  color: #1a1a2e;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.tg-msg--user {
  background: #2B59C3;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* File attachment */
.tg-file {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tg-file-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2B59C3;
}

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

.tg-file-name {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.2;
}

.tg-file-size {
  font-size: 0.7rem;
  opacity: 0.5;
}

/* Link in message */
.tg-link {
  color: #2B59C3;
  text-decoration: underline;
}

/* ===== Footer ===== */
.footer {
  padding: 16px 0;
  border-top: 1px solid #e0e0e0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #888;
}

.footer-inner a {
  color: #2B59C3;
  text-decoration: none;
}

/* ===== Desktop (768px+) ===== */
@media (min-width: 768px) {
  .nav {
    text-align: left;
  }

  .logo {
    font-size: 1.2rem;
  }

  .logo-icon {
    width: 28px;
    height: 28px;
  }

  .hero {
    padding: 64px 0 80px;
  }

  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 60px;
  }

  .hero-legend {
    order: 0;
    text-align: left;
    flex: 1;
  }

  .hero-desc {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-badges {
    justify-content: flex-start;
  }

  .hero-chat {
    order: 1;
    flex-shrink: 0;
    width: 340px;
    margin: 0;
  }

  h1 {
    font-size: 2.4rem;
  }

  .hero-desc {
    font-size: 1.1rem;
  }
}

/* Large screens */
@media (min-width: 1024px) {
  h1 {
    font-size: 2.8rem;
  }

  .hero-inner {
    gap: 80px;
  }

  .hero-chat {
    width: 380px;
  }
}
