/* Pixby landing: deep night studio, violet → blue → mint gradient, a fan of real results. */
:root {
  --night: #0B0A1F; --ink: #F4F2FF; --dim: rgba(244,242,255,.68);
  --violet: #9966FF; --blue: #6699FF; --mint: #80FFCC;
  --grad: linear-gradient(100deg, #A98BFF 0%, #7AA6FF 50%, #8CFFD5 100%);
  --display: "Outfit", system-ui, sans-serif; --body: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1); --pop: cubic-bezier(.34,1.56,.64,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--ink); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { font: 600 13.5px var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--mint); margin: 0 0 14px; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.025em; }
h2 { font-size: clamp(34px, 5vw, 62px); line-height: 1.04; font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; }
.lede { color: var(--dim); font-size: clamp(17px, 1.5vw, 19px); max-width: 32em; margin: 22px 0 0; }
.small { color: var(--dim); font-size: 14px; }
.center { text-align: center; }
section { position: relative; padding: clamp(80px, 11vw, 140px) max(20px, 6vw); }

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

.bar { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 14px max(20px, 4vw); transition: background .3s, box-shadow .3s; }
.bar.solid { background: rgba(11,10,31,.8); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.07); }
.brand { display: flex; align-items: center; gap: 10px; font: 700 21px var(--display); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.bar nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.bar nav a { text-decoration: none; color: var(--dim); transition: color .2s; }
.bar nav a:hover { color: var(--ink); }
.cta { text-decoration: none; font-weight: 600; font-size: 15px; padding: 9px 18px; border-radius: 999px; background: #fff; color: var(--night); white-space: nowrap; }
@media (max-width: 820px) { .bar nav { display: none; } .cta { margin-left: auto; } }

.store { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #000; text-decoration: none; padding: 11px 22px 11px 18px; border-radius: 14px; transition: transform .25s var(--pop), box-shadow .25s; }
.store:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(153,102,255,.45); }
.store svg { width: 26px; height: 26px; fill: currentColor; }
.store span { display: flex; flex-direction: column; font: 600 20px/1.05 var(--body); }
.store small { font-size: 11px; font-weight: 500; }
.note { color: var(--dim); font-size: 14px; }

/* aurora background */
.aurora { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.aurora i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: .5; background: radial-gradient(circle, var(--c) 0%, transparent 62%) !important; will-change: transform; animation: drift 20s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { --c: rgba(153,102,255,.75); left: -20vmax; top: -25vmax; }
.aurora i:nth-child(2) { --c: rgba(102,153,255,.6); right: -22vmax; top: 0; opacity: .28; animation-delay: -7s; }
.aurora i:nth-child(3) { --c: rgba(128,255,204,.4); left: 30%; bottom: -40vmax; opacity: .14; animation-delay: -13s; }
@keyframes drift { to { transform: translate(6vmax, 5vmax) scale(1.1); } }

/* hero */
.hero { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; padding-top: 120px; isolation: isolate; overflow: hidden; }
.hero h1 { font-size: clamp(46px, 6.4vw, 92px); line-height: .98; font-weight: 800; letter-spacing: -.04em; }
.prompt { min-width: 0; width: 100%; display: flex; align-items: center; gap: 10px; margin-top: 28px; max-width: 520px; min-height: 58px; padding: 10px 10px 10px 18px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); font-size: 16px; }
.prompt .spark { color: var(--mint); }
.prompt #promptText { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.caret { width: 2px; height: 20px; background: var(--mint); margin-left: -8px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.go { flex: none; font: 600 14px var(--body); padding: 9px 14px; border-radius: 12px; background: linear-gradient(100deg, var(--violet), var(--blue)); transition: transform .2s var(--pop), box-shadow .2s; }
.go.press { transform: scale(.92); box-shadow: 0 0 0 6px rgba(153,102,255,.3); }
.actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 26px; }
.stage { position: relative; height: min(660px, 82svh); }
.phone { border-radius: 44px; padding: 9px; background: #07060f; box-shadow: 0 0 0 1.5px rgba(255,255,255,.14) inset, 0 40px 90px rgba(0,0,0,.55); overflow: hidden; }
.phone img { border-radius: 35px; width: 100%; aspect-ratio: 600/1249; object-fit: cover; object-position: top; background: #000; }
.stage .phone { position: absolute; top: 50%; width: min(270px, 44%); }
.stage .main { left: 50%; transform: translate(-50%, -50%); z-index: 2; box-shadow: 0 0 0 1.5px rgba(255,255,255,.16) inset, 0 50px 100px rgba(0,0,0,.6), 0 0 80px rgba(153,102,255,.35); }
.stage .main img { position: absolute; inset: 9px; width: calc(100% - 18px); opacity: 0; transition: opacity .6s var(--ease); }
.stage .main img:first-child { position: relative; inset: auto; width: 100%; }
.stage .main img.on { opacity: 1; }
.stage .side { width: min(220px, 36%); opacity: .55; filter: saturate(.8); }
.stage .left { left: 2%; transform: translateY(-46%) rotate(-9deg); animation: bobL 7s ease-in-out infinite alternate; }
.stage .right { right: 2%; transform: translateY(-54%) rotate(9deg); animation: bobR 8s ease-in-out infinite alternate; }
@keyframes bobL { to { transform: translateY(-52%) rotate(-7deg); } }
@keyframes bobR { to { transform: translateY(-48%) rotate(11deg); } }
.gen { position: absolute; inset: 9px; border-radius: 35px; display: grid; place-items: center; background: rgba(11,10,31,.55); backdrop-filter: blur(14px); opacity: 0; transition: opacity .35s; z-index: 3; overflow: hidden; }
.gen::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(153,102,255,.55), rgba(128,255,204,.45), transparent 60%); animation: spin 1.6s linear infinite; }
.gen span { position: relative; font: 600 15px var(--body); padding: 8px 16px; border-radius: 99px; background: rgba(0,0,0,.45); }
.gen.on { opacity: 1; }
@keyframes spin { to { transform: rotate(1turn); } }

/* tools */
.tools { text-align: center; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1140px; margin: 60px auto 0; text-align: left; }
.grid article { padding: 28px 26px; border-radius: 24px; background: linear-gradient(160deg, rgba(153,102,255,.12), rgba(102,153,255,.04)); border: 1px solid rgba(255,255,255,.09); transition: transform .4s var(--ease), border-color .3s; }
.grid article:hover { transform: translateY(-4px); border-color: rgba(128,255,204,.35); }
.grid article:nth-child(3n+2) { transition-delay: .08s; } .grid article:nth-child(3n) { transition-delay: .16s; }
.ico { font-size: 30px; margin-bottom: 14px; }
.grid p { color: var(--dim); font-size: 15.5px; margin: 8px 0 0; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

/* tour */
.tour { padding: 0 max(20px, 6vw); height: 500vh; }
.tour-pin { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(30px, 6vw, 90px); max-width: 1180px; margin: 0 auto; }
.tour-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; }
.tour-list li { grid-area: 1/1; opacity: 0; transform: translateY(26px); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; }
.tour-list li.on { opacity: 1; transform: none; pointer-events: auto; }
.tour-list li.past { transform: translateY(-26px); }
.tour-list h3 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.05; font-weight: 800; }
.tour-list p { color: var(--dim); font-size: clamp(17px, 1.6vw, 20px); max-width: 26em; margin: 16px 0 0; }
.tour-dots { display: flex; gap: 8px; margin-top: 34px; }
.tour-dots i { width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.22); transition: width .35s var(--ease), background .35s; }
.tour-dots i.on { width: 30px; background: var(--grad); }
.tour-phone { position: relative; width: min(330px, 34vw, calc((100svh - 120px) * .47)); box-shadow: 0 0 0 1.5px rgba(255,255,255,.14) inset, 0 40px 90px rgba(0,0,0,.55), 0 0 70px rgba(102,153,255,.25); }
.tour-phone img { position: absolute; inset: 9px; width: calc(100% - 18px); opacity: 0; transform: scale(.95) translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.tour-phone img:first-child { position: relative; inset: auto; width: 100%; }
.tour-phone img.on { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .tour { height: auto; padding: 60px 20px; }
  .tour-pin { position: static; height: auto; grid-template-columns: 1fr; }
  .tour-list li, .tour-list li.past { grid-area: auto; opacity: 1; transform: none; margin-bottom: 18px; }
  .tour-list h3 { font-size: 24px; } .tour-list p { font-size: 16px; margin-top: 4px; }
  .tour-dots { display: none; }
  .tour-phone { width: 100%; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 0 20px; background: none; box-shadow: none; border-radius: 0; }
  .tour-phone img, .tour-phone img:first-child { position: static; inset: auto; flex: none; width: 72%; opacity: 1; transform: none; scroll-snap-align: center; border-radius: 28px; box-shadow: 0 0 0 7px #07060f, 0 20px 50px rgba(0,0,0,.5); margin: 8px; }
}

/* how */
.how { text-align: center; }
.steps { list-style: none; padding: 0; margin: 56px auto 0; max-width: 1080px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: left; }
.steps li { padding: 28px; border-radius: 24px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); }
.steps li:nth-child(2) { transition-delay: .1s; } .steps li:nth-child(3) { transition-delay: .2s; }
.steps .n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, var(--violet), var(--blue)); font: 800 20px var(--display); margin-bottom: 16px; }
.steps p { color: var(--dim); font-size: 15.5px; margin: 8px 0 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* pricing */
.pricing { text-align: center; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 22px; margin: 46px 0 22px; text-align: left; }
.plan { padding: 28px; border-radius: 24px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.plan.pro { background: linear-gradient(160deg, rgba(153,102,255,.32), rgba(102,153,255,.18)); border-color: rgba(128,255,204,.35); }
.plan ul { list-style: none; padding: 0; margin: 16px 0 0; }
.plan li { padding: 7px 0 7px 28px; position: relative; color: var(--dim); }
.plan.pro li { color: var(--ink); }
.plan li::before { content: ""; position: absolute; left: 0; top: 13px; width: 14px; height: 8px; border-left: 2.5px solid var(--mint); border-bottom: 2.5px solid var(--mint); transform: rotate(-45deg); }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* faq */
.faq h2 { text-align: center; }
.qa { max-width: 820px; margin: 50px auto 0; }
.qa details { border-bottom: 1px solid rgba(255,255,255,.12); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font: 600 20px var(--display); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 400 30px/1 var(--body); color: var(--mint); transition: transform .3s var(--pop); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa p { color: var(--dim); margin: -6px 0 22px; }

.end { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; isolation: isolate; overflow: hidden; }
.end img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 20px 50px rgba(153,102,255,.5); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 26px max(20px, 4vw) 36px; border-top: 1px solid rgba(255,255,255,.1); color: var(--dim); font-size: 14px; }
.foot nav { display: flex; gap: 20px; }
.foot small { width: 100%; opacity: .75; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 110px; min-height: auto; }
  .stage { height: 560px; max-width: 520px; width: 100%; margin: 0 auto; }
  .stage .phone.main { width: 54%; }
  .stage .side { width: 42%; }
}
@media (max-width: 900px) { .aurora i { animation: none; } }
@media (max-width: 440px) { .stage { height: 480px; } .prompt { font-size: 14.5px; } }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .aurora i, .stage .side, .gen::before { animation: none; }
  html { scroll-behavior: auto; }
}
