/* talkue.com home page: dark, with the brand yellow as light. The other
   pages (guide, privacy, support) stay on styles.css's light reading
   layout; this file only styles the landing page. */
.home {
  --bg: #0b0b0c;
  --bg-raised: #141416;
  --card: rgba(255, 255, 255, 0.04);
  --card-line: rgba(255, 255, 255, 0.09);
  --text: #f4f4f2;
  --text-soft: #b9b9b4;
  --text-muted: #85857f;
  --yellow: #ffd23f;
  --glow: rgba(255, 210, 63, 0.28);
  color-scheme: dark;
  background: var(--bg);
  color: var(--text);
}

.home a {
  color: var(--text);
}

.home a:hover {
  background: none;
  color: var(--yellow);
}

.home .wrap {
  max-width: 1120px;
}

/* Header */
.home .site-header {
  background: transparent;
  position: relative;
  z-index: 2;
}

.home .site-header .wrap {
  min-height: 72px;
}

.home nav a {
  color: var(--text-soft);
}

.home .lang {
  border-color: var(--card-line);
  color: var(--text);
}

/* Hero */
.hero-tech {
  position: relative;
  overflow: hidden;
  padding: 24px 0 32px;
}

/* A faint grid behind the hero, fading out toward the bottom. */
.hero-tech::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  background: var(--card);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 12px var(--yellow);
}

.hero-tech h1 {
  margin: 20px 0 18px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero-tech h1 em {
  font-style: normal;
  color: var(--yellow);
}

.hero-tech .intro {
  max-width: 520px;
  margin: 0 0 30px;
  color: var(--text-soft);
  font-size: 19px;
}

.home .badge {
  background: var(--yellow);
  color: #111;
}

.home a.badge:hover {
  background: #ffdc5e;
}

.home .badge small {
  color: #5c4a10;
}

.home .badge.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--card-line);
}

.home .badge.ghost small {
  color: var(--text-muted);
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 14px;
}

.trust li::before {
  content: "✓ ";
  color: var(--yellow);
  font-weight: 700;
}

/* Phone slider */
.showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.showcase::before {
  /* The yellow glow behind the phone. */
  content: "";
  position: absolute;
  top: 8%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}

.phone {
  position: relative;
  width: min(300px, 72vw);
  aspect-ratio: 1290 / 2796;
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(145deg, #2a2a2d, #0f0f10);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 80px -20px rgba(0, 0, 0, 0.8),
    0 0 60px -10px var(--glow);
}

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 37px;
  background: #000;
}

.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 0.7s ease,
    transform 0.9s ease;
}

.slide.is-active {
  opacity: 1;
  transform: none;
}

.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The slogan card, overlapping the phone's lower edge. */
.caption {
  position: absolute;
  left: 50%;
  bottom: 54px;
  transform: translateX(-62%);
  width: min(300px, 80vw);
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(20, 20, 22, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7);
}

.caption-item {
  display: none;
}

.caption-item.is-active {
  display: block;
  animation: caption-in 0.5s ease;
}

.caption strong {
  display: block;
  color: var(--yellow);
  font-size: 18px;
  line-height: 1.25;
}

.caption span {
  display: block;
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.4;
}

@keyframes caption-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.slider-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--card-line);
  border-radius: 50%;
  background: var(--card);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}

.slider-button:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.dots {
  display: flex;
  gap: 8px;
}

.dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition:
    width 0.3s ease,
    background 0.3s ease;
}

.dots button[aria-current="true"] {
  width: 26px;
  background: var(--yellow);
}

/* Sections */
.home main {
  padding-top: 8px;
  padding-bottom: 40px;
}

.section-head {
  max-width: 640px;
  margin: 64px 0 28px;
}

.kicker {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home h2 {
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--card-line);
  border-radius: 20px;
  background: var(--card);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 210, 63, 0.45);
}

.card .icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(255, 210, 63, 0.12);
  color: var(--yellow);
}

.card .icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.55;
}

.tag {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--yellow);
  color: #111;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.home code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--yellow);
  font-size: 0.9em;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding: 22px;
  border-top: 2px solid var(--yellow);
  background: linear-gradient(to bottom, rgba(255, 210, 63, 0.06), transparent);
  border-radius: 0 0 16px 16px;
  counter-increment: step;
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 8px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.steps strong {
  display: block;
  font-size: 18px;
}

.steps span {
  color: var(--text-soft);
  font-size: 15px;
}

/* Free and Pro */
.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.plan {
  padding: 26px;
  border: 1px solid var(--card-line);
  border-radius: 22px;
  background: var(--card);
}

.plan.pro {
  border-color: rgba(255, 210, 63, 0.5);
  background: linear-gradient(160deg, rgba(255, 210, 63, 0.14), rgba(255, 210, 63, 0.02) 60%);
}

.plan h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
  font-size: 22px;
}

.plan h3 .tag {
  position: static;
}

.plan .note-line {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 14px;
}

.plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan li {
  padding: 7px 0;
  border-top: 1px solid var(--card-line);
  color: var(--text-soft);
  font-size: 15px;
}

.plan li::before {
  content: "✓  ";
  color: var(--yellow);
  font-weight: 700;
}

/* Closing call to action */
.cta {
  margin: 80px 0 0;
  padding: 40px 32px;
  border-radius: 28px;
  background: var(--yellow);
  color: #111;
  text-align: center;
}

.cta h2 {
  color: #111;
}

.cta p {
  margin: 10px auto 22px;
  max-width: 520px;
  color: #3d3510;
}

.cta .badges {
  justify-content: center;
}

.cta .badge {
  background: #111;
  color: var(--yellow);
}

.cta .badge small {
  color: #bbb;
}

.home .site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--card-line);
  background: var(--bg);
}

/* Narrow screens: phone first, then the text. */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-tech {
    text-align: center;
  }

  .hero-tech .intro {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-tech .badges,
  .trust {
    justify-content: center;
  }

  .caption {
    transform: translateX(-50%);
    bottom: 64px;
  }

  .steps,
  .plans {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slide,
  .card {
    transition: none;
  }

  .caption-item.is-active {
    animation: none;
  }
}

/* Store badges: on hover a light sweeps across, the badge lifts and glows,
   and "coming soon" gets a blinking terminal cursor. */
.home .badge {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.home .badge::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.home .badge:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px var(--yellow),
    0 12px 32px -8px var(--glow),
    0 0 24px -4px var(--glow);
}

.home .badge:hover::after {
  transform: translateX(120%);
}

.home .badge.ghost::after {
  background: linear-gradient(115deg, transparent 30%, rgba(255, 210, 63, 0.25) 50%, transparent 70%);
}

.home .badge.ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.home .badge small::after {
  content: "_";
  margin-left: 1px;
  opacity: 0;
}

.home .badge:hover small::after {
  animation: caret 0.9s steps(1) infinite;
}

@keyframes caret {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* The closing banner is yellow, so its black badges glow in black. */
.cta .badge:hover {
  box-shadow:
    0 0 0 1px #111,
    0 12px 28px -8px rgba(0, 0, 0, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .home .badge,
  .home .badge::after {
    transition: none;
  }

  .home .badge:hover {
    transform: none;
  }

  .home .badge:hover small::after {
    animation: none;
    opacity: 1;
  }
}


/* Voice follow highlight under the headline: a live-looking sound wave. */
.voice-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 210, 63, 0.35);
  border-radius: 999px;
  background: rgba(255, 210, 63, 0.08);
  color: var(--text-soft);
  font-size: 15px;
}

.voice-pill strong {
  color: var(--yellow);
}

.wave {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}

.wave i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--yellow);
  animation: wave 1.1s ease-in-out infinite;
}

.wave i:nth-child(2) {
  animation-delay: 0.15s;
}

.wave i:nth-child(3) {
  animation-delay: 0.3s;
}

.wave i:nth-child(4) {
  animation-delay: 0.45s;
}

.wave i:nth-child(5) {
  animation-delay: 0.6s;
}

@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.3);
  }
  50% {
    transform: scaleY(1);
  }
}

/* Voice follow spotlight at the top of the page body. */
.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 48px;
  padding: 32px;
  border: 1px solid rgba(255, 210, 63, 0.35);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 210, 63, 0.12), rgba(255, 210, 63, 0.02) 60%);
}

.spotlight p {
  margin: 12px 0 0;
  color: var(--text-soft);
}

.spotlight-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spotlight-list li {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-soft);
  font-size: 15px;
}

.spotlight-list strong {
  display: block;
  color: var(--text);
}

@media (max-width: 860px) {
  .spotlight {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .voice-pill {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wave i {
    animation: none;
    transform: scaleY(0.7);
  }
}


/* Landscape camera shot next to its text. */
.wide-shot {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
  align-items: center;
  margin-top: 64px;
}

.wide-shot p {
  margin: 12px 0 0;
  color: var(--text-soft);
}

.wide-frame {
  margin: 0;
  padding: 8px;
  border-radius: 34px;
  background: linear-gradient(145deg, #2a2a2d, #0f0f10);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 60px -20px rgba(0, 0, 0, 0.8),
    0 0 50px -12px var(--glow);
}

.wide-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 27px;
}

@media (max-width: 860px) {
  .wide-shot {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
