/* === Base === */

:root {
  --text: #1d1d1f;
  --text-secondary: #86868b;
  --bg: #fbfbfd;
  --surface: #ffffff;
  --primary: #0071e3;
  --primary-hover: #0077ed;
  --border: rgba(0, 0, 0, 0.08);
}

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

html { scroll-behavior: smooth; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Topbar === */

.topbar {
  width: min(1080px, 92%);
  margin: 16px auto 0;
  padding: 8px 8px 8px 20px;
  border-radius: 980px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 12px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.brand {
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
}

.brand-logo {
  width: 28px;
  height: 28px;
  object-fit: cover;
  display: inline-block;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.brand-text {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.topnav {
  display: inline-flex;
  align-items: center;
  gap: 28px;
}

.topnav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.85rem;
  transition: color 200ms;
}

.topnav a:hover {
  color: var(--text);
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* === Buttons === */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 980px;
  padding: 10px 20px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 200ms ease;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: scale(1.02);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.04);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.15);
}

/* === Layout === */

main {
  width: min(1080px, 92%);
  margin: 0 auto;
}

/* === Hero === */

.hero {
  text-align: center;
  padding: 100px 0 0;
  max-width: 720px;
  margin: 0 auto;
}

.hero-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text);
}

.hero-sub {
  margin: 24px auto 0;
  max-width: 480px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.hero-microcopy {
  margin: 14px 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* === Social proof === */

.proof {
  margin-top: 92px;
  text-align: center;
}

.logo-cloud {
  margin: 20px auto 0;
  max-width: 820px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.logo-cloud span {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 600;
  color: #525259;
}

.testimonials {
  margin: 16px auto 0;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.testimonial-card {
  margin: 0;
  padding: 18px 18px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: left;
}

.testimonial-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #3a3a43;
}

.testimonial-card strong {
  display: block;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* === Bento Grid Section === */

.bento-section {
  margin-top: 120px;
  text-align: center;
  padding: 80px 0 100px;
  background: linear-gradient(168deg, rgba(0, 113, 227, 0.06) 0%, rgba(0, 113, 227, 0.12) 50%, rgba(100, 160, 240, 0.06) 100%);
  border-radius: 32px;
}

.bento-section h2 {
  margin: 16px 0 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.bento-grid {
  margin: 56px auto 0;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 24px;
}

/* Base card */
.bento-card {
  padding: 28px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: box-shadow 300ms ease, transform 300ms ease;
}

.bento-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
  transform: translateY(-3px);
}

.bento-card h3 {
  margin: 14px 0 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.bento-card p {
  margin: 8px 0 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Metric cards */
.bento-metric {
  align-items: center;
  text-align: center;
  padding: 24px 16px;
}

.bento-metric-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}

.bento-metric-label {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Large card: spans 2 columns */
.bento-large {
  grid-column: span 2;
}

.bento-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bento-card-header h3 {
  margin: 0;
}

.bento-card-header .feature-icon {
  margin: 0;
}

/* Tall card */
.bento-tall {
  grid-row: span 2;
  justify-content: center;
}

/* Embedded preview list */
.bento-preview {
  margin-top: 16px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border);
  flex: 1;
}

.bento-preview .preview-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bento-preview .preview-row {
  display: flex;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.84rem;
  transition: background 200ms;
}

.bento-preview .preview-row:hover {
  background: rgba(0, 0, 0, 0.03);
}

.bento-preview .preview-row span:first-child {
  font-weight: 600;
  color: var(--text);
  min-width: 42px;
}

.bento-preview .preview-row span:last-child {
  color: var(--text-secondary);
}

.bento-preview .preview-row.dim {
  opacity: 0.4;
}

/* Mini chart decoration */
.bento-mini-chart {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 72px;
}

.bento-bar {
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: rgba(0, 0, 0, 0.06);
  transition: background 300ms;
}

.bento-bar-accent {
  background: var(--primary);
  opacity: 0.4;
}

/* === Sections === */

.section {
  margin-top: 200px;
  text-align: center;
}

.section-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
}

.section h2 {
  margin: 16px 0 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

/* === Feature Icon (shared) === */

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(0, 113, 227, 0.06);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* === Steps === */

.steps {
  margin: 64px auto 0;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: left;
}

.step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child {
  border-bottom: none;
}

.step-number {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  padding-top: 2px;
  min-width: 28px;
}

.step h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.step p {
  margin: 6px 0 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* === Pricing === */

.pricing {
  margin: 64px auto 0;
  max-width: 580px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.plan {
  padding: 36px 28px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: box-shadow 300ms ease, transform 300ms ease;
}

.plan:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.plan h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.plan-for {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.plan-price {
  margin: 12px 0 0;
}

.plan-price strong {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.plan-price span {
  display: block;
  margin-top: 4px;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--text-secondary);
  font-weight: 500;
}

.plan ul {
  margin: 24px 0;
  padding: 0;
  list-style: none;
  text-align: left;
  flex: 1;
}

.plan li {
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.plan li:last-child {
  border-bottom: none;
}

.plan .btn {
  width: 100%;
  margin-top: auto;
}

.plan-featured {
  background: var(--text);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.15);
  transform: scale(1.02);
}

.plan-featured:hover {
  transform: scale(1.04);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.2);
}

.plan-featured h3 {
  color: rgba(255, 255, 255, 0.6);
}

.plan-featured .plan-price span {
  color: rgba(255, 255, 255, 0.5);
}

.plan-featured li {
  color: rgba(255, 255, 255, 0.6);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.plan-badge {
  display: inline-block;
  margin: 0 auto 12px;
  padding: 4px 12px;
  border-radius: 980px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
}

.pricing-note {
  margin: 14px auto 0;
  max-width: 560px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* === Objections (short FAQ) === */

.objections {
  margin: 48px auto 0;
  max-width: 860px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.objections article {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 14px 14px 12px;
  text-align: left;
}

.objections strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text);
}

.objections span {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* === FAQ === */

.faq-list {
  margin: 64px auto 0;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.faq-item {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 18px 22px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background 200ms;
}

.faq-trigger:hover {
  background: rgba(0, 0, 0, 0.015);
}

.faq-trigger::after {
  content: "+";
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: transform 250ms ease;
  flex-shrink: 0;
}

.faq-item.open .faq-trigger::after {
  transform: rotate(45deg);
}

.faq-content {
  margin: 0;
  padding: 0 22px 18px;
  display: none;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

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

/* === CTA === */

.cta {
  margin-top: 200px;
  text-align: center;
  padding: 80px 0;
}

.cta h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.cta .btn {
  margin-top: 32px;
}

/* === Footer === */

.footer {
  width: min(1080px, 92%);
  margin: 0 auto 0;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.footer strong {
  color: var(--text);
  font-weight: 600;
}

/* === Toast === */

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  max-width: 320px;
  background: var(--text);
  color: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* === Sticky mobile CTA === */

.sticky-mobile-cta {
  display: none;
}

/* === Reveal animation === */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

/* === Responsive === */

@media (max-width: 768px) {
  .topbar {
    padding: 8px 12px;
    border-radius: 16px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .topnav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 16px;
  }

  .hero {
    padding: 60px 0 0;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }

  .hero-microcopy {
    font-size: 0.76rem;
  }

  .proof {
    margin-top: 70px;
  }

  .logo-cloud {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

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

  .hero-sub br { display: none; }

  .bento-section {
    margin-top: 80px;
    padding: 60px 0 72px;
    border-radius: 24px;
  }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 16px;
  }

  .bento-metric {
    padding: 20px 12px;
  }

  .bento-metric:nth-child(3) {
    grid-column: span 2;
  }

  .bento-metric-value {
    font-size: 1.6rem;
  }

  .bento-large {
    grid-column: span 2;
  }

  .bento-tall {
    grid-row: span 1;
    grid-column: span 2;
  }

  .bento-card {
    padding: 22px 18px;
  }

  .section {
    margin-top: 140px;
  }

  .section h2 {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .pricing {
    grid-template-columns: 1fr;
    max-width: 340px;
  }

  .objections {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .plan-featured {
    transform: none;
  }

  .plan-featured:hover {
    transform: translateY(-2px);
  }

  .cta {
    margin-top: 140px;
    padding: 60px 0;
  }

  .cta h2 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .footer {
    flex-direction: column;
    text-align: center;
    gap: 4px;
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }

  .sticky-mobile-cta {
    display: inline-flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
