:root {
  color-scheme: dark;

  --bw-bg: #0f0f0f;
  --bw-surface: #171717;
  --bw-surface-2: #202020;
  --bw-surface-3: #292929;
  --bw-text: #f4f1ea;
  --bw-muted: #b8b1a6;
  --bw-soft: #81786e;
  --bw-line: rgba(244, 241, 234, 0.14);
  --bw-primary: #ff6b2b;
  --bw-primary-2: #ff9b6a;
  --bw-danger: #ff4d5e;

  --bw-radius-xl: 34px;
  --bw-radius-lg: 26px;
  --bw-radius-md: 18px;
  --bw-radius-pill: 999px;

  --bw-shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.42);
  --bw-blur: blur(24px);

  --bw-space-page: clamp(18px, 4vw, 48px);
  --bw-max: 1180px;

  --bw-ease: cubic-bezier(.2, .8, .2, 1);
  --bw-fast: 160ms var(--bw-ease);
  --bw-mid: 320ms var(--bw-ease);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--bw-bg);
}

body {
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 8%, rgba(255, 107, 43, 0.24), transparent 34rem),
    radial-gradient(circle at 92% 16%, rgba(255, 155, 106, 0.12), transparent 28rem),
    linear-gradient(145deg, #0f0f0f 0%, #141210 52%, #0f0f0f 100%);
  color: var(--bw-text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

::selection {
  background: rgba(255, 107, 43, 0.32);
}

.bw-shell {
  width: min(100%, var(--bw-max));
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 18px) var(--bw-space-page) calc(env(safe-area-inset-bottom) + 28px);
}

.bw-header {
  position: sticky;
  top: calc(env(safe-area-inset-top) + 10px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px;
  border: 1px solid var(--bw-line);
  border-radius: var(--bw-radius-pill);
  background: rgba(15, 15, 15, 0.68);
  backdrop-filter: var(--bw-blur);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.26);
}

.bw-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 6px 14px 6px 6px;
  border-radius: var(--bw-radius-pill);
}

.bw-brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bw-primary);
  color: #140a05;
  font-size: 26px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.08em;
}

.bw-brand__text {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 760;
  letter-spacing: -0.04em;
}

.bw-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bw-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border-radius: var(--bw-radius-pill);
  color: var(--bw-muted);
  font-size: 15px;
  font-weight: 680;
  transition: background var(--bw-fast), color var(--bw-fast), transform var(--bw-fast);
}

.bw-nav a:hover,
.bw-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--bw-text);
  outline: none;
}

.bw-main {
  padding-top: clamp(72px, 12vh, 150px);
}

.bw-hero {
  max-width: 940px;
}

.bw-kicker,
.bw-label {
  margin: 0 0 22px;
  color: var(--bw-primary-2);
  font-size: clamp(13px, 2.8vw, 16px);
  font-weight: 820;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.bw-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(54px, 12.6vw, 142px);
  line-height: 0.88;
  letter-spacing: -0.085em;
  font-weight: 900;
}

.bw-lead {
  max-width: 780px;
  margin: clamp(28px, 5vw, 46px) 0 0;
  color: var(--bw-muted);
  font-size: clamp(21px, 3.5vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.045em;
  font-weight: 520;
}

.bw-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(30px, 5vw, 48px);
}

.bw-button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 0;
  border-radius: var(--bw-radius-pill);
  cursor: pointer;
  font-size: 18px;
  font-weight: 820;
  letter-spacing: -0.03em;
  transition: transform var(--bw-fast), background var(--bw-fast), color var(--bw-fast), box-shadow var(--bw-fast);
}

.bw-button:active {
  transform: scale(0.97);
}

.bw-button--primary {
  background: var(--bw-primary);
  color: #140a05;
  box-shadow: 0 18px 44px rgba(255, 107, 43, 0.26);
}

.bw-button--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--bw-text);
}

.bw-button:hover,
.bw-button:focus-visible {
  outline: none;
  transform: translateY(-2px);
}

.bw-launcher,
.bw-method {
  margin-top: clamp(92px, 16vh, 180px);
}

.bw-section-heading {
  display: grid;
  gap: 0;
  margin-bottom: 24px;
}

.bw-section-heading h2 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.bw-app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bw-app-card {
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--bw-line);
  border-radius: var(--bw-radius-xl);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)),
    var(--bw-surface);
  box-shadow: var(--bw-shadow-soft);
  transition: transform var(--bw-mid), border-color var(--bw-mid), background var(--bw-mid);
}

.bw-app-card::before {
  content: "";
  position: absolute;
  inset: 18px 18px auto auto;
  width: 82px;
  height: 82px;
  border-radius: 28px;
  background: rgba(255, 107, 43, 0.2);
  filter: blur(0.2px);
}

.bw-app-card--active::before {
  background:
    radial-gradient(circle at 35% 30%, var(--bw-primary-2), transparent 42%),
    var(--bw-primary);
}

.bw-app-card--locked::before {
  background:
    radial-gradient(circle at 35% 30%, #ffffff, transparent 42%),
    #3f3f3f;
}

.bw-app-card--ghost {
  opacity: 0.78;
}

.bw-app-card:hover,
.bw-app-card:focus-visible {
  outline: none;
  transform: translateY(-7px);
  border-color: rgba(255, 107, 43, 0.42);
}

.bw-app-card__status {
  align-self: flex-start;
  margin-bottom: auto;
  padding: 8px 12px;
  border: 1px solid var(--bw-line);
  border-radius: var(--bw-radius-pill);
  color: var(--bw-muted);
  background: rgba(0, 0, 0, 0.18);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.bw-app-card__title {
  display: block;
  margin-top: 80px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 0.94;
  letter-spacing: -0.07em;
  font-weight: 900;
}

.bw-app-card__text {
  display: block;
  max-width: 36ch;
  margin-top: 16px;
  color: var(--bw-muted);
  font-size: 18px;
  line-height: 1.28;
  letter-spacing: -0.025em;
  font-weight: 520;
}

.bw-app-card__cta {
  display: inline-flex;
  align-items: center;
  margin-top: 24px;
  color: var(--bw-primary-2);
  font-size: 17px;
  font-weight: 820;
}

.bw-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bw-method-grid article {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--bw-line);
  border-radius: var(--bw-radius-lg);
  background: rgba(255, 255, 255, 0.045);
}

.bw-method-grid h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.bw-method-grid p {
  margin: 18px 0 0;
  color: var(--bw-muted);
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.bw-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(80px, 14vh, 160px);
  padding-top: 22px;
  border-top: 1px solid var(--bw-line);
  color: var(--bw-soft);
  font-size: 15px;
  line-height: 1.4;
}

.bw-footer a {
  color: var(--bw-muted);
}

.bw-install-dialog {
  width: min(92vw, 560px);
  padding: 0;
  border: 0;
  border-radius: var(--bw-radius-xl);
  background: transparent;
  color: var(--bw-text);
}

.bw-install-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.bw-install-dialog__panel {
  position: relative;
  padding: 28px;
  border: 1px solid var(--bw-line);
  border-radius: var(--bw-radius-xl);
  background: rgba(23, 23, 23, 0.96);
  box-shadow: var(--bw-shadow-soft);
}

.bw-install-dialog__panel h2 {
  margin: 0;
  font-size: clamp(32px, 7vw, 54px);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.bw-install-dialog__panel p {
  color: var(--bw-muted);
  font-size: 19px;
  line-height: 1.34;
  letter-spacing: -0.025em;
}

.bw-install-dialog__note {
  color: var(--bw-soft) !important;
}

.bw-install-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--bw-text);
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
}

@media (max-width: 860px) {
  .bw-shell {
    padding-inline: 18px;
  }

  .bw-header {
    align-items: stretch;
    border-radius: 28px;
  }

  .bw-brand__text {
    display: none;
  }

  .bw-nav {
    flex: 1;
    justify-content: flex-end;
  }

  .bw-nav a {
    padding-inline: 12px;
    font-size: 14px;
  }

  .bw-main {
    padding-top: clamp(54px, 10vh, 86px);
  }

  .bw-hero h1 {
    max-width: 7.4em;
  }

  .bw-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .bw-button {
    width: 100%;
    min-height: 64px;
  }

  .bw-app-grid,
  .bw-method-grid {
    grid-template-columns: 1fr;
  }

  .bw-app-card {
    min-height: 310px;
  }

  .bw-method-grid article {
    min-height: auto;
  }

  .bw-footer {
    display: grid;
  }
}

@media (max-width: 420px) {
  .bw-nav a {
    padding-inline: 9px;
  }

  .bw-kicker,
  .bw-label {
    letter-spacing: 0.13em;
  }

  .bw-lead {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* === Sprint 1.2 / Error page === */
.bw-error-page {
  min-height: 100dvh;
  display: grid;
  align-items: center;
}

/* === Launcher components / App cards / Mobile shell consolidated === */

/* App card UX */
.bw-app-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bw-app-card__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--bw-primary);
  box-shadow: 0 0 0 8px rgba(255, 107, 43, 0.14);
}

.bw-app-card--locked .bw-app-card__dot {
  background: var(--bw-soft);
  box-shadow: 0 0 0 8px rgba(244, 241, 234, 0.08);
}

.bw-app-card--ghost .bw-app-card__dot {
  background: transparent;
  border: 1px solid var(--bw-line);
  box-shadow: none;
}

.bw-app-card__meta {
  display: inline-flex;
  width: fit-content;
  margin-top: auto;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--bw-line);
  color: var(--bw-muted);
  font-size: 14px;
  line-height: 1.2;
}

.bw-app-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.bw-app-card.is-pressed {
  transform: translateY(2px) scale(0.992);
}

/* Mobile shell defaults */
.bw-bottom-nav,
.bw-mobile-brand-minimal {
  display: none;
}

html[data-display-mode="standalone"] .bw-header {
  background: rgba(15, 15, 15, 0.82);
}

html[data-display-mode="standalone"] .bw-brand__text::after {
  content: " app";
  color: var(--bw-primary-2);
}

@media (max-width: 860px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .bw-shell {
    padding-top: 0;
    padding-bottom: calc(env(safe-area-inset-bottom) + 108px);
  }

  .bw-header {
    display: none !important;
  }

  .bw-main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding-top: calc(env(safe-area-inset-top) + 72px);
  }

  .bw-mobile-brand-minimal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 50%;
    right: auto;
    top: calc(env(safe-area-inset-top) + 14px);
    z-index: 95;
    min-width: 74px;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid var(--bw-line);
    border-radius: 999px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
      rgba(8, 8, 8, 0.66);
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 48px rgba(0, 0, 0, 0.34);
    color: var(--bw-text);
    text-align: center;
    text-decoration: none;
    font-weight: 900;
    font-size: 22px;
    line-height: 1;
    letter-spacing: -0.055em;
    opacity: 0.96;
    transform: translateX(-50%);
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
    -webkit-tap-highlight-color: transparent;
  }

  .bw-mobile-brand-minimal:active {
    transform: translateX(-50%) scale(0.97);
    opacity: 1;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
      rgba(8, 8, 8, 0.76);
  }

  html.has-scrolled .bw-mobile-brand-minimal {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) scale(0.94);
  }

  .bw-about-page,
  .bw-app-page,
  .bw-error-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
    padding-top: calc(env(safe-area-inset-top) + 92px);
    padding-bottom: calc(env(safe-area-inset-bottom) + 128px);
  }

  .bw-about-content,
  .bw-about-list,
  .bw-about-page .bw-hero,
  .bw-about-page section,
  .bw-app-page,
  .bw-error-page {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .bw-about-content p,
  .bw-about-list p,
  .bw-about-list li,
  .bw-about-page h1,
  .bw-about-page h2 {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .bw-about-page .bw-hero h1,
  .bw-about-page h1 {
    font-size: clamp(46px, 13vw, 72px);
    line-height: 0.94;
  }

  .bw-hero {
    min-height: auto;
    padding-top: clamp(44px, 8vh, 72px);
  }

  .bw-hero__actions {
    margin-bottom: clamp(72px, 12vh, 120px);
  }

  .bw-launcher,
  .bw-method {
    scroll-margin-top: 28px;
  }

  .bw-launcher {
    padding-bottom: clamp(112px, 18vh, 168px);
  }

  .bw-method {
    padding-top: clamp(28px, 7vh, 64px);
  }

  .bw-app-card__meta {
    font-size: 15px;
    padding: 9px 13px;
  }

  .bw-footer {
    padding-bottom: calc(env(safe-area-inset-bottom) + 108px);
  }

  .bw-bottom-nav {
    position: fixed;
    z-index: 80;
    left: max(24px, env(safe-area-inset-left));
    right: max(24px, env(safe-area-inset-right));
    bottom: calc(env(safe-area-inset-bottom) + 12px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    min-height: 72px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.105);
    border-radius: 999px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018)),
      rgba(5, 5, 5, 0.88);
    backdrop-filter: blur(22px);
    box-shadow:
      0 24px 72px rgba(0, 0, 0, 0.56),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .bw-bottom-nav a,
  .bw-bottom-nav button {
    appearance: none;
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 56px;
    padding: 5px 8px 6px;
    gap: 1px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(244, 241, 234, 0.66);
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.05;
    text-decoration: none;
    cursor: pointer;
    transition:
      transform 180ms cubic-bezier(.2,.8,.2,1),
      background 220ms ease,
      color 220ms ease,
      box-shadow 220ms ease;
    -webkit-tap-highlight-color: transparent;
  }

  .bw-bottom-nav svg {
    display: block;
    width: 20px;
    height: 20px;
    margin-bottom: 0;
    color: rgba(244, 241, 234, 0.78);
    transition:
      color 220ms ease,
      transform 220ms cubic-bezier(.2,.8,.2,1);
  }

  .bw-bottom-nav span {
    color: rgba(244, 241, 234, 0.72);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.05;
    letter-spacing: 0;
    transition: color 220ms ease;
  }

  .bw-bottom-nav a:active,
  .bw-bottom-nav button:active,
  .bw-bottom-nav a.is-pressed,
  .bw-bottom-nav button.is-pressed {
    transform: scale(0.965);
  }

  .bw-bottom-nav a.is-active,
  .bw-bottom-nav a[aria-current="page"] {
    color: var(--bw-text);
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 151, 106, 0.24), transparent 62%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)),
      rgba(255, 107, 43, 0.18);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 8px 22px rgba(255, 107, 43, 0.12);
  }

  .bw-bottom-nav a.is-active svg,
  .bw-bottom-nav a[aria-current="page"] svg {
    color: var(--bw-primary-2);
    transform: translateY(0);
  }

  .bw-bottom-nav a.is-active span,
  .bw-bottom-nav a[aria-current="page"] span {
    color: var(--bw-text);
  }
}

@media (max-width: 420px) {
  .bw-about-page,
  .bw-app-page,
  .bw-error-page {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .bw-mobile-brand-minimal {
    top: calc(env(safe-area-inset-top) + 12px);
    min-height: 44px;
    font-size: 21px;
  }

  .bw-bottom-nav {
    left: 20px;
    right: 20px;
    min-height: 70px;
    padding: 7px;
  }

  .bw-bottom-nav a,
  .bw-bottom-nav button {
    min-height: 54px;
    gap: 1px;
  }

  .bw-bottom-nav svg {
    width: 19px;
    height: 19px;
  }

  .bw-bottom-nav span {
    font-size: 12.5px;
  }
}

/* === About Bazzi === */

.bw-about-page {
  max-width: 980px;
  padding-top: calc(env(safe-area-inset-top) + clamp(86px, 12vh, 140px));
}

.bw-app-page__lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--bw-muted);
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.bw-about-content {
  display: grid;
  gap: 24px;
  margin-top: clamp(42px, 7vw, 72px);
  max-width: 820px;
}

.bw-about-content p {
  margin: 0;
  color: var(--bw-text);
  font-size: clamp(21px, 3vw, 30px);
  line-height: 1.28;
  letter-spacing: -0.035em;
}

.bw-about-list {
  margin-top: 14px;
  padding: 24px;
  border: 1px solid var(--bw-line);
  border-radius: var(--bw-radius-large);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025)),
    rgba(255,255,255,0.035);
}

.bw-about-list h2 {
  margin: 0 0 18px;
  color: var(--bw-text);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.bw-about-list ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 1.1em;
}

.bw-about-list li {
  color: var(--bw-muted);
  font-size: clamp(19px, 2.5vw, 25px);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

@media (max-width: 860px) {
  .bw-about-page {
    padding-top: calc(env(safe-area-inset-top) + 92px);
    padding-bottom: calc(env(safe-area-inset-bottom) + 128px);
  }

  .bw-about-content {
    gap: 22px;
  }

  .bw-about-list {
    padding: 22px;
    border-radius: 30px;
  }
}

/* === Interaction + app hub consolidated === */

.bw-button.is-pressed,
.bw-mobile-brand-minimal.is-pressed {
  transform: scale(0.97);
}

.bw-app-card[data-bw-app-card],
html.is-ready .bw-app-card[data-bw-app-card],
html.is-ready .bw-app-card[data-bw-app-card].is-reveal-ready {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    transform 420ms cubic-bezier(.2,.8,.2,1),
    border-color var(--bw-mid),
    background var(--bw-mid);
}

html.is-ready .bw-app-card[data-bw-app-card].is-reveal-ready:hover,
html.is-ready .bw-app-card[data-bw-app-card].is-reveal-ready:focus-visible {
  transform: translateY(-7px) scale(1);
}

html.is-ready .bw-app-card[data-bw-app-card].is-reveal-ready.is-pressed,
.bw-app-card[data-bw-app-card].is-pressed {
  transform: translateY(2px) scale(0.992);
}

.bw-footer--minimal {
  display: flex;
  justify-content: center;
  text-align: center;
}

.bw-footer--minimal a {
  margin-inline: auto;
}

.bw-app-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(82%, 380px);
  gap: 18px;
  min-height: 430px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--bw-space-page);
  padding: 2px var(--bw-space-page) 92px;
  margin-top: 20px;
  margin-inline: calc(var(--bw-space-page) * -1);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.bw-app-slider::-webkit-scrollbar {
  display: none;
}

.bw-app-slider .bw-app-card {
  scroll-snap-align: start;
  min-height: 360px;
  opacity: 1;
  visibility: visible;
}

.bw-slider-hint {
  margin: 12px 0 0;
  color: var(--bw-soft);
  font-size: 15px;
  line-height: 1.35;
}

.bw-app-hub {
  min-height: 100dvh;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding:
    calc(env(safe-area-inset-top) + 104px)
    var(--bw-space-page)
    calc(env(safe-area-inset-bottom) + 128px);
}

.bw-app-hub__hero {
  max-width: 820px;
}

.bw-app-hub__hero h1 {
  margin: 12px 0 0;
  font-size: clamp(64px, 14vw, 142px);
  line-height: 0.86;
  letter-spacing: -0.075em;
}

.bw-app-archive {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(54px, 10vh, 96px);
}

@media (max-width: 860px) {
  .bw-app-slider {
    grid-auto-columns: minmax(84%, 360px);
    gap: 14px;
    min-height: 430px;
    padding-bottom: 92px;
  }

  .bw-app-slider .bw-app-card {
    min-height: 360px;
  }

  .bw-slider-hint {
    font-size: 16px;
    padding-left: 2px;
  }

  .bw-app-hub {
    max-width: 100%;
    overflow-x: hidden;
    padding:
      calc(env(safe-area-inset-top) + 92px)
      max(18px, env(safe-area-inset-left))
      calc(env(safe-area-inset-bottom) + 128px)
      max(18px, env(safe-area-inset-right));
  }

  .bw-app-hub__hero h1 {
    font-size: clamp(58px, 20vw, 96px);
  }

  .bw-app-archive {
    grid-template-columns: 1fr;
    margin-top: 46px;
  }
}

@media (max-width: 420px) {
  .bw-app-slider {
    grid-auto-columns: minmax(86%, 340px);
    min-height: 420px;
    padding-bottom: 96px;
  }

  .bw-launcher {
    padding-bottom: clamp(120px, 20vh, 176px);
  }

  .bw-app-hub {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}

@media (prefers-reduced-motion: reduce) {
  .bw-app-card,
  .bw-app-card[data-bw-app-card],
  html.is-ready .bw-app-card[data-bw-app-card],
  html.is-ready .bw-app-card[data-bw-app-card].is-reveal-ready,
  .bw-mobile-brand-minimal,
  .bw-bottom-nav a,
  .bw-bottom-nav button,
  .bw-bottom-nav svg,
  .bw-bottom-nav span {
    transition: none !important;
    animation: none !important;
  }
}

/* === Sprint 3.6E / Clean premium nav + zoom guardrail === */

/* Evita lo zoom automatico iOS sugli input senza bloccare il pinch zoom. */
input,
textarea,
select {
  font-size: max(16px, 1rem);
}

@media (max-width: 860px) {
  .bw-bottom-nav {
    overflow: hidden;
  }

  .bw-bottom-nav a,
  .bw-bottom-nav button {
    position: relative;
    overflow: hidden;
  }

  .bw-bottom-nav a.is-active,
  .bw-bottom-nav a[aria-current="page"] {
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 177, 135, 0.18), transparent 58%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.115), rgba(255, 255, 255, 0.03)),
      rgba(255, 107, 43, 0.135);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.11),
      0 7px 20px rgba(255, 107, 43, 0.08);
  }

  .bw-bottom-nav a.is-active svg,
  .bw-bottom-nav a[aria-current="page"] svg {
    color: var(--bw-primary-2);
    transform: translateY(-0.5px);
  }

  .bw-bottom-nav a.is-active span,
  .bw-bottom-nav a[aria-current="page"] span {
    color: var(--bw-text);
  }

  .bw-bottom-nav a,
  .bw-bottom-nav button,
  .bw-bottom-nav svg,
  .bw-bottom-nav span {
    transition:
      background 180ms ease,
      color 180ms ease,
      box-shadow 180ms ease,
      transform 180ms cubic-bezier(.2,.8,.2,1);
  }

  /* Clearance reale: niente contenuti schiacciati dietro la nav + browser bar. */
  .bw-shell {
    padding-bottom: calc(env(safe-area-inset-bottom) + 132px);
  }

  .bw-footer {
    padding-bottom: calc(env(safe-area-inset-bottom) + 132px);
  }

  .bw-launcher {
    padding-bottom: clamp(148px, 22vh, 210px);
  }

  .bw-app-slider {
    padding-bottom: 124px;
    min-height: 460px;
  }

  .bw-app-hub,
  .bw-about-page,
  .bw-app-page,
  .bw-error-page {
    padding-bottom: calc(env(safe-area-inset-bottom) + 152px);
  }
}

@media (max-width: 420px) {
  .bw-launcher {
    padding-bottom: clamp(156px, 24vh, 224px);
  }

  .bw-app-slider {
    padding-bottom: 132px;
    min-height: 448px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bw-bottom-nav a,
  .bw-bottom-nav button,
  .bw-bottom-nav svg,
  .bw-bottom-nav span {
    transition: none !important;
    animation: none !important;
  }
}

/* === Sprint 3.6E / Clean premium nav + zoom guardrail === */

/* Evita lo zoom automatico iOS sugli input senza bloccare il pinch zoom. */
input,
textarea,
select {
  font-size: max(16px, 1rem);
}

@media (max-width: 860px) {
  .bw-bottom-nav {
    overflow: hidden;
  }

  .bw-bottom-nav a,
  .bw-bottom-nav button {
    position: relative;
    overflow: hidden;
  }

  .bw-bottom-nav a.is-active,
  .bw-bottom-nav a[aria-current="page"] {
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 177, 135, 0.18), transparent 58%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.115), rgba(255, 255, 255, 0.03)),
      rgba(255, 107, 43, 0.135);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.11),
      0 7px 20px rgba(255, 107, 43, 0.08);
  }

  .bw-bottom-nav a.is-active svg,
  .bw-bottom-nav a[aria-current="page"] svg {
    color: var(--bw-primary-2);
    transform: translateY(-0.5px);
  }

  .bw-bottom-nav a.is-active span,
  .bw-bottom-nav a[aria-current="page"] span {
    color: var(--bw-text);
  }

  .bw-bottom-nav a,
  .bw-bottom-nav button,
  .bw-bottom-nav svg,
  .bw-bottom-nav span {
    transition:
      background 180ms ease,
      color 180ms ease,
      box-shadow 180ms ease,
      transform 180ms cubic-bezier(.2,.8,.2,1);
  }

  /* Clearance reale: niente contenuti schiacciati dietro la nav + browser bar. */
  .bw-shell {
    padding-bottom: calc(env(safe-area-inset-bottom) + 132px);
  }

  .bw-footer {
    padding-bottom: calc(env(safe-area-inset-bottom) + 132px);
  }

  .bw-launcher {
    padding-bottom: clamp(148px, 22vh, 210px);
  }

  .bw-app-slider {
    padding-bottom: 124px;
    min-height: 460px;
  }

  .bw-app-hub,
  .bw-about-page,
  .bw-app-page,
  .bw-error-page {
    padding-bottom: calc(env(safe-area-inset-bottom) + 152px);
  }
}

@media (max-width: 420px) {
  .bw-launcher {
    padding-bottom: clamp(156px, 24vh, 224px);
  }

  .bw-app-slider {
    padding-bottom: 132px;
    min-height: 448px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bw-bottom-nav a,
  .bw-bottom-nav button,
  .bw-bottom-nav svg,
  .bw-bottom-nav span {
    transition: none !important;
    animation: none !important;
  }
}

/* === Sprint 3.9 / GSAP scene transition === */

html.bw-scene-transition .bw-app-card[data-bw-app-card],
html.bw-scene-transition .bw-app-card.is-reveal-ready,
html.bw-scene-transition.is-ready .bw-app-card[data-bw-app-card],
html.bw-scene-transition.is-ready .bw-app-card[data-bw-app-card].is-reveal-ready {
  opacity: 1;
  visibility: visible;
  transform: none;
}

html.bw-scene-transition .bw-app-card[data-bw-app-card]:hover,
html.bw-scene-transition .bw-app-card[data-bw-app-card]:focus-visible {
  transform: translateY(-7px) scale(1);
}

html.is-scene-leaving,
html.is-scene-entering {
  cursor: progress;
}

html.is-scene-leaving a,
html.is-scene-leaving button {
  pointer-events: none;
}

html.is-scene-leaving *,
html.is-scene-entering * {
  -webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  html.is-scene-leaving *,
  html.is-scene-entering * {
    transition: none !important;
    animation: none !important;
  }
}

