:root {
    --bg: #F6F7FB;
    --bg-elevated: #FFFFFF;
    --text: #12131A;
    --text-muted: #5B5E6E;
    --border: rgba(18,19,26,0.08);
    --primary: #5B5FEF;
    --primary-soft: rgba(91,95,239,0.10);
    --accent: #FF6B4A;
    --nav-bg: rgba(255,255,255,0.65);
    --card-bg: #FFFFFF;
    --shadow: 0 1px 2px rgba(18,19,26,0.04);
  }

  [data-theme="dark"] {
    --bg: #0A0B10;
    --bg-elevated: #12131C;
    --text: #E8E9F0;
    --text-muted: #8A8D9F;
    --border: rgba(232,233,240,0.08);
    --primary: #7B7FFF;
    --primary-soft: rgba(123,127,255,0.14);
    --accent: #FF7D5E;
    --nav-bg: rgba(15,16,24,0.55);
    --card-bg: #12131C;
    --shadow: 0 1px 2px rgba(0,0,0,0.3);
  }

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

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
  }

  h1, h2, h3, h4, .display {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
  }

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

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

  /* ---------- Scroll reveal motion ---------- */
  .reveal {
    transform: translateY(22px);
    opacity: 0;
    transition:
      opacity 0.7s ease,
      transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
  }

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

  .delay-1 { --reveal-delay: 0.08s; }
  .delay-2 { --reveal-delay: 0.16s; }
  .delay-3 { --reveal-delay: 0.24s; }
  .delay-4 { --reveal-delay: 0.32s; }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
      animation-duration: 0.001ms !important;
      animation-iteration-count: 1 !important;
      scroll-behavior: auto !important;
      transition-duration: 0.001ms !important;
    }

    .reveal {
      transform: none;
      opacity: 1;
    }
  }

  /* ---------- Glassy floating pill navbar ---------- */
  .navwrap {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding: 0 20px;
  }

  .navbar {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 780px;
    padding: 10px 12px 10px 22px;
    border-radius: 999px;
    background: var(--nav-bg);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(18,19,26,0.08), inset 0 1px 0 rgba(255,255,255,0.4);
    transition: background 0.3s ease, border 0.3s ease;
  }

  [data-theme="dark"] .navbar {
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
  }

  .nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 8px;
    white-space: nowrap;
  }

  .nav-logo-mark {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    flex-shrink: 0;
    display: flex;
  }
  .nav-logo-mark svg { display: block; border-radius: 7px; }

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

  .nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
  }

  .nav-links a:hover {
    background: var(--primary-soft);
    color: var(--text);
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }

  .theme-toggle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
  }

  .theme-toggle svg { width: 16px; height: 16px; }

  .btn-nav {
    background: var(--text);
    color: var(--bg);
    font-size: 14px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 999px;
    white-space: nowrap;
  }

  @media (max-width: 720px) {
    .nav-links { display: none; }
  }

  /* ---------- Buttons ---------- */
  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--text);
    color: var(--bg);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 26px;
    border-radius: 999px;
    transition: transform 0.15s ease;
  }
  .btn-primary:hover { transform: translateY(-1px); }

  .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 26px;
    border-radius: 999px;
  }

  /* ---------- Hero ---------- */
  .hero {
    position: relative;
    padding: 200px 0 100px;
    text-align: center;
    overflow: hidden;
  }

  .mesh {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 700px;
    background:
      radial-gradient(circle at 30% 30%, rgba(91,95,239,0.22), transparent 55%),
      radial-gradient(circle at 70% 40%, rgba(255,107,74,0.14), transparent 50%);
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
  }

  .eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 28px;
    box-shadow: var(--shadow);
  }

  .eyebrow-pill span.tag {
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
  }

  .hero h1 {
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 700;
    line-height: 1.06;
    max-width: 800px;
    margin: 0 auto 22px;
  }

  .hero p.lede {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto 36px;
    line-height: 1.6;
  }

  .hero-ctas {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 64px;
  }

  .hero-shot {
    max-width: 920px;
    margin: 0 auto;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    box-shadow: 0 30px 80px rgba(18,19,26,0.14);
    overflow: hidden;
  }

  [data-theme="dark"] .hero-shot { box-shadow: 0 30px 80px rgba(0,0,0,0.5); }

  .hero-shot-inner {
    aspect-ratio: 16/9;
    background:
      linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 100% 40px,
      linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 60px 100%,
      var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-shot-card {
    width: 70%;
    padding: 24px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  .fake-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .fake-row:last-child { border: none; }
  .fake-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
  .fake-bar { height: 8px; border-radius: 4px; background: var(--border); flex: 1; }

  /* ---------- Logo cloud ---------- */
  .logos {
    padding: 40px 0 80px;
    text-align: center;
  }
  .logos p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 28px;
  }
  .logo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    opacity: 0.5;
  }
  .logo-row div {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 19px;
  }

  /* ---------- Section shell ---------- */
  section { padding: 96px 0; }

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

  .section-head h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.15;
  }
  .section-head p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
  }

  .section-muted {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  /* ---------- Features (asymmetric grid) ---------- */
  .feature-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
  }
  .feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px;
    box-shadow: var(--shadow);
  }
  .feature-card.wide { grid-column: span 4; }
  .feature-card.narrow { grid-column: span 2; }
  .feature-card.half { grid-column: span 3; }

  .feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
  }
  .feature-icon svg { width: 20px; height: 20px; }

  .feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
  }
  .feature-card p {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.6;
  }

  @media (max-width: 800px) {
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card.wide, .feature-card.narrow, .feature-card.half { grid-column: span 1; }
  }

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

  .integration-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 26px;
    box-shadow: var(--shadow);
  }

  .integration-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 22px;
  }

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

  .integration-card p {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.6;
  }

  @media (max-width: 900px) {
    .integration-grid { grid-template-columns: repeat(2, 1fr); }
  }

  @media (max-width: 560px) {
    .integration-grid { grid-template-columns: 1fr; }
  }

  /* ---------- Steps ---------- */
  .steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    counter-reset: step;
  }
  .step {
    position: relative;
    padding-top: 8px;
  }
  .step-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
  }
  .step h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 10px;
  }
  .step p {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.6;
  }
  .step-line {
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
    margin-bottom: 24px;
  }

  @media (max-width: 800px) {
    .steps { grid-template-columns: 1fr; gap: 40px; }
  }

  /* ---------- Testimonial ---------- */
  .testimonial-wrap {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 64px;
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
  }
  .testimonial-wrap p.quote {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    line-height: 1.5;
    font-weight: 500;
    margin-bottom: 28px;
  }
  .testimonial-person {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }
  .avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
  }
  .testimonial-person .name { font-weight: 600; font-size: 14px; }
  .testimonial-person .role { color: var(--text-muted); font-size: 13px; }

  @media (max-width: 640px) {
    .testimonial-wrap { padding: 40px 28px; }
    .testimonial-wrap p.quote { font-size: 19px; }
  }

  /* ---------- Pricing ---------- */
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
  }
  .price-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
  }
  .price-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), 0 20px 50px rgba(91,95,239,0.15);
    position: relative;
  }
  .price-badge {
    position: absolute;
    top: -12px;
    left: 32px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
  }
  .price-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
  }
  .price-card .desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
  }
  .price-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 4px;
  }
  .price-amount span {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
  }
  .price-card ul {
    list-style: none;
    margin: 28px 0 32px;
    flex: 1;
  }
  .price-card li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    padding: 8px 0;
    color: var(--text-muted);
  }
  .price-card li svg { width: 16px; height: 16px; margin-top: 2px; color: var(--primary); flex-shrink: 0; }
  .price-cta {
    text-align: center;
    padding: 13px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14.5px;
    border: 1px solid var(--border);
  }
  .price-card.featured .price-cta {
    background: var(--text);
    color: var(--bg);
    border: none;
  }

  @media (max-width: 800px) {
    .pricing-grid { grid-template-columns: 1fr; }
  }

  /* ---------- FAQ ---------- */
  .faq-list { max-width: 720px; margin: 0 auto; }
  .faq-item {
    border-bottom: 1px solid var(--border);
  }
  .faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px 4px;
    background: none;
    border: none;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
  }
  .faq-q svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
    color: var(--text-muted);
  }
  .faq-item.open .faq-q svg { transform: rotate(45deg); }
  .faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .faq-a p {
    padding: 0 4px 24px;
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.6;
    max-width: 600px;
  }

  /* ---------- CTA band ---------- */
  .cta-band {
    background: var(--text);
    color: var(--bg);
    border-radius: 28px;
    padding: 72px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .cta-band h2 {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 700;
    margin-bottom: 14px;
  }
  .cta-band p {
    opacity: 0.7;
    margin-bottom: 32px;
    font-size: 16px;
  }
  .cta-band .btn-primary {
    background: var(--bg);
    color: var(--text);
  }

  /* ---------- Footer ---------- */
  footer {
    border-top: 1px solid var(--border);
    padding: 56px 0 32px;
  }
  .footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 48px;
  }
  .footer-brand .nav-logo { margin-bottom: 12px; }
  .footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    max-width: 260px;
    line-height: 1.6;
  }
  .footer-cols {
    display: flex;
    gap: 64px;
    flex-wrap: wrap;
  }
  .footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-muted);
  }
  .footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text);
    padding: 6px 0;
  }
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
  }
  .socials { display: flex; gap: 12px; }
  .socials a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .socials svg { width: 15px; height: 15px; }

  @media (max-width: 700px) {
    .footer-top { flex-direction: column; }
  }

  ::selection { background: var(--primary); color: white; }
