:root {
  --cream: #e9e8d6;
  --cream-soft: rgba(233, 232, 214, 0.72);
  --black: #000;
  --panel: #121212;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: no-preference) {
  body {
    transition:
      opacity 150ms ease,
      transform 150ms ease;
  }

  body.is-leaving {
    opacity: 0;
    transform: translateY(-3px);
  }

  body.auth-loading .auth-card,
  body.auth-loading .auth-footnote {
    opacity: 0;
    transform: translateY(6px);
  }

  body.auth-ready .auth-card,
  body.auth-ready .auth-footnote {
    opacity: 1;
    transform: translateY(0);
    transition:
      opacity 160ms ease,
      transform 160ms ease;
  }
}

body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

.site-shell {
  min-height: 100vh;
  overflow: hidden;
  background: #000;
}

.hero {
  position: relative;
  min-height: clamp(680px, 78vw, 760px);
  margin: 24px 28px 0;
  overflow: hidden;
  border-radius: 30px;
  isolation: isolate;
}

.hero-video,
.hero-vignette {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  z-index: -3;
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
}

.hero-vignette {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.1) 54%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0) 44%),
    radial-gradient(circle at 69% 56%, rgba(0, 0, 0, 0) 0 25%, rgba(0, 0, 0, 0.24) 70%);
}

.nav {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4vw, 52px);
  width: min(560px, calc(100% - 40px));
  height: 62px;
  padding: 0 30px;
  border-radius: 0 0 22px 22px;
  background: rgba(0, 0, 0, 0.96);
  transform: translateX(-50%);
}

.brand-logo {
  position: absolute;
  top: 22px;
  left: clamp(42px, 4.2vw, 82px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  height: 21px;
  opacity: 0.9;
}

.brand-logo img {
  display: block;
  width: auto;
  height: 100%;
}

.menu-toggle,
.menu-button {
  display: none;
}

.nav a {
  color: #e2e0ca;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0.96;
}

.nav a:hover {
  color: #fffbea;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 34vw);
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 24px 40px;
  padding: 0 clamp(38px, 4vw, 76px) 50px;
}

.headline {
  align-self: end;
  margin-bottom: 104px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cream);
  font-size: clamp(18px, 1.45vw, 25px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  color: var(--cream);
  font-size: clamp(50px, 5.25vw, 98px);
  font-weight: 720;
  line-height: 0.9;
  letter-spacing: 0;
}

.statement {
  align-self: end;
  max-width: 470px;
  margin-bottom: 132px;
}

.statement h2 {
  margin: 0 0 16px;
  color: rgba(233, 232, 214, 0.9);
  font-size: clamp(27px, 1.95vw, 37px);
  font-weight: 560;
  line-height: 1.06;
  letter-spacing: 0;
}

.statement p {
  max-width: 390px;
  margin: 0;
  color: rgba(233, 232, 214, 0.68);
  font-size: clamp(12px, 0.78vw, 14px);
  font-weight: 500;
  line-height: 1.48;
}

.service-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 104px);
  transform: translateY(-22px);
}

.service-list article {
  min-width: 0;
}

.service-list span {
  display: block;
  margin-bottom: 5px;
  color: var(--cream);
  font-size: clamp(10px, 0.62vw, 12px);
  font-weight: 800;
  line-height: 1;
}

.service-list p {
  margin: 0;
  color: rgba(233, 232, 214, 0.76);
  font-size: clamp(10px, 0.62vw, 12px);
  font-weight: 500;
  line-height: 1.1;
}

.next-panel {
  display: grid;
  min-height: 410px;
  place-items: center;
  padding: 44px 28px 58px;
  background: #000;
}

.panel-card {
  display: grid;
  align-content: center;
  width: min(760px, 50vw);
  min-height: 280px;
  padding: clamp(42px, 3.6vw, 58px) clamp(34px, 5vw, 78px);
  border-radius: 22px;
  border: 1px solid rgba(233, 232, 214, 0.05);
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(233, 232, 214, 0.04);
  text-align: center;
}

.panel-kicker {
  margin: 0 0 28px;
  color: var(--cream);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1;
}

.panel-card h2 {
  max-width: 620px;
  margin: 0 auto;
  color: var(--cream);
  font-size: clamp(40px, 3.1vw, 58px);
  font-weight: 420;
  line-height: 0.94;
  letter-spacing: 0;
}

.panel-card em {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92em;
  font-style: italic;
  line-height: 0.86;
}

.panel-copy {
  max-width: 520px;
  margin: 36px auto 0;
  color: rgba(233, 232, 214, 0.58);
  font-size: clamp(14px, 0.86vw, 16px);
  font-weight: 500;
  line-height: 1.68;
}

.panel-copy strong {
  color: var(--cream);
  font-weight: 720;
}

.panel-copy em {
  color: rgba(233, 232, 214, 0.82);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2em;
  font-style: italic;
  font-weight: 400;
}

.panel-card p {
  margin: 0;
}

.apps-page {
  position: relative;
  min-height: 100vh;
  padding: 0 0 80px;
  background: #000;
  color: var(--cream);
}

.apps-nav {
  position: absolute;
}

.apps-hero {
  background: #000;
}

.apps-image,
.apps-vignette {
  position: absolute;
  inset: 0;
}

.apps-image {
  z-index: -3;
  background-image: url("assets/apps-stars-background.png");
  background-position: center 68%;
  background-size: cover;
  transform: scale(1.015);
}

.apps-vignette {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.18) 50%, rgba(0, 0, 0, 0.52) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.05) 48%, rgba(0, 0, 0, 0.5) 100%),
    radial-gradient(circle at 50% 48%, rgba(0, 0, 0, 0.1) 0 22%, rgba(0, 0, 0, 0.45) 72%);
}

.apps-hero .hero-content {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  text-align: center;
}

.apps-hero .headline {
  align-self: center;
  justify-self: center;
  max-width: 800px;
  margin-bottom: 44px;
}

.apps-hero h1 {
  font-size: clamp(56px, 6.4vw, 118px);
  line-height: 0.9;
  font-weight: 720;
}

.apps-hero .service-list {
  text-align: left;
}

.editorial-hero {
  background:
    radial-gradient(circle at 50% 38%, rgba(233, 232, 214, 0.09), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.055), transparent 26%),
    linear-gradient(180deg, #101010 0%, #050505 48%, #000 100%);
}

.editorial-hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(233, 232, 214, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 232, 214, 0.035) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(circle at center, #000 0 28%, transparent 72%);
  content: "";
}

.editorial-hero .hero-content {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  text-align: center;
}

.editorial-hero .headline {
  align-self: center;
  justify-self: center;
  max-width: 900px;
  margin-bottom: 42px;
}

.editorial-hero h1 {
  font-size: clamp(58px, 6.8vw, 124px);
  font-weight: 650;
  line-height: 0.9;
}

.editorial-hero .service-list {
  text-align: left;
}

.editorial-vignette {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.52), transparent 34%, rgba(0, 0, 0, 0.48)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, transparent 44%),
    radial-gradient(circle at 50% 52%, transparent 0 18%, rgba(0, 0, 0, 0.38) 76%);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(1120px, 100%);
  margin: 16px auto 0;
  padding: 0 28px;
}

.apps-grid article {
  min-height: 224px;
  padding: 26px;
  border-radius: 18px;
  border: 1px solid rgba(233, 232, 214, 0.05);
  background: #101010;
  box-shadow: inset 0 1px 0 rgba(233, 232, 214, 0.035);
}

.apps-grid span {
  display: block;
  margin-bottom: 44px;
  color: var(--cream);
  font-size: 12px;
  font-weight: 800;
}

.apps-grid h2 {
  margin: 0 0 14px;
  color: var(--cream);
  font-size: clamp(28px, 2vw, 38px);
  font-weight: 560;
  line-height: 0.98;
}

.apps-grid p {
  margin: 0;
  color: rgba(233, 232, 214, 0.68);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.42;
}

.apps-directory {
  width: min(1120px, 100%);
  margin: 54px auto 0;
  padding: 0 28px;
}

.apps-directory-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.62fr);
  gap: clamp(28px, 7vw, 120px);
  align-items: start;
  margin-bottom: 34px;
}

.apps-directory-heading span {
  grid-column: 1 / -1;
  color: rgba(233, 232, 214, 0.74);
  font-size: 12px;
  font-weight: 780;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.apps-directory-heading h2 {
  max-width: 680px;
  margin: 0;
  color: var(--cream);
  font-size: clamp(38px, 4.25vw, 72px);
  font-weight: 520;
  line-height: 0.96;
  letter-spacing: 0;
}

.apps-directory-heading p {
  max-width: 390px;
  margin: 6px 0 0;
  color: rgba(233, 232, 214, 0.62);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.editorial-directory {
  margin-top: 58px;
}

.editorial-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.editorial-card-grid article {
  min-height: 260px;
  padding: 24px;
  border: 1px solid rgba(233, 232, 214, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(233, 232, 214, 0.06), rgba(233, 232, 214, 0.018)),
    rgba(18, 18, 18, 0.72);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.editorial-card-grid span {
  display: block;
  margin-bottom: 76px;
  color: rgba(233, 232, 214, 0.48);
  font-size: 11px;
  font-weight: 880;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.editorial-card-grid h3 {
  margin: 0 0 14px;
  color: var(--cream);
  font-size: clamp(26px, 2.2vw, 38px);
  font-weight: 540;
  line-height: 0.98;
  letter-spacing: 0;
}

.editorial-card-grid p {
  margin: 0;
  color: rgba(233, 232, 214, 0.6);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.52;
}

.app-showcase {
  display: grid;
  gap: 34px;
}

.app-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.78fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  min-height: 360px;
}

.app-feature-reverse {
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.08fr);
}

.app-feature-reverse .app-visual {
  order: 2;
}

.app-feature-reverse .app-feature-copy {
  order: 1;
}

.app-visual {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(233, 232, 214, 0.06);
  background:
    radial-gradient(circle at 28% 18%, rgba(233, 232, 214, 0.16), transparent 34%),
    linear-gradient(145deg, #171717, #070707 72%);
  box-shadow: inset 0 1px 0 rgba(233, 232, 214, 0.05);
}

.app-visual-brand {
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08)),
    url("assets/mio-cover.png") center / cover no-repeat;
}

.app-visual-precifica {
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.06)),
    url("assets/precifica-cover.png") center / cover no-repeat;
}

.app-visual-maestra {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.02)),
    url("assets/maestra-prompts-cover.png") center / cover no-repeat;
}

.app-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.34), transparent 62%);
  pointer-events: none;
}

.app-feature-copy {
  max-width: 420px;
}

.app-feature-copy span {
  display: block;
  margin-bottom: 18px;
  color: rgba(233, 232, 214, 0.62);
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-feature-copy h3 {
  margin: 0 0 16px;
  color: var(--cream);
  font-size: clamp(36px, 3.8vw, 64px);
  font-weight: 520;
  line-height: 0.94;
  letter-spacing: 0;
}

.app-feature-copy p {
  margin: 0 0 26px;
  color: rgba(233, 232, 214, 0.64);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.app-feature-copy a {
  display: inline-flex;
  min-width: 86px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(233, 232, 214, 0.28);
  border-radius: 999px;
  color: var(--cream);
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.app-feature-copy a:hover {
  border-color: var(--cream);
  background: var(--cream);
  color: #050505;
}

.app-feature-copy .download-button {
  position: relative;
  min-width: 132px;
  height: 44px;
  overflow: hidden;
  border-color: rgba(233, 232, 214, 0.72);
  background: var(--cream);
  color: #050505;
  box-shadow:
    0 18px 42px rgba(233, 232, 214, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  transform: translateY(0);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.app-feature-copy .download-button::after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -55%;
  width: 46%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.62),
    transparent
  );
  transform: rotate(18deg);
  animation: download-sheen 3.4s ease-in-out infinite;
}

.app-feature-copy .download-button:hover {
  border-color: #fffbea;
  background: #fffbea;
  color: #050505;
  box-shadow:
    0 22px 54px rgba(233, 232, 214, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.app-feature-copy .agent-button {
  position: relative;
  min-width: 148px;
}

.app-feature-copy .agent-button-locked {
  min-width: 166px;
  gap: 9px;
  overflow: hidden;
  border-color: rgba(233, 232, 214, 0.12);
  background:
    linear-gradient(135deg, rgba(233, 232, 214, 0.1), rgba(233, 232, 214, 0.018) 38%, rgba(0, 0, 0, 0.58)),
    rgba(0, 0, 0, 0.76);
  color: rgba(233, 232, 214, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(233, 232, 214, 0.07),
    0 16px 40px rgba(0, 0, 0, 0.28);
}

.app-feature-copy .agent-button-locked::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 35%, rgba(233, 232, 214, 0.08), transparent 66%);
  opacity: 0.52;
  content: "";
  pointer-events: none;
}

.app-feature-copy .agent-button-locked:hover {
  border-color: rgba(233, 232, 214, 0.18);
  background:
    linear-gradient(135deg, rgba(233, 232, 214, 0.12), rgba(233, 232, 214, 0.024) 42%, rgba(0, 0, 0, 0.64)),
    rgba(0, 0, 0, 0.82);
  color: rgba(233, 232, 214, 0.7);
  transform: translateY(-1px);
}

.button-lock {
  position: relative;
  display: inline-block;
  width: 13px;
  height: 11px;
  border-radius: 3px;
  background: currentColor;
  opacity: 0.9;
}

.button-lock::before {
  position: absolute;
  right: 2px;
  bottom: 9px;
  left: 2px;
  height: 8px;
  border: 1.7px solid currentColor;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  content: "";
}

.app-feature-copy .license-button {
  min-width: 154px;
  border-color: rgba(233, 232, 214, 0.18);
  background:
    linear-gradient(145deg, rgba(233, 232, 214, 0.08), rgba(233, 232, 214, 0.018)),
    rgba(0, 0, 0, 0.32);
  color: rgba(233, 232, 214, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(233, 232, 214, 0.08),
    0 14px 36px rgba(0, 0, 0, 0.22);
}

.app-feature-copy .license-button:hover {
  border-color: rgba(233, 232, 214, 0.48);
  background:
    linear-gradient(145deg, rgba(233, 232, 214, 0.14), rgba(233, 232, 214, 0.035)),
    rgba(0, 0, 0, 0.44);
  color: var(--cream);
}

.app-feature-copy .access-button {
  min-width: 154px;
  border-color: rgba(233, 232, 214, 0.38);
  background:
    linear-gradient(90deg, rgba(255, 47, 116, 0.14), rgba(36, 218, 219, 0.14)),
    rgba(233, 232, 214, 0.04);
  box-shadow: inset 0 1px 0 rgba(233, 232, 214, 0.08);
}

.app-feature-copy .access-button:hover {
  border-color: rgba(233, 232, 214, 0.84);
  background:
    linear-gradient(90deg, rgba(255, 47, 116, 0.22), rgba(36, 218, 219, 0.22)),
    rgba(233, 232, 214, 0.08);
  color: var(--cream);
  transform: translateY(-2px);
}

.mio-page {
  min-height: 100vh;
  padding-bottom: clamp(70px, 10vw, 120px);
  background: #000;
  color: var(--cream);
}

.mio-hero {
  position: relative;
  min-height: clamp(680px, 78vw, 780px);
  margin: 24px 28px 0;
  overflow: hidden;
  border: 1px solid rgba(233, 232, 214, 0.06);
  border-radius: 30px;
  isolation: isolate;
  background: #020202;
}

.mio-hero-media,
.mio-hero-vignette {
  position: absolute;
  inset: 0;
}

.mio-hero-media {
  z-index: -3;
  background: url("assets/mio-cover.png") center / cover no-repeat;
  filter: saturate(0.88) contrast(1.08) brightness(0.82);
  transform: scale(1.012);
}

.mio-hero-vignette {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.22) 52%, rgba(0, 0, 0, 0.66) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.08) 46%, rgba(0, 0, 0, 0.44) 100%);
}

.mio-hero-content {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: clamp(28px, 5vw, 76px);
  align-items: end;
  padding: 0 clamp(34px, 5vw, 78px) clamp(42px, 5vw, 74px);
}

.mio-kicker {
  display: block;
  margin-bottom: 18px;
  color: rgba(233, 232, 214, 0.58);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mio-hero h1 {
  max-width: 900px;
  font-size: clamp(54px, 7.2vw, 122px);
  font-weight: 720;
  line-height: 0.88;
}

.mio-hero-copy {
  display: grid;
  gap: 26px;
  align-self: end;
  margin-bottom: 22px;
}

.mio-hero-copy p {
  margin: 0;
  color: rgba(233, 232, 214, 0.68);
  font-size: 15px;
  line-height: 1.6;
}

.mio-details {
  padding: clamp(80px, 11vw, 160px) 0 clamp(60px, 8vw, 100px);
}

.mio-details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(233, 232, 214, 0.1);
  border-radius: 28px;
  background: rgba(233, 232, 214, 0.1);
}

.mio-details article {
  min-height: 330px;
  padding: clamp(24px, 3vw, 38px);
  background:
    linear-gradient(145deg, rgba(233, 232, 214, 0.05), rgba(233, 232, 214, 0.008)),
    #030303;
}

.mio-details span {
  color: rgba(233, 232, 214, 0.48);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.mio-details h2 {
  margin: clamp(66px, 8vw, 108px) 0 16px;
  color: var(--cream);
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 540;
  line-height: 0.98;
}

.mio-details p,
.mio-license-panel p {
  margin: 0;
  color: rgba(233, 232, 214, 0.58);
  font-size: 14px;
  line-height: 1.65;
}

.mio-license-panel {
  display: grid;
  max-width: 780px;
  gap: 24px;
  padding: clamp(32px, 4vw, 54px);
  border: 1px solid rgba(233, 232, 214, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 0%, rgba(233, 232, 214, 0.08), transparent 34%),
    linear-gradient(145deg, rgba(233, 232, 214, 0.035), rgba(233, 232, 214, 0.006)),
    #030303;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(233, 232, 214, 0.05);
}

.mio-license-panel h2 {
  max-width: 620px;
  margin: 0;
  color: var(--cream);
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 560;
  line-height: 0.94;
}

.mio-license-panel .access-button {
  display: inline-flex;
  width: max-content;
  min-width: 164px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(233, 232, 214, 0.22);
  border-radius: 999px;
  background: rgba(233, 232, 214, 0.06);
  color: var(--cream);
  font-size: 13px;
  font-weight: 760;
}

@keyframes download-sheen {
  0%,
  42% {
    left: -55%;
  }

  62%,
  100% {
    left: 112%;
  }
}

.app-feature-muted {
  opacity: 0.72;
}

.download-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  opacity: 1;
  backdrop-filter: blur(14px);
  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}

.download-modal[aria-hidden="true"] {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.download-panel {
  width: min(420px, 100%);
  padding: 32px;
  border: 1px solid rgba(233, 232, 214, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 0%, rgba(233, 232, 214, 0.1), transparent 34%),
    #101010;
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(233, 232, 214, 0.05);
}

.download-panel span {
  display: block;
  margin-bottom: 18px;
  color: rgba(233, 232, 214, 0.58);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.download-panel h2 {
  margin: 0 0 10px;
  color: var(--cream);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 520;
  line-height: 0.94;
  letter-spacing: 0;
}

.download-panel p {
  max-width: 320px;
  margin: 0 0 28px;
  color: rgba(233, 232, 214, 0.62);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.48;
}

.download-progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(233, 232, 214, 0.1);
}

.download-progress div {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(233, 232, 214, 0.68), #fffbea);
  box-shadow: 0 0 24px rgba(233, 232, 214, 0.22);
  transition: width 34ms linear;
}

.download-panel small {
  display: block;
  margin-top: 12px;
  color: rgba(233, 232, 214, 0.5);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  text-align: right;
}

.mock-window {
  position: absolute;
  top: 28px;
  left: 28px;
  display: flex;
  gap: 7px;
}

.mock-window span,
.mock-grid span,
.mock-sidebar span,
.mock-lines span,
.mock-sheet span {
  display: block;
}

.mock-window span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(233, 232, 214, 0.48);
}

.mock-title {
  position: absolute;
  top: 76px;
  left: 28px;
  width: min(260px, 58%);
  height: 70px;
  border-radius: 12px;
  background: rgba(233, 232, 214, 0.88);
}

.mock-lines {
  position: absolute;
  right: 28px;
  bottom: 34px;
  width: min(270px, 52%);
}

.mock-lines span {
  height: 10px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(233, 232, 214, 0.2);
}

.mock-lines span:nth-child(2) {
  width: 76%;
}

.mock-lines span:nth-child(3) {
  width: 48%;
}

.mock-pill {
  position: absolute;
  left: 28px;
  bottom: 34px;
  width: 116px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(233, 232, 214, 0.24);
}

.app-visual-board {
  background:
    radial-gradient(circle at 70% 20%, rgba(233, 232, 214, 0.18), transparent 30%),
    linear-gradient(145deg, #111, #050505 76%);
}

.mock-grid {
  position: absolute;
  inset: 28px 140px 28px 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mock-grid span {
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(233, 232, 214, 0.24), rgba(233, 232, 214, 0.06)),
    #151515;
}

.mock-grid span:nth-child(2),
.mock-grid span:nth-child(3) {
  background:
    linear-gradient(145deg, rgba(233, 232, 214, 0.14), rgba(233, 232, 214, 0.04)),
    #0d0d0d;
}

.mock-sidebar {
  position: absolute;
  top: 28px;
  right: 28px;
  bottom: 28px;
  width: 84px;
  display: grid;
  gap: 12px;
}

.mock-sidebar span {
  border-radius: 999px;
  background: rgba(233, 232, 214, 0.14);
}

.app-visual-kit {
  background:
    radial-gradient(circle at 22% 78%, rgba(233, 232, 214, 0.18), transparent 32%),
    linear-gradient(145deg, #161616, #060606 76%);
}

.mock-sheet {
  position: absolute;
  inset: 34px 34px 76px;
  display: grid;
  gap: 12px;
}

.mock-sheet span {
  min-height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(233, 232, 214, 0.08);
  background: rgba(233, 232, 214, 0.08);
}

.mock-progress {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(233, 232, 214, 0.12);
}

.mock-progress::after {
  content: "";
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: rgba(233, 232, 214, 0.74);
}

.app-visual-next {
  background:
    radial-gradient(circle at 50% 50%, rgba(233, 232, 214, 0.18), transparent 26%),
    linear-gradient(145deg, #121212, #050505 76%);
}

.mock-orbit {
  position: absolute;
  inset: 70px 110px;
  border: 1px solid rgba(233, 232, 214, 0.22);
  border-radius: 999px;
}

.mock-node {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: rgba(233, 232, 214, 0.7);
  box-shadow: 0 0 42px rgba(233, 232, 214, 0.16);
}

.mock-node-a {
  top: 72px;
  left: 26%;
}

.mock-node-b {
  right: 24%;
  bottom: 74px;
  width: 42px;
  height: 42px;
  opacity: 0.72;
}

.mock-node-c {
  top: 45%;
  right: 28%;
  width: 24px;
  height: 24px;
  opacity: 0.54;
}

@media (max-width: 900px) {
  .hero {
    min-height: 720px;
    margin: 14px;
    border-radius: 24px;
  }

  .nav {
    top: 68px;
    left: 14px;
    width: calc(100% - 24px);
    height: auto;
    max-height: 0;
    min-height: 0;
    overflow: hidden;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    padding: 0 18px;
    border-radius: 22px;
    background: rgba(0, 0, 0, 0.96);
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(10px);
    transform: none;
    transition:
      max-height 220ms ease,
      opacity 180ms ease,
      padding 220ms ease;
  }

  .nav a {
    display: block;
    padding: 15px 4px;
    font-size: 13px;
    text-align: left;
    border-bottom: 1px solid rgba(233, 232, 214, 0.12);
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .brand-logo {
    top: 28px;
    left: 28px;
    height: 18px;
  }

  .menu-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
  }

  .menu-button {
    position: absolute;
    top: 22px;
    right: 28px;
    z-index: 4;
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border-radius: 999px;
    background: #000;
    cursor: pointer;
  }

  .menu-button span {
    display: block;
    width: 17px;
    height: 2px;
    border-radius: 999px;
    background: var(--cream);
  }

  .menu-toggle:checked ~ .nav {
    max-height: 280px;
    padding: 12px 18px;
    opacity: 1;
    pointer-events: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    align-content: end;
    gap: 28px;
    padding: 0 24px 42px;
  }

  .headline,
  .statement {
    max-width: 480px;
    margin-bottom: 0;
  }

  h1 {
    font-size: clamp(44px, 10.8vw, 82px);
    line-height: 0.9;
  }

  .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 32px;
  }

  .next-panel {
    min-height: 380px;
    padding: 36px 14px 54px;
  }

  .panel-card {
    width: min(100%, 620px);
    min-height: 260px;
    padding: 38px 24px;
  }

  .panel-card h2 {
    font-size: clamp(36px, 8vw, 56px);
  }

  .panel-copy {
    margin-top: 30px;
    font-size: 14px;
  }

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

  .apps-nav {
    position: absolute;
  }

  .apps-hero {
    min-height: 720px;
    margin: 14px;
    border-radius: 24px;
  }

  .apps-hero .headline {
    margin-bottom: 12px;
  }

  .apps-hero h1 {
    font-size: clamp(50px, 13vw, 92px);
  }

  .editorial-hero {
    min-height: 720px;
    margin: 14px;
    border-radius: 24px;
  }

  .editorial-hero .headline {
    margin-bottom: 12px;
  }

  .editorial-hero h1 {
    font-size: clamp(48px, 12vw, 86px);
  }

  .apps-grid {
    padding: 0 14px;
  }

  .apps-directory {
    margin-top: 42px;
    padding: 0 14px;
  }

  .apps-directory-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 26px;
  }

  .apps-directory-heading h2 {
    font-size: clamp(36px, 9vw, 62px);
  }

  .apps-directory-heading p {
    margin-top: 0;
  }

  .editorial-card-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .editorial-card-grid article {
    min-height: 220px;
  }

  .editorial-card-grid span {
    margin-bottom: 54px;
  }

  .app-showcase {
    gap: 42px;
  }

  .app-feature,
  .app-feature-reverse {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: 0;
  }

  .app-feature-reverse .app-visual,
  .app-feature-reverse .app-feature-copy {
    order: initial;
  }

  .app-visual {
    min-height: 280px;
  }

  .app-feature-copy {
    max-width: 560px;
  }

  .app-feature-copy h3 {
    font-size: clamp(30px, 8vw, 48px);
  }

  .app-actions {
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 650px;
  }

  .hero-video {
    object-position: 44% center;
  }

  .apps-hero {
    min-height: 650px;
  }

  .apps-hero h1 {
    font-size: clamp(40px, 14vw, 62px);
  }

  .editorial-hero {
    min-height: 650px;
  }

  .editorial-hero h1 {
    font-size: clamp(38px, 13vw, 62px);
  }

  .apps-image {
    background-position: center bottom;
  }

  .nav {
    left: 14px;
    justify-content: center;
    overflow: hidden;
    flex-wrap: nowrap;
  }

  h1 {
    font-size: clamp(36px, 12.4vw, 54px);
  }

  .eyebrow {
    font-size: 16px;
  }

  .next-panel {
    min-height: 340px;
  }

  .panel-card {
    min-height: 230px;
    border-radius: 20px;
  }

  .panel-kicker {
    margin-bottom: 22px;
    font-size: 11px;
  }

  .panel-card h2 {
    font-size: clamp(32px, 9.6vw, 44px);
  }

  .panel-copy {
    font-size: 13px;
    line-height: 1.58;
  }

  .app-showcase {
    gap: 38px;
  }

  .app-visual {
    min-height: 230px;
    border-radius: 18px;
  }

  .app-feature-copy span {
    margin-bottom: 14px;
  }

  .app-feature-copy p {
    margin-bottom: 20px;
  }

  .app-actions {
    flex-direction: column;
  }

  .app-actions a {
    width: 100%;
  }

  .mock-grid {
    inset: 22px 100px 22px 22px;
  }

  .mock-sidebar {
    top: 22px;
    right: 22px;
    bottom: 22px;
    width: 60px;
  }

  .mock-orbit {
    inset: 58px 70px;
  }
}

.auth-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 20%, rgba(233, 232, 214, 0.045), transparent 24%),
    radial-gradient(circle at 80% 78%, rgba(255, 255, 255, 0.025), transparent 30%),
    linear-gradient(180deg, #020202 0%, #000 100%);
}

.auth-page::before {
  position: absolute;
  inset: 28px;
  z-index: 0;
  border: 1px solid rgba(233, 232, 214, 0.055);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.026), transparent 28%),
    rgba(255, 255, 255, 0.006);
  content: "";
}

.auth-page::after {
  position: absolute;
  inset: auto 14% 8% 14%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(233, 232, 214, 0.16),
    transparent
  );
  content: "";
}

.auth-brand {
  position: absolute;
  top: 50px;
  left: clamp(42px, 5vw, 82px);
  z-index: 2;
  display: inline-flex;
  height: 22px;
  opacity: 0.92;
}

.auth-brand img {
  display: block;
  width: auto;
  height: 100%;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  padding: clamp(26px, 3.4vw, 40px);
  border: 1px solid rgba(233, 232, 214, 0.095);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.016) 42%, rgba(255, 255, 255, 0.006)),
    rgba(3, 3, 3, 0.82);
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(30px) saturate(132%);
  -webkit-backdrop-filter: blur(30px) saturate(132%);
}

.auth-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 30px;
  border: 1px solid rgba(233, 232, 214, 0.075);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
}

.auth-mode button {
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(233, 232, 214, 0.54);
  font: inherit;
  font-size: 12px;
  font-weight: 820;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.auth-mode button:hover,
.auth-mode button.is-active {
  background: rgba(233, 232, 214, 0.88);
  color: #050505;
}

.auth-heading span {
  display: block;
  margin-bottom: 12px;
  color: rgba(233, 232, 214, 0.5);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth-heading h1 {
  max-width: 11ch;
  margin: 0;
  color: var(--cream);
  font-size: clamp(38px, 5.5vw, 58px);
  font-weight: 760;
  line-height: 0.96;
  letter-spacing: 0;
}

.auth-heading h1 strong {
  font-weight: inherit;
}

.auth-heading p {
  max-width: 35rem;
  margin: 16px 0 0;
  color: rgba(233, 232, 214, 0.54);
  font-size: 13px;
  font-weight: 560;
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.auth-form label {
  display: grid;
  gap: 8px;
}

.auth-form label span {
  color: rgba(233, 232, 214, 0.58);
  font-size: 11px;
  font-weight: 820;
}

.auth-form input {
  width: 100%;
  height: 50px;
  border: 1px solid rgba(233, 232, 214, 0.095);
  border-radius: 13px;
  outline: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.008)),
    rgba(0, 0, 0, 0.66);
  color: var(--cream);
  font: inherit;
  font-size: 14px;
  font-weight: 680;
  padding: 0 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.auth-form input::placeholder {
  color: rgba(233, 232, 214, 0.32);
}

.auth-form input:focus {
  border-color: rgba(233, 232, 214, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(0, 0, 0, 0.74);
  box-shadow:
    0 0 0 4px rgba(233, 232, 214, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.auth-message {
  min-height: 18px;
  margin: 0;
  color: rgba(233, 232, 214, 0.56);
  font-size: 11px;
  font-weight: 700;
}

.auth-message[data-state="error"] {
  color: #ff9a8d;
}

.auth-submit,
.auth-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.32), transparent),
    var(--cream);
  background-size: 210% 100%, auto;
  color: #050505;
  font: inherit;
  font-size: 13px;
  font-weight: 920;
  cursor: pointer;
  animation: downloadSheen 3.8s ease-in-out infinite;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.auth-submit:hover,
.auth-link-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(233, 232, 214, 0.16);
}

.auth-footnote {
  margin: 20px 0 0;
  color: rgba(233, 232, 214, 0.34);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.account-card {
  width: min(100%, 760px);
}

.account-card .auth-heading h1 {
  max-width: 13ch;
}

.account-access-list {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.account-access-list article {
  padding: 22px;
  border: 1px solid rgba(233, 232, 214, 0.1);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.28);
}

.account-access-list span {
  display: block;
  margin-bottom: 8px;
  color: rgba(233, 232, 214, 0.56);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.account-access-list strong {
  display: block;
  color: var(--cream);
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 850;
  line-height: 0.98;
}

.account-access-list p {
  max-width: 34rem;
  margin: 14px 0 20px;
  color: rgba(233, 232, 214, 0.58);
  font-size: 13px;
  line-height: 1.55;
}

.account-access-list a,
.account-actions a,
.account-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(233, 232, 214, 0.14);
  border-radius: 999px;
  background: rgba(233, 232, 214, 0.9);
  color: #050505;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.account-actions button {
  background: transparent;
  color: rgba(233, 232, 214, 0.72);
}

[data-account-status][data-state="success"] {
  color: rgba(195, 255, 220, 0.76);
}

[data-account-status][data-state="warning"] {
  color: rgba(255, 205, 143, 0.78);
}

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.08), transparent 35%),
    rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.access-gate-panel {
  width: min(100%, 520px);
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025)),
    rgba(7, 8, 10, 0.92);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.access-gate-panel span {
  display: block;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.access-gate-panel h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 7vw, 58px);
  font-weight: 860;
  line-height: 0.96;
  letter-spacing: 0;
}

.access-gate-panel p {
  margin: 18px auto 0;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
}

.access-gate-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.access-gate-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #050505;
  font-size: 12px;
  font-weight: 900;
}

.access-gate-actions a + a {
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 620px) {
  .auth-page {
    padding: 18px;
  }

  .auth-page::before {
    inset: 10px;
    border-radius: 24px;
  }

  .auth-brand {
    top: 34px;
    left: 32px;
  }

  .auth-card {
    margin-top: 54px;
    padding: 24px;
    border-radius: 22px;
  }

  .auth-heading h1 {
    font-size: clamp(36px, 12vw, 48px);
  }

  .access-gate-actions {
    flex-direction: column;
  }
}

.profile-page {
  min-height: 100vh;
  padding: clamp(22px, 3vw, 42px);
  background:
    radial-gradient(circle at 16% 6%, rgba(233, 232, 214, 0.04), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.026), transparent 25%),
    linear-gradient(180deg, #020202 0%, #000 100%);
  color: var(--cream);
}

.profile-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 1460px);
  margin: 0 auto 54px;
}

.profile-brand {
  display: inline-flex;
  height: 22px;
  opacity: 0.92;
}

.profile-brand img {
  width: auto;
  height: 100%;
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.profile-tabs a,
.profile-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(233, 232, 214, 0.12);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
    rgba(0, 0, 0, 0.58);
  color: rgba(233, 232, 214, 0.74);
  font: inherit;
  font-size: 12px;
  font-weight: 820;
  cursor: pointer;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.profile-tabs a:hover,
.profile-tabs button:hover,
.profile-tabs a[aria-current="page"] {
  border-color: rgba(233, 232, 214, 0.34);
  background: rgba(233, 232, 214, 0.9);
  color: #050505;
  transform: translateY(-1px);
}

.profile-guest,
.profile-shell {
  position: relative;
  width: min(100%, 1460px);
  margin: 0 auto;
}

.profile-guest {
  display: grid;
  justify-items: start;
  max-width: 620px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(233, 232, 214, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.012)),
    rgba(4, 4, 4, 0.84);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.profile-guest span,
.library-heading span,
.library-section-title span,
.profile-identity span,
.profile-metrics span,
.library-item span {
  color: rgba(233, 232, 214, 0.52);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profile-guest h1 {
  max-width: 11ch;
  margin: 14px 0 0;
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 720;
  line-height: 0.94;
}

.profile-guest p {
  max-width: 34rem;
  margin: 18px 0 26px;
  color: rgba(233, 232, 214, 0.58);
  font-size: 14px;
  line-height: 1.55;
}

.profile-guest a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--cream);
  color: #050505;
  font-size: 13px;
  font-weight: 900;
}

.profile-shell {
  display: grid;
  gap: 36px;
}

.profile-hero-card {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) minmax(390px, 0.9fr);
  gap: clamp(22px, 4vw, 58px);
  align-items: center;
  min-height: 260px;
  padding: clamp(24px, 3.6vw, 44px);
  border: 1px solid rgba(233, 232, 214, 0.105);
  border-radius: 28px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.012) 44%, rgba(255, 255, 255, 0.006)),
    rgba(4, 4, 4, 0.84);
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(30px) saturate(132%);
  -webkit-backdrop-filter: blur(30px) saturate(132%);
}

.profile-avatar-wrap {
  display: grid;
  width: clamp(116px, 12vw, 172px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(233, 232, 214, 0.12);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(233, 232, 214, 0.08), transparent 64%),
    rgba(0, 0, 0, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.5);
}

.profile-avatar {
  display: grid;
  width: 72%;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(233, 232, 214, 0.18);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(233, 232, 214, 0.16), rgba(233, 232, 214, 0.035)),
    #050505;
  color: rgba(233, 232, 214, 0.92);
  font-size: clamp(38px, 5vw, 70px);
  font-weight: 620;
}

.profile-identity h1 {
  margin: 12px 0 12px;
  color: var(--cream);
  font-size: clamp(40px, 5.2vw, 82px);
  font-weight: 650;
  line-height: 0.9;
}

.profile-identity p {
  max-width: 34rem;
  margin: 0;
  color: rgba(233, 232, 214, 0.62);
  font-size: 14px;
  font-weight: 560;
  line-height: 1.55;
}

.profile-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.profile-metrics article {
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(233, 232, 214, 0.095);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008)),
    rgba(0, 0, 0, 0.45);
}

.profile-metrics strong {
  display: block;
  margin-top: 28px;
  color: var(--cream);
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 650;
  line-height: 0.95;
}

.profile-library {
  display: grid;
  gap: 30px;
}

.library-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.5fr);
  gap: clamp(24px, 7vw, 110px);
  align-items: end;
}

.library-heading h2 {
  max-width: 760px;
  margin: 0;
  color: var(--cream);
  font-size: clamp(36px, 4vw, 68px);
  font-weight: 540;
  line-height: 0.96;
}

.library-section {
  display: grid;
  gap: 15px;
}

.library-section-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.library-section-title h3 {
  margin: 0;
  color: var(--cream);
  font-size: 18px;
  font-weight: 760;
}

.library-row {
  display: grid;
  grid-auto-columns: minmax(360px, 1fr);
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-color: rgba(233, 232, 214, 0.28) transparent;
}

.library-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 172px;
  padding: 16px;
  border: 1px solid rgba(233, 232, 214, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.01)),
    rgba(5, 5, 5, 0.82);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.library-thumb {
  min-height: 118px;
  border: 1px solid rgba(233, 232, 214, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  background-position: center;
  background-size: cover;
}

.library-thumb-precifica {
  background-image: url("assets/precifica-cover.png");
}

.library-thumb-mio {
  background-image: url("assets/mio-cover.png");
}

.library-thumb-maestra {
  background-image: url("assets/maestra-prompts-cover.png");
}

.library-thumb-vip {
  background:
    radial-gradient(circle at 30% 24%, rgba(233, 232, 214, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(233, 232, 214, 0.095), rgba(233, 232, 214, 0.018)),
    #030303;
}

.library-item h4 {
  margin: 8px 0 8px;
  color: var(--cream);
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 560;
  line-height: 0.96;
}

.library-item p {
  max-width: 28rem;
  margin: 0;
  color: rgba(233, 232, 214, 0.58);
  font-size: 13px;
  line-height: 1.48;
}

.library-item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(233, 232, 214, 0.18);
  border-radius: 999px;
  background: rgba(233, 232, 214, 0.9);
  color: #050505;
  font-size: 12px;
  font-weight: 920;
}

.library-item-locked {
  opacity: 0.68;
}

.library-item-locked a {
  background: transparent;
  color: rgba(233, 232, 214, 0.64);
}

@media (max-width: 980px) {
  .profile-header {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 32px;
  }

  .profile-hero-card {
    grid-template-columns: 1fr;
  }

  .profile-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .library-heading {
    grid-template-columns: 1fr;
  }

  .library-item {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .library-item a {
    grid-column: 1 / -1;
    width: fit-content;
  }
}

@media (max-width: 620px) {
  .profile-page {
    padding: 18px 14px 28px;
  }

  .profile-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-tabs a,
  .profile-tabs button {
    padding: 0 12px;
  }

  .profile-hero-card {
    padding: 22px;
    border-radius: 22px;
  }

  .profile-metrics {
    grid-template-columns: 1fr;
  }

  .library-row {
    grid-auto-columns: minmax(285px, 88vw);
  }

  .library-item {
    grid-template-columns: 1fr;
  }

  .library-thumb {
    min-height: 160px;
  }
}

/* Minimal premium profile */
.profile-page {
  background:
    radial-gradient(circle at 50% -12%, rgba(233, 232, 214, 0.045), transparent 30%),
    linear-gradient(180deg, #010101 0%, #000 100%);
}

.profile-header {
  margin-bottom: clamp(34px, 6vw, 74px);
}

.profile-tabs {
  gap: 8px;
}

.profile-tabs a,
.profile-tabs button {
  height: 38px;
  padding: 0 15px;
  border-color: rgba(233, 232, 214, 0.09);
  background: rgba(0, 0, 0, 0.52);
  color: rgba(233, 232, 214, 0.62);
  font-size: 11px;
}

.profile-shell-minimal {
  width: min(100%, 1180px);
  gap: clamp(24px, 4vw, 44px);
}

.minimal-profile-card,
.profile-info-lock,
.minimal-resource-card {
  border: 1px solid rgba(233, 232, 214, 0.09);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.008) 48%, rgba(255, 255, 255, 0.004)),
    rgba(2, 2, 2, 0.86);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(28px) saturate(125%);
  -webkit-backdrop-filter: blur(28px) saturate(125%);
}

.minimal-profile-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(18px, 4vw, 42px);
  align-items: center;
  min-height: 158px;
  padding: clamp(22px, 3.4vw, 36px);
  border-radius: 26px;
}

.minimal-avatar {
  display: grid;
  width: clamp(72px, 8vw, 104px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(233, 232, 214, 0.16);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 26%, rgba(233, 232, 214, 0.22), transparent 26%),
    linear-gradient(145deg, rgba(233, 232, 214, 0.1), rgba(233, 232, 214, 0.018)),
    #030303;
  color: rgba(233, 232, 214, 0.92);
  font-size: clamp(24px, 3.4vw, 46px);
  font-weight: 650;
}

.minimal-profile-name span,
.profile-info-lock span,
.minimal-library-heading span {
  display: block;
  color: rgba(233, 232, 214, 0.48);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.minimal-profile-name h1 {
  margin: 8px 0 0;
  color: var(--cream);
  font-size: clamp(38px, 5.4vw, 76px);
  font-weight: 560;
  line-height: 0.92;
  letter-spacing: 0;
}

.minimal-profile-card > strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(233, 232, 214, 0.16);
  border-radius: 999px;
  background: rgba(233, 232, 214, 0.9);
  color: #050505;
  font-size: 12px;
  font-weight: 920;
  white-space: nowrap;
}

.profile-info-lock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 20px;
}

.profile-info-lock div {
  min-height: 92px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.32);
}

.profile-info-lock strong {
  display: block;
  margin-top: 14px;
  overflow: hidden;
  color: rgba(233, 232, 214, 0.86);
  font-size: 14px;
  font-weight: 680;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.minimal-library {
  display: grid;
  gap: 26px;
}

.minimal-library-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.minimal-library-heading h2 {
  max-width: 620px;
  margin: 0;
  color: var(--cream);
  font-size: clamp(34px, 4.6vw, 70px);
  font-weight: 520;
  line-height: 0.94;
  letter-spacing: 0;
}

.minimal-library-section {
  display: grid;
  gap: 14px;
}

.minimal-library-section h3 {
  margin: 0;
  color: rgba(233, 232, 214, 0.8);
  font-size: 14px;
  font-weight: 800;
}

.minimal-resource-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-color: rgba(233, 232, 214, 0.26) transparent;
}

.minimal-resource-card {
  overflow: hidden;
  border-radius: 22px;
}

.minimal-resource-media {
  position: relative;
  min-height: 180px;
  background-position: center;
  background-size: cover;
}

.minimal-resource-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 22%, rgba(0, 0, 0, 0.42) 70%, rgba(0, 0, 0, 0.82)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 54%);
  content: "";
}

.resource-lock {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(233, 232, 214, 0.18);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.56);
  color: rgba(233, 232, 214, 0.82);
  font-size: 15px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.is-locked .resource-lock {
  display: inline-flex;
}

.minimal-resource-copy {
  padding: 18px;
}

.minimal-resource-copy h4 {
  margin: 0 0 8px;
  color: var(--cream);
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 540;
  line-height: 0.96;
  letter-spacing: 0;
}

.minimal-resource-copy p {
  min-height: 38px;
  margin: 0 0 18px;
  color: rgba(233, 232, 214, 0.58);
  font-size: 13px;
  line-height: 1.45;
}

.resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resource-actions a,
.resource-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(233, 232, 214, 0.15);
  border-radius: 999px;
  background: rgba(233, 232, 214, 0.9);
  color: #050505;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: default;
}

.resource-actions a {
  cursor: pointer;
}

.resource-actions button {
  background: transparent;
  color: rgba(233, 232, 214, 0.64);
}

.minimal-resource-card.is-locked .minimal-resource-media {
  filter: saturate(0.65) brightness(0.62);
}

.minimal-resource-card.is-locked .resource-actions a {
  pointer-events: none;
  background: rgba(233, 232, 214, 0.08);
  color: rgba(233, 232, 214, 0.46);
}

@media (max-width: 760px) {
  .minimal-profile-card,
  .profile-info-lock {
    grid-template-columns: 1fr;
  }

  .minimal-profile-card {
    justify-items: start;
  }

  .minimal-library-heading {
    align-items: start;
    flex-direction: column;
  }

  .minimal-resource-row {
    grid-auto-columns: minmax(280px, 86vw);
  }
}

/* Professional account rework */
.profile-page {
  padding: clamp(20px, 3vw, 38px);
  background:
    radial-gradient(circle at 50% -18%, rgba(233, 232, 214, 0.035), transparent 34%),
    linear-gradient(180deg, #010101 0%, #000 100%);
}

.profile-header-simple {
  width: min(100%, 1120px);
  margin-bottom: clamp(30px, 5vw, 58px);
}

.profile-header-simple .profile-tabs {
  gap: 7px;
}

.profile-header-simple .profile-tabs a,
.profile-header-simple .profile-tabs button {
  height: 36px;
  padding: 0 14px;
  border-color: rgba(233, 232, 214, 0.08);
  background: rgba(0, 0, 0, 0.56);
  color: rgba(233, 232, 214, 0.58);
  font-size: 11px;
}

.profile-header-simple .profile-tabs a[aria-current="page"] {
  background: rgba(233, 232, 214, 0.88);
  color: #050505;
}

.profile-shell-minimal {
  width: min(100%, 1120px);
  gap: clamp(22px, 3.2vw, 36px);
}

.minimal-profile-card {
  min-height: 132px;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.006)),
    rgba(1, 1, 1, 0.88);
}

.minimal-avatar {
  width: clamp(62px, 7vw, 86px);
  border-color: rgba(233, 232, 214, 0.12);
  background:
    radial-gradient(circle at 36% 28%, rgba(233, 232, 214, 0.18), transparent 28%),
    #030303;
  font-size: clamp(22px, 3vw, 36px);
}

.minimal-profile-name h1 {
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 520;
}

.minimal-profile-card > strong {
  min-height: 36px;
  padding: 0 15px;
  font-size: 11px;
}

.profile-info-lock {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.006)),
    rgba(0, 0, 0, 0.86);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.profile-info-lock div {
  min-height: 84px;
  padding: 20px 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.004)),
    rgba(0, 0, 0, 0.28);
}

.profile-info-lock strong {
  margin-top: 12px;
  color: rgba(233, 232, 214, 0.88);
  font-size: 13px;
  font-weight: 640;
}

.minimal-library {
  gap: 24px;
}

.minimal-library-heading {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.minimal-library-heading h2 {
  max-width: 680px;
  font-size: clamp(42px, 5.2vw, 74px);
  font-weight: 520;
  line-height: 0.9;
}

.minimal-library-heading-single {
  padding-top: clamp(6px, 1.2vw, 16px);
}

.minimal-library-section {
  gap: 12px;
}

.minimal-library-section h3 {
  color: rgba(233, 232, 214, 0.72);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.minimal-resource-row {
  grid-auto-columns: minmax(360px, 1fr);
  gap: 16px;
}

.minimal-resource-card {
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.006)),
    rgba(1, 1, 1, 0.88);
  box-shadow:
    0 24px 78px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.minimal-resource-media {
  aspect-ratio: 16 / 9;
  min-height: 0;
  margin: 14px 14px 0;
  overflow: hidden;
  border: 1px solid rgba(233, 232, 214, 0.08);
  border-radius: 16px;
  background-color: #030303;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.minimal-resource-media::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.28) 68%, rgba(0, 0, 0, 0.62)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 58%);
}

.minimal-resource-card.is-locked .minimal-resource-media::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.62)),
    radial-gradient(circle at center, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.62));
}

.resource-lock {
  top: 50%;
  right: auto;
  left: 50%;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
}

.resource-lock::before {
  position: absolute;
  top: 11px;
  left: 13px;
  width: 14px;
  height: 12px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  content: "";
}

.resource-lock::after {
  position: absolute;
  left: 11px;
  bottom: 10px;
  width: 18px;
  height: 16px;
  border-radius: 4px;
  background: currentColor;
  content: "";
}

.minimal-resource-copy {
  padding: 16px 18px 18px;
}

.minimal-resource-copy h4 {
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 520;
}

.minimal-resource-copy p {
  min-height: 0;
  margin-bottom: 16px;
  color: rgba(233, 232, 214, 0.56);
}

.resource-actions a,
.resource-actions button {
  min-height: 36px;
  padding: 0 14px;
  font-size: 11px;
}

@media (min-width: 900px) {
  .minimal-resource-row {
    grid-auto-flow: initial;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }
}

@media (max-width: 760px) {
  .profile-header-simple {
    gap: 20px;
  }

  .profile-header-simple .profile-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-info-lock {
    grid-template-columns: 1fr;
  }

  .minimal-resource-row {
    grid-auto-columns: minmax(292px, 86vw);
  }

  .minimal-resource-media {
    margin: 12px 12px 0;
  }
}

/* Rumity home expansion */
.home-section-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.home-kicker {
  margin: 0;
  color: rgba(233, 232, 214, 0.52);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.service-list a {
  display: block;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.service-list a:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.home-manifesto,
.home-services,
.home-projects,
.home-process,
.home-ai,
.home-courses,
.home-final-cta {
  position: relative;
  background: #000;
}

.home-manifesto {
  padding: clamp(120px, 15vw, 230px) 0 clamp(110px, 13vw, 190px);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(34px, 6vw, 96px);
  align-items: start;
}

.manifesto-grid h2,
.section-heading h2,
.home-ai h2,
.final-cta-panel h2 {
  margin: 0;
  color: var(--cream);
  font-size: clamp(50px, 7vw, 118px);
  font-weight: 720;
  line-height: 0.88;
  letter-spacing: 0;
}

.manifesto-lead {
  max-width: 860px;
  margin: clamp(30px, 4vw, 52px) 0 0;
  color: rgba(233, 232, 214, 0.9);
  font-size: clamp(25px, 3vw, 48px);
  font-weight: 520;
  line-height: 1.02;
}

.manifesto-copy {
  max-width: 620px;
  margin: 28px 0 0 auto;
  color: rgba(233, 232, 214, 0.58);
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 500;
  line-height: 1.65;
}

.home-services {
  padding: clamp(90px, 12vw, 170px) 0;
}

.section-heading {
  display: grid;
  max-width: 840px;
  gap: 20px;
  margin-bottom: clamp(38px, 6vw, 76px);
}

.section-heading h2 {
  font-size: clamp(42px, 5.8vw, 88px);
  font-weight: 600;
}

.section-heading p:not(.home-kicker) {
  max-width: 600px;
  margin: 0;
  color: rgba(233, 232, 214, 0.58);
  font-size: 16px;
  line-height: 1.65;
}

.section-heading-wide {
  max-width: 980px;
}

.service-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(233, 232, 214, 0.12);
  border-bottom: 1px solid rgba(233, 232, 214, 0.12);
}

.editorial-service-card {
  position: relative;
  display: grid;
  min-height: 390px;
  align-content: space-between;
  padding: clamp(24px, 2.4vw, 38px);
  border-right: 1px solid rgba(233, 232, 214, 0.1);
  overflow: hidden;
  transition:
    background 220ms ease,
    transform 220ms ease,
    border-color 220ms ease;
}

.editorial-service-card:last-child {
  border-right: 0;
}

.editorial-service-card::before {
  position: absolute;
  inset: auto 18px 18px;
  height: 1px;
  background: rgba(233, 232, 214, 0.22);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms ease;
  content: "";
}

.editorial-service-card span,
.project-copy span,
.course-list span,
.process-track span {
  color: rgba(233, 232, 214, 0.48);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.editorial-service-card h3 {
  max-width: 260px;
  margin: clamp(74px, 9vw, 134px) 0 18px;
  color: var(--cream);
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 540;
  line-height: 0.96;
}

.editorial-service-card p {
  max-width: 260px;
  margin: 0;
  color: rgba(233, 232, 214, 0.58);
  font-size: 14px;
  line-height: 1.55;
}

.editorial-service-card strong {
  position: absolute;
  right: 28px;
  top: 28px;
  color: rgba(233, 232, 214, 0.5);
  font-size: 24px;
  font-weight: 400;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.editorial-service-card:hover {
  background: rgba(233, 232, 214, 0.035);
  transform: translateY(-4px);
}

.editorial-service-card:hover::before {
  transform: scaleX(1);
}

.editorial-service-card:hover strong {
  color: var(--cream);
  transform: translateX(4px);
}

.home-projects {
  padding: clamp(80px, 12vw, 180px) 0;
}

.project-list {
  display: grid;
  gap: clamp(54px, 8vw, 110px);
}

.project-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(300px, 0.76fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: center;
}

.project-feature-reverse {
  grid-template-columns: minmax(300px, 0.76fr) minmax(0, 1.24fr);
}

.project-feature-reverse .project-media {
  order: 2;
}

.project-media {
  min-height: clamp(320px, 43vw, 560px);
  border: 1px solid rgba(233, 232, 214, 0.08);
  border-radius: 28px;
  background-color: #050505;
  background-position: center;
  background-size: cover;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(233, 232, 214, 0.05);
  filter: saturate(0.86) contrast(1.06) brightness(0.76);
  transform: scale(1);
  transition:
    filter 260ms ease,
    transform 260ms ease;
}

.project-feature:hover .project-media {
  filter: saturate(0.98) contrast(1.08) brightness(0.86);
  transform: scale(1.012);
}

.project-media-precifica {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.3)),
    url("assets/precifica-cover.png");
}

.project-media-mio {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.36)),
    url("assets/mio-cover.png");
  background-size: contain;
  background-repeat: no-repeat;
}

.project-media-maestra {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.42)),
    url("assets/maestra-prompts-cover.png");
}

.project-copy {
  display: grid;
  gap: 18px;
}

.project-copy h3 {
  max-width: 460px;
  margin: 0;
  color: var(--cream);
  font-size: clamp(38px, 5vw, 76px);
  font-weight: 560;
  line-height: 0.92;
}

.project-copy p {
  max-width: 420px;
  margin: 0;
  color: rgba(233, 232, 214, 0.58);
  font-size: 15px;
  line-height: 1.62;
}

.project-copy .project-category {
  color: rgba(233, 232, 214, 0.82);
  font-weight: 700;
}

.project-copy a,
.course-list a,
.final-cta-copy a {
  position: relative;
  display: inline-flex;
  width: max-content;
  color: var(--cream);
  font-size: 13px;
  font-weight: 760;
  line-height: 1;
}

.project-copy a::after,
.course-list a::after,
.final-cta-copy a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: rgba(233, 232, 214, 0.52);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  content: "";
}

.project-copy a:hover::after,
.course-list a:hover::after,
.final-cta-copy a:hover::after {
  transform: scaleX(1);
}

.home-process {
  padding: clamp(90px, 12vw, 165px) 0;
}

.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid rgba(233, 232, 214, 0.16);
}

.process-progress {
  position: absolute;
  top: -1px;
  left: 0;
  width: var(--progress, 0%);
  height: 1px;
  background: var(--cream);
  opacity: 0.86;
}

.process-track article {
  min-height: 260px;
  padding: 32px clamp(18px, 2vw, 30px) 0 0;
}

.process-track h3 {
  margin: clamp(54px, 8vw, 92px) 0 14px;
  color: var(--cream);
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 650;
  line-height: 1;
}

.process-track p {
  max-width: 230px;
  margin: 0;
  color: rgba(233, 232, 214, 0.55);
  font-size: 14px;
  line-height: 1.56;
}

.process-line {
  margin: 36px 0 0;
  color: rgba(233, 232, 214, 0.38);
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 800;
  letter-spacing: 0.2em;
}

.home-ai {
  min-height: clamp(680px, 74vw, 860px);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-block: 1px solid rgba(233, 232, 214, 0.08);
}

.ai-grid {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(233, 232, 214, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 232, 214, 0.05) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(circle at 58% 48%, #000 0 32%, transparent 76%);
}

.ai-line {
  position: absolute;
  width: 52vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233, 232, 214, 0.28), transparent);
  opacity: 0.42;
  transform-origin: center;
  animation: ai-line-drift 14s ease-in-out infinite alternate;
}

.ai-line-one {
  top: 28%;
  left: 42%;
  transform: rotate(-18deg);
}

.ai-line-two {
  right: 34%;
  bottom: 24%;
  animation-duration: 18s;
  transform: rotate(14deg);
}

.ai-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: end;
}

.home-ai h2 {
  max-width: 880px;
  margin-top: 26px;
  font-size: clamp(42px, 5.8vw, 94px);
}

.ai-copy {
  display: grid;
  gap: 34px;
}

.ai-copy p {
  max-width: 440px;
  margin: 0;
  color: rgba(233, 232, 214, 0.62);
  font-size: 16px;
  line-height: 1.7;
}

.ai-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ai-terms span {
  padding: 11px 13px;
  border: 1px solid rgba(233, 232, 214, 0.12);
  border-radius: 999px;
  background: rgba(233, 232, 214, 0.035);
  color: rgba(233, 232, 214, 0.64);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.home-courses {
  padding: clamp(100px, 12vw, 170px) 0;
}

.course-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(233, 232, 214, 0.1);
  border-radius: 28px;
  background: rgba(233, 232, 214, 0.1);
}

.course-list article {
  display: grid;
  min-height: 330px;
  align-content: space-between;
  padding: clamp(24px, 3vw, 38px);
  background:
    linear-gradient(145deg, rgba(233, 232, 214, 0.045), rgba(233, 232, 214, 0.006)),
    #030303;
}

.course-list h3 {
  max-width: 330px;
  margin: clamp(52px, 7vw, 92px) 0 16px;
  color: var(--cream);
  font-size: clamp(25px, 2.8vw, 42px);
  font-weight: 540;
  line-height: 1;
}

.course-list p {
  max-width: 320px;
  margin: 0 0 26px;
  color: rgba(233, 232, 214, 0.56);
  font-size: 14px;
  line-height: 1.58;
}

.home-final-cta {
  padding: 0 0 clamp(80px, 10vw, 130px);
}

.final-cta-panel {
  position: relative;
  display: grid;
  min-height: clamp(460px, 54vw, 660px);
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.34fr);
  gap: 34px;
  align-items: end;
  overflow: hidden;
  padding: clamp(34px, 5vw, 74px);
  border: 1px solid rgba(233, 232, 214, 0.08);
  border-radius: 32px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.28)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.08)),
    url("assets/prisma-hero.png");
  background-position: center;
  background-size: cover;
  box-shadow:
    0 36px 110px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(233, 232, 214, 0.06);
}

.final-cta-panel h2 {
  margin-top: 24px;
  font-size: clamp(44px, 6.3vw, 104px);
}

.final-cta-copy {
  display: grid;
  gap: 22px;
  justify-items: start;
}

.final-cta-copy p {
  max-width: 320px;
  margin: 0;
  color: rgba(233, 232, 214, 0.72);
  font-size: clamp(18px, 1.7vw, 28px);
  font-weight: 540;
  line-height: 1.14;
}

.site-footer {
  padding: 0 0 44px;
  background: #000;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto minmax(180px, auto);
  gap: clamp(26px, 5vw, 78px);
  align-items: start;
  padding-top: 38px;
  border-top: 1px solid rgba(233, 232, 214, 0.1);
}

.footer-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--cream);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.footer-grid p {
  margin: 0;
  color: rgba(233, 232, 214, 0.52);
  font-size: 12px;
  line-height: 1.55;
}

.footer-grid nav {
  display: grid;
  gap: 10px;
}

.footer-grid a {
  color: rgba(233, 232, 214, 0.6);
  font-size: 12px;
  font-weight: 650;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.footer-grid a:hover {
  color: var(--cream);
  transform: translateX(3px);
}

.footer-rights {
  text-align: right;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes ai-line-drift {
  from {
    opacity: 0.22;
    translate: -18px 0;
  }

  to {
    opacity: 0.48;
    translate: 18px 0;
  }
}

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

  .ai-line {
    animation: none;
  }
}

@media (max-width: 980px) {
  .manifesto-grid,
  .ai-layout,
  .project-feature,
  .project-feature-reverse,
  .final-cta-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .project-feature-reverse .project-media {
    order: 0;
  }

  .service-card-grid,
  .course-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editorial-service-card {
    min-height: 320px;
  }

  .process-track {
    grid-template-columns: 1fr;
    border-top: 0;
    border-left: 1px solid rgba(233, 232, 214, 0.16);
    padding-left: 24px;
  }

  .process-progress {
    top: 0;
    left: -1px;
    width: 1px;
    height: var(--progress, 0%);
  }

  .process-track article {
    min-height: 190px;
    padding-top: 0;
  }

  .process-track h3 {
    margin-top: 34px;
  }

  .footer-rights {
    text-align: left;
  }

  .mio-hero-content,
  .mio-details-grid {
    grid-template-columns: 1fr;
  }

  .mio-hero-content {
    align-content: end;
  }

  .mio-hero-copy {
    max-width: 520px;
    margin-bottom: 0;
  }
}

@media (max-width: 640px) {
  .home-section-inner {
    width: min(100% - 34px, 1180px);
  }

  .home-manifesto,
  .home-services,
  .home-projects,
  .home-process,
  .home-courses {
    padding-block: 86px;
  }

  .manifesto-grid h2,
  .section-heading h2,
  .home-ai h2,
  .final-cta-panel h2 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .manifesto-copy {
    margin-left: 0;
  }

  .service-card-grid,
  .course-list {
    grid-template-columns: 1fr;
  }

  .editorial-service-card {
    min-height: 260px;
    border-right: 0;
    border-bottom: 1px solid rgba(233, 232, 214, 0.1);
  }

  .editorial-service-card:last-child {
    border-bottom: 0;
  }

  .project-media {
    min-height: 300px;
    border-radius: 22px;
  }

  .project-copy h3 {
    font-size: clamp(34px, 11vw, 54px);
  }

  .home-ai {
    min-height: 700px;
  }

  .ai-grid {
    background-size: 56px 56px;
  }

  .process-line {
    line-height: 1.8;
  }

  .final-cta-panel {
    min-height: 540px;
    padding: 28px;
    border-radius: 24px;
    background-position: 58% center;
  }

  .mio-hero {
    min-height: 720px;
    margin: 12px;
    border-radius: 24px;
  }

  .mio-hero-media {
    background-position: center;
  }

  .mio-hero-content {
    padding: 88px 24px 28px;
  }

  .mio-hero h1 {
    font-size: clamp(42px, 13vw, 64px);
  }

  .mio-details article {
    min-height: 260px;
  }
}
