/* QCPixel — landing page styles
   Layout: dark hero and closing band framing light content sections; one 1200px column, generous vertical rhythm. */
:root {
  --navy: #12213A;
  --ink: #0B1628;
  --ink-2: #08111F;
  --green: #1FA971;
  --green-dark: #178A5C;
  --green-soft: #E6F6EE;
  --mint: #8FE3BE;
  --paper: #F6F7F9;
  --white: #FFFFFF;
  --line: #E2E6EC;
  --text: #12213A;
  --muted: #4A5568;
  --muted-dark: #8D9AB0;
  --soft-dark: #C3CCDA;
  --font: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 20px;
  --max: 1200px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--green); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 24px; }
.section { padding-block: 112px; }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--dark { background: var(--ink); color: var(--white); }
.stack { display: flex; flex-direction: column; }

.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-dark); }
.section--dark .eyebrow { color: var(--mint); }
.h2 { margin: 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; }
.lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 62ch; }
.section--dark .lead { color: var(--soft-dark); }
.center { text-align: center; align-items: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; font: 700 16px var(--font); padding: 16px 26px; border-radius: 999px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(31,169,113,.35); color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.22); }
.btn--ghost:hover { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn--lg { font-size: 17px; padding: 18px 30px; }

/* Header */
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(11,22,40,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.06); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.brand svg { width: 34px; height: 34px; }
.brand__name { font-size: 22px; letter-spacing: -.03em; }
.brand__name b { font-weight: 800; }
.nav { display: flex; gap: 28px; flex-wrap: wrap; }
.nav a { color: var(--soft-dark); text-decoration: none; font-weight: 500; font-size: 15px; transition: color .2s; }
.nav a:hover { color: var(--white); }
.header .btn { padding: 12px 20px; font-size: 15px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--white); }
.hero__glow { position: absolute; width: 720px; height: 720px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(31,169,113,.28), rgba(31,169,113,0) 65%); pointer-events: none; animation: glow 6s ease-in-out infinite; }
.hero__grid { position: relative; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-block: 96px 88px; }
.hero__copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__kicker { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); }
.hero h1 { margin: 0; font-size: clamp(42px, 6vw, 72px); line-height: 1.02; letter-spacing: -.04em; font-weight: 800; }
.hero h1 span { color: var(--green); }
.hero__sub { margin: 0; font-size: 20px; line-height: 1.55; color: var(--soft-dark); max-width: 540px; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.stats { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 8px; }
.stat__num { font-size: 30px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat__label { font-size: 14px; color: var(--muted-dark); }
.hero__visual { flex: 1 1 460px; min-width: 0; position: relative; }

/* Before / after */
.ba { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; box-shadow: 0 40px 90px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.08); touch-action: pan-y; }
.ba__layer { position: absolute; inset: 0; }
.ba__layer img { width: 100%; height: 100%; object-fit: cover; }
.ba__before { clip-path: inset(0 50% 0 0); }
.scene { position: absolute; inset: 0; }
.scene--after { background: linear-gradient(180deg, #8EC5F0 0%, #CFE6F7 38%, #F4E6CF 38.2%, #EBD3AE 70%, #B98A5E 70.2%, #9C6E46 100%); }
.scene--before { background: linear-gradient(180deg, #7A7F86 0%, #8A8E93 38%, #6E6A62 38.2%, #625C52 70%, #47402F 70.2%, #3A3427 100%); filter: saturate(.6); }
.scene i { position: absolute; display: block; }
.scene .win { left: 12%; top: 14%; width: 30%; height: 22%; border: 6px solid #FFFFFF; border-radius: 4px; background: rgba(255,255,255,.25); }
.scene .sofa { right: 10%; top: 50%; width: 34%; height: 18%; border-radius: 10px; background: #5F7A63; }
.scene .table { left: 50%; top: 56%; width: 22%; height: 8%; border-radius: 8px; background: #FFFFFF; opacity: .85; }
.scene--before .win { border-color: #D9D9D9; background: rgba(255,255,255,.85); transform: rotate(-2deg); }
.scene--before .sofa { background: #3E4A40; transform: rotate(-2deg); }
.scene--before .table { background: #9A9A9A; transform: rotate(-2deg); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--white); transform: translateX(-1px); pointer-events: none; }
.ba__knob { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--white); box-shadow: 0 8px 20px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; }
.ba__knob svg { width: 22px; height: 22px; }
.ba__tag { position: absolute; bottom: 16px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--white); pointer-events: none; }
.ba__tag--before { left: 16px; background: rgba(0,0,0,.55); }
.ba__tag--after { right: 16px; background: var(--green); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__note { margin: 14px 0 0; font-size: 13px; color: var(--muted-dark); text-align: center; }
.chip { position: absolute; padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 700; box-shadow: 0 18px 40px rgba(0,0,0,.3); }
.chip--qc { left: -22px; top: 28px; display: flex; align-items: center; gap: 10px; background: var(--white); color: var(--navy); animation: floatA 5s ease-in-out infinite; }
.chip--qc span { width: 28px; height: 28px; border-radius: 50%; background: var(--green-soft); display: flex; align-items: center; justify-content: center; }
.chip--seq { right: -16px; bottom: 64px; background: var(--navy); color: var(--white); border: 1px solid rgba(255,255,255,.1); font-weight: 600; animation: floatA 6s ease-in-out .8s infinite; }
.chip--seq small { display: block; color: var(--muted-dark); font-size: 12px; font-weight: 600; }

/* Marquee */
.marquee { border-block: 1px solid rgba(255,255,255,.06); overflow: hidden; padding-block: 18px; }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee__item { display: inline-flex; align-items: center; gap: 48px; padding-right: 48px; font-size: 16px; font-weight: 600; color: var(--muted-dark); white-space: nowrap; }
.marquee__item::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 16px; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(18,33,58,.14); border-color: var(--green); }
.card__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin: 0; font-size: 24px; letter-spacing: -.02em; font-weight: 800; }
.card p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.step { display: flex; flex-direction: column; gap: 14px; }
.step__num { font-size: 64px; font-weight: 800; letter-spacing: -.05em; color: var(--line); line-height: 1; }
.step:last-child .step__num { color: var(--green); }
.step h3 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.step p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* Sequencing demo */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > * { flex: 1 1 380px; min-width: 0; }
.seq { background: var(--navy); border: 1px solid rgba(255,255,255,.08); border-radius: 24px; padding: 28px; flex-basis: 520px; }
.seq__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-size: 14px; font-weight: 700; color: var(--muted-dark); }
.seq__badge { color: #E8A23A; transition: color .3s; }
.seq.is-sorted .seq__badge { color: var(--green); }
.seq__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { aspect-ratio: 4 / 3; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; justify-content: space-between; color: var(--white); will-change: transform; }
.tile__num { align-self: flex-start; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.45); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tile__label { font-size: 13px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.5); }

/* Portfolio */
.pf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.pf { position: relative; aspect-ratio: 3 / 2; max-width: 100%; border-radius: 18px; overflow: hidden; cursor: pointer; }
.pf__before, .pf__after { position: absolute; inset: 0; }
.pf__after { opacity: 0; transition: opacity .5s ease; }
.pf:hover .pf__after, .pf:focus-visible .pf__after { opacity: 1; }
.pf__label { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(11,22,40,.75); color: var(--white); font-size: 13px; font-weight: 700; }

/* QC list */
.qc { display: flex; flex-direction: column; gap: 14px; }
.qc__item { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); }
.qc__tick { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--green-soft); display: flex; align-items: center; justify-content: center; }
.qc__tick svg { width: 18px; height: 18px; }
.qc__tick path { stroke-dasharray: 40; stroke-dashoffset: 0; }
.qc__item.is-pre .qc__tick path { stroke-dashoffset: 40; }
.qc__item.is-in .qc__tick path { animation: draw .6s ease-out .2s backwards; }
.qc__item strong { display: block; font-size: 17px; }
.qc__item span { display: block; font-size: 15px; line-height: 1.55; color: var(--muted); margin-top: 4px; }

/* Pricing */
.sizes { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px; border-radius: 999px; background: var(--navy); border: 1px solid rgba(255,255,255,.08); }
.sizes button { border: 0; cursor: pointer; font: 700 15px var(--font); padding: 12px 20px; border-radius: 999px; background: transparent; color: var(--soft-dark); transition: background .25s, color .25s; }
.sizes button[aria-pressed="true"] { background: var(--green); color: var(--white); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 22px; padding: 36px; border-radius: 22px; background: var(--navy); color: var(--white); border: 1px solid rgba(255,255,255,.1); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.plan:hover { transform: translateY(-6px); }
.plan--featured { background: var(--white); color: var(--navy); border: 2px solid var(--green); }
.plan__badge { position: absolute; top: -14px; left: 36px; padding: 6px 14px; border-radius: 999px; background: var(--green); color: var(--white); font-size: 13px; font-weight: 800; }
.plan__name { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.plan__price { display: flex; align-items: baseline; gap: 6px; }
.plan__price strong { font-size: 56px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.plan__price > span, .plan__size { font-size: 15px; opacity: .72; }
.plan hr { width: 100%; border: 0; height: 1px; background: currentColor; opacity: .12; margin: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.plan li svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.plan .btn { margin-top: auto; }
.plan:not(.plan--featured) .btn { background: rgba(255,255,255,.08); color: var(--white); }
.addons { display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; padding: 32px 24px; border-radius: var(--radius); background: var(--navy); border: 1px solid rgba(255,255,255,.08); }
.addons h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.addons p { margin: 6px 0 0; font-size: 15px; color: var(--soft-dark); }
.addons ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.addons li { padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); font-size: 15px; font-weight: 600; }

/* Trial form */
.trial { position: relative; overflow: hidden; max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; background: var(--navy); color: var(--white); border-radius: 28px; padding: clamp(28px, 5vw, 56px); }
.trial__glow { position: absolute; width: 520px; height: 520px; left: -200px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(31,169,113,.3), rgba(31,169,113,0) 65%); pointer-events: none; }
.trial > div:not(.trial__glow) { position: relative; flex: 1 1 340px; min-width: 0; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form__field--full, .form .btn { grid-column: 1 / -1; }
.form label { font-size: 13px; font-weight: 600; color: var(--soft-dark); }
.input { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid #2A3A57; background: #0F1D33; color: var(--white); font: 500 15px var(--font); outline: none; transition: border-color .2s; }
.input:focus { border-color: var(--green); }
.form__done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 40px 20px; animation: popIn .5s cubic-bezier(.2,.8,.2,1); }
.form__done span { width: 64px; height: 64px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; }
.form__done strong { font-size: 24px; }
.form__done p { margin: 0; color: var(--soft-dark); }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--white); transition: background .3s; }
.faq__item.is-open { background: var(--paper); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; border: 0; background: transparent; cursor: pointer; text-align: left; font: 700 18px var(--font); color: var(--text); }
.faq__q svg { flex: none; width: 22px; height: 22px; transition: transform .3s; }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { margin: 0; padding: 0 24px 22px; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* About + final CTA + footer */
.about { max-width: 860px; margin: 0 auto; }
.about p { margin: 0; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.4; letter-spacing: -.02em; font-weight: 600; }
.final { position: relative; overflow: hidden; text-align: center; }
.final__glow { position: absolute; width: 800px; height: 800px; left: 50%; top: 50%; margin: -400px 0 0 -400px; border-radius: 50%; background: radial-gradient(circle, rgba(31,169,113,.22), rgba(31,169,113,0) 62%); pointer-events: none; animation: glow 6s ease-in-out infinite; }
.final .stack { position: relative; gap: 28px; align-items: center; max-width: 780px; margin: 0 auto; }
.final h2 { margin: 0; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -.04em; font-weight: 800; }
.footer { background: var(--ink-2); color: var(--muted-dark); padding-block: 40px; font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .brand svg { width: 26px; height: 26px; }
.footer .brand__name { font-size: 17px; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { color: var(--soft-dark); }

/* Motion */
.reveal { transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-pre { opacity: 0; transform: translateY(36px); }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.hero-in { animation: heroIn .9s cubic-bezier(.2,.7,.2,1) backwards; }
.hero-in[data-delay="1"] { animation-delay: .1s; }
.hero-in[data-delay="2"] { animation-delay: .2s; }
.hero-in[data-delay="3"] { animation-delay: .3s; }
.hero-in[data-delay="4"] { animation-delay: .4s; }

@keyframes floatA { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes glow { 0%, 100% { opacity: .55; } 50% { opacity: .9; } }
@keyframes popIn { from { opacity: 0; transform: scale(.9) translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (max-width: 720px) {
  .section { padding-block: 80px; }
  .nav { display: none; }
  .chip--qc { left: 8px; top: 8px; }
  .chip--seq { right: 8px; bottom: 56px; }
  .seq__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form { grid-template-columns: minmax(0, 1fr); }
  .pf-grid, .plans, .grid-3 { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal.is-pre { opacity: 1; transform: none; }
}
