﻿@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&family=Raleway:wght@500;600;700;800&family=Lato:wght@400;700&display=swap");

:root {
  --background-color: #f1f5f9;
  --surface-color: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-dark: #0f172a;
  --surface-dark-soft: rgba(15, 23, 42, 0.82);
  --heading-color: #1e293b;
  --default-color: #475569;
  --muted-color: #64748b;
  --accent-color: #0ea5e9;
  --accent-strong: #0284c7;
  --accent-soft: rgba(14, 165, 233, 0.12);
  --line-color: rgba(148, 163, 184, 0.22);
  --line-strong: rgba(255, 255, 255, 0.14);
  --shadow-soft: 0 24px 70px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 32px 90px rgba(15, 23, 42, 0.22);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1240px;
  --section-space: clamp(4rem, 7vw, 6.5rem);
  --default-font: "Roboto", system-ui, sans-serif;
  --heading-font: "Raleway", system-ui, sans-serif;
  --nav-font: "Lato", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--default-color);
  font-family: var(--default-font);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 24rem),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.1), transparent 18rem),
    linear-gradient(180deg, #f8fbfe 0%, #f1f5f9 45%, #e8eef5 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 80%);
  z-index: -1;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--heading-color);
  font-family: var(--heading-font);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 4.9rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

p,
ul,
ol {
  margin: 0;
}

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b1220;
  color: rgba(241, 245, 249, 0.78);
}

.topbar .container {
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
}

.topbar a {
  color: #7dd3fc;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(15, 23, 42, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.header-row {
  min-height: 5.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  color: #f8fafc;
  font-weight: 700;
}

.brand img {
  width: 148px;
  height: auto;
  flex: 0 0 auto;
}

.brand span {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  font-family: var(--heading-font);
  font-size: 1.15rem;
}

.brand small {
  color: rgba(226, 232, 240, 0.68);
  font-family: var(--nav-font);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  color: rgba(226, 232, 240, 0.78);
  font-family: var(--nav-font);
  font-size: 0.97rem;
  font-weight: 700;
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.site-nav .btn {
  min-height: 3.1rem;
}

.breadcrumbs {
  padding-top: 1rem;
  padding-bottom: 0;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted-color);
  font-size: 0.94rem;
}

.breadcrumbs a {
  color: var(--heading-color);
  font-weight: 600;
}

section {
  position: relative;
  padding: var(--section-space) 0;
}

section + section {
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.hero {
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 18%, rgba(56, 189, 248, 0.3), transparent 20rem),
    radial-gradient(circle at 18% 10%, rgba(14, 165, 233, 0.18), transparent 22rem),
    linear-gradient(180deg, #0f172a 0%, #162033 100%);
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 82%);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2rem;
  align-items: center;
}

.hero h1,
.hero .lead,
.hero .eyebrow,
.hero .bullets li {
  color: #ffffff;
}

.hero .lead {
  margin-top: 1.25rem;
  max-width: 58ch;
  color: rgba(226, 232, 240, 0.84);
  font-size: 1.1rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  color: #7dd3fc;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.3rem;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0.85rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--nav-font);
  font-size: 0.96rem;
  font-weight: 700;
  transition: transform 0.22s ease, background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-strong) 100%);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(14, 165, 233, 0.28);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
}

.btn-tertiary {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--heading-color);
  box-shadow: var(--shadow-soft);
}

.bullets {
  display: grid;
  gap: 0.85rem;
  padding: 1.35rem 0 0;
  list-style: none;
  padding-left: 0;
}

.bullets li {
  position: relative;
  padding-left: 1.25rem;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
}

.hero .bullets {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero .bullets li {
  padding: 1rem 1rem 1rem 2rem;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(241, 245, 249, 0.9);
}

.hero .bullets li::before {
  left: 1rem;
  top: 1.35rem;
  background: var(--accent-color);
  box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.14);
}

.panel,
.card,
.link-card,
.media-card,
.section-block,
.cta,
.faq-item,
.table-wrap,
.article > section:first-child .card,
.footer-grid > div {
  border: 1px solid var(--line-color);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.9));
  box-shadow: var(--shadow-soft);
}

.panel {
  padding: 1rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.22));
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-strong);
}

.panel img {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 6px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.2rem;
}

.section-head .lead,
.article p,
.card p,
.link-card p,
.media-card p,
.cta p,
.footer p,
.footer li,
.faq-item .answer p,
.table-wrap,
td,
th {
  color: var(--default-color);
}

.card-grid,
.link-grid,
.media-grid,
.faq-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.link-grid,
.media-grid,
.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.link-card,
.media-card {
  min-height: 100%;
  padding: 1.45rem;
}

.card h3,
.link-card h3,
.media-card h3 {
  margin-bottom: 0.75rem;
}

.link-card a:last-child {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--accent-strong);
  font-weight: 700;
}

.link-card a:last-child::after {
  content: "→";
}

.media-card {
  overflow: hidden;
  padding: 0;
}

.media-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media-card p {
  padding: 1.2rem 1.35rem 1.35rem;
}

.article {
  display: grid;
  gap: 1.5rem;
}

.article > section {
  padding: 15px;
}

.section-block {
  padding: 1.7rem;
}

.section-block.with-media {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}

.section-block-content {
  min-width: 0;
}

.section-block-media {
  display: flex;
  align-items: stretch;
}

.section-block-media figure {
  margin: 0;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line-color);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
  box-shadow: var(--shadow-soft);
}

.section-block-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.section-block p + p,
.section-block ul,
.section-block .bullets {
  margin-top: 1rem;
}

.comparison-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 1.25rem;
}

.table-wrap {
  padding: 1rem;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

th,
td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  text-align: left;
  vertical-align: top;
}

thead th {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: 1rem;
}

tbody th {
  width: 28%;
  color: var(--heading-color);
  font-weight: 700;
}

.cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
  color: #ffffff;
  background:
    radial-gradient(circle at right top, rgba(56, 189, 248, 0.24), transparent 17rem),
    linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-strong);
}

.cta h2,
.cta p,
.cta .eyebrow {
  color: #ffffff;
}

.cta p {
  max-width: 42rem;
  color: rgba(226, 232, 240, 0.8);
}

.faq-item {
  overflow: hidden;
  padding: 0;
}

.faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
  border: 0;
  background: transparent;
  color: var(--heading-color);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.faq-item button span:last-child {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  transition: transform 0.22s ease;
  flex: 0 0 auto;
}

.faq-item .answer {
  display: none;
  padding: 0 1.35rem 1.35rem;
}

.faq-item.open .answer {
  display: block;
}

.faq-item.open button span:last-child {
  transform: rotate(45deg);
}

.footer {
  padding-top: 2.8rem;
  padding-bottom: 4.5rem;
  background: #0b1220;
  color: rgba(226, 232, 240, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 1.2rem;
}

.footer-grid > div {
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.footer h2 {
  margin-bottom: 0.8rem;
  color: #f8fafc;
  font-size: 1.2rem;
}

.footer ul {
  display: grid;
  gap: 0.6rem;
  padding: 0;
  list-style: none;
}

.footer a {
  color: rgba(241, 245, 249, 0.84);
}

.footer a:hover,
.footer a:focus-visible {
  color: #7dd3fc;
}

.footer-note {
  margin-top: 1.35rem;
  color: rgba(226, 232, 240, 0.48);
  font-size: 0.88rem;
}

.sticky {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 25;
}

.sticky .btn {
  min-width: min(22rem, calc(100vw - 2rem));
}

::selection {
  background: rgba(14, 165, 233, 0.18);
  color: var(--heading-color);
}

@media (max-width: 1199.98px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 1rem;
    right: 1rem;
    display: none;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(11, 18, 32, 0.98);
    box-shadow: var(--shadow-strong);
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    justify-content: flex-start;
    width: 100%;
  }

  .hero-grid,
  .section-head,
  .comparison-grid,
  .cta,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .link-grid,
  .media-grid,
  .faq-grid,
  .hero .bullets {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: 1.6rem;
  }
}

@media (max-width: 767.98px) {
  .header-row {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 0.9rem 0;
  }

  .brand {
    width: 100%;
  }

  .brand span {
    font-size: 1rem;
  }

  .section-block.with-media {
    grid-template-columns: 1fr;
  }

  .section-block-media img {
    min-height: 220px;
  }

  .btn-row,
  .sticky {
    left: 1rem;
    right: 1rem;
  }

  .btn-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .card-grid,
  .link-grid,
  .media-grid,
  .faq-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-block,
  .card,
  .link-card,
  .cta {
    padding: 1.3rem;
  }

  .panel {
    padding: 0.75rem;
  }
}

.hero-panel {
  display: grid;
  gap: 1rem;
}

.hero-panel-top,
.hero-panel-bottom,
.hero-demo-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hero-panel-tag {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-panel-tag-soft {
  background: rgba(14, 165, 233, 0.18);
  color: #bae6fd;
}

.hero-demo-panel {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(8, 15, 30, 0.86), rgba(15, 23, 42, 0.74));
}

.hero-demo {
  display: grid;
  gap: 0.9rem;
}

.hero-demo-message {
  display: grid;
  gap: 0.35rem;
  max-width: 92%;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.hero-demo-message strong {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-demo-message-user {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 250, 252, 0.92);
  border-top-left-radius: 8px;
}

.hero-demo-message-ai {
  margin-left: auto;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(2, 132, 199, 0.28));
  border: 1px solid rgba(125, 211, 252, 0.24);
  color: #eff6ff;
  border-top-right-radius: 8px;
}

.hero-demo-meta {
  padding-top: 0.25rem;
  color: rgba(191, 219, 254, 0.78);
  font-size: 0.82rem;
}

.hero-panel-bottom {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.hero-stat {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(226, 232, 240, 0.82);
}

.hero-stat strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #ffffff;
  font-family: var(--heading-font);
  font-size: 1.2rem;
}

.hero-stat span {
  font-size: 0.9rem;
}

@media (max-width: 767.98px) {
  .hero-demo-message {
    max-width: 100%;
  }

  .hero-panel-bottom {
    grid-template-columns: 1fr;
  }

  .hero-demo-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

.hero-panel {
  padding: 0.9rem;
}

.hero-demo-screen {
  position: relative;
  display: grid;
  min-height: 680px;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.96), rgba(226, 232, 240, 0.92));
  color: #0f172a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.hero-demo-badge {
  width: max-content;
  margin: 1.3rem auto 0;
  padding: 0.9rem 1.5rem;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--accent-color) 0%, #38bdf8 100%);
  color: #eff6ff;
  font-family: var(--heading-font);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(-12px);
  animation: heroDemoFadeDown 0.55s ease forwards;
}

.hero-demo-header {
  padding: 0 1.5rem;
  margin-top: 2rem;
}

.hero-demo-header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(-10px);
  animation: heroDemoFadeDown 0.55s ease 0.15s forwards;
}

.hero-demo-back {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 2rem;
  line-height: 1;
}

.hero-demo-profile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.hero-demo-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8 0%, var(--accent-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-demo-avatar svg {
  width: 2rem;
  height: 2rem;
  stroke: #eff6ff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-demo-name {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.hero-demo-role {
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero-demo-divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.34);
  margin-top: 1.15rem;
}

.hero-demo-chat {
  padding: 1.7rem 1rem 0;
}

.hero-demo-bubble {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-demo-bubble.is-visible,
.hero-demo-product.is-visible,
.hero-demo-alts.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero-demo-user {
  margin-left: auto;
  width: fit-content;
  max-width: 88%;
  padding: 1rem 1.2rem;
  border: 2px solid rgba(2, 132, 199, 0.42);
  border-radius: 24px;
  background: linear-gradient(135deg, #38bdf8 0%, var(--accent-color) 100%);
  color: #eff6ff;
  font-size: clamp(0.92rem, 0.82rem + 0.35vw, 1.05rem);
  font-weight: 600;
  line-height: 1.34;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.18);
}

.hero-demo-ai-card {
  width: 92%;
  max-width: 560px;
  margin-top: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0 28px 28px 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.hero-demo-ai-content {
  padding: 1.35rem 1.25rem 1rem;
}

.hero-demo-typing {
  min-height: 7.6rem;
  color: #1e293b;
  font-size: 1rem;
  line-height: 1.5;
  white-space: pre-line;
}

.hero-demo-cursor {
  display: inline-block;
  width: 0.6rem;
  margin-left: 1px;
  animation: heroDemoBlink 1s step-end infinite;
}

.hero-demo-product {
  margin-top: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-demo-product-inner {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: start;
  gap: 0.8rem;
  padding: 0.9rem;
}

.hero-demo-product-image {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background: #f8fafc;
}

.hero-demo-product-info {
  min-width: 0;
}

.hero-demo-product-title {
  margin-bottom: 0.25rem;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.3;
}

.hero-demo-product-meta {
  color: #475569;
  font-size: 0.74rem;
  line-height: 1.35;
}

.hero-demo-product-meta strong {
  color: #334155;
}

.hero-demo-product-stock {
  color: #b91c1c;
  font-weight: 700;
}

.hero-demo-product-link {
  display: inline-block;
  margin-top: 0.3rem;
  color: #15803d;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-demo-alts {
  margin-top: 0.9rem;
  padding: 0.9rem 0.9rem 0.35rem;
  border-radius: 16px;
  background: #f8fafc;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-demo-alts-title {
  margin-bottom: 0.6rem;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 800;
}

.hero-demo-alt-item {
  margin-bottom: 0.6rem;
  color: #334155;
  font-size: 0.84rem;
  line-height: 1.45;
}

.hero-demo-ai-footer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: #f8fafc;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-demo-audio {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.hero-demo-audio span {
  display: block;
  width: 3px;
  background: var(--accent-strong);
  border-radius: 2px;
  animation: heroDemoBounce 1.1s ease-in-out infinite;
}

.hero-demo-audio span:nth-child(1) { height: 8px; animation-delay: 0s; }
.hero-demo-audio span:nth-child(2) { height: 14px; animation-delay: .15s; }
.hero-demo-audio span:nth-child(3) { height: 18px; animation-delay: .3s; }
.hero-demo-audio span:nth-child(4) { height: 11px; animation-delay: .45s; }

.hero-demo-bottom {
  margin-top: auto;
  padding: 1rem;
}

.hero-demo-input-shell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 76px;
  padding: 0.5rem 0.75rem;
  border: 2px solid rgba(148, 163, 184, 0.28);
  border-radius: 26px;
  background: rgba(248, 250, 252, 0.96);
}

.hero-demo-attach,
.hero-demo-send {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.hero-demo-attach {
  border: 2px solid rgba(148, 163, 184, 0.28);
  background: #ffffff;
  color: #334155;
  font-size: 1.55rem;
}

.hero-demo-input {
  flex: 1;
  height: 46px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  border: 2px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: #ffffff;
  color: #94a3b8;
  font-size: 0.98rem;
}

.hero-demo-send {
  background: linear-gradient(135deg, #38bdf8 0%, var(--accent-color) 100%);
}

.hero-demo-send svg {
  width: 23px;
  height: 23px;
  fill: #eff6ff;
  transform: translateX(1px) translateY(-1px);
}

@keyframes heroDemoFadeDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDemoBlink {
  50% {
    opacity: 0;
  }
}

@keyframes heroDemoBounce {
  0%, 100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(0.6);
  }
}

@media (max-width: 991.98px) {
  .hero-demo-screen {
    min-height: auto;
  }
}

@media (max-width: 767.98px) {
  .hero-demo-badge {
    font-size: 1.05rem;
    padding: 0.8rem 1.1rem;
  }

  .hero-demo-header {
    padding: 0 1rem;
    margin-top: 1.5rem;
  }

  .hero-demo-chat,
  .hero-demo-bottom {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .hero-demo-user,
  .hero-demo-ai-card {
    max-width: 100%;
    width: 100%;
  }

  .hero-demo-user {
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
    line-height: 1.38;
  }

  .hero-demo-typing {
    min-height: 8.8rem;
    font-size: 0.92rem;
  }

  .hero-demo-product-inner {
    align-items: flex-start;
  }

  .hero-demo-product-image {
    width: 68px;
    height: 68px;
  }

  .hero-demo-product-inner {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .hero-demo-input-shell {
    height: auto;
  }
}

.hero-demo-alt-item a {
  color: var(--accent-strong);
  font-weight: 800;
}
