/* =============================================================================
   NewTechBmm — site stylesheet
   1. Tokens        5. Buttons & pieces     9. Process / why / about
   2. Reset/base    6. Hero                10. Technology / CTA
   3. Layout        7. Intro / services    11. Pages: apps, contact, footer
   4. Navigation    8. Portfolio           12. Motion & responsive
   ========================================================================== */

/* -------------------------------------------------------------- 1. tokens */
:root {
  --bg: #08090d;
  --bg-2: #0b0d14;
  --bg-3: #10121b;
  --surface: rgba(255, 255, 255, 0.028);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #eef0f6;
  --text-dim: #c3c9da;
  --muted: #9099b3;

  --accent: #6e56f8;
  --accent-soft: #8b7bff;
  --accent-2: #22d3ee;
  --accent-glow: rgba(110, 86, 248, 0.45);
  --grad: linear-gradient(100deg, #a99bff 0%, #6e56f8 42%, #22d3ee 100%);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Sora", var(--font);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --container: 1220px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 132px);

  --shadow-sm: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------- 2. reset/base */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------- 3. layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 100px); }

.section__head { max-width: 760px; margin-bottom: clamp(38px, 5vw, 64px); }
.section__head--center { margin-inline: auto; text-align: center; }

.section__title {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  margin-bottom: 0.5rem;
}
.section__subtitle {
  font-size: clamp(1.05rem, 1.9vw, 1.45rem);
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.section__intro { color: var(--muted); max-width: 60ch; margin: 0; }
.section__head--center .section__intro { margin-inline: auto; }

.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--text-dim);
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
  padding: 6px 14px 6px 11px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
}
.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}

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

.icon { width: 22px; height: 22px; flex: none; }

/* --------------------------------------------------------- 4. navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(8, 9, 13, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  width: 26px;
  height: 26px;
  flex: none;
}
.brand__mark span { border-radius: 4px; background: var(--text); opacity: 0.5; }
.brand__mark span:nth-child(1) { background: var(--accent); opacity: 1; }
.brand__mark span:nth-child(4) { background: var(--accent-2); opacity: 1; }
.brand__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
}

.nav__links ul { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
}
.nav__link:hover { color: var(--text); background: var(--surface-2); }
.nav__link[aria-current="page"],
.nav__link.is-active { color: var(--text); background: var(--surface-2); }

.nav__actions { display: flex; align-items: center; gap: 12px; }

.nav__toggle {
  display: none; /* -> flex at <=900px */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
/* 7px = bar height (2) + flex gap (5): the outer bars land on the middle one. */
.nav[data-open="true"] .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav[data-open="true"] .nav__toggle span:nth-child(2) { opacity: 0; }
.nav[data-open="true"] .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------- 5. buttons & pieces */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
  will-change: transform;
}
.btn--sm { padding: 10px 18px; font-size: 0.88rem; }
.btn--lg { padding: 16px 30px; font-size: 1rem; }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px -12px var(--accent-glow);
}
.btn--primary:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -14px var(--accent-glow);
}
.btn--ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--surface);
}
.btn--ghost:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }
.btn--muted {
  background: var(--surface);
  border-color: var(--border);
  color: var(--muted);
  cursor: default;
}
.btn__icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover .btn__icon { transform: translateX(3px); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; }
.tag {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
}

.crumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 26px;
}
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-current] { color: var(--text-dim); }

/* orbs / background flourishes */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.orb--a {
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(110, 86, 248, 0.42), transparent 65%);
  top: -230px; right: -160px;
}
.orb--b {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.2), transparent 65%);
  bottom: -220px; left: -180px;
}
.orb--c {
  width: 760px; height: 760px;
  background: radial-gradient(circle, rgba(110, 86, 248, 0.32), transparent 62%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

/* ---------------------------------------------------------------- 6. hero */
.hero {
  position: relative;
  padding-block: clamp(56px, 8vw, 104px) clamp(64px, 9vw, 120px);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
  gap: clamp(30px, 4vw, 56px);
  align-items: center;
}

.hero__title {
  font-size: clamp(2.6rem, 5.5vw, 4.7rem);
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 1.4rem;
}
.hero__lead {
  font-size: clamp(1.03rem, 1.45vw, 1.22rem);
  color: var(--text-dim);
  max-width: 56ch;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2.6rem; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 500;
}
.hero__meta .icon { width: 17px; height: 17px; color: var(--accent-2); }

.hero__visual { position: relative; }

.phone-stack {
  position: relative;
  width: min(100%, 560px);
  margin-inline: auto;
  aspect-ratio: 560 / 640;
}
.phone-stack__item { position: absolute; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.65)); }
.phone-stack__item--main { width: 46%; left: 27%; top: 2%; z-index: 3; }
.phone-stack__item--left { width: 37%; left: 0; top: 16%; transform: rotate(-9deg); z-index: 2; }
.phone-stack__item--right { width: 37%; right: 0; top: 13%; transform: rotate(9deg); z-index: 2; }

.hero__badge {
  position: absolute;
  right: 2%;
  bottom: 4%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 18px;
  background: rgba(16, 18, 27, 0.82);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted);
}
.hero__badge strong { color: var(--text); font-size: 0.94rem; font-family: var(--display); }
.hero__badge-icon { width: 40px; flex: none; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
}
.hero__scroll span {
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent-2);
  animation: scrollDot 1.9s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateY(16px); }
}

/* --------------------------------------------------- 7. intro & services */
.section--intro { border-top: 1px solid var(--border); }
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 70px);
}
.intro__text { padding-bottom: 4px; }

.highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}
.highlight {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface), transparent);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.highlight:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.highlight__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  margin-bottom: 18px;
  color: var(--accent-2);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.2);
}
.highlight__title { font-size: 1.2rem; margin-bottom: 8px; }
.highlight p { color: var(--muted); margin: 0; font-size: 0.94rem; }

.cards { display: grid; gap: clamp(16px, 2vw, 24px); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 3vw, 36px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: transform 0.45s var(--ease), border-color 0.35s, background 0.35s;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.card__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  margin-bottom: 20px;
  color: var(--text);
  background: rgba(110, 86, 248, 0.16);
  border: 1px solid rgba(110, 86, 248, 0.3);
  transition: background 0.35s, color 0.35s, transform 0.45s var(--ease);
}
.card:hover .card__icon { background: var(--accent); transform: translateY(-2px) scale(1.04); }
.card__title { font-size: 1.16rem; margin-bottom: 10px; letter-spacing: -0.02em; }
.card__text { color: var(--muted); font-size: 0.94rem; margin: 0; }
.card--sm { padding: clamp(22px, 2.4vw, 30px); }
.cards--outline .card { background: var(--surface); }
.card__glow {
  position: absolute;
  inset: auto -40% -60% -40%;
  height: 140px;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.45s;
  pointer-events: none;
}
.card:hover .card__glow { opacity: 0.55; }

/* ----------------------------------------------------------- 8. portfolio */
.featured { overflow: hidden; border-block: 1px solid var(--border); }
.featured__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 75% at 18% 8%, rgba(110, 86, 248, 0.28), transparent 68%),
    radial-gradient(50% 70% at 85% 95%, rgba(34, 211, 238, 0.12), transparent 70%),
    linear-gradient(180deg, #0d0f18, #0a0b12);
  pointer-events: none;
}
/* Hairline top/bottom edges make the featured band read as its own surface. */
.featured::before,
.featured::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110, 86, 248, 0.55), rgba(34, 211, 238, 0.35), transparent);
}
.featured::before { top: -1px; }
.featured::after { bottom: -1px; }
.featured__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}
.featured__tagline {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
}
.featured__text { color: var(--muted); max-width: 46ch; }
.featured__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.phone-trio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.phone-trio__item { width: 34%; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.6)); }
.phone-trio__item:nth-child(1) { transform: rotate(-7deg) translateX(14%) scale(0.9); z-index: 1; }
.phone-trio__item:nth-child(2) { z-index: 3; }
.phone-trio__item:nth-child(3) { transform: rotate(7deg) translateX(-14%) scale(0.9); z-index: 2; }

/* Auto-fits 1–3 per row and stays centred while the portfolio is small. */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 360px));
  justify-content: center;
  gap: clamp(18px, 2.2vw, 28px);
}

.app-card {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.014));
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.35s, box-shadow 0.5s var(--ease);
}
.app-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.app-card__link { display: block; height: 100%; }
.app-card__preview {
  position: relative;
  height: 250px;
  overflow: hidden;
  background:
    radial-gradient(70% 100% at 50% 0%, rgba(110, 86, 248, 0.28), transparent 70%),
    linear-gradient(180deg, #101320, #0a0b11);
  border-bottom: 1px solid var(--border);
}
/* Soft fade so the device sits in the card rather than being sliced by it. */
.app-card__preview::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 76px;
  background: linear-gradient(180deg, transparent, rgba(10, 11, 17, 0.55) 65%, rgba(10, 11, 17, 0.9));
  pointer-events: none;
}
.app-card__preview .phone,
.app-card__preview .app-card__img {
  position: absolute;
  left: 50%;
  top: 34px;
  width: 47%;
  transform: translateX(-50%);
  transition: transform 0.6s var(--ease);
  filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.6));
}
.app-card:hover .app-card__preview .phone { transform: translateX(-50%) translateY(-10px); }

.app-card__body { padding: clamp(20px, 2.4vw, 28px); display: grid; gap: 14px; }
.app-card__top { display: flex; align-items: center; gap: 14px; }
.app-card__icon { width: 46px; flex: none; }
.app-card__name { font-size: 1.25rem; }
.app-card__platform { font-size: 0.78rem; color: var(--muted); margin: 2px 0 0; letter-spacing: 0.02em; }
.app-card__desc { color: var(--muted); font-size: 0.94rem; margin: 0; }
.app-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent-2);
}
.app-card__cta .icon { width: 17px; height: 17px; transition: transform 0.3s var(--ease); }
.app-card:hover .app-card__cta .icon { transform: translateX(4px); }

.app-card--ghost {
  background: transparent;
  border-style: dashed;
  display: grid;
  place-items: center;
  min-height: 320px;
}
.app-card--ghost:hover { transform: translateY(-8px); box-shadow: none; }
.app-card__body--ghost { text-align: center; justify-items: center; place-content: center; height: 100%; }
.ghost__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: var(--accent-2);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
}

/* ------------------------------------------ 9. process / why / about */
.section--process { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.018), transparent); }

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}
/* Timeline thread showing through the gaps between the cards. */
.steps::before {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  top: 62px;
  height: 1px;
  background: linear-gradient(90deg, rgba(110, 86, 248, 0.5), rgba(34, 211, 238, 0.5));
  opacity: 0.6;
}
.steps--case { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.step {
  position: relative;
  z-index: 1;
  padding: clamp(22px, 2.4vw, 30px) clamp(18px, 2vw, 24px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #0e1017, #0a0b11);
  transition: transform 0.45s var(--ease), border-color 0.35s, background 0.35s;
}
.step::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.35s;
  border-radius: 2px;
}
.step:hover { transform: translateY(-6px); border-color: var(--border-strong); background: linear-gradient(180deg, #14161f, #0d0e15); }
.step:hover::after { opacity: 1; }
.step__num {
  display: block;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.step__title { font-size: 1.1rem; margin-bottom: 8px; }
.step__text { color: var(--muted); font-size: 0.9rem; margin: 0; }

.section--about { border-top: 1px solid var(--border); }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.about__text { color: var(--muted); max-width: 54ch; }
.about__text--strong { color: var(--text-dim); font-weight: 500; }

.flow {
  display: grid;
  gap: 0;
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--surface), transparent);
}
.flow__node { display: flex; align-items: center; gap: 16px; }
.flow__dot {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  background: rgba(110, 86, 248, 0.14);
  border: 1px solid rgba(110, 86, 248, 0.32);
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-soft);
}
.flow__label { font-family: var(--display); font-size: 1.12rem; font-weight: 600; letter-spacing: -0.02em; }
.flow__line {
  width: 2px;
  height: 30px;
  margin-left: 22px;
  background: linear-gradient(180deg, rgba(110, 86, 248, 0.55), rgba(34, 211, 238, 0.2));
}

/* ------------------------------------------------- 10. technology & CTA */
.section--tech { border-top: 1px solid var(--border); }
/* Centred wrap rather than a grid: the stack will keep growing, and a short
   final row stays centred and deliberate instead of leaving a hole. */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.tech {
  flex: 0 1 calc((100% - 3 * 14px) / 4);
  min-width: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 96px;
  padding: 20px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  text-align: center;
  transition: transform 0.4s var(--ease), border-color 0.3s, background 0.3s;
}
.tech:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }
.tech__name { font-family: var(--display); font-weight: 600; font-size: 1rem; line-height: 1.25; }
.tech__note { font-size: 0.76rem; color: var(--muted); line-height: 1.35; }
.tech-grid--compact { justify-content: flex-start; }
.tech-grid--compact .tech { flex: 0 1 calc((100% - 4 * 14px) / 5); min-width: 150px; min-height: 72px; }

.cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(80px, 11vw, 150px);
  border-top: 1px solid var(--border);
  text-align: center;
}
.cta__bg { position: absolute; inset: 0; pointer-events: none; }
.cta__inner { position: relative; max-width: 760px; }
.cta__title { font-size: clamp(2.3rem, 6.4vw, 4.6rem); margin-bottom: 1rem; }
.cta__text { color: var(--text-dim); font-size: clamp(1rem, 1.6vw, 1.2rem); margin-bottom: 2.2rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* -------------------------------------- 11. pages: apps, app, contact, footer */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(46px, 6vw, 82px) clamp(28px, 4vw, 48px);
}
.page-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.page-hero .container { position: relative; }
.page-hero__title { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: 1rem; }
.page-hero__lead { color: var(--text-dim); max-width: 60ch; font-size: clamp(1rem, 1.5vw, 1.16rem); }
.page-hero--center { text-align: center; padding-block: clamp(80px, 12vw, 160px); }
.page-hero--center .page-hero__lead { margin-inline: auto; }
.page-hero--center .hero__actions { justify-content: center; margin-top: 2rem; }

.app-hero { position: relative; overflow: hidden; padding-block: clamp(40px, 5vw, 70px) clamp(40px, 6vw, 84px); }
.app-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.app-hero .container { position: relative; }
.app-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.app-hero__icon { display: block; width: 74px; margin-bottom: 22px; }
.app-hero__title { font-size: clamp(2.6rem, 6.6vw, 4.6rem); margin-bottom: 0.7rem; }
.app-hero__tagline {
  font-family: var(--display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: -0.02em;
  margin-bottom: 1.8rem;
}
.app-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  padding: 20px 0;
  border-block: 1px solid var(--border);
  margin-bottom: 26px;
}
.app-hero__meta li { display: grid; gap: 3px; }
.app-hero__meta span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.app-hero__meta strong { font-size: 0.98rem; font-weight: 600; }
.app-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.phone-duo { display: flex; justify-content: center; align-items: center; }
.phone-duo__item { width: 46%; filter: drop-shadow(0 34px 54px rgba(0, 0, 0, 0.62)); }
.phone-duo__item:nth-child(1) { transform: rotate(-8deg) translateX(18%) scale(0.92); z-index: 1; }
.phone-duo__item:nth-child(2) { z-index: 2; }

.overview {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
}
.overview__body p:last-child { margin-bottom: 0; }

.section--shots { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02), transparent); }
.shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.shot { margin: 0; }
.shot__frame {
  border-radius: var(--r-lg);
  padding: clamp(14px, 1.6vw, 22px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--border);
  transition: transform 0.45s var(--ease), border-color 0.35s;
}
.shot:hover .shot__frame { transform: translateY(-6px); border-color: var(--border-strong); }
.shot__caption { color: var(--muted); font-size: 0.82rem; margin-top: 14px; line-height: 1.55; }

/* contact */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}
.form {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--text-dim); }
.field label span { color: var(--accent-2); }
.field input,
.field textarea,
.select select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: #6a7288; }
.field input:focus,
.field textarea:focus,
.select select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(110, 86, 248, 0.18);
}
.field.has-error input,
.field.has-error textarea { border-color: #f87171; }
.field__error { color: #fca5a5; font-size: 0.8rem; margin: 0; min-height: 0; }

.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select select option { background: #12141c; color: var(--text); }
.select__chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%) rotate(90deg);
  color: var(--muted);
  pointer-events: none;
}

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.form__note { font-size: 0.86rem; color: var(--muted); margin: 0; }
.form__note a { color: var(--accent-2); }
.form__status { margin: 0; font-size: 0.9rem; color: var(--accent-2); }
.form__status:empty { display: none; }

.contact__aside { display: grid; gap: 18px; }
.panel {
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.panel--accent {
  background: linear-gradient(160deg, rgba(110, 86, 248, 0.16), rgba(34, 211, 238, 0.05));
  border-color: rgba(110, 86, 248, 0.3);
}
.panel__title { font-size: 1.05rem; margin-bottom: 14px; }
.panel__text { color: var(--muted); font-size: 0.92rem; }
.panel__mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 10px;
  word-break: break-all;
}
.panel .btn { margin-top: 6px; }

.mini-steps { display: grid; gap: 16px; }
.mini-steps li { display: flex; gap: 14px; }
.mini-steps__num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-soft);
  background: rgba(110, 86, 248, 0.14);
  border: 1px solid rgba(110, 86, 248, 0.3);
}
.mini-steps strong { font-size: 0.94rem; }
.mini-steps p { color: var(--muted); font-size: 0.86rem; margin: 3px 0 0; }

/* footer */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-top: clamp(48px, 6vw, 78px); }
.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(36px, 5vw, 60px);
}
.footer__tagline { color: var(--muted); margin: 16px 0 18px; max-width: 34ch; }
.footer__mail {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
  word-break: break-all;
}
.footer__mail:hover { color: var(--accent-2); }
.footer__mail .icon { width: 18px; height: 18px; color: var(--accent-2); }
.footer__heading {
  font-family: var(--font);
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 700;
}
.footer__list { display: grid; gap: 11px; }
.footer__list a { color: var(--text-dim); font-size: 0.93rem; transition: color 0.2s; }
.footer__list a:hover { color: var(--accent-2); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-block: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.84rem;
}
.footer__bottom p { margin: 0; }
.footer__domain { opacity: 0.7; }

/* ------------------------------------------------ 12. motion & responsive */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech { flex-basis: calc((100% - 2 * 14px) / 3); }
  .tech-grid--compact .tech { flex-basis: calc((100% - 3 * 14px) / 4); }
  .steps, .steps--case { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 84px; }

  .nav__links {
    position: fixed;
    inset: 0 0 auto 0;
    top: 74px;
    padding: 18px var(--gutter) 30px;
    /* Solid, not translucent: a backdrop-filter on the nav above would make a
       blurred panel composite unpredictably against the page behind it. */
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  }
  .nav[data-open="true"] .nav__links { opacity: 1; transform: none; visibility: visible; }
  .nav[data-open="true"] { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav__links ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { padding: 15px 14px; font-size: 1.05rem; border-radius: 14px; }
  .nav__toggle { display: flex; }
  .nav__cta { display: none; }
  .nav__links ul::after {
    content: "";
    display: block;
    height: 1px;
    background: var(--border);
    margin: 12px 0;
  }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__actions { margin-bottom: 1.6rem; }
  .phone-stack { width: min(100%, 460px); aspect-ratio: 460 / 520; margin-top: 8px; }
  .hero__badge { right: 0; bottom: 0; }

  .intro__grid, .about__grid, .featured__inner, .app-hero__inner, .overview { grid-template-columns: 1fr; }
  .featured__visual, .app-hero__visual { order: -1; }
  .highlights { grid-template-columns: 1fr; }
  .steps, .steps--case { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .cards--4, .cards--3 { grid-template-columns: 1fr; }
  .steps, .steps--case { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__actions .btn, .cta__actions .btn, .app-hero__actions .btn { flex: 1 1 100%; }
  .hero__meta { gap: 8px 18px; }
  .phone-stack { aspect-ratio: 360 / 430; }
  .phone-stack__item--main { width: 50%; left: 25%; }
  .phone-stack__item--left, .phone-stack__item--right { width: 38%; }
  .hero__badge { padding: 10px 14px 10px 10px; font-size: 0.74rem; }
  .hero__badge-icon { width: 32px; }
  .hero__scroll { display: none; }

  /* Screenshot gallery becomes a swipeable rail on phones. */
  .shots {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 74%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 14px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: thin;
  }
  .shot { scroll-snap-align: center; }
  .tech,
  .tech-grid--compact .tech { flex-basis: calc((100% - 14px) / 2); min-width: 130px; }
  .footer__inner { grid-template-columns: 1fr; }
  .app-card__preview { height: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ------------------------------------------------ 13. legal / long-form doc */
.page-hero--legal { padding-bottom: clamp(20px, 3vw, 34px); }
.legal__subtitle {
  font-family: var(--display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--accent-2);
  letter-spacing: -0.02em;
  margin: 0.2rem 0 1.6rem;
}
.legal__dates {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  padding: 18px 0;
  border-block: 1px solid var(--border);
}
.legal__dates div { display: grid; gap: 3px; }
.legal__dates span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.legal__dates strong { font-size: 0.94rem; font-weight: 600; }

.legal__grid {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.legal__aside { display: grid; gap: 20px; position: sticky; top: 96px; }

.toc {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  max-height: calc(100vh - 190px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.toc__heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.toc__list { display: grid; gap: 2px; counter-reset: none; }
.toc__list a {
  display: block;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
}
.toc__list a:hover { color: var(--text); background: var(--surface-2); }
.toc__list a.is-active { color: var(--text); background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }

.legal__app { display: grid; justify-items: start; gap: 12px; }
.legal__app-icon { width: 46px; }
.legal__app .panel__text { margin: 0; }

/* Prose: the only place raw generated HTML is styled. */
.prose { max-width: 74ch; color: var(--text-dim); font-size: 1rem; line-height: 1.75; }
.prose > *:first-child { margin-top: 0; }
.prose h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  margin: 2.6em 0 0.7em;
  padding-top: 1.4em;
  border-top: 1px solid var(--border);
  color: var(--text);
  scroll-margin-top: 100px;
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 {
  font-size: 1.06rem;
  margin: 2em 0 0.5em;
  color: var(--text);
  scroll-margin-top: 100px;
}
.prose p { margin: 0 0 1.15em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(34, 211, 238, 0.4);
  word-break: break-word;
  transition: text-decoration-color 0.2s;
}
.prose a:hover { text-decoration-color: var(--accent-2); }
.prose ul { display: grid; gap: 9px; margin: 0 0 1.4em; padding-left: 4px; }
.prose li { position: relative; padding-left: 22px; }
.prose li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }

.app-hero__legal { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 18px; }
.app-hero__legal a {
  font-size: 0.86rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.2);
}
.app-hero__legal a:hover { color: var(--accent-2); }

.cta--slim { padding-block: clamp(56px, 7vw, 90px); }
.cta__title--sm { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }

@media (max-width: 900px) {
  .legal__grid { grid-template-columns: 1fr; }
  .legal__aside { position: static; }
  .toc { max-height: none; }
  .prose { max-width: none; }
}
