/* Ai Spark business site. Self-hosted fonts, no trackers, no cookies. */
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/poppins-Regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/poppins-Medium.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/poppins-Bold.woff2") format("woff2"); }

:root {
  --bg: #090C12;
  --bg-2: #0D121B;
  --card: #111823;
  --card-2: #151D2B;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --ink: #EEF1F7;
  --ink-2: #B7BFCE;
  --muted: #8E98AB;
  --plum: #B792FF;
  --blue: #4F8CFF;
  --orange: #FF9F43;
  --grad: linear-gradient(135deg, #B792FF 0%, #4F8CFF 100%);
  --f: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r: 16px;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f);
  font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #D5C0FF; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--orange); color: #090C12; padding: 10px 16px; border-radius: 8px; font-weight: 700; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(9, 12, 18, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line-2); }
.brand:hover { color: var(--ink); }
.nav ul { display: flex; align-items: center; gap: 4px; }
.nav a { display: block; padding: 8px 13px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 500; }
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.nav a.cta { margin-left: 8px; background: var(--grad); color: #090C12; font-weight: 700; }
.nav a.cta:hover { filter: brightness(1.08); color: #090C12; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--line-2); color: var(--ink); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font: 700 .95rem/1 var(--f); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, filter .15s ease, background .15s ease; }
.btn-primary { background: var(--grad); color: #090C12; }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); color: #090C12; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); color: var(--ink); }
.btn-wa { background: #1FA855; color: #05140B; }
.btn-wa:hover { filter: brightness(1.1); color: #05140B; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 84px; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; background: radial-gradient(circle at 50% 50%, rgba(183, 146, 255, .20), rgba(79, 140, 255, .08) 45%, transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto auto -30% -15%; width: 620px; height: 620px; background: radial-gradient(circle, rgba(79, 140, 255, .12), transparent 65%); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--plum); border: 1px solid rgba(183, 146, 255, .3); background: rgba(183, 146, 255, .08); padding: 6px 12px; border-radius: 999px; margin-bottom: 22px; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); line-height: 1.08; letter-spacing: -.025em; margin-bottom: 20px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.02rem, 1.8vw, 1.18rem); color: var(--ink-2); max-width: 36rem; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .86rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--plum); }

/* flow card */
.flow { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line-2); border-radius: 20px; padding: 22px; box-shadow: 0 30px 80px -30px rgba(79, 140, 255, .35), 0 0 0 1px rgba(255, 255, 255, .02) inset; }
.flow-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.flow-head b { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink-2); }
.flow-head b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 10px #3DDC84; }
.flow ol { position: relative; margin: 0; padding: 0; list-style: none; }
.flow ol::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: linear-gradient(180deg, var(--plum), var(--blue), var(--orange)); opacity: .55; }
.flow li { position: relative; display: flex; gap: 14px; align-items: center; padding: 10px 0; }
.flow .n { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--plum); position: relative; z-index: 1; }
.flow li:nth-child(2) .n { color: var(--blue); }
.flow li:nth-child(3) .n { color: #3DDC84; }
.flow li:nth-child(4) .n { color: var(--orange); }
.flow .n svg { width: 20px; height: 20px; }
.flow strong { display: block; font-size: .95rem; line-height: 1.3; }
.flow span.d { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.flow-foot { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-2); color: var(--muted); font-size: .78rem; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 44rem; margin-bottom: 44px; }
.sec-head .eyebrow { margin-bottom: 16px; }
.sec-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 14px; letter-spacing: -.02em; }
.sec-head p { color: var(--ink-2); font-size: 1.04rem; margin: 0; }

/* services */
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.card:hover { border-color: rgba(183, 146, 255, .45); transform: translateY(-2px); background: var(--card-2); }
.ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(183, 146, 255, .1); border: 1px solid rgba(183, 146, 255, .25); color: var(--plum); }
.card:nth-child(3n+2) .ico { background: rgba(79, 140, 255, .1); border-color: rgba(79, 140, 255, .28); color: var(--blue); }
.card:nth-child(3n) .ico { background: rgba(255, 159, 67, .1); border-color: rgba(255, 159, 67, .28); color: var(--orange); }
.ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: .94rem; margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-family: var(--mono); font-size: .68rem; letter-spacing: .04em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.note { margin-top: 28px; color: var(--muted); font-size: .9rem; }

/* process */
.steps { counter-reset: s; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; }
.step::before { counter-increment: s; content: "0" counter(s); display: block; font-family: var(--mono); font-size: .8rem; font-weight: 500; letter-spacing: .1em; margin-bottom: 14px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-2); font-size: .92rem; }

/* samples */
.sample { display: flex; flex-direction: column; }
.sample .badge { align-self: flex-start; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); border: 1px solid rgba(255, 159, 67, .4); background: rgba(255, 159, 67, .08); padding: 3px 10px; border-radius: 999px; margin-bottom: 14px; }
.sample .tags { margin-top: auto; }

/* tools */
.tools { display: flex; flex-wrap: wrap; gap: 10px; }
.tools li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 18px; font-weight: 500; font-size: .92rem; color: var(--ink-2); }

/* about */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.founder { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line-2); border-radius: 22px; padding: 30px; text-align: center; }
.avatar { width: 112px; height: 112px; border-radius: 28px; margin: 0 auto 18px; display: grid; place-items: center; font-weight: 700; font-size: 2.2rem; letter-spacing: .02em; color: #090C12; background: var(--grad); box-shadow: 0 20px 50px -18px rgba(183, 146, 255, .55); }
.founder h3 { font-size: 1.25rem; }
.founder p { color: var(--muted); margin: 4px 0 0; font-size: .92rem; }
.about h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: 16px; letter-spacing: -.02em; }
.about p { color: var(--ink-2); }
.values { margin-top: 22px; display: grid; gap: 12px; }
.values li { display: flex; gap: 12px; color: var(--ink-2); font-size: .96rem; }
.values li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: rgba(61, 220, 132, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%233DDC84' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* faq */
.faq { max-width: 820px; }
.faq details { border: 1px solid var(--line); background: var(--card); border-radius: 14px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--plum); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] { border-color: rgba(183, 146, 255, .4); }
.faq .ans { padding: 0 22px 20px; color: var(--ink-2); font-size: .96rem; }
.faq .ans p:last-child { margin-bottom: 0; }

/* contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: 14px; letter-spacing: -.02em; }
.contact > div > p { color: var(--ink-2); }
.cinfo { margin: 24px 0; display: grid; gap: 14px; }
.cinfo li { display: flex; gap: 14px; align-items: center; }
.cinfo .ico { margin: 0; flex: none; width: 42px; height: 42px; }
.cinfo small { display: block; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.cinfo a { color: var(--ink); font-weight: 500; text-decoration: none; word-break: break-all; }
.cinfo a:hover { color: var(--plum); }
.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.social a { font-size: .84rem; color: var(--ink-2); text-decoration: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; }
.social a:hover { color: var(--ink); border-color: var(--plum); }

form.panel { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line-2); border-radius: 22px; padding: 30px; }
.fld { margin-bottom: 18px; }
.fld label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 7px; }
.fld .opt { color: var(--muted); font-weight: 400; }
.fld input, .fld select, .fld textarea { width: 100%; font: 400 1rem/1.5 var(--f); color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; }
.fld textarea { min-height: 130px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px rgba(183, 146, 255, .25); }
.fld select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M2 5l5 5 5-5' fill='none' stroke='%23B7BFCE' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; color: var(--ink-2); margin-bottom: 20px; }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: #B792FF; }
.fine { color: var(--muted); font-size: .8rem; margin: 14px 0 0; }
[hidden] { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 30px; background: var(--bg); }
.fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 34px; }
.site-footer p { color: var(--muted); font-size: .9rem; max-width: 24rem; }
.site-footer h3 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; font-family: var(--mono); font-weight: 500; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.site-footer li a:hover { color: var(--ink); }
.copy { border-top: 1px solid var(--line); padding-top: 22px; color: var(--muted); font-size: .84rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- Plain pages (privacy, terms, thanks) ---------- */
.page { padding: 64px 0 90px; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: 10px; letter-spacing: -.02em; }
.prose .upd { color: var(--muted); font-size: .9rem; margin-bottom: 32px; }
.prose h2 { font-size: 1.3rem; margin: 36px 0 12px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 1rem; }
.prose li { margin-bottom: 6px; }
.thanks { text-align: center; padding: 110px 0 120px; }
.thanks .tick { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 26px; display: grid; place-items: center; background: rgba(61, 220, 132, .12); border: 1px solid rgba(61, 220, 132, .4); color: #3DDC84; }
.thanks .tick svg { width: 36px; height: 36px; }
.thanks h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 14px; }
.thanks p { color: var(--ink-2); max-width: 32rem; margin: 0 auto 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .flow { max-width: 520px; }
  .about, .contact { grid-template-columns: 1fr; gap: 32px; }
  .founder { max-width: 420px; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .fgrid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav { position: absolute; left: 0; right: 0; top: 68px; background: rgba(9, 12, 18, .97); border-bottom: 1px solid var(--line); padding: 10px 20px 20px; display: none; }
  .js .nav.open { display: block; }
  .js .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .js .nav a { padding: 13px 14px; font-size: 1rem; border-radius: 12px; }
  .js .nav a.cta { margin: 10px 0 0; text-align: center; }
  .no-js .nav ul { flex-wrap: wrap; justify-content: flex-end; }
  .no-js .bar { height: auto; padding: 10px 0; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  section { padding: 60px 0; }
  .hero { padding: 44px 0 56px; }
  .g3, .g2, .g4 { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  form.panel { padding: 22px 18px; }
  .card { padding: 22px 20px; }
  .fgrid { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero::before { width: 420px; height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

h1, h2, h3 { text-wrap: balance; }
