/**
 * Voxta — One-page site styles
 * Single file, no preprocessor. Add sections below.
 */

/* --- Reset / base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --color-bg: #f7fafc;
  --color-text: #2d3748;
  --color-muted: #718096;
  --color-accent: #805ad5;
  --color-accent-hover: #6b46c1;
  --color-live: #276749;
  --font-sans: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --space: 1rem;
  --max-width: 72rem;
  --hero-gradient-start: #b794f4;
  --hero-gradient-end: #4299e1;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --radius: 0.75rem;
  --radius-lg: 1rem;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

/* --- Layout --- */
main section {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space);
  padding-right: var(--space);
}

/* --- Header (Figma) --- */
.page-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

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

.header__logo {
  display: block;
  flex-shrink: 0;
}

.header__logo img {
  display: block;
  height: 36px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.header__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s;
}

.header__link:hover {
  color: var(--color-accent);
}

.header__link--signin {
  margin-right: 0.25rem;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header__btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  transition: background 0.2s, border-color 0.2s;
}

.header__btn:hover {
  background: #f7fafc;
  border-color: #cbd5e0;
}

@media (max-width: 768px) {
  .header__nav {
    display: none;
  }
}

/* --- Hero (Figma) --- */
.hero {
  padding-top: 3rem;
  padding-bottom: 4rem;
  background: var(--color-bg);
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--space);
  padding-right: var(--space);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 0;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__actions {
    justify-content: center;
  }
}

.hero__copy {
  max-width: 36rem;
}

.hero__tagline {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-accent);
  margin: 0 0 0.75rem;
  letter-spacing: 0.01em;
}

.hero__title {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0 0 1rem;
}

.hero__desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-muted);
  margin: 0 0 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
}

.hero__btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.hero__btn--primary:hover {
  background: var(--color-accent-hover);
}

.hero__btn--secondary {
  background: #fff;
  color: var(--color-text);
  border-color: #e2e8f0;
  box-shadow: var(--shadow-sm);
}

.hero__btn--secondary:hover {
  background: #f7fafc;
  border-color: #cbd5e0;
}

.hero__btn-arrow {
  font-size: 1em;
}

/* Hero visual: gradient card + badges */
.hero__visual {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  min-height: 380px;
}

.hero__card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  background: linear-gradient(180deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero__badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.hero__badge-icon {
  flex-shrink: 0;
  color: var(--color-accent);
}

.hero__badge--voice { top: -0.5rem; left: -0.5rem; }
.hero__badge--realtime { top: -0.5rem; right: -0.5rem; }
.hero__badge--available { bottom: -0.5rem; left: -0.5rem; }
.hero__badge--language { bottom: -0.5rem; left: 50%; transform: translateX(-50%); }

@media (max-width: 500px) {
  .hero__badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
  }
  .hero__badge--voice,
  .hero__badge--realtime { top: 0.25rem; }
  .hero__badge--available,
  .hero__badge--language { bottom: 0.25rem; }
}

.hero__agent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.hero__agent-frame {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}

.hero__agent-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(145deg, #e2e8f0 0%, #cbd5e0 100%);
  border: 3px solid rgba(255, 255, 255, 0.5);
}

.hero__live {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.2rem 0.5rem;
  background: var(--color-live);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 9999px;
  white-space: nowrap;
}

.hero__waveform {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 24px;
}

.hero__waveform span {
  width: 4px;
  min-height: 6px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  animation: hero-wave 0.8s ease-in-out infinite;
}

.hero__waveform span:nth-child(1) { animation-delay: 0s; height: 12px; }
.hero__waveform span:nth-child(2) { animation-delay: 0.1s; height: 18px; }
.hero__waveform span:nth-child(3) { animation-delay: 0.2s; height: 14px; }
.hero__waveform span:nth-child(4) { animation-delay: 0.3s; height: 22px; }
.hero__waveform span:nth-child(5) { animation-delay: 0.4s; height: 16px; }
.hero__waveform span:nth-child(6) { animation-delay: 0.3s; height: 20px; }
.hero__waveform span:nth-child(7) { animation-delay: 0.2s; height: 14px; }
.hero__waveform span:nth-child(8) { animation-delay: 0.1s; height: 18px; }
.hero__waveform span:nth-child(9) { animation-delay: 0.15s; height: 16px; }
.hero__waveform span:nth-child(10) { animation-delay: 0.05s; height: 10px; }

@keyframes hero-wave {
  0%, 100% { transform: scaleY(0.6); }
  50% { transform: scaleY(1); }
}

.hero__prompt {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
  text-align: center;
}

.hero__trusted {
  flex-shrink: 0;
  width: 180px;
  padding: 1rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin-top: 0.5rem;
}

.hero__trusted-avatars {
  display: flex;
  margin-bottom: 0.5rem;
}

.hero__trusted-avatars span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
  border: 2px solid #fff;
  margin-left: -8px;
}

.hero__trusted-avatars span:first-child { margin-left: 0; }

.hero__trusted-title {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
}

.hero__trusted-desc {
  margin: 0;
  font-size: 0.75rem;
  color: var(--color-muted);
}

@media (max-width: 900px) {
  .hero__visual {
    flex-direction: column;
    align-items: center;
  }
  .hero__trusted {
    margin-top: 1rem;
  }
}

/* --- Meet the Avatars --- */
.avatars {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background: var(--color-bg);
}

.avatars__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--space);
  padding-right: var(--space);
  text-align: center;
}

.avatars__subtitle {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-muted);
  margin: 0 0 0.5rem;
  letter-spacing: 0.01em;
}

.avatars__title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
  margin: 0 0 2.5rem;
  max-width: 24ch;
  margin-left: auto;
  margin-right: auto;
}

.avatars__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 900px) {
  .avatars__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .avatars__grid {
    grid-template-columns: 1fr;
  }
}

.avatar-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.2s;
}

.avatar-card:hover {
  box-shadow: var(--shadow-lg);
}

.avatar-card__img-wrap {
  position: relative;
  aspect-ratio: 1;
  background: #e2e8f0;
}

.avatar-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #cbd5e0 0%, #e2e8f0 100%);
}

.avatar-card__img--1 { background: linear-gradient(145deg, #e2e8f0 0%, #cbd5e0 100%); }
.avatar-card__img--2 { background: linear-gradient(145deg, #cbd5e0 0%, #94a3b8 100%); }
.avatar-card__img--3 { background: linear-gradient(145deg, #e2e8f0 0%, #b8c5d6 100%); }
.avatar-card__img--4 { background: linear-gradient(145deg, #94a3b8 0%, #cbd5e0 100%); }

.avatar-card__live {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.2rem 0.5rem;
  background: var(--color-live);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.avatar-card__name {
  margin: 0;
  padding: 1rem 1rem 0.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
}

.avatar-card__desc {
  margin: 0;
  padding: 0 1rem 1rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* --- This isn't another text chatbot --- */
.diff {
  padding: 4rem var(--space);
  background: var(--color-bg);
}

.diff__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #ede9fe 0%, #fce7f3 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.diff__title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  margin: 0 0 2.5rem;
}

.diff__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .diff__content {
    grid-template-columns: 1fr;
  }
  .diff__inner {
    padding: 2rem var(--space);
  }
}

.diff__media {
  position: sticky;
  top: 2rem;
}

.diff__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 420px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #e2e8f0 0%, #cbd5e0 100%);
  object-fit: cover;
}

.diff__features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.diff__feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.diff__feature-icon {
  flex-shrink: 0;
  color: var(--color-muted);
}

.diff__feature-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.diff__feature-desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-muted);
}

/* --- What is Voxta --- */
.what {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background: var(--color-bg);
}

.what__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--space);
  padding-right: var(--space);
  text-align: center;
}

.what__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.what__icon {
  display: inline-flex;
  color: var(--color-accent);
}

.what__label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-muted);
  margin: 0;
  letter-spacing: 0.01em;
}

.what__lead {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
  max-width: 52ch;
  margin: 0 auto 3rem;
}

.what__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 900px) {
  .what__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .what__grid {
    grid-template-columns: 1fr;
  }
}

.what__card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  transition: box-shadow 0.2s;
}

.what__card:hover {
  box-shadow: var(--shadow-lg);
}

.what__card-icon {
  display: inline-flex;
  color: var(--color-accent);
  flex-shrink: 0;
}

.what__card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.what__card-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-muted);
  margin: 0;
}

/* --- CTA section (below hero) --- */
.cta {
  display: inline-block;
  padding: 0.6em 1.2em;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.cta:hover {
  opacity: 0.9;
}

/* --- Footer --- */
/* --- Footer (Figma) --- */
.page-footer {
  margin-top: 4rem;
  background: #f7fafc;
  color: var(--color-text);
  font-size: 0.875rem;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem var(--space) 2rem;
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer__inner {
    grid-template-columns: 1fr;
    padding: 2rem var(--space) 1.5rem;
  }
}

.footer__brand {
  max-width: 280px;
}

.footer__logo {
  display: block;
  margin-bottom: 1rem;
}

.footer__logo img {
  display: block;
  height: 36px;
  width: auto;
}

.footer__tagline {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-muted);
}

.footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.5rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(90deg, #805ad5 0%, #6b46c1 100%);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  transition: opacity 0.2s;
}

.footer__cta:hover {
  opacity: 0.92;
}

.footer__trust {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.footer__trust-icon {
  flex-shrink: 0;
  color: var(--color-accent);
}

.footer__nav {
  display: contents;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__heading {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text);
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links li {
  margin-bottom: 0.35rem;
}

.footer__links a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

.footer__bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem var(--space);
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer__copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__social a {
  font-size: 0.8125rem;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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