/* Pixapop: night, liquid glass, and pixels of light. Elegant first; the colour lives in the glows. */
@font-face { font-family: 'Geist'; font-weight: 300; font-display: swap; src: url('fonts/geist-sans-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 400; font-display: swap; src: url('fonts/geist-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 500; font-display: swap; src: url('fonts/geist-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 600; font-display: swap; src: url('fonts/geist-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); }

:root {
  --night: #07060C;
  --night-2: #0D0B17;
  --text: #F4F1FA;
  --muted: #ABA5C0;
  --dim: #76708D;
  --edge: rgba(255, 255, 255, 0.13);
  --edge-2: rgba(255, 255, 255, 0.24);
  --glass: rgba(255, 255, 255, 0.055);
  --pink: #FF4F8B;
  --violet: #8B6CFF;
  --orange: #FF8A3D;
  --mint: #3EE6C1;
  --sun: #FFC857;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --r: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--night); color: var(--text); font: 400 17px/1.6 var(--sans); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: rgba(255, 79, 139, .35); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; border-radius: 10px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 780px; }
em, .it { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

/* Ambient light: slow aurora behind everything */
.aurora { position: fixed; inset: 0; overflow: hidden; z-index: -2; pointer-events: none; filter: blur(80px) saturate(130%); opacity: .55; }
.aurora i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; animation: drift 26s var(--ease) infinite alternate; }
.aurora i:nth-child(1) { background: radial-gradient(circle, rgba(139,108,255,.55), transparent 62%); left: 8%; top: 4%; }
.aurora i:nth-child(2) { background: radial-gradient(circle, rgba(255,79,139,.42), transparent 62%); right: 6%; top: 18%; animation-duration: 32s; }
.aurora i:nth-child(3) { background: radial-gradient(circle, rgba(62,230,193,.22), transparent 62%); left: 30%; bottom: 0; animation-duration: 38s; }
@keyframes drift { to { transform: translate3d(6vmax, -4vmax, 0) scale(1.12); } }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .06; background-image: radial-gradient(rgba(255,255,255,.9) 0.6px, transparent 0.6px); background-size: 3px 3px; mix-blend-mode: overlay; }

/* Liquid glass */
.glass {
  position: relative; isolation: isolate;
  background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.025) 42%, rgba(255,255,255,.05));
  border: 1px solid var(--edge); border-radius: var(--r);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(255,255,255,.05), 0 24px 70px -20px rgba(0,0,0,.65);
}
.glass::before { /* specular sheen along the top edge */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.12), transparent 30%);
}
.glass.lit::after { /* light that follows the pointer */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.10), transparent 45%);
}
.glass.lit:hover::after { opacity: 1; }

/* Header */
.top { position: fixed; top: 14px; left: 0; right: 0; z-index: 20; }
.top .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px 10px 18px; border-radius: 999px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 19px/1 var(--sans); letter-spacing: -0.03em; }
.brand svg { width: 26px; height: 26px; flex: none; }
.nav { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 999px; white-space: nowrap; transition: color .25s, background .25s; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav .cta { color: var(--night); background: var(--text); font-weight: 500; }
.nav .cta:hover { color: var(--night); background: #fff; }
@media (max-width: 620px) { .nav .hide-sm { display: none; } .nav a { padding: 8px 10px; } .top .bar { padding-left: 14px; } }
@media (max-width: 560px) { .orb { width: 130px; height: 130px; right: -40px; top: -40px; opacity: .8; } .stack { transform: rotateX(58deg) rotateZ(-38deg) scale(.7); right: 0; top: 6%; } .panes { transform: scale(.75); right: 4%; top: 6%; } }

/* Type */
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(44px, 8.4vw, 104px); }
h2 { font-size: clamp(34px, 5.4vw, 68px); }
h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
h1 em, h2 em { font-size: 1.06em; }
p { margin: 0; }
.lead { font-size: clamp(17px, 1.7vw, 20px); color: var(--muted); max-width: 36em; font-weight: 300; }
.pill { width: max-content; max-width: 100%; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; font-size: 13px; color: var(--muted); border: 1px solid var(--edge); background: rgba(255,255,255,.04); }
.pill b { font-weight: 600; font-size: 12px; color: var(--night); background: var(--text); padding: 3px 9px; border-radius: 999px; }
.pill.solo { padding: 6px 14px; }
.grad { background: linear-gradient(100deg, var(--pink), var(--orange) 45%, var(--sun)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font: 500 16px/1 var(--sans); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s; }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translate(3px, -3px); }
.btn-light { color: var(--night); background: linear-gradient(180deg, #fff, #E9E4F5); box-shadow: 0 0 0 1px rgba(255,255,255,.4), 0 10px 40px -8px rgba(255,79,139,.55), 0 0 60px -10px rgba(139,108,255,.6); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,.6), 0 14px 50px -8px rgba(255,79,139,.7), 0 0 80px -10px rgba(139,108,255,.8); }
.btn-glass { color: var(--text); border: 1px solid var(--edge-2); background: rgba(255,255,255,.05); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-glass:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding-top: 120px; overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 28px; justify-items: center; text-align: center; }
.hero .lead { margin-inline: auto; }
.capsule { display: inline-block; padding: 0 .28em .06em; border-radius: .38em; border: 1px solid var(--edge-2); background: rgba(255,255,255,.05); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 0 60px rgba(255,79,139,.25); text-shadow: 0 0 28px rgba(255,255,255,.55); }
.stage { position: relative; width: 100%; max-width: 980px; margin-top: 30px; height: clamp(260px, 36vw, 400px); }
.stage .phone { position: absolute; bottom: -120px; }
.stage .p1 { left: 50%; transform: translateX(-50%); z-index: 3; }
.stage .p2 { left: 50%; transform: translateX(-128%) rotate(-7deg); z-index: 2; bottom: -150px; opacity: .92; }
.stage .p3 { left: 50%; transform: translateX(28%) rotate(7deg); z-index: 2; bottom: -150px; opacity: .92; }
@media (max-width: 700px) { .stage .p2, .stage .p3 { display: none; } }

/* Phone mockups: real screens in a glass frame */
.phone { width: clamp(190px, 22vw, 250px); aspect-ratio: 390 / 844; padding: 9px; border-radius: 42px; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 34px; }
.phone.glass { background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.04)); }

/* Marquee */
.marquee { border-block: 1px solid var(--edge); padding-block: 22px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee .track { display: flex; gap: 48px; width: max-content; animation: slide 40s linear infinite; }
.marquee span { font: italic 400 clamp(22px, 2.6vw, 30px)/1 var(--serif); color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee span::after { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--pink); box-shadow: 0 0 16px var(--pink); }
.marquee span:nth-child(3n+2)::after { background: var(--mint); box-shadow: 0 0 16px var(--mint); }
.marquee span:nth-child(3n)::after { background: var(--violet); box-shadow: 0 0 16px var(--violet); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sections */
section { padding-block: clamp(80px, 11vw, 150px); position: relative; }
.head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 52em; }
.head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento .glass { padding: 30px; display: grid; gap: 12px; align-content: end; min-height: 280px; overflow: hidden; }
.bento p { color: var(--muted); font-weight: 300; }
.b-wide { grid-column: span 4; min-height: 360px !important; }
.b-tall { grid-column: span 2; grid-row: span 2; }
.b-half { grid-column: span 3; }
.b-third { grid-column: span 2; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } .b-wide, .b-tall, .b-half, .b-third { grid-column: span 2; grid-row: auto; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .b-wide, .b-tall, .b-half, .b-third { grid-column: auto; } }
.visual { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

/* Visual: stacked glass pixels */
.stack { position: absolute; right: 8%; top: 16%; width: 150px; height: 150px; transform: rotateX(58deg) rotateZ(-38deg); transform-style: preserve-3d; }
.stack i { position: absolute; inset: 0; border-radius: 26px; border: 1px solid rgba(255,255,255,.35); background: linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.02)); box-shadow: 0 0 40px rgba(62,230,193,.25); animation: float 6s var(--ease) infinite alternate; }
.stack i:nth-child(1) { transform: translateZ(0); border-color: rgba(62,230,193,.55); background: linear-gradient(135deg, rgba(62,230,193,.45), rgba(62,230,193,.05)); }
.stack i:nth-child(2) { transform: translateZ(34px); animation-delay: .3s; }
.stack i:nth-child(3) { transform: translateZ(68px); animation-delay: .6s; border-color: rgba(139,108,255,.6); background: linear-gradient(135deg, rgba(139,108,255,.5), rgba(139,108,255,.05)); }
@keyframes float { to { translate: 0 -10px; } }
/* Visual: glowing orb */
.orb { position: absolute; right: -30px; top: -30px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.9), rgba(255,200,87,.8) 18%, rgba(255,79,139,.6) 45%, rgba(139,108,255,.15) 70%, transparent 72%); filter: saturate(120%); box-shadow: 0 0 120px rgba(255,79,139,.45); animation: breathe 7s var(--ease) infinite alternate; }
@keyframes breathe { to { transform: scale(1.08); } }
/* Visual: layered panes */
.panes { position: absolute; right: 10%; top: 14%; width: 120px; height: 150px; }
.panes i { position: absolute; width: 100%; height: 100%; border-radius: 20px; border: 1px solid rgba(255,255,255,.35); background: linear-gradient(145deg, rgba(255,138,61,.4), rgba(255,138,61,.03)); }
.panes i:nth-child(1) { transform: translate(-36px, 18px) rotate(-8deg); opacity: .55; }
.panes i:nth-child(2) { transform: translate(-18px, 9px) rotate(-4deg); opacity: .75; }
.panes i:nth-child(3) { background: linear-gradient(145deg, rgba(255,200,87,.55), rgba(255,79,139,.08)); }
.glyph { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; border: 1px solid var(--edge-2); background: rgba(255,255,255,.06); }

/* Case study */
.case { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 70px); align-items: center; padding: clamp(28px, 5vw, 60px); overflow: hidden; }
.case .copy { display: grid; gap: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 14px; color: var(--text); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--edge); background: rgba(255,255,255,.04); }
.phones { position: relative; height: clamp(420px, 44vw, 560px); }
.phones .phone { position: absolute; top: 50%; left: 50%; }
.phones .a { transform: translate(-50%, -50%); z-index: 3; }
.phones .b { transform: translate(-118%, -44%) rotate(-8deg); z-index: 2; }
.phones .c { transform: translate(18%, -44%) rotate(8deg); z-index: 2; }
.case .glow { position: absolute; width: 520px; height: 520px; right: -120px; top: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(28,116,219,.45), transparent 60%); filter: blur(30px); z-index: -1; }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } .phones .b { transform: translate(-105%, -46%) rotate(-8deg); } .phones .c { transform: translate(5%, -46%) rotate(8deg); } }
@media (max-width: 520px) { .phones .b, .phones .c { display: none; } }

/* Steps: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { padding: 28px; display: grid; gap: 12px; align-content: start; }
.steps .num { font: italic 400 46px/1 var(--serif); width: max-content; padding-right: .1em; background: linear-gradient(120deg, var(--pink), var(--sun)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps li:nth-child(2) .num { background-image: linear-gradient(120deg, var(--orange), var(--sun)); }
.steps li:nth-child(3) .num { background-image: linear-gradient(120deg, var(--mint), #9FF3FF); }
.steps li:nth-child(4) .num { background-image: linear-gradient(120deg, var(--violet), var(--pink)); }
.steps p { color: var(--muted); font-weight: 300; font-size: 16px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* Light ribbon */
.ribbon { position: absolute; left: 0; right: 0; top: 40px; height: 260px; z-index: -1; pointer-events: none; opacity: .9; }
.ribbon path { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1400; animation: flow 9s var(--ease) infinite alternate; }
@keyframes flow { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }

/* Contact */
.contact { padding: clamp(36px, 7vw, 90px) clamp(24px, 6vw, 80px); display: grid; gap: 22px; justify-items: center; text-align: center; overflow: hidden; }
.contact .mail { font: italic 400 clamp(28px, 5vw, 58px)/1.1 var(--serif); color: var(--text); text-decoration: none; word-break: break-all; text-shadow: 0 0 40px rgba(255,79,139,.55); user-select: all; }
.contact .mail:hover { text-shadow: 0 0 50px rgba(255,79,139,.85); }
.contact .glowline { position: absolute; left: 10%; right: 10%; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--pink), var(--violet), transparent); box-shadow: 0 0 30px var(--pink); }

/* Footer */
footer { padding-block: 40px 60px; color: var(--dim); font-size: 14px; }
footer .row { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; border-top: 1px solid var(--edge); padding-top: 28px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* Reveal on scroll. Content is visible by default: the script hides a block only once it has
   confirmed the block is below the screen, then shows it again as it scrolls into view. */
.js .rv { transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.wait { opacity: 0; transform: translateY(26px); filter: blur(6px); }
/* The first screen plays its entrance on load, without waiting for any observer. */
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.js .hero .rv { animation: rise 1s var(--ease) var(--d, 0ms) both; }

/* App page */
.apphero { padding-top: 150px; }
.apphero .top-row { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.appicon { width: clamp(88px, 12vw, 128px); border-radius: 28%; box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 20px 60px -10px rgba(28,116,219,.7); }
@media (max-width: 620px) { .apphero .top-row { grid-template-columns: 1fr; } }
.gallery { display: flex; gap: 18px; overflow-x: auto; padding: 40px 4px 20px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery .phone { flex: none; scroll-snap-align: center; transition: transform .5s var(--ease); }
.gallery .phone:hover { transform: translateY(-8px); }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.features .glass { padding: 30px; display: grid; gap: 14px; align-content: start; }
.features ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--muted); font-weight: 300; }
.features li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; }
.features li::before { content: ''; width: 7px; height: 7px; margin-top: 10px; border-radius: 2px; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plans .glass { padding: 28px; display: grid; gap: 12px; align-content: start; }
.plans .price { font: 500 40px/1 var(--sans); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.plans .price small { font: 400 15px/1 var(--sans); color: var(--muted); letter-spacing: 0; }
.plans p { color: var(--muted); font-weight: 300; font-size: 15px; }
.plans .best { border-color: rgba(255,79,139,.55); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 0 0 1px rgba(255,79,139,.25), 0 30px 90px -20px rgba(255,79,139,.45); }
@media (max-width: 1000px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.note { font-size: 14px; color: var(--dim); }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.links a { font-size: 15px; text-decoration: none; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--edge); background: rgba(255,255,255,.04); transition: background .25s, border-color .25s; }
.links a:hover { background: rgba(255,255,255,.1); border-color: var(--edge-2); }

/* Legal pages: calm reading on glass */
.legal { padding-top: 140px; padding-bottom: 80px; }
.legal .paper { padding: clamp(26px, 5vw, 56px); background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.03)); }
.legal h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 10px; }
.legal h2 { font-size: 21px; margin: 36px 0 10px; letter-spacing: -0.02em; }
.legal p { color: #CFCADF; font-weight: 300; margin-bottom: 10px; }
.crumbs { font-size: 14px; color: var(--dim); margin-bottom: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv, .js .rv.wait { opacity: 1; transform: none; filter: none; }
}
