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

:root {
  --bg: #f6f5fb;
  --bg-elevated: #ffffff;
  --bg-muted: #f0eef8;
  --text: #0a0a0f;
  --text-muted: #5c6578;
  --accent: #6d28d9;
  --accent-light: #7c3aed;
  --accent-soft: rgba(109, 40, 217, 0.1);
  --border: rgba(15, 15, 20, 0.08);
  --shadow: 0 8px 32px rgba(15, 15, 20, 0.08), 0 24px 48px rgba(109, 40, 217, 0.1);
  --radius: 14px;
  --radius-lg: 20px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --nav-h: 72px;
  --coupon-banner-h: 0px;
  --header-h: calc(var(--nav-h) + var(--coupon-banner-h));
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

.coupon-banner {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 99;
  background: linear-gradient(90deg, #6d28d9, #7c3aed);
  color: #fff;
  font-size: 0.875rem;
}

.coupon-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.65rem 2.5rem 0.65rem 1rem;
  position: relative;
  text-align: center;
}

.coupon-banner p {
  margin: 0;
  line-height: 1.45;
}

.coupon-banner p strong {
  font-weight: 800;
  letter-spacing: 0.04em;
}

.coupon-banner-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  border: none;
  background: #fff;
  color: #5b21b6;
  box-shadow: 0 2px 10px rgba(15, 15, 20, 0.14);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.coupon-banner-copy svg {
  flex-shrink: 0;
}

.coupon-banner-copy:hover {
  background: #f5f3ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 15, 20, 0.16);
}

.coupon-banner-copy:active {
  transform: translateY(0);
  box-shadow: 0 1px 6px rgba(15, 15, 20, 0.12);
}

.coupon-banner-copy.is-copied {
  background: #ecfdf5;
  color: #047857;
}

.coupon-banner-copy.is-copied svg {
  display: none;
}

.coupon-banner-dismiss {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  padding: 0.25rem 0.5rem;
}

.coupon-banner-dismiss:hover {
  opacity: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  background: rgba(246, 245, 251, 0.8);
  backdrop-filter: blur(16px) saturate(180%);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nav--scrolled {
  border-color: var(--border);
  box-shadow: 0 4px 24px rgba(15, 15, 20, 0.04);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  z-index: 202;
  flex-shrink: 0;
  min-width: 0;
}

.brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  z-index: 202;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-menu a:not(.btn):hover {
  color: var(--accent);
}

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

.nav-backdrop {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.15s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 45%, #9333ea 100%);
  box-shadow: 0 4px 20px rgba(109, 40, 217, 0.4);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-cta-light {
  background: #fff !important;
  color: var(--accent) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
}

/* Hero */
.hero {
  padding: calc(var(--header-h) + 3.5rem) 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(139, 92, 246, 0.22), transparent),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(99, 102, 241, 0.12), transparent),
    radial-gradient(ellipse 40% 30% at 10% 60%, rgba(236, 72, 153, 0.08), transparent);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(120deg, #4c1d95 0%, #6d28d9 40%, #9333ea 70%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p.lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.hero-stat strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.hero-stat span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Mock toolbar */
.mock-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1rem;
  animation: float 6s ease-in-out infinite;
}

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

.mock-browser {
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #fff;
}

.mock-browser-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem;
  background: #f3f4f6;
  border-bottom: 1px solid var(--border);
}

.mock-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d1d5db;
}

.mock-dot:nth-child(1) { background: #fca5a5; }
.mock-dot:nth-child(2) { background: #fcd34d; }
.mock-dot:nth-child(3) { background: #86efac; }

.mock-url {
  flex: 1;
  margin-left: 0.5rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: #fff;
  font-size: 0.7rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-chat {
  padding: 1.25rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

.mock-prompt {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: #fff;
  line-height: 1.5;
}

.mock-toolbar {
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(109, 40, 217, 0.15);
  background: linear-gradient(180deg, #fff 0%, #faf9ff 100%);
  box-shadow: 0 8px 24px rgba(109, 40, 217, 0.14);
}

.mock-toolbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.mock-toolbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.mock-toolbar-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
}

.mock-toolbar-brand strong {
  font-size: 0.75rem;
  display: block;
}

.mock-toolbar-brand span {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.mock-score {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.mock-score-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.mock-score-bg {
  fill: none;
  stroke: rgba(109, 40, 217, 0.12);
  stroke-width: 4;
}

.mock-score-fill {
  fill: none;
  stroke: url(#scoreGrad);
  stroke: #7c3aed;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 113;
  stroke-dashoffset: 32;
}

.mock-score-num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent);
}

.mock-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mock-chip {
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent);
}

.mock-chip.primary {
  background: linear-gradient(135deg, #5b21b6, #7c3aed);
  color: #fff;
}

/* Sections */
section {
  padding: 4.5rem 0;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.section-muted {
  background: var(--bg-muted);
}

.section-center {
  text-align: center;
}

.section-center .section-desc {
  margin-inline: auto;
}

.section-desc-center {
  text-align: center;
  margin-inline: auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

/* Platforms */
.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 720px;
  margin-inline: auto;
}

.platform-pill {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: border-color 0.15s, color 0.15s;
}

.platform-pill:hover {
  border-color: rgba(109, 40, 217, 0.3);
  color: var(--accent);
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(109, 40, 217, 0.2);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.step {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.step-num {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #5b21b6, #7c3aed);
}

.step h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.price-card {
  padding: 1.75rem;
  padding-top: 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.price-card:hover {
  transform: translateY(-2px);
}

.price-card.featured {
  border-color: rgba(109, 40, 217, 0.35);
  box-shadow: var(--shadow);
  position: relative;
  padding-top: 2.25rem;
}

.price-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #5b21b6, #7c3aed);
  white-space: nowrap;
}

.price-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.price-card .price {
  font-size: 2rem;
  font-weight: 800;
  margin: 0.75rem 0;
  line-height: 1.1;
}

.price-card .price span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.price-card ul {
  list-style: none;
  margin: 1rem 0 1.5rem;
  flex: 1;
}

.price-card li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 800;
}

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

/* FAQ */
.faq-list {
  max-width: 720px;
  margin-inline: auto;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.faq-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* CTA */
#install {
  padding-bottom: 2rem;
}

.cta {
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 50%, #9333ea 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.cta > p {
  opacity: 0.92;
  margin-bottom: 1.5rem;
  max-width: 28rem;
  margin-inline: auto;
}

.cta-note {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
  font-size: 0.75rem !important;
  opacity: 0.75 !important;
}

/* Footer */
.footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .features-grid,
  .steps,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 2.5rem;
  }

  .mock-card {
    max-width: 480px;
    margin-inline: auto;
    animation: none;
  }

  .nav-cta-desktop {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 199;
    background: rgba(10, 10, 15, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .nav-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 200;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1.5rem;
    max-height: calc(100dvh - var(--header-h));
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(15, 15, 20, 0.12);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0.22s ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu a:not(.btn) {
    display: block;
    padding: 1rem 0.25rem;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
    color: var(--text);
  }

  .nav-cta-mobile {
    display: flex;
    margin-top: 1.25rem;
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 0.9rem 1.25rem;
  }

  .hero {
    padding-top: calc(var(--header-h) + 2rem);
  }

  .hero-copy {
    text-align: center;
  }

  .hero p.lead {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  section {
    padding: 3.5rem 0;
  }
}

@media (min-width: 961px) {
  .nav-inner {
    justify-content: flex-start;
  }

  .nav-menu {
    margin-left: 2rem;
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .container {
    width: min(1120px, calc(100% - 1.25rem));
  }
}

@media (min-width: 961px) {
  .features-grid .feature-card:nth-child(2) {
    transition-delay: 0.05s;
  }
  .features-grid .feature-card:nth-child(3) {
    transition-delay: 0.1s;
  }
}
