/* ─────────── Brand fonts ─────────── */
  @font-face {
    font-family: "Inter";
    src: url("fonts/Inter-VariableFont_opsz,wght.ttf") format("truetype-variations"),
         url("fonts/Inter-VariableFont_opsz,wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
  }

  :root {
    --pf-primary: #635BFF;
    --pf-primary-hover: #5650E0;
    --pf-primary-soft: #F0EFFF;
    --pf-primary-soft-border: #E0DEFF;
    --pf-indigo-900: #1A1840;
    --pf-indigo-800: #2E2A6E;
    --pf-indigo-accent: #C7D2FE;
    --pf-text: #0F172A;
    --pf-text-deep: #202848;
    --pf-text-secondary: #475569;
    --pf-text-muted: #64748B;
    --pf-text-quiet: #6B7691;
    --pf-border: #E6EBF1;
    --pf-divider: #F1F5F9;
    --pf-bg: #F6F8FB;
  }

  html, body {
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--pf-text);
    background: #FFFFFF;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
  }

  .tabular { font-variant-numeric: tabular-nums lining-nums; }

  /* ─── Hero gradient backdrop ─── */
  .hero-bg {
    background:
      radial-gradient(ellipse 1100px 600px at 50% -100px, rgba(99,91,255,0.18) 0%, rgba(99,91,255,0) 60%),
      radial-gradient(ellipse 700px 400px at 85% 200px, rgba(199,210,254,0.4) 0%, rgba(199,210,254,0) 60%),
      radial-gradient(ellipse 700px 400px at 15% 300px, rgba(240,239,255,0.6) 0%, rgba(240,239,255,0) 60%),
      #FFFFFF;
  }

  .grid-overlay { display: none; } /* legacy, no-op */

  /* ─── Hero AI orbs / aurora ─── */
  .orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(60px);
    opacity: 0.55;
    pointer-events: none;
    will-change: transform;
  }
  .orb-a {
    width: 520px; height: 520px;
    top: -180px; left: 8%;
    background: radial-gradient(circle at 30% 30%, #635BFF, transparent 65%);
    animation: orbDrift 14s ease-in-out infinite alternate;
  }
  .orb-b {
    width: 460px; height: 460px;
    top: -80px; right: 4%;
    background: radial-gradient(circle at 70% 40%, #C7D2FE, transparent 65%);
    opacity: 0.75;
    animation: orbDrift 17s ease-in-out -3s infinite alternate;
  }
  .orb-c {
    width: 360px; height: 360px;
    bottom: 14%; left: 38%;
    background: radial-gradient(circle at 50% 50%, #E0DEFF, transparent 65%);
    opacity: 0.85;
    animation: orbDrift 20s ease-in-out -6s infinite alternate;
  }
  @keyframes orbDrift {
    0%   { transform: translate3d(0,0,0) scale(1); }
    50%  { transform: translate3d(40px,-20px,0) scale(1.08); }
    100% { transform: translate3d(-30px,30px,0) scale(0.96); }
  }

  /* slowly rotating conic shimmer behind the headline */
  .conic-halo {
    position: absolute;
    top: 220px; left: 50%;
    width: 900px; height: 900px;
    transform: translateX(-50%);
    border-radius: 9999px;
    background:
      conic-gradient(from 0deg,
        rgba(99,91,255,0)    0deg,
        rgba(99,91,255,0.18) 60deg,
        rgba(199,210,254,0.0) 120deg,
        rgba(99,91,255,0.14) 220deg,
        rgba(99,91,255,0)    360deg);
    filter: blur(40px);
    opacity: 0.55;
    pointer-events: none;
    animation: spinSlow 32s linear infinite;
  }
  @keyframes spinSlow { to { transform: translateX(-50%) rotate(360deg); } }

  /* tiny sparkle dots */
  .sparkle-dots {
    position: absolute; inset: 0;
    background-image:
      radial-gradient(circle at 12% 28%, rgba(99,91,255,0.35) 0 1.4px, transparent 1.5px),
      radial-gradient(circle at 85% 18%, rgba(99,91,255,0.30) 0 1.2px, transparent 1.3px),
      radial-gradient(circle at 70% 70%, rgba(99,91,255,0.30) 0 1.4px, transparent 1.5px),
      radial-gradient(circle at 22% 78%, rgba(99,91,255,0.28) 0 1.0px, transparent 1.1px),
      radial-gradient(circle at 50% 12%, rgba(199,210,254,0.55) 0 1.6px, transparent 1.7px),
      radial-gradient(circle at 92% 55%, rgba(99,91,255,0.30) 0 1.2px, transparent 1.3px),
      radial-gradient(circle at 8% 60%, rgba(99,91,255,0.30) 0 1.2px, transparent 1.3px),
      radial-gradient(circle at 60% 38%, rgba(99,91,255,0.22) 0 1.0px, transparent 1.1px);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
    animation: twinkle 4s ease-in-out infinite;
    pointer-events: none;
  }
  @keyframes twinkle {
    0%,100% { opacity: 0.65; }
    50%     { opacity: 1; }
  }

  @media (prefers-reduced-motion: reduce) {
    .orb-a, .orb-b, .orb-c, .conic-halo, .sparkle-dots { animation: none !important; }
  }

  /* ─── Buttons ─── */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 600; line-height: 1; white-space: nowrap;
    transition: transform 200ms cubic-bezier(0.2,0.7,0.2,1), background-color 200ms ease, box-shadow 200ms ease, color 200ms ease, border-color 200ms ease;
    will-change: transform;
  }
  .btn:hover { transform: scale(1.02); }
  .btn:active { transform: scale(0.99); }

  .btn-primary {
    background: var(--pf-primary);
    color: #fff;
    border-radius: 12px;
    padding: 12px 20px;
    box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 8px 22px rgba(99,91,255,0.32);
  }
  .btn-primary:hover { background: var(--pf-primary-hover); }

  .btn-ghost {
    background: rgba(255,255,255,0.7);
    color: var(--pf-text-deep);
    border: 1px solid var(--pf-border);
    border-radius: 12px;
    padding: 12px 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .btn-ghost:hover { background: #fff; border-color: #D9E1EA; }

  .btn-nav {
    background: var(--pf-primary);
    color: #fff;
    border-radius: 10px;
    padding: 9px 16px;
    font-size: 14px;
    box-shadow: 0 4px 14px rgba(99,91,255,0.28);
  }
  .btn-nav:hover { background: var(--pf-primary-hover); }

  /* ─── Glass nav ─── */
  .nav-glass {
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    background: rgba(255,255,255,0.72);
    border-bottom: 1px solid rgba(230,235,241,0.6);
  }

  /* ─── Eyebrow chip ─── */
  .eyebrow-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px 6px 8px;
    border-radius: 9999px;
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--pf-primary-soft-border);
    color: var(--pf-text-deep);
    font-size: 13px; font-weight: 500;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04);
  }
  .eyebrow-chip .dot {
    width: 22px; height: 22px; border-radius: 9999px;
    background: var(--pf-primary-soft);
    color: var(--pf-primary);
    display: inline-flex; align-items: center; justify-content: center;
    overflow: visible;
  }
  /* animated live dot + expanding outer ring (brand gradient) */
  .pulse-dot {
    position: relative;
    width: 9px; height: 9px; border-radius: 9999px;
    background: linear-gradient(135deg, #635BFF 0%, #2E2A6E 100%);
    box-shadow: 0 1px 3px rgba(99,91,255,0.45);
    animation: pulse-core 2.6s ease-in-out infinite;
  }
  .pulse-dot::before,
  .pulse-dot::after {
    content: "";
    position: absolute; inset: 0;
    border-radius: 9999px;
    border: 1.5px solid var(--pf-primary);
    transform-origin: center;
    animation: pulse-ring 2.6s cubic-bezier(0.2,0.7,0.2,1) infinite;
  }
  .pulse-dot::after { animation-delay: 1.3s; }
  @keyframes pulse-core {
    0%, 100% { transform: scale(1) translateY(0); }
    35%      { transform: scale(1.22) translateY(-0.4px); }
    65%      { transform: scale(0.94) translateY(0.3px); }
  }
  @keyframes pulse-ring {
    0%   { transform: scale(1);   opacity: 0.55; }
    70%  { opacity: 0; }
    100% { transform: scale(2.6); opacity: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .pulse-dot, .pulse-dot::before, .pulse-dot::after { animation: none; }
  }

  /* ─── Section eyebrow ─── */
  .section-eyebrow {
    font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--pf-primary);
  }

  /* ─── Headline gradient ─── */
  .head-gradient {
    background: linear-gradient(180deg, #0F172A 0%, #2E2A6E 75%, #635BFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* give descenders (g, y, p) room — tight line-height + background-clip:text clips them otherwise */
    padding-bottom: 0.12em;
  }

  /* ─── Feature card ─── */
  .feature-card {
    background: #fff;
    border: 1px solid var(--pf-border);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 12px 28px rgba(15,23,42,0.04);
    transition: transform 250ms cubic-bezier(0.2,0.7,0.2,1), box-shadow 250ms ease, border-color 250ms ease;
  }
  .feature-card:hover {
    transform: translateY(-2px);
    border-color: #DCE3EE;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 24px 40px rgba(15,23,42,0.06);
  }
  .feature-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--pf-primary-soft);
    color: var(--pf-primary);
    margin-bottom: 18px;
  }

  /* ─── Pricing card ─── */
  .price-card {
    background: #fff;
    border: 1px solid var(--pf-border);
    border-radius: 22px;
    padding: 32px;
    display: flex; flex-direction: column;
    transition: transform 250ms cubic-bezier(0.2,0.7,0.2,1), box-shadow 250ms ease, border-color 250ms ease;
    height: 100%;
  }
  .price-card:hover { transform: translateY(-2px); }
  .price-card.featured {
    background: linear-gradient(180deg, #1A1840 0%, #2E2A6E 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 24px 60px -12px rgba(46,42,110,0.5);
    transform: scale(1.02);
  }
  .price-card.featured:hover { transform: scale(1.02) translateY(-2px); }

  /* ─── Pricing toggle ─── */
  .toggle-track {
    position: relative;
    display: inline-flex;
    padding: 4px;
    background: #F1F2F8;
    border-radius: 9999px;
    border: 1px solid var(--pf-border);
  }
  .toggle-btn {
    position: relative; z-index: 2;
    padding: 8px 18px;
    font-size: 14px; font-weight: 600;
    color: var(--pf-text-muted);
    border-radius: 9999px;
    transition: color 200ms ease;
    display: inline-flex; align-items: center; gap: 8px;
  }
  .toggle-btn.active { color: #fff; }
  .toggle-thumb {
    position: absolute; top: 4px; bottom: 4px;
    background: var(--pf-primary);
    border-radius: 9999px;
    transition: left 280ms cubic-bezier(0.2,0.7,0.2,1), width 280ms cubic-bezier(0.2,0.7,0.2,1);
    box-shadow: 0 4px 14px rgba(99,91,255,0.35);
  }

  /* ─── Scroll reveal ─── */
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 700ms cubic-bezier(0.2,0.7,0.2,1), transform 700ms cubic-bezier(0.2,0.7,0.2,1);
  }
  .reveal.in {
    opacity: 1;
    transform: translateY(0);
  }

  /* ─── Logo strip marquee ─── */
  .logo-track {
    display: flex; gap: 64px;
    animation: marquee 36s linear infinite;
  }
  @keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }
  .logo-mask {
    mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  }

  /* ─── Mockup card ─── */
  .mockup {
    background: #fff;
    border: 1px solid var(--pf-border);
    border-radius: 22px;
    box-shadow:
      0 0 0 1px rgba(15,23,42,0.02),
      0 30px 60px -20px rgba(15,23,42,0.18),
      0 18px 36px -18px rgba(99,91,255,0.18);
    overflow: hidden;
  }
  .floater {
    background: #fff;
    border: 1px solid var(--pf-border);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(15,23,42,0.10), 0 2px 6px rgba(15,23,42,0.04);
  }
  .floater-dark {
    background: linear-gradient(180deg, #1A1840 0%, #2E2A6E 100%);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    box-shadow: 0 16px 36px -8px rgba(46,42,110,0.55);
  }

  .pill {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 9px;
    border-radius: 9999px;
    font-size: 11px; font-weight: 600;
    border: 1px solid transparent;
  }
  .pill-pending { background:#FFFBEB; color:#92400E; border-color:#FDE68A; }
  .pill-published { background:#EFF6FF; color:#1D4ED8; border-color:#BFDBFE; }
  .pill-completed { background:#ECFDF5; color:#047857; border-color:#A7F3D0; }
  .pill-draft { background:#F8FAFC; color:#334155; border-color:#E2E8F0; }
  .pill-ai { background:#F0EFFF; color:#635BFF; border-color:#E0DEFF; }

  /* float anim */
  @keyframes floatY {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-6px); }
  }
  .float-slow { animation: floatY 6s ease-in-out infinite; }
  .float-slower { animation: floatY 8s ease-in-out infinite; animation-delay: -2s; }

  /* sparkle */
  @keyframes sparklePulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
  }
  .sparkle { animation: sparklePulse 2.4s ease-in-out infinite; }

  /* shimmer accent line behind hero headline */
  .head-accent {
    position: absolute; inset: auto; pointer-events: none;
  }

  /* footer link */
  .foot-link {
    color: var(--pf-text-muted);
    font-size: 14px;
    transition: color 150ms ease;
  }
  .foot-link:hover { color: var(--pf-text); }

  /* divider faint */
  .hairline { height:1px; background: linear-gradient(90deg, transparent, var(--pf-border), transparent); }

  /* number sparkline */
  .spark-bar { background: var(--pf-primary); border-radius: 2px; opacity:0.85; }
  .spark-bar.muted { background:#E0DEFF; opacity:1; }

  /* gradient ring around featured price card */
  .featured-ring {
    position: relative;
  }
  .featured-ring::before {
    content:"";
    position:absolute; inset:-1px; border-radius: 23px; padding:1px;
    background: linear-gradient(140deg, #635BFF, #C7D2FE, #635BFF);
    -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events:none;
  }

  /* AI bar growing */
  @keyframes growBar {
    from { width: 0%; }
    to   { width: var(--target, 70%); }
  }
  .ai-bar-inner { animation: growBar 1.6s cubic-bezier(0.2,0.7,0.2,1) forwards; }

  /* tiny dot timeline */
  .timeline-dot { width:6px; height:6px; border-radius:9999px; background: var(--pf-primary); box-shadow: 0 0 0 4px var(--pf-primary-soft); }

  /* link underline anim */
  .nav-link {
    position: relative;
    color: var(--pf-text-secondary);
    font-size: 14px; font-weight: 500;
    transition: color 150ms ease;
  }
  .nav-link:hover { color: var(--pf-text-deep); }
  .nav-link::after {
    content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px;
    background: var(--pf-primary); border-radius: 2px;
    transform: scaleX(0); transform-origin: left;
    transition: transform 250ms cubic-bezier(0.2,0.7,0.2,1);
  }
  .nav-link:hover::after { transform: scaleX(1); }

  /* faq-ish accordion not used; saving lines */

  /* responsive helpers */
  @media (max-width: 768px) {
    .mobile-hide { display: none; }
  }
