/* Appsalad — 2026 redesign. One stylesheet, no framework. Brand colours come from the logo. */
@font-face { font-family: Geist; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../vendor/fonts/geist-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Geist; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../vendor/fonts/geist-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #0b0a24;
  --ink-2: #1c1563;
  --blue: #015b97;
  --sky: #2a8fd6;
  --red: #eb2027;
  --text: #2a2a3c;
  --muted: #64647a;
  --line: rgba(28, 21, 99, .1);
  --bg: #fbfbfd;
  --tint: #f3f4fa;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(11, 10, 36, .06), 0 12px 32px -12px rgba(11, 10, 36, .18);
  --shadow-lg: 0 2px 4px rgba(11, 10, 36, .05), 0 40px 80px -30px rgba(11, 10, 36, .35);
  --grad: linear-gradient(100deg, var(--blue) 0%, var(--ink-2) 55%, var(--red) 100%);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--text); background: var(--bg); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; color: var(--ink); line-height: 1.1; letter-spacing: -.025em; margin: 0; font-weight: 650; }
p { margin: 0; }
.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: .5rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* buttons + small bits */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 48px; padding: 0 1.4rem; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 550; font-size: .97rem; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; box-shadow: 0 8px 20px -8px rgba(11, 10, 36, .55), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn:hover { transform: translateY(-1px); background: #1a1840; }
.btn--ghost { background: rgba(255, 255, 255, .7); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: #fff; }
.btn--sm { height: 38px; padding: 0 1rem; font-size: .9rem; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: .9rem; }
.eyebrow--light { color: #8fc8f2; }
.tag { align-self: flex-start; font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--blue); background: rgba(1, 91, 151, .08); padding: .3rem .65rem; border-radius: 999px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251, 251, 253, .72); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.nav.is-scrolled { border-color: var(--line); background: rgba(251, 251, 253, .86); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo img { height: 48px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* hero */
.hero { position: relative; overflow: hidden; padding: 4.5rem 0 2.5rem; }
.hero__bg { position: absolute; inset: -20% -10% 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 78% 30%, rgba(42, 143, 214, .22), transparent 70%),
    radial-gradient(35% 45% at 95% 70%, rgba(235, 32, 39, .12), transparent 70%),
    radial-gradient(45% 55% at 10% 10%, rgba(28, 21, 99, .10), transparent 70%); }
.hero__bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(60% 60% at 50% 35%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(60% 60% at 50% 35%, #000 20%, transparent 75%); opacity: .55; }
.hero__inner > *, .contact__inner > *, .approach > * { min-width: 0; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3.5rem; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: .6rem; padding: .4rem .9rem .4rem .7rem; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 4px 14px -6px rgba(11, 10, 36, .15); font-size: .85rem; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } }
.hero h1 { font-size: clamp(2.5rem, 5.3vw, 4.6rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.02; margin: 1.4rem 0 1.4rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 34rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__meta { list-style: none; padding: 0; margin: 2.25rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; color: var(--muted); font-size: .9rem; }
.hero__meta li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__meta .icon { width: 18px; height: 18px; color: var(--blue); }

.chrome { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; background: #eceef5; border-bottom: 1px solid var(--line); }
.chrome i { width: 9px; height: 9px; border-radius: 50%; background: #d4d6e0; }
.chrome i:nth-child(1) { background: #ff5f57; } .chrome i:nth-child(2) { background: #febc2e; } .chrome i:nth-child(3) { background: #28c840; }
.chrome span { margin: 0 auto; transform: translateX(-20px); font-size: 11px; color: var(--muted); background: rgba(255, 255, 255, .8); padding: 1px 14px; border-radius: 6px; }

.stack { position: relative; aspect-ratio: 6 / 5; width: 100%; max-width: 620px; margin-inline: auto; }
.stack__frame { position: absolute; width: 80%; margin: 0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); outline: 1px solid var(--line); transition: transform .6s var(--ease); }
.stack__frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.stack__back { top: 0; right: 0; transform: rotate(2.5deg); }
.stack__mid { top: 24%; left: 0; transform: rotate(-2deg); }
.stack__front { bottom: 0; right: 7%; }
.stack:hover .stack__back { transform: rotate(4deg) translate(8px, -6px); }
.stack:hover .stack__mid { transform: rotate(-3.5deg) translate(-8px, 0); }

.marquee { margin-top: 4rem; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee a { text-decoration: none; font-size: 1.35rem; font-weight: 650; letter-spacing: -.02em; color: rgba(11, 10, 36, .32); white-space: nowrap; transition: color .2s; }
.marquee a:hover { color: var(--ink); }
@keyframes marquee { to { transform: translateX(calc(-50% - 1.75rem)); } }

/* sections */
.section { padding: 6.5rem 0; }
.section--tint { background: var(--tint); border-block: 1px solid var(--line); }
.head { max-width: 44rem; margin: 0 auto 3.5rem; text-align: center; }
.head--left { text-align: left; margin: 0; }
.head h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); letter-spacing: -.04em; }
.head p { margin-top: 1.1rem; color: var(--muted); font-size: 1.08rem; }

/* bento */
.bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.tile { position: relative; overflow: hidden; background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: .75rem; }
.tile > .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; color: var(--blue); background: rgba(1, 91, 151, .08); margin-bottom: .5rem; }
.tile h3 { font-size: 1.35rem; }
.tile p { color: var(--muted); }
.tile__shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-top: 1.25rem; }
.tile__shots img { border-radius: 12px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; box-shadow: var(--shadow); outline: 1px solid var(--line); }
.tile--dark { background: radial-gradient(80% 120% at 100% 0%, rgba(42, 143, 214, .35), transparent 60%), radial-gradient(60% 90% at 0% 100%, rgba(235, 32, 39, .22), transparent 60%), var(--ink); box-shadow: none; }
.tile--dark h3 { color: #fff; }
.tile--dark p { color: rgba(255, 255, 255, .72); }
.tile--dark > .icon { color: #8fc8f2; background: rgba(255, 255, 255, .08); }
.chips { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { font-size: .85rem; padding: .35rem .8rem; border-radius: 999px; color: #fff; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }

/* products */
.products { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.product { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.product:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg); }
.product__shot { display: block; margin: 12px 12px 0; border-radius: 12px; overflow: hidden; outline: 1px solid var(--line); text-decoration: none; }
.product__shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.product:hover .product__shot img { transform: scale(1.025); }
.product__body { display: flex; flex-direction: column; gap: .6rem; padding: 1.4rem 1.5rem 1.6rem; flex: 1; }
.product h3 { font-size: 1.3rem; }
.product p { color: var(--muted); font-size: .95rem; flex: 1; }
.product__link { display: inline-flex; align-items: center; gap: .3rem; margin-top: .4rem; font-weight: 550; font-size: .92rem; color: var(--ink-2); text-decoration: none; }
.product__link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.product__link:hover { color: var(--red); }
.product__link:hover svg { transform: translate(2px, -2px); }

/* approach */
.approach { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps li { display: flex; gap: 1.25rem; padding: 1.5rem; border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.steps li > span { font-size: .85rem; font-weight: 650; color: var(--red); font-variant-numeric: tabular-nums; padding-top: .2rem; }
.steps h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.steps p { color: var(--muted); font-size: .97rem; }

/* contact */
.contact { position: relative; padding: 6.5rem 0; color: #fff; overflow: hidden; background: radial-gradient(50% 70% at 85% 10%, rgba(42, 143, 214, .35), transparent 70%), radial-gradient(40% 60% at 0% 100%, rgba(235, 32, 39, .25), transparent 70%), var(--ink); }
.contact__inner { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start; }
.contact h2 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.4rem); letter-spacing: -.04em; }
.contact__copy p { margin-top: 1.2rem; color: rgba(255, 255, 255, .72); font-size: 1.08rem; max-width: 32rem; }
.contact__points { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .9rem; }
.contact__points li { display: flex; align-items: center; gap: .75rem; color: rgba(255, 255, 255, .88); }
.contact__points .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; color: #8fc8f2; background: rgba(255, 255, 255, .08); }
.contact__form { background: #fff; border-radius: 24px; padding: 1.25rem 1.25rem .5rem; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); min-height: 300px; }

/* footer */
.footer { padding: 4rem 0 2rem; background: var(--bg); }
.footer__inner { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.footer__brand img { height: 64px; width: auto; }
.footer__brand p { margin-top: 1rem; color: var(--muted); max-width: 18rem; }
.footer h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; font-weight: 600; }
.footer__col { display: flex; flex-direction: column; gap: .55rem; }
.footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 1.5rem; }
.footer a { text-decoration: none; color: var(--text); font-size: .95rem; }
.footer a:hover { color: var(--red); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }

/* scroll reveal (JS adds .is-in; without JS everything is visible) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* layout steps */
@media (min-width: 720px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--wide { grid-column: span 2; }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1.6fr; }
  .contact__form { padding: 1.75rem 2rem 1rem; }
}
@media (min-width: 1024px) {
  .hero { padding: 5.5rem 0 3rem; }
  .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product--feature { grid-column: span 1; }
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile--wide { grid-column: span 2; }
  .approach { grid-template-columns: .9fr 1.1fr; gap: 5rem; align-items: start; }
  .approach .head { position: sticky; top: 110px; }
  .contact__inner { grid-template-columns: .9fr 1.1fr; gap: 4.5rem; }
}
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: .75rem 1.25rem 1.5rem; background: rgba(251, 251, 253, .97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a:not(.btn) { padding: .9rem .25rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 1rem; height: 48px; }
  .nav__logo img { height: 42px; }
}
@media (max-width: 560px) {
  .wrap { width: min(1200px, 100% - 2rem); }
  .section, .contact { padding: 4.5rem 0; }
  .hero { padding-top: 3rem; }
  .hero__cta .btn { flex: 1 1 100%; }
  .tile { padding: 1.5rem; }
  .contact__form { padding: 1rem 1rem .25rem; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
