/* EarLink product landing page styles */

:root {
  --bg: #f5f5f7;
  --card: rgba(255, 255, 255, 0.86);
  --card-solid: #ffffff;
  --line: #d9d9df;
  --text: #111111;
  --muted: #5f6470;
  --soft: #8b92a0;
  --blue: #0a84ff;
  --blue-soft: rgba(10, 132, 255, 0.1);
  --blue-dark: #0066cc;
  --orange: #ff9f0a;
  --orange-soft: rgba(255, 159, 10, 0.1);
  --purple: #5d3fd3;
  --purple-soft: rgba(93, 63, 211, 0.1);
  --shadow: 0 24px 80px rgba(17, 17, 17, 0.08);
  --shadow-sm: 0 8px 30px rgba(17, 17, 17, 0.06);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(10, 132, 255, 0.08), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(255, 159, 10, 0.10), transparent 25%),
    radial-gradient(circle at 50% 100%, rgba(93, 63, 211, 0.05), transparent 35%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
}

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

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  backdrop-filter: blur(18px);
  background: rgba(245, 245, 247, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(93, 63, 211, 0.25);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  background: rgba(17, 17, 17, 0.05);
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.18);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: var(--card-solid);
  cursor: pointer;
  font-size: 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  box-shadow: 0 12px 32px rgba(93, 63, 211, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(93, 63, 211, 0.35);
}

.btn-secondary {
  background: var(--card-solid);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: #fff;
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Hero */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

h1, h2, h3 {
  margin: 0;
  font-family: 'Fraunces', Georgia, serif;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero h1 em {
  color: var(--blue);
  font-style: normal;
}

.hero p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 28px;
}

.hero-visual {
  position: relative;
}

.hero-image {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
  transition: transform 0.6s ease;
}

.hero-image:hover {
  transform: rotate(0deg) scale(1.02);
}

.floating-card {
  position: absolute;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  animation: float 5s ease-in-out infinite;
}

.chat-card {
  display: grid;
  gap: 3px;
  text-align: left;
  line-height: 1.4;
}

.chat-original {
  font-weight: 800;
  color: var(--text);
}

.chat-translation {
  color: var(--blue);
  font-weight: 700;
  font-size: 12px;
}

.card-question {
  top: 12%;
  left: -26px;
}

.card-reply {
  bottom: 30%;
  right: -22px;
  animation-delay: -1.8s;
}

.card-live {
  bottom: 12%;
  right: -18px;
  color: var(--orange);
  animation-delay: -2.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Sections */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.08;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* Trust bar */
.trust-bar {
  padding: 32px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.06);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 700;
}

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

.trust-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(17, 17, 17, 0.05);
  font-size: 15px;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-size: 22px;
  margin-bottom: 18px;
}

.feature-card:nth-child(1) .feature-icon { background: var(--blue-soft); }
.feature-card:nth-child(2) .feature-icon { background: var(--orange-soft); }
.feature-card:nth-child(3) .feature-icon { background: var(--purple-soft); }
.feature-card:nth-child(4) .feature-icon { background: var(--blue-soft); }
.feature-card:nth-child(5) .feature-icon { background: var(--orange-soft); }
.feature-card:nth-child(6) .feature-icon { background: var(--purple-soft); }

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

.feature-img {
  margin-top: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.feature-img img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.feature-phone {
  margin: 20px auto 0;
  width: 148px;
  aspect-ratio: 1080 / 2340;
  border-radius: 24px;
  overflow: hidden;
  border: 5px solid #17171c;
  background: #17171c;
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.18);
}

.feature-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.step::before {
  counter-increment: step;
  content: '0' counter(step);
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 42px;
  font-weight: 700;
  color: rgba(17, 17, 17, 0.06);
  line-height: 1;
}

.step h3 {
  font-size: 20px;
  margin: 16px 0 10px;
}

.step p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* Screenshots */
.screenshots {
  position: relative;
}

.screenshots-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.screenshot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.4s;
}

.screenshot:nth-child(even) {
  transform: translateY(20px);
}

.screenshot:hover {
  transform: translateY(-8px);
}

.screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.price-card.popular {
  background: linear-gradient(145deg, rgba(93, 63, 211, 0.08), rgba(10, 132, 255, 0.06));
  border: 1px solid rgba(93, 63, 211, 0.15);
}

.price-card.value {
  background: linear-gradient(145deg, rgba(255, 159, 10, 0.10), rgba(255, 159, 10, 0.04));
  border: 1px solid rgba(255, 159, 10, 0.22);
}

.popular-badge,
.value-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.popular-badge {
  background: var(--purple-soft);
  color: var(--purple);
}

.value-badge {
  background: var(--orange-soft);
  color: #b35c00;
}

.price-card h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.price-card .price {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 16px 0 6px;
}

.price-card .price span {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--soft);
  letter-spacing: normal;
}

.price-card .desc {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 12px;
  flex-grow: 1;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.price-features li::before {
  content: '✓';
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(52, 199, 89, 0.12);
  color: #34c759;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.price-card .btn {
  width: 100%;
}

.extra-minutes-note {
  margin: 24px auto 0;
  max-width: 760px;
  padding: 15px 20px;
  border-radius: 16px;
  background: rgba(17, 17, 17, 0.04);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.extra-minutes-note strong {
  color: var(--text);
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}

.faq-question .chevron {
  transition: transform 0.3s;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--soft);
}

.faq-item.open .chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  margin: 0;
  padding: 0 24px 22px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

/* CTA banner */
.cta-banner {
  padding: 0 0 80px;
}

.cta-card {
  position: relative;
  overflow: hidden;
  padding: 64px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  text-align: center;
  box-shadow: 0 32px 80px rgba(93, 63, 211, 0.28);
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15), transparent 35%),
    radial-gradient(circle at 80% 30%, rgba(255, 159, 10, 0.25), transparent 30%);
  pointer-events: none;
}

.cta-card h2 {
  position: relative;
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 16px;
}

.cta-card p {
  position: relative;
  font-size: 17px;
  opacity: 0.9;
  max-width: 520px;
  margin: 0 auto 28px;
}

.cta-card .btn-secondary {
  position: relative;
  background: #fff;
  color: var(--purple);
  border: 0;
}

/* Footer */
.footer {
  padding: 48px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 14px 0 0;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
  margin: 0 0 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.footer-col a:hover {
  color: var(--blue);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(17, 17, 17, 0.06);
  font-size: 13px;
  color: var(--soft);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    order: -1;
    max-width: 520px;
    margin: 0 auto;
  }

  .features-grid,
  .steps,
  .screenshots-track {
    grid-template-columns: 1fr;
  }

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

  .screenshot:nth-child(even) {
    transform: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(245, 245, 247, 0.96);
    padding: 16px 24px 24px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.06);
    gap: 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 14px;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero h1 {
    font-size: 36px;
  }

  section {
    padding: 56px 0;
  }

  .floating-card {
    display: none;
  }

  .pricing-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-card {
    padding: 40px 24px;
  }
}
