/* Smooth morph from a project card to its case page (browsers that support it) */
@view-transition {
  navigation: auto;
}

:root {
  --ink: #16133a;
  --muted: #5d5a7a;
  --bg: #ffffff;
  --bg-alt: #f6f5fc;
  --line: #e6e4f2;
  --dark: #0b0a1f;
  --dark-2: #15133a;
  --cyan: #22d3ee;
  --indigo: #6366f1;
  --violet: #a855f7;
  --pink: #ec4899;
  --brand: linear-gradient(120deg, var(--cyan), var(--indigo) 50%, var(--violet));
  --radius: 18px;
  --shadow: 0 20px 50px -24px rgba(22, 19, 58, 0.25);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--indigo);
}

img,
video {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: #fff;
  padding: 8px 14px;
  border-radius: 8px;
}

.accent {
  color: var(--cyan);
}

.gradient-text {
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 0.8rem;
}

.section {
  padding: 96px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__intro {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 620px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 30px -12px rgba(99, 102, 241, 0.8);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}

.hero .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn--small {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}

.btn--block {
  width: 100%;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 10, 31, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
}

.footer .logo {
  color: var(--ink);
}

.logo img {
  display: block;
  height: 44px;
  width: auto;
}

.footer .logo img {
  height: 52px;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 0.85rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-left: auto;
}

.nav__links a:not(.btn) {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav__links a:not(.btn):hover {
  color: #fff;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s;
}

.nav__toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
  padding: 96px 0 104px;
}

.hero__glow {
  position: absolute;
  inset: -30% -20% auto auto;
  width: 900px;
  height: 700px;
  background:
    radial-gradient(closest-side at 40% 50%, rgba(99, 102, 241, 0.45), transparent),
    radial-gradient(closest-side at 70% 40%, rgba(34, 211, 238, 0.3), transparent),
    radial-gradient(closest-side at 55% 75%, rgba(168, 85, 247, 0.3), transparent);
  filter: blur(30px);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.4rem;
}

.pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2);
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero__facts {
  list-style: none;
  padding: 0;
  margin: 2.8rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
}

.hero__facts li {
  display: flex;
  flex-direction: column;
}

.hero__facts strong {
  font-size: 1.3rem;
}

.hero__facts span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Hero visual (CSS-only device mock-ups) */
.hero__visual {
  position: relative;
  height: 420px;
}

.browser {
  position: absolute;
  inset: 20px 40px auto 0;
  height: 300px;
  border-radius: 14px;
  background: var(--dark-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
}

.browser__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.browser__bar span {
  flex: 1;
  height: 14px;
  margin-left: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.browser__body {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.ui-hero {
  height: 92px;
  border-radius: 10px;
  background: var(--brand);
  opacity: 0.9;
}

.ui-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ui-row div {
  height: 54px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.ui-lines {
  display: grid;
  gap: 8px;
}

.ui-lines span {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.ui-lines span:nth-child(2) {
  width: 80%;
}

.ui-lines span:nth-child(3) {
  width: 55%;
}

.phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 170px;
  height: 330px;
  border-radius: 30px;
  background: #050414;
  border: 6px solid #232046;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.phone__notch {
  width: 60px;
  height: 16px;
  margin: 8px auto 0;
  border-radius: 10px;
  background: #232046;
}

.phone__screen {
  padding: 14px 12px;
  display: grid;
  gap: 10px;
}

.ui-card {
  height: 58px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.ui-card--accent {
  height: 86px;
  background: linear-gradient(140deg, var(--violet), var(--pink));
}

.ui-tabbar {
  display: flex;
  justify-content: space-around;
  margin-top: 26px;
}

.ui-tabbar i {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
}

.ui-tabbar i:first-child {
  background: var(--cyan);
}

.badge {
  position: absolute;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.badge--launch {
  left: -18px;
  bottom: 70px;
}

.badge--sprint {
  right: 120px;
  top: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-weight: 600;
}

/* Tech strip */
.tech {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.tech__label {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.tech__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  font-weight: 700;
  color: #8b88a8;
}

/* Audience */
.audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 2.2rem;
}

.audience__card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--bg-alt));
}

.audience__card p {
  color: var(--muted);
  margin: 0;
}

.audience__card::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background: var(--brand);
  margin-bottom: 1.2rem;
}

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 2.2rem;
}

.service {
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service p {
  color: var(--muted);
  margin: 0;
}

.service__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(168, 85, 247, 0.15));
  margin-bottom: 1.1rem;
}

.service__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--indigo);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Dark section */
.section--dark {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}

.section--dark::before {
  content: "";
  position: absolute;
  inset: -200px -300px auto auto;
  width: 800px;
  height: 600px;
  background: radial-gradient(closest-side, rgba(99, 102, 241, 0.28), transparent);
  pointer-events: none;
}

.section--dark .container {
  position: relative;
}

.section--dark .section__intro {
  color: rgba(255, 255, 255, 0.7);
}

.eyebrow--light {
  color: var(--cyan);
}

/* Work */
.work__head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px 48px;
  align-items: end;
  margin-bottom: 2.4rem;
}

.work__head h2 {
  margin: 0;
}

.work__head .section__intro {
  margin: 0;
}

/* Video slots: anything with data-video. script.js adds .has-video when the link is filled in. */
[data-video] {
  position: relative;
}

.play {
  display: none;
  position: absolute;
  z-index: 3;
  inset: 0;
  margin: auto;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s ease;
}

.play::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 20px;
  border-left: 19px solid var(--indigo);
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
}

.has-video {
  cursor: pointer;
}

.has-video .play {
  display: block;
}

.has-video:hover .play,
.has-video:focus-visible .play {
  transform: scale(1.08);
}

.soon-chip {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: rgba(11, 10, 31, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.soon-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.has-video .soon-chip {
  display: none;
}

/* Showreel */
.showreel {
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 21 / 8;
  padding: clamp(24px, 4vw, 52px);
  border-radius: 26px;
  background: #100e2c;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.showreel__art {
  position: absolute;
  inset: 0;
}

.showreel__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.75;
  animation: drift 14s ease-in-out infinite alternate;
}

.showreel__orb--1 {
  width: 46%;
  aspect-ratio: 1;
  right: -6%;
  top: -40%;
  background: var(--indigo);
}

.showreel__orb--2 {
  width: 34%;
  aspect-ratio: 1;
  right: 26%;
  bottom: -50%;
  background: var(--cyan);
  animation-delay: -5s;
}

.showreel__orb--3 {
  width: 28%;
  aspect-ratio: 1;
  right: 4%;
  bottom: -30%;
  background: var(--violet);
  animation-delay: -9s;
}

@keyframes drift {
  to {
    transform: translate(-8%, 10%) scale(1.12);
  }
}

.showreel__copy {
  position: relative;
  z-index: 2;
  max-width: 540px;
}

.showreel__label {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.showreel h3 {
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.showreel__copy p:last-child {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.showreel .play {
  inset: 0 18% 0 auto;
  width: 84px;
  height: 84px;
}

.showreel .play::after {
  left: 33px;
  top: 26px;
  border-left-width: 24px;
  border-top-width: 16px;
  border-bottom-width: 16px;
}

/* Case cards */
.cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.case {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: border-color 0.3s ease;
}

.case:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.case__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.case__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 26px 28px;
}

.case__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0.7rem;
}

.case__tag {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

.status {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.status--live {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
}

.status--beta {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
}

.status--dev {
  color: #c4b5fd;
  background: rgba(196, 181, 253, 0.12);
}

.case h3 {
  font-size: 1.45rem;
  margin-bottom: 0.25rem;
}

.case__client {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.9rem;
}

.case__body > p {
  color: rgba(255, 255, 255, 0.75);
}

.case__points {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  display: grid;
  gap: 0.45rem;
}

.case__points li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.85);
}

.case__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.case__stack {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.case__stack li {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.case h3 a {
  color: inherit;
  text-decoration: none;
}

.case h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.case__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.case__ext {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.case__ext::after {
  content: " \2197";
}

.case__ext:hover {
  color: #fff;
}

.case__link {
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
}

.case__link::after {
  content: " \2192";
}

.case__link:hover {
  text-decoration: underline;
}

.case__note {
  margin: auto 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Project covers */
.cover {
  position: relative;
  display: grid;
  text-decoration: none;
  place-items: center;
  isolation: isolate;
}

.cover__logo {
  position: absolute;
  z-index: 1;
  inset: 0;
  margin: auto;
  width: auto;
  height: auto;
  max-width: 44%;
  max-height: 50%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.case:hover .cover__logo {
  transform: scale(1.04);
}

.chip {
  position: absolute;
  z-index: 2;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.chip--1 {
  top: 11%;
  left: 5%;
}

.chip--2 {
  bottom: 12%;
  left: 7%;
}

.chip--3 {
  top: 24%;
  right: 5%;
}

.cover--fret {
  background:
    radial-gradient(circle at 80% 10%, rgba(201, 166, 92, 0.35), transparent 45%),
    linear-gradient(140deg, #fdfaf3, #ece2cc);
}

.cover--fret .chip {
  color: #fff;
  background: #1f3f94;
  border-color: transparent;
}

.cover--lpv {
  background:
    radial-gradient(circle at 25% 15%, #4f8a5d, transparent 55%),
    linear-gradient(150deg, #2b5537, #14291b);
}

.cover--b2b {
  background:
    radial-gradient(circle at 15% 90%, rgba(176, 141, 87, 0.35), transparent 50%),
    linear-gradient(140deg, #faf7f1, #e2d9c8);
}

.cover--b2b .chip {
  color: #e9d3a6;
  background: #1c1b19;
  border-color: transparent;
}

.cover--b2b .cover__logo {
  max-width: 50%;
}

.cover--bubble {
  background:
    radial-gradient(circle at 75% 20%, rgba(236, 72, 153, 0.45), transparent 45%),
    radial-gradient(circle at 20% 85%, rgba(34, 211, 238, 0.35), transparent 45%),
    linear-gradient(150deg, #2a1557, #0f0a26);
}

.cover--bubble .cover__logo {
  max-height: 64%;
}

.cover--wiseling {
  background:
    radial-gradient(circle at 20% 20%, #ffffff, transparent 50%),
    linear-gradient(140deg, #efeaff, #cfc4ff);
}

.cover__phone {
  position: absolute;
  z-index: 1;
  top: 9%;
  left: 40%;
  width: 30%;
  height: auto;
  transform: rotate(-5deg);
  filter: drop-shadow(0 20px 30px rgba(40, 20, 120, 0.35));
  transition: transform 0.5s ease;
}

.cover__phone--back {
  z-index: 0;
  top: 17%;
  left: 62%;
  width: 27%;
  transform: rotate(7deg);
  opacity: 0.92;
}

.case:hover .cover__phone:not(.cover__phone--back) {
  transform: rotate(-3deg) translateY(-4px);
}

.cover__owl {
  position: absolute;
  left: 11%;
  bottom: 14%;
  width: 20%;
  height: auto;
  filter: drop-shadow(0 12px 20px rgba(40, 20, 120, 0.3));
}

.cover--football {
  background:
    radial-gradient(circle at 20% 80%, rgba(45, 212, 191, 0.35), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(56, 189, 248, 0.3), transparent 45%),
    linear-gradient(150deg, #0c2340, #06101f);
}

.fmini {
  position: relative;
  z-index: 1;
  width: min(72%, 340px);
  color: #fff;
}

.fmini__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 800;
}

.fmini__brand span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #0c2340 28%, transparent 30%),
    conic-gradient(#2dd4bf 0 25%, #fff 0 50%, #2dd4bf 0 75%, #fff 0);
}

.fmini__card {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}

.fmini__card p {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
}

.fmini__row {
  display: grid;
  grid-template-columns: 1fr auto auto 1fr;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-size: 0.85rem;
  font-weight: 700;
}

.fmini__row span:last-child {
  text-align: right;
}

.fmini__row b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(45, 212, 191, 0.18);
  color: #5eead4;
  font-size: 0.8rem;
}

.fmini__pot {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  background: linear-gradient(90deg, rgba(45, 212, 191, 0.3), rgba(56, 189, 248, 0.2));
}

.fmini__pot b {
  color: #fff;
}

/* "View case study" label that slides up on hover */
.case__open {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 14px;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.case__open::after {
  content: " \2192";
}

.case:hover .case__open,
.case__media:focus-visible .case__open {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 3D tilt on desktop: script.js sets --rx/--ry from the cursor; chips float on top */
@media (hover: hover) and (pointer: fine) {
  [data-tilt] {
    transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease;
    will-change: transform;
  }

  [data-tilt].is-tilting {
    transition: transform 0.08s linear, border-color 0.3s ease;
  }

  [data-tilt] .chip,
  [data-tilt] .cover__owl,
  [data-tilt] .fmini {
    transform: translate(calc(var(--mx, 0) * 10px), calc(var(--my, 0) * 10px));
    transition: transform 0.3s ease;
  }

  [data-tilt] .cover__phone:not(.cover__phone--back) {
    translate: calc(var(--mx, 0) * 6px) calc(var(--my, 0) * 6px);
  }
}

.work__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 32px;
  padding: 22px 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.work__cta p {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

/* Video player */
.player {
  width: min(1100px, 94vw);
  max-height: 90vh;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #000;
  overflow: visible;
}

.player::backdrop {
  background: rgba(5, 4, 20, 0.86);
  backdrop-filter: blur(6px);
}

.player__frame {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
}

.player__frame iframe,
.player__frame video {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.player__close {
  position: absolute;
  top: -52px;
  right: 0;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

/* Carousel dots (built by script.js; shown only where a list turns into a swipe row) */
.dots {
  display: none;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}

.dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(22, 19, 58, 0.18);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.dots button[aria-current="true"] {
  width: 24px;
  background: var(--indigo);
}

.section--dark .dots button {
  background: rgba(255, 255, 255, 0.25);
}

.section--dark .dots button[aria-current="true"] {
  background: var(--cyan);
}

/* Tech strip as a scrolling row on phones (second list is a copy for a seamless loop) */
.tech__track {
  display: flex;
  justify-content: center;
}

.tech__list--dup {
  display: none;
}

/* Short versions of service and promise texts, shown on phones */
.short {
  display: none;
}

/* Floating call button on phones */
.mobile-cta {
  display: none;
}


/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 56px;
  border-radius: 28px;
  background: var(--dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  left: -200px;
  bottom: -260px;
  background: radial-gradient(closest-side, rgba(99, 102, 241, 0.5), transparent);
  pointer-events: none;
}

.contact > * {
  position: relative;
}

.contact__intro p {
  color: rgba(255, 255, 255, 0.75);
}

.contact__points {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0;
  display: grid;
  gap: 0.6rem;
}

.contact__points li {
  padding-left: 1.6rem;
  position: relative;
}

.contact__points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 800;
}

.contact__email a {
  color: var(--cyan);
  font-weight: 700;
}

.form {
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
}

.form__row {
  display: grid;
  gap: 6px;
}

label {
  font-size: 0.88rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}

textarea {
  resize: vertical;
}

.form__note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.form__note.is-error {
  color: #c2185b;
}

/* Footer */
.footer {
  position: relative;
  background: #08071a;
  color: rgba(255, 255, 255, 0.72);
  padding: 72px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--brand);
  opacity: 0.5;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px 32px;
  padding-bottom: 48px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer .logo img {
  height: 44px;
}

.footer__tag {
  max-width: 280px;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

.footer__mail {
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.footer__mail:hover {
  color: var(--cyan);
}

.footer__brand .btn {
  margin-top: 6px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer__title {
  margin: 0 0 6px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.footer__col a {
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__col a:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__legal p {
  margin: 0 0 4px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
}

.footer__legal p:first-child {
  color: rgba(255, 255, 255, 0.65);
}

.footer__up {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer__up::after {
  content: "\2191";
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.2s ease;
}

.footer__up:hover {
  color: #fff;
}

.footer__up:hover::after {
  transform: translateY(-2px);
}

/* Language switcher (built by i18n.js) */
.lang {
  position: relative;
  margin-left: 18px;
}

.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 11px 0 9px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lang__btn:hover,
.lang__btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

.lang__btn::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-right: 2px solid rgba(255, 255, 255, 0.6);
  border-bottom: 2px solid rgba(255, 255, 255, 0.6);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}

.lang__btn[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(-135deg);
}

.flag {
  display: block;
  flex-shrink: 0;
  width: 22px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.lang__menu {
  position: absolute;
  z-index: 70;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  max-height: min(70vh, 460px);
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 16px;
  background: rgba(20, 18, 48, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.lang__menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.lang__menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.lang__menu a:hover,
.lang__menu a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}

.lang__menu a[aria-current="true"] {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.16), rgba(168, 85, 247, 0.16));
  color: #fff;
}

.lang__menu a[aria-current="true"]::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--cyan);
}

/* Page is hidden for a moment while a translation loads (see the small script in <head>) */
.i18n-wait body > :not(.preloader) {
  opacity: 0;
}

body > * {
  transition: opacity 0.2s ease;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Shared: spotlight that follows the cursor (script.js sets --mx/--my on [data-spot]) ---------- */
@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes spin-border {
  to {
    --spin: 360deg;
  }
}

/* ---------- How we work ---------- */
.process {
  position: relative;
  overflow: hidden;
}

.process::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(22, 19, 58, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent);
  pointer-events: none;
}

.process__glow {
  position: absolute;
  right: -200px;
  bottom: -260px;
  width: 760px;
  height: 560px;
  background: radial-gradient(closest-side, rgba(99, 102, 241, 0.14), transparent);
  pointer-events: none;
}

.process .container {
  position: relative;
}

.process__head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px 48px;
  align-items: end;
  margin-bottom: 2.2rem;
}

.process__head h2,
.process__head .section__intro {
  margin: 0;
}

.journey {
  margin-bottom: 26px;
  padding: 20px 22px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -36px rgba(22, 19, 58, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.journey__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.journey__label b {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
}

.journey__bar {
  position: relative;
  display: flex;
  gap: 4px;
  height: 46px;
  overflow: hidden;
  border-radius: 12px;
}

.journey__bar span {
  position: relative;
  flex: var(--w) 1 0;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 12px;
  border-radius: 10px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.journey.is-visible .journey__bar span {
  transform: none;
}

.journey__bar span:nth-child(2) {
  transition-delay: 0.15s;
}

.journey__bar span:nth-child(3) {
  transition-delay: 0.3s;
}

.journey__bar span:nth-child(4) {
  transition-delay: 0.45s;
}

.journey__bar span:nth-child(5) {
  transition-delay: 0.6s;
}

.j1 {
  background: linear-gradient(90deg, #22d3ee, #38bdf8);
}

.j2 {
  background: linear-gradient(90deg, #38bdf8, #6366f1);
}

.j3 {
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(25% - 2px), rgba(255, 255, 255, 0.35) calc(25% - 2px) 25%),
    linear-gradient(90deg, #6366f1, #a855f7);
}

.j4 {
  background: linear-gradient(90deg, #a855f7, #ec4899);
}

.j5 {
  background: linear-gradient(90deg, #ec4899, rgba(236, 72, 153, 0.18));
}

.journey__bar i {
  font-style: normal;
  font-size: 0.76rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* a light that sweeps along the bar */
.journey__bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -30%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: sweep 3.6s ease-in-out infinite;
  animation-delay: 1.4s;
  pointer-events: none;
}

@keyframes sweep {
  0% {
    left: -30%;
  }
  60%,
  100% {
    left: 110%;
  }
}

.steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* the line that joins the step icons, and the light travelling along it */
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.steps::before {
  left: 46px;
  right: calc((100% - 64px) / 5 - 46px);
  top: 46px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #22d3ee, #6366f1, #a855f7, #ec4899);
  opacity: 0.35;
}

.steps::after {
  top: 42px;
  left: 46px;
  width: 90px;
  height: 10px;
  border-radius: 10px;
  background: radial-gradient(closest-side, #fff, rgba(129, 140, 248, 0.9) 45%, transparent);
  animation: travel-x 4.5s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}

@keyframes travel-x {
  0% {
    left: 46px;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    left: calc(100% - (100% - 64px) / 5 + 10px);
    opacity: 0;
  }
}

.step {
  position: relative;
  padding: 22px 20px 66px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: opacity 0.6s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease, border-color 0.45s ease;
}

.step::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--c);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease;
}

.step:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--c) 45%, var(--line));
  box-shadow: 0 28px 60px -30px color-mix(in srgb, var(--c) 70%, transparent);
}

.step:hover::before {
  transform: none;
}

.step__top {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.step__icon {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, #fff);
  box-shadow: 0 0 0 6px #fff;
  transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.step__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step:hover .step__icon {
  transform: rotate(-8deg) scale(1.1);
}

.step__num {
  position: absolute;
  right: 14px;
  bottom: 6px;
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--c) 35%, transparent);
  transition: color 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.step:hover .step__num {
  color: color-mix(in srgb, var(--c) 14%, transparent);
  transform: translateY(-4px);
}

.step h3 {
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}

.step__time {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--c) 70%, #16133a);
  background: color-mix(in srgb, var(--c) 13%, #fff);
}

.step p:last-of-type {
  position: relative;
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- Pricing ---------- */
.pricing {
  position: relative;
  overflow: hidden;
}

.pricing::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 120px;
  width: 1100px;
  height: 700px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 30% 50%, rgba(34, 211, 238, 0.12), transparent),
    radial-gradient(closest-side at 70% 50%, rgba(168, 85, 247, 0.12), transparent);
  pointer-events: none;
}

.pricing .container {
  position: relative;
}

.pricing__head {
  max-width: 680px;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.pricing__head .section__intro {
  margin: 0 auto;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
  padding-top: 16px;
}

.plan {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 30px 28px 28px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: opacity 0.6s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
}

/* spotlight */
.plan::before,
.extra::before,
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(99, 102, 241, 0.13), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

/* moving gradient border */
.plan::after,
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--spin), #22d3ee, #6366f1, #a855f7, #ec4899, #22d3ee);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: spin-border 4s linear infinite;
  pointer-events: none;
}

.plan:hover {
  transform: translateY(-8px);
  box-shadow: 0 44px 80px -40px rgba(76, 70, 229, 0.5);
}

.plan:hover::before,
.plan:hover::after,
.extra:hover::before,
.tile:hover::before,
.tile:hover::after {
  opacity: 1;
}

.plans .plan--featured {
  background: radial-gradient(130% 90% at 50% 0%, #2b2575 0%, #13113a 45%, #0b0a1f 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 40px 90px -36px rgba(99, 102, 241, 0.7);
  transform: translateY(-12px);
}

.plans .plan--featured:hover {
  transform: translateY(-20px);
}

.plan--featured::after {
  opacity: 1;
}

.plan--featured::before {
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(255, 255, 255, 0.1), transparent 60%);
}

.plan__tag {
  position: absolute;
  top: 22px;
  right: 22px;
  margin: 0;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  box-shadow: 0 8px 20px -8px rgba(99, 102, 241, 0.9);
}

.plan__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.9rem;
  padding-right: 90px;
}

.plan:not(.plan--featured) .plan__head {
  padding-right: 0;
}

.plan__head h3 {
  margin: 0;
  font-size: 1.2rem;
}

.plan__icon,
.extra__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--indigo);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(168, 85, 247, 0.16));
  transition: transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.plan__icon svg,
.extra__icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan:hover .plan__icon,
.extra:hover .extra__icon {
  transform: rotate(-10deg) scale(1.12);
}

.plan--featured .plan__icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.plan__desc {
  min-height: 3.2em;
  margin-bottom: 1.2rem;
  color: var(--muted);
}

.plan--featured .plan__desc,
.plan--featured .plan__list li {
  color: rgba(255, 255, 255, 0.75);
}

.plan__price {
  margin: 0;
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.plan__price span {
  margin-right: 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}

.plan--featured .plan__price {
  background: linear-gradient(90deg, #fff 30%, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.plan--featured .plan__price span {
  -webkit-text-fill-color: rgba(255, 255, 255, 0.6);
}

.plan__time {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  margin: 0.6rem 0 1.3rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--indigo);
  background: rgba(99, 102, 241, 0.08);
}

.plan__time::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: blink 1.8s ease-in-out infinite;
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

.plan--featured .plan__time {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
}

.plan__list {
  flex: 1;
  list-style: none;
  display: grid;
  align-content: start;
  gap: 0.7rem;
  margin: 0 0 1.6rem;
  padding: 1.3rem 0 0;
  border-top: 1px dashed var(--line);
}

.plan--featured .plan__list {
  border-top-color: rgba(255, 255, 255, 0.15);
}

.plan__list li {
  position: relative;
  padding-left: 1.8rem;
  font-size: 0.95rem;
  color: var(--muted);
  transition: transform 0.35s ease;
}

.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm11.7-2.3a1 1 0 0 0-1.4-1.4L7 7.6 5.7 6.3a1 1 0 0 0-1.4 1.4l2 2a1 1 0 0 0 1.4 0z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm11.7-2.3a1 1 0 0 0-1.4-1.4L7 7.6 5.7 6.3a1 1 0 0 0-1.4 1.4l2 2a1 1 0 0 0 1.4 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.plan:hover .plan__list li {
  transform: translateX(4px);
}

.plan:hover .plan__list li:nth-child(2) {
  transition-delay: 0.04s;
}

.plan:hover .plan__list li:nth-child(3) {
  transition-delay: 0.08s;
}

.plan:hover .plan__list li:nth-child(4) {
  transition-delay: 0.12s;
}

.plan:hover .plan__list li:nth-child(5) {
  transition-delay: 0.16s;
}

.plan .btn {
  margin-top: auto;
}

.plan--featured .btn {
  box-shadow: 0 14px 30px -12px rgba(99, 102, 241, 0.9);
}

.extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 26px;
}

.extra {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 26px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: opacity 0.6s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease;
}

.extra:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -36px rgba(76, 70, 229, 0.45);
}

.extra h3 {
  margin-bottom: 0.3rem;
}

.extra p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Why Apps2U: bento ---------- */
.why__head {
  max-width: 720px;
  margin-bottom: 2.4rem;
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    "a a b"
    "c d b"
    "e f f";
  gap: 18px;
}

.tile--a {
  grid-area: a;
}

.tile--b {
  grid-area: b;
}

.tile--c {
  grid-area: c;
}

.tile--d {
  grid-area: d;
}

.tile--e {
  grid-area: e;
}

.tile--f {
  grid-area: f;
}

.tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px;
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
  transition: opacity 0.6s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease;
}

.tile::before {
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(99, 102, 241, 0.25), transparent 60%);
}

.tile:hover {
  transform: translateY(-4px);
  border-color: transparent;
}

.tile--a,
.tile--f {
  flex-direction: row;
  align-items: center;
}

.tile--a > *,
.tile--f > * {
  flex: 1 1 0;
}

.tile__art {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 150px;
}

.tile__text h3 {
  margin-bottom: 0.4rem;
  font-size: 1.18rem;
}

.tile__text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
}

.tile__text .short {
  display: none;
}

/* contract with a stamp */
.contract {
  position: relative;
  width: min(250px, 90%);
  padding: 18px 18px 20px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  transform: rotate(-4deg);
}

.contract__lines i {
  display: block;
  height: 7px;
  margin-bottom: 7px;
  border-radius: 4px;
  background: #e8e6f5;
}

.contract__lines i:nth-child(1) {
  width: 55%;
  background: #c7c4ef;
}

.contract__lines i:nth-child(2) {
  width: 92%;
}

.contract__lines i:nth-child(3) {
  width: 80%;
}

.contract__lines i:nth-child(4) {
  width: 64%;
}

.contract__price {
  margin: 0.5rem 0 0;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.contract__stamp {
  position: absolute;
  right: -16px;
  bottom: -14px;
  padding: 0.35rem 0.8rem;
  border: 2px solid #16a34a;
  border-radius: 10px;
  background: #f0fdf4;
  color: #16a34a;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: stamp 4.5s ease-in-out infinite;
}

@keyframes stamp {
  0%,
  18% {
    opacity: 0;
    transform: rotate(-12deg) scale(2.4);
  }
  26% {
    opacity: 1;
    transform: rotate(-12deg) scale(0.95);
  }
  30%,
  85% {
    opacity: 1;
    transform: rotate(-12deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: rotate(-12deg) scale(1);
  }
}

/* chat that types itself */
.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.msg {
  max-width: 84%;
  margin: 0;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.86rem;
  line-height: 1.4;
  opacity: 0;
  animation: msg 9s ease infinite;
}

.msg--you {
  align-self: flex-end;
  background: var(--brand);
  color: #fff;
  border-bottom-right-radius: 5px;
}

.msg--dev {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-bottom-left-radius: 5px;
}

.msg:nth-child(2) {
  animation-delay: 1.3s;
}

.msg:nth-child(3) {
  animation-delay: 2.6s;
}

.msg:nth-child(4) {
  animation-delay: 3.6s;
}

@keyframes msg {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  6%,
  80% {
    opacity: 1;
    transform: none;
  }
  92%,
  100% {
    opacity: 0;
    transform: none;
  }
}

.msg--typing {
  display: flex;
  gap: 4px;
  padding: 13px 14px;
}

.msg--typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  animation: dot 1.2s ease-in-out infinite;
}

.msg--typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.msg--typing i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes dot {
  0%,
  60%,
  100% {
    transform: none;
    opacity: 0.5;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* milestone payments filling up */
.miles {
  width: 100%;
}

.miles__bar {
  display: flex;
  gap: 4px;
  height: 14px;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.miles__bar span {
  flex: var(--w) 1 0;
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: left;
  animation: fill-x 6s ease infinite;
}

.miles__bar span:nth-child(1) {
  background: linear-gradient(90deg, #22d3ee, #38bdf8);
}

.miles__bar span:nth-child(2) {
  background: linear-gradient(90deg, #6366f1, #818cf8);
  animation-delay: 0.9s;
}

.miles__bar span:nth-child(3) {
  background: linear-gradient(90deg, #a855f7, #ec4899);
  animation-delay: 1.8s;
}

@keyframes fill-x {
  0% {
    transform: scaleX(0);
  }
  12%,
  78% {
    transform: scaleX(1);
  }
  90%,
  100% {
    transform: scaleX(0);
  }
}

.miles__labels {
  display: grid;
  grid-template-columns: 30fr 40fr 30fr;
  gap: 4px;
  margin-top: 12px;
}

.miles__labels b {
  display: block;
  font-size: 1.25rem;
}

.miles__labels i {
  font-style: normal;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ownership ticks */
.owns {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.owns li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem 0.5rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
  font-weight: 600;
}

.owns li::before {
  content: "\2713";
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  animation: tick 6s ease infinite;
}

.owns li:nth-child(2)::before {
  animation-delay: 0.4s;
}

.owns li:nth-child(3)::before {
  animation-delay: 0.8s;
}

.owns li:nth-child(4)::before {
  animation-delay: 1.2s;
}

@keyframes tick {
  0%,
  8% {
    transform: scale(0);
  }
  16% {
    transform: scale(1.25);
  }
  20%,
  88% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}

/* a week: the highlight hops from "yes" to "we start" */
.week {
  width: 100%;
}

.week__days {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.week__days span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}

.week__days::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: calc((100% - 36px) / 7);
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--brand);
  box-shadow: 0 10px 30px -6px rgba(99, 102, 241, 0.9);
  animation: hop 5s cubic-bezier(0.6, 0, 0.3, 1) infinite;
}

@keyframes hop {
  0%,
  22% {
    transform: translateX(0);
  }
  50%,
  88% {
    transform: translateX(calc(300% + 18px));
  }
  100% {
    transform: translateX(0);
  }
}

.week__pin {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
  font-size: 0.78rem;
}

.week__pin b:first-child {
  grid-column: 1 / span 3;
  color: var(--cyan);
}

.week__pin b:last-child {
  grid-column: 4 / span 4;
  color: #c4b5fd;
}

/* UK badges floating */
.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.badges span {
  padding: 0.5rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  font-weight: 700;
  animation: float 5s ease-in-out infinite;
}

.badges span:nth-child(2) {
  animation-delay: -1s;
}

.badges span:nth-child(3) {
  animation-delay: -2s;
}

.badges span:nth-child(4) {
  animation-delay: -3s;
}

.badges span:nth-child(5) {
  animation-delay: -4s;
}

.badges .badges__flag {
  width: 64px;
  height: 34px;
  padding: 0;
  overflow: hidden;
  border-radius: 9px;
}

.badges__flag svg {
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes float {
  50% {
    transform: translateY(-7px);
  }
}

/* ---------- FAQ: clean list ---------- */
.faq-sec {
  background: #fff;
}

.faq__head {
  margin-bottom: 2.4rem;
  text-align: center;
}

.faq__head h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0;
}

.faq__list {
  max-width: 860px;
  margin: 0 auto;
  border-top: 1px solid #d2d2d7;
}

.faq__list details {
  border-bottom: 1px solid #d2d2d7;
}

.faq__list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  list-style: none;
  cursor: pointer;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.2s ease;
}

.faq__list summary::-webkit-details-marker {
  display: none;
}

.faq__list summary::after {
  content: "";
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f5f5f7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1.5v11M1.5 7h11' stroke='%2316133a' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 13px no-repeat;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s ease;
}

.faq__list summary:hover {
  color: var(--indigo);
}

.faq__list summary:hover::after {
  background-color: #e8e8ed;
}

.faq__list details[open]:not(.is-closing) summary::after {
  transform: rotate(45deg);
}

.faq__a {
  overflow: hidden;
}

.faq__a p {
  max-width: 760px;
  margin: 0;
  padding: 0 60px 28px 4px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #6e6e73;
}

.faq__more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 860px;
  margin: 44px auto 0;
  padding: 26px 30px;
  border-radius: 24px;
  background: #f5f5f7;
}

.faq__more p {
  margin: 0;
  color: #6e6e73;
}

.faq__more .faq__more-title {
  margin-bottom: 0.15rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- Responsive for the sections above ---------- */
@media (max-width: 1000px) {
  .process__head {
    grid-template-columns: 1fr;
  }

  /* steps become a vertical timeline; the line and the light run down the icons */
  .steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .steps::before {
    left: 44px;
    right: auto;
    top: 46px;
    bottom: 46px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, #22d3ee, #6366f1, #a855f7, #ec4899);
  }

  .steps::after {
    left: 40px;
    top: 46px;
    width: 10px;
    height: 90px;
    background: radial-gradient(closest-side, #fff, rgba(129, 140, 248, 0.9) 45%, transparent);
    animation-name: travel-y;
  }

  @keyframes travel-y {
    0% {
      top: 46px;
      opacity: 0;
    }
    10%,
    85% {
      opacity: 1;
    }
    100% {
      top: calc(100% - 120px);
      opacity: 0;
    }
  }

  .step {
    padding: 20px 20px 20px 86px;
    min-height: 96px;
  }

  .step__top {
    margin: 0;
  }

  .step__icon {
    position: absolute;
    left: 20px;
    top: 20px;
  }

  .step__num {
    font-size: 2.8rem;
    bottom: auto;
    top: 12px;
  }

  .step h3 {
    padding-right: 64px;
  }

  .step:hover {
    transform: translateX(4px);
  }

  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "a a"
      "b c"
      "b d"
      "e f";
  }

  .tile--f {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 860px) {
  .plans {
    padding-top: 22px;
  }

  .plans .plan--featured,
  .plans .plan--featured:hover,
  .plan:hover {
    transform: none;
  }

  .plan__desc {
    min-height: 0;
  }

  .extras {
    grid-template-columns: 1fr;
  }

  .journey__bar i {
    display: none;
  }

  .j3 i {
    display: block !important;
  }
}

@media (max-width: 640px) {
  .journey {
    padding: 16px;
    border-radius: 18px;
  }

  .journey__bar {
    height: 34px;
  }

  .step {
    padding: 16px 16px 18px 76px;
    border-radius: 18px;
  }

  .step__icon {
    left: 14px;
    top: 16px;
  }

  .step__icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .steps::before {
    left: 36px;
  }

  .steps::after {
    left: 32px;
  }

  .step__num {
    font-size: 2.2rem;
    right: 12px;
  }

  .step p:last-of-type {
    font-size: 0.9rem;
  }

  .plan {
    padding: 26px 22px 22px;
    border-radius: 24px;
  }

  .plan__price {
    font-size: 2.3rem;
  }

  .extra {
    padding: 20px;
    gap: 14px;
  }

  .bento {
    gap: 12px;
    grid-template-areas:
      "a a"
      "b b"
      "c d"
      "e f";
  }

  .tile {
    padding: 18px;
    gap: 14px;
    border-radius: 20px;
  }

  .tile--a {
    flex-direction: column;
    align-items: stretch;
  }

  .tile--a .tile__art {
    min-height: 190px;
  }

  .contract {
    width: min(230px, 80%);
  }

  .tile__art {
    min-height: 110px;
  }

  .tile--c .tile__text p:not(.short),
  .tile--d .tile__text p:not(.short),
  .tile--e .tile__text p:not(.short),
  .tile--f .tile__text p:not(.short) {
    display: none;
  }

  .tile--c .short,
  .tile--d .short,
  .tile--e .short,
  .tile--f .short {
    display: block;
    font-size: 0.84rem;
  }

  .tile__text h3 {
    font-size: 1rem;
  }

  .tile--c .tile__art,
  .tile--d .tile__art,
  .tile--e .tile__art,
  .tile--f .tile__art {
    min-height: 90px;
  }

  .miles__labels b {
    font-size: 0.95rem;
  }

  .miles__labels i,
  .week__pin {
    font-size: 0.68rem;
  }

  .owns {
    gap: 5px;
  }

  .owns li {
    padding: 0.3rem 0.55rem 0.3rem 0.35rem;
    font-size: 0.72rem;
    gap: 0.3rem;
  }

  .owns li::before {
    width: 15px;
    height: 15px;
    font-size: 0.55rem;
  }

  .badges {
    gap: 5px;
  }

  .badges span {
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
    border-radius: 8px;
  }

  .badges .badges__flag {
    width: 40px;
    height: 22px;
  }

  .week__days {
    gap: 3px;
  }

  .week__days span {
    font-size: 0.66rem;
    border-radius: 6px;
  }

  .week__days::after {
    width: calc((100% - 18px) / 7);
    border-radius: 6px;
    animation-name: hop-sm;
  }

  @keyframes hop-sm {
    0%,
    22% {
      transform: translateX(0);
    }
    50%,
    88% {
      transform: translateX(calc(300% + 9px));
    }
    100% {
      transform: translateX(0);
    }
  }

  .week__pin {
    gap: 3px;
  }

  .faq__head {
    text-align: left;
    margin-bottom: 1.6rem;
  }

  .faq__list summary {
    padding: 20px 0;
    gap: 16px;
  }

  .faq__list summary::after {
    width: 30px;
    height: 30px;
  }

  .faq__a p {
    padding: 0 0 22px;
    font-size: 0.98rem;
  }

  .faq__more {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
    margin-top: 32px;
  }

  .faq__more .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .steps::after,
  .journey__bar::after,
  .plan::after,
  .tile::after,
  .contract__stamp,
  .msg,
  .msg--typing i,
  .miles__bar span,
  .owns li::before,
  .week__days::after,
  .badges span,
  .plan__time::before {
    animation: none;
  }

  .msg,
  .contract__stamp {
    opacity: 1;
  }

  .miles__bar span,
  .journey__bar span {
    transform: none;
  }
}

/* ---------- Preloader: the Apps2U mark animates while a page loads ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background:
    radial-gradient(600px 400px at 50% 45%, rgba(99, 102, 241, 0.22), transparent 70%),
    var(--dark);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s;
}

.is-loading .preloader,
.is-leaving .preloader {
  opacity: 1;
  visibility: visible;
}

.is-leaving .preloader {
  transition-duration: 0.3s;
}

.preloader__inner {
  display: grid;
  justify-items: center;
  gap: 10px;
  transform: scale(1.08);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.is-loading .preloader__inner,
.is-leaving .preloader__inner {
  transform: none;
}

.pl {
  width: 176px;
  height: auto;
  overflow: visible;
}

.pl__tile {
  transform-box: fill-box;
  transform-origin: center;
  animation: pl-tile 1.6s cubic-bezier(0.5, 0, 0.3, 1) infinite;
}

@keyframes pl-tile {
  0%,
  100% {
    transform: rotate(-10deg) translateY(0);
  }
  50% {
    transform: rotate(-4deg) translateY(-4px);
  }
}

.pl__sq {
  transform-box: fill-box;
  transform-origin: center;
  animation: pl-sq 1.2s ease-in-out infinite;
}

.pl__sq.s2 {
  animation-delay: 0.15s;
}

.pl__sq.s4 {
  animation-delay: 0.3s;
}

.pl__sq.s3 {
  animation-delay: 0.45s;
}

@keyframes pl-sq {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  45% {
    transform: scale(0.55);
    opacity: 0.4;
  }
}

.pl__lines path {
  stroke-dasharray: 30;
  animation: pl-line 1.2s ease-in-out infinite;
}

.pl__lines path:nth-child(2) {
  animation-delay: 0.12s;
}

.pl__lines path:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes pl-line {
  0% {
    stroke-dashoffset: 30;
    opacity: 0;
  }
  40% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -30;
    opacity: 0;
  }
}

.pl__arc {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: pl-arc 1.6s cubic-bezier(0.6, 0, 0.3, 1) infinite;
}

.pl__head {
  opacity: 0;
  animation: pl-head 1.6s ease infinite;
}

@keyframes pl-arc {
  0% {
    stroke-dashoffset: 120;
  }
  55%,
  80% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -120;
  }
}

@keyframes pl-head {
  0%,
  45% {
    opacity: 0;
    transform: translate(-6px, 2px);
  }
  55%,
  80% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: translate(6px, -2px);
  }
}

.preloader__word {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.preloader__word span {
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.preloader__bar {
  width: 120px;
  height: 3px;
  margin-top: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.preloader__bar i {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 3px;
  background: var(--brand);
  animation: pl-bar 1.1s ease-in-out infinite;
}

@keyframes pl-bar {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(250%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pl__tile,
  .pl__sq,
  .pl__lines path,
  .pl__arc,
  .pl__head,
  .preloader__bar i {
    animation: none;
  }

  .pl__arc {
    stroke-dashoffset: 0;
  }

  .pl__head {
    opacity: 1;
  }
}

/* Responsive
   1024px and below: tablets, hero stacks.
   860px and below: phone menu, swipe rows for audience, pricing.
   700px and below: projects become a swipe row.
   640px and below: phone layout. 380px and below: small phones. */

/* Swipe row: a list that scrolls sideways with snapping, edge to edge */
@media (max-width: 860px) {
  .snap-md {
    --card: min(78vw, 340px);
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: var(--card);
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: -20px;
    padding: 6px calc((100vw - var(--card)) / 2) 10px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .snap-md::-webkit-scrollbar {
    display: none;
  }

  .snap-md > * {
    scroll-snap-align: center;
  }

  .plans.snap-md {
    padding-top: 26px;
    padding-bottom: 20px;
  }

  .dots--md {
    display: flex;
  }
}

@media (max-width: 700px) {
  .snap-sm {
    --card: 86vw;
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: var(--card);
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: -20px;
    padding: 6px calc((100vw - var(--card)) / 2) 10px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .snap-sm::-webkit-scrollbar {
    display: none;
  }

  .snap-sm > * {
    scroll-snap-align: center;
  }

  .dots--sm {
    display: flex;
  }
}

@media (max-width: 1024px) {
  /* Tablets and unfolded foldables: text and visual stay side by side, visual gets smaller */
  .hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
  }

  .hero__visual {
    height: 340px;
  }

  .browser {
    right: 30px;
    height: 240px;
  }

  .ui-hero {
    height: 64px;
  }

  .phone {
    width: 136px;
    height: 266px;
    border-radius: 26px;
  }

  .ui-card {
    height: 44px;
  }

  .ui-card--accent {
    height: 66px;
  }

  .ui-tabbar {
    margin-top: 10px;
  }

  .badge--sprint {
    right: 70px;
  }

  .work__head {
    grid-template-columns: 1fr;
  }

  .showreel {
    aspect-ratio: 16 / 8;
  }

  .case__body {
    padding: 22px 22px 24px;
  }
}

@media (max-width: 960px) {
  .footer__top {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__brand {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
  }

  .footer__tag {
    max-width: none;
    flex: 1 1 240px;
  }
}

@media (max-width: 760px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero__visual {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 860px) {
  /* Phone menu: full-screen panel under the bar */
  .nav__toggle {
    display: block;
    margin-left: 6px;
  }

  .lang {
    margin-left: auto;
  }

  .lang__btn {
    height: 36px;
  }

  .nav__links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    height: calc(100dvh - 68px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px calc(24px + env(safe-area-inset-bottom));
    background: var(--dark);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__links a:not(.btn) {
    padding: 18px 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav__links .btn {
    margin-top: auto;
    padding: 1rem;
    font-size: 1.05rem;
  }

  body.menu-open {
    overflow: hidden;
  }

  .services {
    grid-template-columns: 1fr 1fr;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .contact {
    gap: 32px;
    padding: 40px 32px;
  }

  .cases {
    gap: 18px;
  }

  .case h3 {
    font-size: 1.3rem;
  }

  .work__cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

@media (max-width: 700px) {
  .showreel {
    aspect-ratio: auto;
    min-height: 340px;
  }

  .showreel .play {
    inset: 22% 0 auto;
    margin: 0 auto;
    width: 72px;
    height: 72px;
  }

  .showreel .play::after {
    left: 28px;
    top: 22px;
    border-left-width: 21px;
    border-top-width: 14px;
    border-bottom-width: 14px;
  }

  .showreel .soon-chip {
    top: 14px;
    right: 14px;
    bottom: auto;
  }

  .showreel__orb--1 {
    width: 90%;
    top: -30%;
  }

  .showreel__orb--2 {
    width: 70%;
    bottom: -20%;
  }

  .showreel__orb--3 {
    width: 60%;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }

  .section {
    padding: 64px 0;
  }

  h1 {
    font-size: clamp(2.1rem, 9.6vw, 2.7rem);
  }

  h2 {
    font-size: clamp(1.65rem, 7.4vw, 2rem);
  }

  .section__intro {
    font-size: 1rem;
  }

  /* Hero */
  .hero {
    padding: 44px 0 56px;
  }

  .pill {
    font-size: 0.78rem;
    margin-bottom: 1.1rem;
  }

  .lead {
    font-size: 1.02rem;
    margin-bottom: 1.6rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    padding: 1rem;
  }

  .hero__facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 1.8rem;
  }

  .hero__facts li {
    padding: 12px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero__facts strong {
    font-size: 1.02rem;
    white-space: nowrap;
  }

  .hero__facts span {
    font-size: 0.74rem;
    line-height: 1.35;
    margin-top: 2px;
  }

  .hero__visual {
    height: 300px;
  }

  .browser {
    right: 28px;
    height: 220px;
  }

  .ui-hero {
    height: 58px;
  }

  .phone {
    width: 124px;
    height: 240px;
    border-radius: 24px;
  }

  .ui-card {
    height: 40px;
  }

  .ui-card--accent {
    height: 60px;
  }

  .ui-tabbar {
    margin-top: 8px;
  }

  .badge--sprint {
    display: none;
  }

  .badge--launch {
    left: 0;
    bottom: 34px;
  }

  /* Tech strip scrolls by itself */
  .tech {
    padding: 22px 0;
  }

  .tech__track {
    justify-content: flex-start;
    overflow: hidden;
    margin-inline: -20px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  }

  .tech__list {
    flex-wrap: nowrap;
    flex-shrink: 0;
    gap: 28px;
    padding-right: 28px;
    white-space: nowrap;
    animation: marquee 26s linear infinite;
  }

  .tech__list--dup {
    display: flex;
  }

  /* Services: compact 2-column tiles with short texts */
  .services {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 1.6rem;
  }

  .service {
    padding: 16px 14px;
    border-radius: 16px;
  }

  .service__icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    margin-bottom: 0.7rem;
  }

  .service__icon svg {
    width: 20px;
    height: 20px;
  }

  .service h3 {
    margin: 0 0 0.25rem;
    font-size: 0.98rem;
    line-height: 1.25;
  }

  .services p:not(.short) {
    display: none;
  }

  .services .short {
    display: block;
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.4;
    color: var(--muted);
  }

  .service:hover {
    transform: none;
  }

  /* Audience cards */
  .audience__card {
    padding: 22px;
  }

  /* Work */
  .work__head {
    margin-bottom: 1.6rem;
  }

  .showreel {
    padding: 22px;
    border-radius: 22px;
  }

  .case {
    border-radius: 20px;
  }

  .case__body {
    padding: 20px 20px 22px;
  }

  .case h3 {
    font-size: 1.25rem;
  }

  .case__body > p {
    font-size: 0.95rem;
  }

  .case__points li {
    font-size: 0.9rem;
  }

  .chip {
    font-size: 0.68rem;
    padding: 0.25rem 0.6rem;
  }

  .chip--2,
  .chip--3 {
    display: none;
  }

  .case__media .soon-chip {
    top: 10px;
    right: 10px;
    bottom: auto;
  }

  .chip--1 {
    top: 10px;
    left: 10px;
  }

  .cover__logo {
    max-width: 52%;
    max-height: 58%;
    top: 34px;
  }

  .cover--bubble .cover__logo {
    max-height: 62%;
  }

  .work__cta {
    padding: 20px;
  }

  .work__cta p {
    font-size: 1.05rem;
  }

  /* Contact */
  .contact {
    margin-inline: -8px;
    padding: 30px 20px 22px;
    border-radius: 24px;
  }

  .contact h2 {
    font-size: 1.7rem;
  }

  .form {
    padding: 20px;
    border-radius: 16px;
  }

  /* Footer: brand on top, two link columns, case studies in two columns, legal text last.
     Extra space at the bottom for the floating call button. */
  .footer {
    padding: 52px 0 calc(100px + env(safe-area-inset-bottom));
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 36px 20px;
    padding-bottom: 36px;
  }

  .footer__col:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
  }

  .footer__col:last-child .footer__title {
    grid-column: 1 / -1;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .lang__menu {
    position: fixed;
    top: 76px;
    right: 12px;
    width: min(260px, calc(100vw - 24px));
  }

  /* Video player fills the width */
  .player {
    width: 100vw;
    max-width: 100vw;
    border-radius: 0;
  }

  .player__frame {
    border-radius: 0;
  }

  .player__close {
    right: 12px;
  }

  /* Floating "Book a call" button, shown by script.js after the hero */
  .mobile-cta {
    position: fixed;
    z-index: 40;
    left: 16px;
    right: 16px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1rem;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 14px 34px -10px rgba(76, 70, 229, 0.75);
    transform: translateY(160%);
    transition: transform 0.35s ease;
  }

  .mobile-cta.is-shown {
    transform: none;
  }
}

@media (max-width: 380px) {
  .container {
    padding: 0 16px;
  }

  .snap-md,
  .snap-sm {
    margin-inline: -16px;
  }

  .tech__track {
    margin-inline: -16px;
  }

  .hero__facts strong {
    font-size: 0.92rem;
  }

  .hero__facts span {
    font-size: 0.7rem;
  }

  .hero__visual {
    height: 260px;
  }

  .browser {
    height: 190px;
  }

  .phone {
    width: 108px;
    height: 210px;
  }

  .ui-card--accent {
    height: 48px;
  }

  .ui-card {
    height: 32px;
  }
}

/* Touch screens: the "View case study" label is always visible on project covers */
@media (hover: none) {
  .case__open,
  .case:hover .case__open {
    top: 10px;
    right: 10px;
    left: auto;
    bottom: auto;
    opacity: 1;
    transform: none;
    font-size: 0.72rem;
    padding: 0.3rem 0.75rem;
  }
}

@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tech__list,
  .showreel__orb {
    animation: none;
  }

  .tech__track {
    overflow-x: auto;
  }
}

/* Phones held sideways: keep the hero and menu usable on a short screen */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    padding: 40px 0 48px;
  }

  .hero__inner {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .hero__actions {
    flex-direction: row;
  }

  .hero__visual {
    height: 260px;
  }

  .nav__links {
    overflow-y: auto;
  }

  .nav__links a:not(.btn) {
    padding: 10px 0;
    font-size: 1.1rem;
  }

  .mobile-cta {
    display: none;
  }
}

/* Foldables and dual-screen phones held open across the hinge (Surface Duo, Galaxy Fold in spanning mode):
   two columns, one per screen, with the gap exactly over the hinge */
@media (horizontal-viewport-segments: 2) {
  .container {
    max-width: none;
    padding-inline: 24px;
  }

  .hero__inner,
  .work__head,
  .contact,
  .cases,
  .plans,
  .extras {
    grid-template-columns: 1fr 1fr;
    column-gap: calc(env(viewport-segment-left 1 0, 0px) - env(viewport-segment-right 0 0, 0px) + 48px);
  }

  .services,
  .audience {
    grid-template-columns: repeat(2, 1fr);
    column-gap: calc(env(viewport-segment-left 1 0, 0px) - env(viewport-segment-right 0 0, 0px) + 48px);
  }

  .snap-md,
  .snap-sm {
    display: grid;
    grid-auto-flow: row;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }

  .dots {
    display: none !important;
  }

  .hero__visual {
    height: 380px;
  }
}

/* Folded halfway like a laptop: the hero fits the top half */
@media (vertical-viewport-segments: 2) {
  .hero {
    min-height: env(viewport-segment-height 0 0, auto);
    display: flex;
    align-items: center;
  }

  .hero__visual {
    display: none;
  }
}
