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

:root {
  --yellow: #ffdd04;
  --cream: #fffbe3;
  --cream-light: #fffad9;
  --dark: #222;
  --black: #000;
  --white: #fff;
  --radius: 20px;
  --radius-sm: 12px;
}

html {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--dark);
  scroll-behavior: smooth;
}

body {
  line-height: 1.5;
  background: var(--white);
}

a {
  color: inherit;
}

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

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Hero ── */
.hero {
  background: var(--yellow);
  text-align: center;
  padding: 60px 0 48px;
}

.hero-logo {
  margin: 0 auto 16px;
}

.hero h1 {
  font-size: 80px;
  font-weight: 700;
  letter-spacing: -3px;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 55px;
  font-weight: 700;
  letter-spacing: -2px;
  margin-bottom: 32px;
}

.voice-pill-link {
  display: inline-block;
  margin-bottom: 32px;
  text-decoration: none;
  transition: transform 0.2s;
}

.voice-pill-link:hover {
  transform: scale(1.03);
}

.voice-pill {
  width: 340px;
  height: 138px;
  margin: 0 auto;
}

.hero-description {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto 40px;
  opacity: 0.75;
  line-height: 1.6;
}

/* Slideshow */
.slideshow {
  position: relative;
  max-width: 900px;
  margin: 0 auto 32px;
}

.slideshow-track {
  position: relative;
  aspect-ratio: 2076 / 1976;
}

.slideshow-track .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.slideshow-track .slide.active {
  opacity: 1;
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  z-index: 2;
}

.slide-arrow:hover {
  opacity: 1;
}

.slide-prev {
  left: -56px;
}

.slide-next {
  right: -56px;
}

.slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background 0.2s;
}

.dot.active {
  background: var(--black);
}

.producthunt-badge {
  display: inline-block;
  margin-bottom: 16px;
}

.producthunt-badge img {
  display: inline;
}

.hero-help {
  font-size: 14px;
  opacity: 0.65;
}

.hero-help a {
  text-decoration: underline;
}

/* ── Buy Once ── */
.buy-once {
  background: var(--cream);
  text-align: center;
  padding: 64px 0 64px;
}

.buy-once-icon {
  margin: 0 auto 16px;
}

.buy-once h2 {
  font-size: 50px;
  font-weight: 700;
  letter-spacing: -2.6px;
  margin-bottom: 12px;
}

.buy-once p {
  font-size: 16px;
  max-width: 540px;
  margin: 0 auto;
  opacity: 0.75;
}

.buy-once a {
  text-decoration: underline;
  font-weight: 500;
}

/* ── Video Section ── */
.video-section {
  background: var(--white);
  padding: 64px 0 40px;
}

.video-wrapper {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
  background: #000;
}

.video-thumbnail {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

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

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}

.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-link {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  opacity: 0.65;
}

.video-link a {
  text-decoration: underline;
}

/* ── Hotkey Spotlight ── */
.hotkey-spotlight {
  text-align: center;
  padding: 80px 0 64px;
}

.hotkey-spotlight h2 {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.hotkey-carousel {
  position: relative;
  height: 70px;
  margin-bottom: 24px;
}

.hotkey-keys {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hotkey-combo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.hotkey-combo.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hotkey-combo.exit {
  opacity: 0;
  transform: translateY(-12px) scale(0.92);
}

.hotkey-combo.active kbd {
  animation: keyPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.hotkey-combo.active kbd:nth-child(1) { animation-delay: 0.05s; }
.hotkey-combo.active kbd:nth-child(2) { animation-delay: 0.15s; }
.hotkey-combo.active kbd:nth-child(3) { animation-delay: 0.25s; }

@keyframes keyPop {
  0%   { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}

.hotkey-keys kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 8px 16px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--dark);
  background: var(--cream-light);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-bottom-width: 4px;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* ── Voice Assistants ── */
.voice-assistants {
  background: var(--white);
  text-align: center;
  padding: 64px 0 40px;
}

.section-illustration {
  margin: 0 auto 24px;
}

.voice-assistants h2,
.email-automation h2,
.privacy-focused h2,
.deeply-integrated h2,
.seamless-integrations h2,
.mcp-section h2 {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.section-description {
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.65;
  line-height: 1.6;
}

.section-description a {
  text-decoration: underline;
  font-weight: 500;
}

/* Marquee */
.marquee-wrapper {
  overflow: hidden;
  margin-top: 32px;
  padding: 12px 0;
}

.marquee-track {
  display: flex;
  gap: 32px;
  animation: marquee 25s linear infinite;
  width: max-content;
}

.marquee-track span {
  white-space: nowrap;
  font-size: 18px;
  font-weight: 500;
  opacity: 0.6;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Email Automation ── */
.email-automation {
  background: var(--white);
  text-align: center;
  padding: 64px 0;
}

/* ── Card Sections (Triggers, Smart Actions, Native Actions, Advanced Actions) ── */
.card-section {
  padding: 40px 0 64px;
}

.card-section-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
  text-align: center;
  margin-bottom: 32px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Provider logos row */
.provider-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}

.provider-logos img {
  width: 32px;
  height: 32px;
  opacity: 0.7;
}

.provider-more {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.5;
  white-space: nowrap;
}

/* MCP Section */
.mcp-section {
  text-align: center;
  padding: 64px 0;
}

.card {
  background: var(--cream-light);
  border-radius: var(--radius);
  padding: 24px;
  text-align: left;
}

.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  opacity: 0.65;
  line-height: 1.5;
}

/* ── Privacy-Focused ── */
.privacy-focused {
  text-align: center;
  padding: 64px 0;
}

/* ── Deeply Integrated ── */
.deeply-integrated {
  text-align: center;
  padding: 64px 0;
}

.integration-logos {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}

.integration-logos img {
  border-radius: var(--radius-sm);
  opacity: 0.45;
}

/* ── Seamless Integrations ── */
.seamless-integrations {
  text-align: center;
  padding: 64px 0;
}

/* ── Footer ── */
.site-footer {
  background: var(--dark);
  color: var(--white);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-inner p {
  font-size: 14px;
  opacity: 0.65;
}

.footer-inner a {
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-inner a:hover {
  opacity: 1;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.footer-links a {
  opacity: 0.65;
}

.footer-links a:hover {
  opacity: 1;
}

/* ── Page Header (Privacy, Terms) ── */
.page-header {
  background: var(--yellow);
  padding: 48px 0 40px;
  position: relative;
  overflow: hidden;
}

.page-header h1 {
  font-size: 65px;
  font-weight: 700;
  letter-spacing: -2.5px;
  margin-bottom: 8px;
}

.page-header-back {
  font-size: 15px;
  opacity: 0.55;
}

.page-header-back a {
  text-decoration: none;
}

.page-header-logo {
  position: absolute;
  top: 50%;
  right: -30px;
  transform: translateY(-50%);
  opacity: 0.18;
  width: 200px;
  height: 200px;
  pointer-events: none;
}

/* ── Text Pages (Privacy, Terms) ── */
.text-page {
  padding: 48px 0 80px;
}

.text-page .container {
  max-width: 700px;
}

.text-page p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
  opacity: 0.65;
}

.text-page p strong {
  opacity: 1;
  color: var(--dark);
  font-weight: 600;
  font-size: 17px;
}

.text-page p em {
  opacity: 0.55;
}

.text-page a {
  text-decoration: underline;
}

.text-page ul {
  margin: 0 0 16px 20px;
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.65;
}

.text-page li {
  margin-bottom: 8px;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  .hero h1 {
    font-size: 64px;
    letter-spacing: -2.5px;
  }

  .hero-subtitle {
    font-size: 44px;
    letter-spacing: -1.5px;
  }

  .hero-description {
    font-size: 18px;
  }

  .voice-assistants h2,
  .email-automation h2,
  .privacy-focused h2,
  .deeply-integrated h2,
  .seamless-integrations h2,
  .mcp-section h2,
  .hotkey-spotlight h2,
  .buy-once h2 {
    font-size: 36px;
  }

  .slide-prev { left: 8px; }
  .slide-next { right: 8px; }

  .slide-arrow img {
    width: 32px;
    height: 32px;
  }

  .page-header h1 {
    font-size: 52px;
  }
}

@media (max-width: 810px) {
  .hero {
    padding: 48px 0 40px;
  }

  .hero h1 {
    font-size: 48px;
    letter-spacing: -2px;
  }

  .hero-subtitle {
    font-size: 34px;
    letter-spacing: -1px;
    margin-bottom: 24px;
  }

  .hero-description {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .voice-assistants h2,
  .email-automation h2,
  .privacy-focused h2,
  .deeply-integrated h2,
  .seamless-integrations h2,
  .mcp-section h2,
  .hotkey-spotlight h2,
  .buy-once h2 {
    font-size: 30px;
  }

  .buy-once h2 {
    font-size: 36px;
    letter-spacing: -1.8px;
  }

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .section-illustration {
    width: 180px;
    height: auto;
  }

  .voice-pill {
    width: 260px;
    height: 106px;
  }

  .page-header h1 {
    font-size: 42px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 0 32px;
  }

  .hero h1 {
    font-size: 38px;
    letter-spacing: -1.5px;
  }

  .hero-subtitle {
    font-size: 26px;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
  }

  .hero-description {
    font-size: 15px;
  }

  .voice-pill {
    width: 200px;
    height: 82px;
  }

  .voice-assistants h2,
  .email-automation h2,
  .privacy-focused h2,
  .deeply-integrated h2,
  .seamless-integrations h2,
  .mcp-section h2,
  .hotkey-spotlight h2,
  .buy-once h2 {
    font-size: 26px;
  }

  .buy-once h2 {
    font-size: 28px;
    letter-spacing: -1.2px;
  }

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

  .page-header h1 {
    font-size: 32px;
  }
}
