/* Tokens from /design: Hero + Testimonials + CTA pattern, brand blue + creator purple + pink CTA, Space Grotesk / DM Sans */
:root {
  --primary: #2563eb; --secondary: #7c3aed; --accent: #ec4899; --sky: #0ea5e9;
  --bg: #f7f8ff; --card: #ffffff; --fg: #0f172a; --muted: #475569; --line: #e4ecfc; --soft: #f1f5fd;
  --grad: linear-gradient(100deg, #2563eb, #7c3aed 50%, #ec4899);
  --radius: 24px; --shadow: 0 20px 50px -28px rgba(37, 99, 235, .45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: 'DM Sans', system-ui, sans-serif; background: var(--bg); color: var(--fg); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: -.03em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; }
.grad { background: var(--grad); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 8s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.muted { color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.eyebrow { font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--secondary); margin-bottom: .8rem; }
.eyebrow.light { color: #c4b5fd; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 10px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 2000; background: var(--fg); color: #fff; padding: .5rem 1rem; border-radius: 8px; }
.skip:focus { left: 8px; }

.free-bar { background: var(--grad); color: #fff; font-size: .84rem; font-weight: 500; }
.free-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .45rem; }
.free-bar b { background: #fff; color: var(--fg); padding: .1rem .5rem; border-radius: 6px; margin-right: .35rem; font-size: .7rem; letter-spacing: .08em; }
.free-bar a { font-weight: 700; white-space: nowrap; }
.free-bar a:hover { text-decoration: underline; }

.site-nav { position: sticky; top: 0; z-index: 1030; background: rgba(247, 248, 255, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: box-shadow .3s; }
.site-nav.scrolled { box-shadow: 0 10px 30px -20px rgba(15, 23, 42, .35); }
.navbar { padding-block: .8rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; }
.brand b { font-weight: 700; letter-spacing: -.04em; }
.brand-orb { width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(from 0deg, #2563eb, #7c3aed, #ec4899, #0ea5e9, #2563eb); box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .55), 0 6px 16px -6px #7c3aed; animation: spin 6s linear infinite; }
.brand-orb.sm { width: 36px; height: 36px; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav-link { color: var(--muted) !important; font-weight: 500; }
.nav-link:hover { color: var(--fg) !important; }
.navbar-toggler { border: 1px solid var(--line); font-size: 1.5rem; color: var(--fg); padding: .2rem .6rem; }
.nav-actions { display: flex; align-items: center; gap: .8rem; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); }
.lang button { border: 0; background: none; font-weight: 700; font-size: .78rem; color: var(--muted); min-width: 40px; min-height: 36px; border-radius: 999px; transition: background .2s, color .2s; }
.lang button[aria-pressed="true"] { background: var(--fg); color: #fff; }

.btn-main, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: .8rem 1.6rem; border-radius: 999px; font-weight: 700; transition: transform .25s, box-shadow .25s, background .25s; }
.btn-main { color: #fff; background: var(--grad); background-size: 180% auto; box-shadow: 0 14px 30px -14px rgba(124, 58, 237, .9); }
.btn-main:hover { color: #fff; transform: translateY(-2px); background-position: right center; box-shadow: 0 20px 40px -14px rgba(236, 72, 153, .9); }
.btn-sm-main { min-height: 44px; padding: .5rem 1.2rem; }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--fg); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--secondary); color: var(--fg); }

/* hero */
.hero { position: relative; padding: 4rem 0 5.5rem; overflow: hidden; background: radial-gradient(circle at 85% 15%, rgba(124, 58, 237, .14), transparent 45%), radial-gradient(circle at 0% 80%, rgba(14, 165, 233, .12), transparent 40%); }
.badge-soft { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .88rem; color: var(--secondary); box-shadow: var(--shadow); }
.hero h1 { font-size: clamp(3rem, 7vw, 5.6rem); line-height: .98; margin: 1.3rem 0; }
.lead-text { font-size: 1.18rem; color: var(--muted); line-height: 1.7; max-width: 520px; }
.trust { display: flex; align-items: center; gap: 1rem; margin-top: 2.2rem; }
.trust p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.trust b { color: var(--fg); font-size: 1.1rem; }
.stars { color: #f59e0b; letter-spacing: .1em; }
.faces { display: flex; }
.faces span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .8rem; background: var(--c); border: 3px solid var(--bg); margin-left: -10px; }
.faces span:first-child { margin-left: 0; }
.hero-copy > * { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; } .hero-copy > *:nth-child(3) { animation-delay: .16s; } .hero-copy > *:nth-child(4) { animation-delay: .24s; } .hero-copy > *:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

.stage { position: relative; min-height: 520px; display: grid; place-items: center; }
.orb { position: absolute; width: 440px; height: 440px; filter: blur(8px); }
.orb i { position: absolute; inset: 0; border-radius: 42% 58% 60% 40% / 45% 45% 55% 55%; mix-blend-mode: multiply; opacity: .75; animation: morph 10s ease-in-out infinite; }
.orb i:nth-child(1) { background: radial-gradient(circle at 30% 30%, #93c5fd, #2563eb); }
.orb i:nth-child(2) { background: radial-gradient(circle at 70% 30%, #d8b4fe, #7c3aed); animation-delay: -3s; animation-duration: 12s; }
.orb i:nth-child(3) { background: radial-gradient(circle at 50% 70%, #f9a8d4, #ec4899); animation-delay: -6s; animation-duration: 14s; }
@keyframes morph { 0%, 100% { transform: rotate(0) scale(1); border-radius: 42% 58% 60% 40% / 45% 45% 55% 55%; } 50% { transform: rotate(180deg) scale(.9); border-radius: 60% 40% 38% 62% / 55% 60% 40% 45%; } }
.chat { position: relative; z-index: 2; width: min(380px, 100%); border-radius: 28px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 40px 80px -30px rgba(15, 23, 42, .45); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.chat-head small { display: flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .78rem; }
.live { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.chat-body { height: 300px; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .6rem; justify-content: flex-end; overflow: hidden; }
.msg { max-width: 85%; padding: .65rem .9rem; border-radius: 18px; font-size: .9rem; line-height: 1.4; animation: pop .35s cubic-bezier(.34, 1.4, .64, 1) both; }
.msg.me { align-self: flex-end; background: var(--fg); color: #fff; border-bottom-right-radius: 6px; }
.msg.ai { align-self: flex-start; background: var(--soft); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.ai b { color: var(--secondary); }
.msg.card { align-self: flex-start; background: #fff; border: 1px solid var(--line); display: flex; gap: .6rem; align-items: center; box-shadow: var(--shadow); }
.msg.card i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; }
.msg.card small { display: block; color: var(--muted); font-size: .76rem; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: .75rem .9rem; border-radius: 18px; background: var(--soft); border: 1px solid var(--line); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-4px); opacity: .4; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.95); } }
.chat-input { display: flex; justify-content: space-between; align-items: center; margin: 0 1rem 1rem; padding: .7rem 1rem; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: .88rem; }
.chat-input i { color: var(--secondary); }
.float-chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 700; font-size: .85rem; animation: bob 6s ease-in-out infinite; }
.float-chip i { color: var(--secondary); }
.c1 { left: -2%; top: 16%; } .c2 { right: -2%; bottom: 12%; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-12px); } }

.section { padding: 6rem 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }

/* problem */
.problem-card { background: var(--fg); color: #fff; border-radius: 32px; padding: 3.5rem; position: relative; overflow: hidden; }
.problem-card::after { content: ''; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(124, 58, 237, .5), transparent 65%); }
.problem-card > * { position: relative; z-index: 1; }
.problem-card h2 { max-width: 780px; }
.pstat { border: 1px solid rgba(255, 255, 255, .15); border-radius: 20px; padding: 1.4rem; background: rgba(255, 255, 255, .04); height: 100%; }
.pstat b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 2.6rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: brightness(1.6); }
.pstat span { color: #cbd5e1; }

/* services bento */
.bento { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: minmax(190px, auto); gap: 1.1rem; }
.svc { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s; }
.svc:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--c) 70%, transparent); border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.svc.big { grid-row: span 2; }
.svc.wide { grid-column: span 2; display: flex; align-items: center; gap: 1.2rem; }
.svc-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem; color: #fff; background: var(--c); box-shadow: 0 12px 24px -10px var(--c); transition: transform .4s; flex: none; }
.svc:hover .svc-icon { transform: rotate(-10deg) scale(1.08); }
.svc h3 { font-size: 1.35rem; margin: 1.1rem 0 .3rem; }
.svc.wide h3 { margin-top: 0; }
.svc p { color: var(--muted); margin: 0; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 2rem; }
.cal i { aspect-ratio: 1; border-radius: 8px; background: var(--soft); }
.cal i.on { background: color-mix(in srgb, var(--c) 25%, #fff); }
.cal i.hot { background: var(--c); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, .5); } 70% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); } }

/* how */
.how { background: linear-gradient(180deg, transparent, #eef1ff 25%, #eef1ff 75%, transparent); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; position: relative; }
.steps li > span { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: #fff; background: var(--grad); }
.steps h3 { font-size: 1.25rem; margin: 1.2rem 0 .4rem; }
.steps p { color: var(--muted); margin: 0; }
.steps li:not(:last-child)::after { content: '→'; position: absolute; right: -1rem; top: 50%; translate: 0 -50%; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: #fff; font-size: .9rem; }

/* benefits */
.ben { height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.5rem; transition: transform .3s; }
.ben:hover { transform: translateY(-4px); }
.ben i { font-size: 1.6rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ben h3 { font-size: 1.15rem; margin: .8rem 0 .3rem; }
.ben p { color: var(--muted); margin: 0; }

/* features */
.features { background: var(--fg); color: #fff; border-radius: 40px; margin-inline: 16px; }
.feat { height: 100%; padding: 1.6rem; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); transition: background .3s, transform .3s; }
.feat:hover { background: rgba(255, 255, 255, .08); transform: translateY(-4px); }
.feat i { font-size: 1.5rem; color: #c4b5fd; }
.feat h3 { font-size: 1.15rem; margin: .9rem 0 .3rem; }
.feat p { color: #cbd5e1; margin: 0; }

/* testimonials carousel */
.carousel-x { max-width: 820px; margin: 0 auto; }
.slides { position: relative; min-height: 240px; }
.slide { position: absolute; inset: 0; margin: 0; padding: 2.5rem; border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: space-between; opacity: 0; transform: scale(.96); transition: opacity .5s, transform .5s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.slide.active { opacity: 1; transform: none; pointer-events: auto; }
.slide blockquote { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.3; letter-spacing: -.02em; margin: 0 0 1.5rem; }
.slide figcaption { display: flex; align-items: center; gap: .8rem; }
.slide figcaption small { display: block; color: var(--muted); }
.av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; background: var(--c); }
.car-ctrl { display: flex; justify-content: center; align-items: center; gap: .6rem; margin-top: 1.4rem; }
.car-ctrl button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--fg); transition: border-color .2s, transform .2s; }
.car-ctrl button:hover { border-color: var(--secondary); transform: translateY(-2px); }
.car-ctrl span { min-width: 56px; text-align: center; font-weight: 700; color: var(--muted); }

/* CTA */
.cta { position: relative; overflow: hidden; text-align: center; border-radius: 36px; padding: 4.5rem 1.5rem; background: var(--fg); color: #fff; }
.cta > *:not(.orb) { position: relative; z-index: 1; }
.cta .orb { width: 520px; height: 520px; left: 50%; top: 50%; translate: -50% -50%; opacity: .45; filter: blur(60px); }
.cta p:not(.eyebrow) { color: #cbd5e1; max-width: 540px; margin: 1rem auto 0; font-size: 1.1rem; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 860px; margin: 2.2rem auto 0; }
.contact-grid a { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); text-align: left; transition: background .2s, transform .2s; overflow-wrap: anywhere; }
.contact-grid a:hover { background: rgba(255, 255, 255, .15); transform: translateY(-3px); }
.contact-grid i { font-size: 1.3rem; color: #c4b5fd; }
.contact-grid small { display: block; color: #94a3b8; font-size: .75rem; }

.opensource { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2.5rem; border-radius: 28px; border: 2px dashed var(--secondary); background: #fff; }
.opensource > div { max-width: 640px; }
.free-pill { display: inline-block; font-weight: 800; font-size: .72rem; letter-spacing: .1em; padding: .35rem .8rem; border-radius: 999px; background: var(--grad); color: #fff; margin-bottom: .8rem; }
.opensource h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }

.footer { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-links a:hover { color: var(--fg); }

.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 991.98px) {
  .navbar-collapse { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1rem; margin-top: .8rem; }
  .nav-actions { margin-top: .8rem; justify-content: space-between; }
  .bento { grid-template-columns: 1fr 1fr; }
  .svc.big { grid-row: auto; grid-column: span 2; }
  .steps { grid-template-columns: 1fr; }
  .steps li:not(:last-child)::after { right: 50%; top: auto; bottom: -1.2rem; translate: 50% 0; content: '↓'; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .container { padding-inline: 16px; }
  .free-bar .license { display: none; }
  .free-bar .container { font-size: .74rem; }
  .hero { padding: 2.5rem 0 3.5rem; }
  .section { padding: 4.5rem 0; }
  .stage { min-height: 460px; }
  .orb { width: 300px; height: 300px; }
  .float-chip { font-size: .75rem; padding: .45rem .8rem; }
  .stage { padding: 34px 0 30px; }
  .c1 { left: 0; top: 0; } .c2 { right: 0; bottom: 0; }
  .problem-card { padding: 2.2rem 1.4rem; }
  .bento { grid-template-columns: 1fr; }
  .svc.big, .svc.wide { grid-column: auto; }
  .svc.wide { flex-direction: column; align-items: flex-start; }
  .features { margin-inline: 0; border-radius: 0; }
  .slides { min-height: 300px; }
  .slide { padding: 1.8rem; }
  .opensource { padding: 1.8rem 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
