/* =============================================================================
   NOMAD STUDIO — Design System
   Asap is the product's typeface; the site uses it so the web feels like the app.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Surfaces — near-black with a blue cast, matching the app canvas */
  --ink-900:  #04060C;
  --ink-850:  #070A13;
  --ink-800:  #0A0F1E;
  --ink-750:  #0E1526;
  --ink-700:  #121B33;
  --ink-600:  #18223F;

  --line:      rgba(255, 255, 255, .07);
  --line-2:    rgba(255, 255, 255, .13);
  --line-glow: rgba(122, 160, 255, .28);

  /* Text */
  --txt:   #EAEEF8;
  --txt-2: #A3AEC8;
  --txt-3: #6B7793;

  /* Accents */
  --blue:   #4D7CFE;
  --blue-2: #7AA0FF;
  --violet: #8B5CF6;
  --purple: #A855F7;
  --cyan:   #22D3EE;
  --sky:    #38BDF8;
  --teal:   #2DD4BF;
  --amber:  #F5A524;
  --pink:   #F472B6;
  --green:  #34D399;

  /* Space colour coding — mirrors the app's six spaces */
  --c-create:  #7c7bf7;
  --c-refine:  #8B5CF6;
  --c-mix:     #22D3EE;
  --c-build:   #F5A524;
  --c-session: #34D399;
  --c-album:   #F472B6;

  --grad-brand: linear-gradient(100deg, #4D7CFE 0%, #8B5CF6 55%, #C084FC 100%);
  --grad-text:  linear-gradient(100deg, #9DBBFF 0%, #C4A9FF 60%, #F0C8FF 100%);

  /* Type */
  --font: 'Asap', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;

  /* Metrics */
  --wrap: 1280px;
  --wrap-wide: 1520px;
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 30px;

  --shadow:    0 18px 50px -20px rgba(0, 0, 0, .8);
  --shadow-lg: 0 40px 100px -30px rgba(0, 0, 0, .95);

  --nav-h: 68px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* Hero Scrim / Overlay — balanced cinematic gradient protecting copy legibility while keeping images vibrant */
  --hero-scrim-top: linear-gradient(to bottom, rgba(4, 6, 12, .75) 0%, rgba(4, 6, 12, .45) 80px, transparent 160px);
  --hero-scrim-side: linear-gradient(98deg, rgba(4, 6, 12, .86) 0%, rgba(4, 6, 12, .72) 28%, rgba(4, 6, 12, .24) 50%, transparent 66%);
  --hero-scrim-bottom: linear-gradient(to top, var(--ink-900) 2%, transparent 26%);
  --hero-scrim: var(--hero-scrim-top), var(--hero-scrim-side), var(--hero-scrim-bottom);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  color: var(--txt-2);
  background: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient field — a very slow blue/violet wash behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 620px at 12% -8%,  rgba(77, 124, 254, .16), transparent 62%),
    radial-gradient(760px 560px at 92% 4%,   rgba(139, 92, 246, .13), transparent 60%),
    radial-gradient(1100px 700px at 50% 108%, rgba(34, 211, 238, .07), transparent 62%);
}
/* Faint engineering grid — echoes the app canvas */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 72%);
          mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 72%);
}

svg, video { max-width: 100%; display: block; }
/* height:auto is what keeps the width/height attributes from stretching the
   screenshots — those attributes are there to reserve layout space, not to size. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: rgba(122, 160, 255, .32); color: #fff; }

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

/* ---------- 3. Typography ------------------------------------------------ */
h1, h2, h3, h4, h5 {
  margin: 0;
  color: var(--txt);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.d1 { font-size: clamp(2.9rem, 6.4vw, 5.4rem); font-weight: 800; letter-spacing: normal; line-height: 1.02; word-break: keep-all; }
.d2 { font-size: clamp(1.85rem, 3.2vw, 2.65rem); font-weight: 800; letter-spacing: normal; line-height: 1.15; text-wrap: balance; word-break: keep-all; }
.d3 { font-size: clamp(1.7rem, 2.7vw, 2.5rem); font-weight: 700; letter-spacing: normal; word-break: keep-all; }
.d4 { font-size: clamp(1.22rem, 1.6vw, 1.5rem); font-weight: 700; letter-spacing: normal; word-break: keep-all; }

.lead {
  font-size: clamp(1.06rem, 1.35vw, 1.28rem);
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 62ch;
}
.lead strong {
  color: #ffffff;
}

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

/* Brand word — the app's heavy italic Asap */
.brandtype { font-weight: 800; font-style: italic; letter-spacing: normal; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(.84rem, .98vw, .96rem);
  font-weight: 700;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--blue-2);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
  opacity: .6;
}
.eyebrow.is-plain {
  font-size: clamp(.88rem, 1.08vw, 1.02rem);
  font-weight: 800;
  letter-spacing: normal;
}
.eyebrow.is-plain::before { display: none; }

.mono {
  font-family: var(--mono);
  font-size: .82em;
  letter-spacing: normal;
}

/* ---------- 4. Layout ---------------------------------------------------- */
.wrap   { width: min(100% - 44px, var(--wrap)); margin-inline: auto; }
.wrap-w { width: min(100% - 44px, var(--wrap-wide)); margin-inline: auto; }

section { position: relative; }
.sec    { padding-block: clamp(72px, 9vw, 132px); }
.sec-sm { padding-block: clamp(52px, 6vw, 84px); }

.sec-head { max-width: 900px; margin-bottom: clamp(38px, 5vw, 62px); }
.sec-head.is-center { margin-inline: auto; text-align: center; }
.sec-head.is-center .lead { margin-inline: auto; }
.sec-head .d2 { margin-block: 16px 18px; }

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--line-2) 22%, var(--line-2) 78%, transparent);
}

.grid { display: grid; gap: 22px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1000px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
}

/* ---------- 5. Buttons --------------------------------------------------- */
.btn {
  --btn-bg: var(--grad-brand);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: #fff;
  font-weight: 700;
  font-size: .97rem;
  letter-spacing: normal;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 12px 30px -12px rgba(77, 124, 254, .8);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), filter .28s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 20px 42px -14px rgba(77, 124, 254, .9); filter: saturate(1.12); }
.btn:active { transform: translateY(0); }

.btn-ghost {
  --btn-bg: transparent;
  color: var(--txt);
  border: 1px solid var(--line-2);
  box-shadow: none;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  border-color: var(--line-glow);
  background: rgba(122, 160, 255, .09);
  box-shadow: none;
  filter: none;
}

.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn-lg { padding: 16px 34px; font-size: 1.04rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue-2);
  font-weight: 600;
  font-size: .94rem;
}
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 6. Surfaces / cards ------------------------------------------ */
.card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(168deg, rgba(255,255,255,.045), rgba(255,255,255,.012) 42%, transparent 78%),
    var(--ink-800);
  overflow: hidden;
  transition: border-color .32s var(--ease), transform .32s var(--ease), background .32s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent, var(--blue)), transparent);
  opacity: 0;
  transition: opacity .32s var(--ease);
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card:hover::after { opacity: .75; }

.card .d4 { margin-bottom: 9px; }
.card p { margin: 0; font-size: .95rem; line-height: 1.58; color: var(--txt-2); }

/* Card with background image & cinematic fade — Mini Hero Banners */
.card-visual {
  position: relative;
  isolation: isolate;
  min-height: 270px;
  padding: 36px 32px;
  background: #04060c;
  border-radius: var(--r-lg, 18px);
  border: none !important;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.card-visual::after {
  display: none !important;
}
.card-visual .card-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}
.card-visual .card-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--card-bg-pos, 75% center);
  opacity: 1;
  filter: brightness(0.72) contrast(1.08) saturate(1.06);
  transform: scale(1.001);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}
.card-visual:hover .card-bg-img {
  transform: scale(1.04);
  filter: brightness(0.80) contrast(1.1) saturate(1.15);
}
.card-visual .card-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    /* Directional lateral scrim (darker behind text) + vertical gradient (protecting top eyebrow & bottom tags) */
    linear-gradient(92deg, rgba(4, 6, 12, 0.94) 0%, rgba(4, 6, 12, 0.82) 32%, rgba(4, 6, 12, 0.44) 62%, rgba(4, 6, 12, 0.12) 82%, transparent 100%),
    linear-gradient(180deg, rgba(4, 6, 12, 0.35) 0%, transparent 35%, rgba(4, 6, 12, 0.72) 100%);
  pointer-events: none;
}
.card-visual > :not(.card-bg-wrap) {
  position: relative;
  z-index: 1;
}
.card-visual .eyebrow {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
}
.card-visual .d4 {
  color: #FFFFFF;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.22;
  margin-bottom: 12px;
  max-width: 54%;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 0 20px rgba(0, 0, 0, 0.7);
}
.card-visual p {
  color: #F8FAFC;
  font-size: 0.94rem;
  line-height: 1.58;
  max-width: 53%;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95), 0 0 16px rgba(0, 0, 0, 0.85);
}
.card-visual .control-card-tags {
  color: #CBD5E1;
  border-top-color: rgba(255, 255, 255, 0.14);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
}
.card-visual .link-arrow {
  color: #38bdf8;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95);
}
.card-visual:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.8), 0 0 35px -6px color-mix(in oklab, var(--accent, var(--c-mix)) 40%, transparent);
}

@media (max-width: 768px) {
  .card-visual .d4,
  .card-visual p {
    max-width: 100%;
  }
  .card-visual .card-bg-overlay {
    background:
      linear-gradient(180deg, rgba(4, 6, 12, 0.82) 0%, rgba(4, 6, 12, 0.94) 100%);
  }
}

/* Icon chip */
.ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 13px;
  border: 1px solid color-mix(in oklab, var(--accent, var(--blue)) 42%, transparent);
  background: color-mix(in oklab, var(--accent, var(--blue)) 15%, transparent);
  color: var(--accent, var(--blue));
}
.ico svg { width: 21px; height: 21px; }

/* Tag pills */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tag {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: normal;
  color: var(--txt-3);
  white-space: nowrap;
}
.tag.is-accent {
  border-color: color-mix(in oklab, var(--accent, var(--blue)) 45%, transparent);
  background: color-mix(in oklab, var(--accent, var(--blue)) 14%, transparent);
  color: color-mix(in oklab, var(--accent, var(--blue)) 78%, white);
}

/* Surface Panel */
.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    linear-gradient(168deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01) 45%, transparent 80%),
    var(--ink-850);
  overflow: hidden;
}
.panel::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent, var(--line-2)), transparent);
  opacity: .85;
}



/* ---------- 7. Header ---------------------------------------------------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.hdr::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--nav-h) + 54px);
  background: linear-gradient(180deg, rgba(4, 6, 12, .92) 0%, rgba(4, 6, 12, .72) 42%, rgba(4, 6, 12, .25) 75%, transparent 100%);
  pointer-events: none;
  z-index: -1;
  transition: opacity .3s var(--ease);
}
.hdr.is-stuck {
  background: rgba(4, 6, 12, .82);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
          backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}
.hdr.is-stuck::before {
  opacity: 0;
}
.hdr .wrap-w { display: flex; align-items: center; gap: 26px; }

.logo { display: flex; align-items: center; gap: 10px; margin-right: 6px; transform: translateY(2px); }
.logo img { width: 30px; height: 30px; }
/* The wordmark is always set in capitals, the way the app renders it.
   Caps need positive tracking where the title-case version wanted negative. */
.logo b {
  font-family: 'Fugaz One', cursive, sans-serif;
  font-size: 1.12rem;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
  color: var(--txt);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}
.logo b span { color: var(--blue-2); }

.nav { display: flex; align-items: center; gap: 3px; margin-left: 8px; }
.nav a {
  padding: 8px 9px;
  border-radius: 9px;
  font-size: calc(.96rem + 4px);
  font-weight: 600;
  color: var(--txt);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
  transition: color .2s, background .2s;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a.is-active {
  color: #fff;
  background: linear-gradient(100deg, #7099ff 0%, #b485ff 50%, #e599ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  filter: drop-shadow(0 0 10px rgba(180, 133, 255, 0.45));
}
.nav a.is-active:hover {
  background: linear-gradient(100deg, #8cb0ff 0%, #c49eff 50%, #efaeff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 14px rgba(180, 133, 255, 0.7));
}

.hdr-end { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.langs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(4, 6, 12, .55);
  backdrop-filter: blur(8px);
}
.langs button {
  width: 44px;
  min-width: 44px;
  padding: 4px 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: .76rem;
  font-weight: 700;
  color: var(--txt-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background .2s, color .2s;
}
.langs button:hover { color: #fff; }
.langs button.is-on { background: var(--grad-brand); color: #fff; box-shadow: 0 2px 8px rgba(77, 124, 254, .4); }

.burger {
  display: none;
  width: 42px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 17px; height: 1.6px;
  margin: 3.4px auto;
  background: var(--txt);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.burger.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1440px) {
  .burger { display: block; }
  .nav {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 16px 22px 26px;
    background: rgba(4, 6, 12, .97);
    -webkit-backdrop-filter: blur(20px);
            backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: .28s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 12px 14px; font-size: calc(1.04rem + 4px); }
  .nav .langs { display: flex; width: fit-content; margin: 12px 14px 0; }
  .nav { max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; }
}
@media (max-width: 560px) { .hdr-end .btn { display: none; } }

/* ---------- 8. Hero ------------------------------------------------------ */
/* Full-bleed showcase hero: the work fills the frame, the tab strip along the
   bottom swaps both the image and the claim. Every image here was generated by
   the studio itself. */
.hero-x {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Fill the fold. A taller frame is not just more presence — the artwork is
     16:9, so the taller the box, the less of it cover() has to crop away. */
  min-height: min(100vh, 1000px);
  overflow: hidden;
  isolation: isolate;
  /* Slide up under the sticky header so the artwork runs edge to edge and the
     nav floats on it. The inner padding gives the height straight back. */
  margin-top: calc(var(--nav-h) * -1);
}

.hero-x-media { position: absolute; inset: 0; z-index: -1; }
.hero-x-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s var(--ease), transform 8s linear;
}
.hero-x-media img.is-on { opacity: 1; transform: scale(1); }
/* Scrim: dark from the left for the copy, and a hard fade into the page below */
.hero-x-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-scrim);
}

.hero-x-inner {
  position: relative;
  /* The nav-h term replaces the space the negative margin above took away.
     The copy plus the tab strip still has to clear a 1080p screen, and the
     section's min-height does not stop tall content from overflowing. */
  padding-block: calc(var(--nav-h) + clamp(40px, 5vw, 72px)) clamp(28px, 3vw, 40px);
  padding-inline: clamp(0px, 3.5vw, 54px);
}
/* Sized down from the global .d1 so each sentence lands on two balanced lines
   inside the left half of the frame, instead of leaving one-word orphans. */
.hero-x-inner .d1 {
  margin-block: 20px 20px;
  font-size: clamp(2.5rem, 4.7vw, 4.5rem);
  max-width: 16ch;
  text-wrap: balance;
}
.hero-x-inner .lead {
  max-width: 46ch;
  font-size: clamp(1.06rem, 1.28vw, 1.28rem);
  color: #e2e8f0;
}
.hero-x-inner .lead strong {
  color: #ffffff;
}
.hero-x-inner .btn-row { margin-top: 30px; }
.hero-x-inner .hero-note { margin-top: 16px; }

/* The copy swaps with the tab. site.js measures all five variants and locks
   this to the tallest, so switching never nudges the buttons; the value here
   is only the no-JS fallback. */
.hero-copy { min-height: 290px; }
@media (max-width: 900px) { .hero-copy { min-height: 0; } }

/* Headline and paragraph drop in from above on every slide change. The lead
   trails the headline slightly so the two read as one movement, not a jump. */
.hero-copy .d1,
.hero-copy .lead {
  transition: opacity .44s var(--ease), transform .44s var(--ease);
}
.hero-copy .lead { transition-delay: .08s; }

/* leaving: sink and fade, both together */
.hero-copy.is-exiting .d1,
.hero-copy.is-exiting .lead {
  opacity: 0;
  transform: translateY(12px);
  transition-duration: .2s;
  transition-delay: 0s;
}

/* the instant before entering: parked above, with no transition to get there */
.hero-copy.is-entering .d1,
.hero-copy.is-entering .lead {
  opacity: 0;
  transform: translateY(-22px);
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy .d1,
  .hero-copy .lead { transition: none; transform: none; opacity: 1; }
}

.hero-note { margin-top: 20px; font-size: .84rem; color: var(--txt-3); }

/* FREE · OPEN SOURCE · LOCAL · PRIVATE */
.pillars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 6px;
  font-size: calc(.82rem + 4px);
  font-weight: 800;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--blue-2);
}
.pillars span { display: inline-flex; align-items: center; gap: 14px; }
.pillars span + span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: .6;
}

/* Tab strip — the six spaces, each swapping the image behind it */
.hero-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  padding-inline: clamp(0px, 3.5vw, 54px);
  padding-bottom: clamp(48px, 6vh, 64px);
}
.hero-tab {
  position: relative;
  display: block;
  padding: 12px 14px 14px;
  border: none;
  border-radius: 16px;
  background:
    linear-gradient(180deg,
      color-mix(in oklab, var(--accent, var(--blue)) 42%, #141b2c) 0%,
      color-mix(in oklab, var(--accent, var(--blue)) 22%, #0e1320) 45%,
      color-mix(in oklab, var(--accent, var(--blue)) 10%, #070a12) 100%
    );
  box-shadow: none;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.hero-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity .3s var(--ease);
  background: radial-gradient(220px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), color-mix(in oklab, var(--accent, var(--blue)) 45%, transparent), transparent 70%);
}
.hero-tab:hover::before {
  opacity: 1;
}
.hero-tab:hover {
  transform: translateY(-2px);
  background:
    linear-gradient(180deg,
      color-mix(in oklab, var(--accent, var(--blue)) 55%, #18223a) 0%,
      color-mix(in oklab, var(--accent, var(--blue)) 30%, #101626) 45%,
      color-mix(in oklab, var(--accent, var(--blue)) 14%, #070a12) 100%
    );
}
.hero-tab.is-on {
  background:
    linear-gradient(180deg,
      color-mix(in oklab, var(--accent, var(--blue)) 84%, #18223a) 0%,
      color-mix(in oklab, var(--accent, var(--blue)) 58%, #0f1526) 38%,
      color-mix(in oklab, var(--accent, var(--blue)) 30%, #090d18) 72%,
      color-mix(in oklab, var(--accent, var(--blue)) 16%, #05070e) 100%
    );
}
.hero-tab.is-on:hover {
  background:
    linear-gradient(180deg,
      color-mix(in oklab, var(--accent, var(--blue)) 90%, #202b48) 0%,
      color-mix(in oklab, var(--accent, var(--blue)) 65%, #12192c) 38%,
      color-mix(in oklab, var(--accent, var(--blue)) 36%, #0a0e1a) 72%,
      color-mix(in oklab, var(--accent, var(--blue)) 20%, #05070e) 100%
    );
}
.hero-tab > * {
  position: relative;
  z-index: 2;
}
.hero-tab-k {
  display: block;
  font-size: .93rem;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: uppercase;
  color: #C6D2E8;
  transition: color .3s var(--ease);
}
.hero-tab.is-on .hero-tab-k {
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}
.hero-tab-d {
  display: block;
  margin-top: 5px;
  font-size: .86rem;
  line-height: 1.42;
  color: #A3B0CA;
  transition: color .3s var(--ease);
}
.hero-tab.is-on .hero-tab-d {
  color: #F0F4FC;
}
/* Progress line for the auto-advance */
.hero-tab-bar {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2.5px;
  background: var(--accent, var(--blue));
  box-shadow: 0 0 10px color-mix(in oklab, var(--accent, var(--blue)) 80%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 3;
}
.hero-tab.is-on .hero-tab-bar { animation: heroBar var(--hero-dwell, 7s) linear forwards; }
.hero-tabs.is-paused .hero-tab-bar { animation-play-state: paused; }
@keyframes heroBar { to { transform: scaleX(1); } }

.hero-pause {
  position: absolute;
  right: 0;
  top: -42px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(8, 11, 20, .6);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  color: var(--txt-2);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.hero-pause:hover { border-color: var(--line-glow); color: var(--txt); }

@media (max-width: 1100px) {
  .hero-tabs { grid-template-columns: repeat(3, 1fr); }
  .hero-tab-d { display: none; }
}
@media (max-width: 640px) {
  .hero-tabs { grid-template-columns: repeat(2, 1fr); }
  .hero-pause { top: -40px; }
}
/* Short viewports (a 1080p screen with browser chrome) — trim the copy rather
   than pushing the tab strip off the bottom of the screen. */
@media (max-height: 900px) and (min-width: 901px) {
  .hero-x-inner { padding-block: calc(var(--nav-h) + 30px) 24px; }
  .hero-x-inner .d1 { font-size: clamp(2.2rem, 3.7vw, 3.5rem); margin-block: 16px; }
  .hero-copy { min-height: 252px; }
}
@media (max-height: 760px) and (min-width: 901px) {
  .hero-x-inner { padding-block: calc(var(--nav-h) + 20px) 18px; }
  .hero-x-inner .d1 { font-size: clamp(2rem, 3.1vw, 2.9rem); margin-block: 12px; }
  .hero-x-inner .lead { font-size: 1.02rem; }
  .hero-copy { min-height: 214px; }
}
@media (max-width: 520px) {
  .hero-x-inner .d1 { max-width: none; }
  .hero-x-media::after {
    background:
      linear-gradient(180deg, rgba(4,6,12,.86) 0%, rgba(4,6,12,.7) 45%, rgba(4,6,12,.86) 100%),
      linear-gradient(to top, var(--ink-900) 2%, transparent 40%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-x-media img { transition: opacity .01ms; transform: none; }
  .hero-tab.is-on .hero-tab-bar { animation: none; transform: scaleX(1); }
}

/* Product shot frame — the app screenshot presented like hardware */
.shot {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: var(--ink-850);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.shot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09);
}
.shot img { width: 100%; }

/* Portrait crops of the app's parameter rail — kept narrow so they read as a
   panel rather than swallowing the column. */
.shot.is-panel { max-width: 430px; margin-inline: auto; }

.shot-hero { margin-top: clamp(40px, 5vw, 66px); }
.shot-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(to top, var(--ink-900) 4%, transparent);
  pointer-events: none;
  z-index: 1;
}
/* Glow bed under the hero shot */
.shot-glow { position: relative; }
.shot-glow::before {
  content: "";
  position: absolute;
  inset: 14% 6% -8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(77,124,254,.34), transparent 68%);
  filter: blur(66px);
}

/* Marquee of engines under hero */
.strip { border-block: 1px solid var(--line); padding-block: 22px; overflow: hidden; }
.strip-lbl {
  font-size: .72rem; font-weight: 700; letter-spacing: normal;
  text-transform: uppercase; color: var(--txt-3);
  text-align: center; margin-bottom: 16px;
}
.strip-track { display: flex; gap: 46px; width: max-content; animation: slide 46s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip-track span {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: normal;
  color: var(--txt-3);
  white-space: nowrap;
  transition: color .3s;
}
.strip-track span:hover { color: var(--blue-2); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 8b. Output gallery ------------------------------------------- */
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .gal { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gal { grid-template-columns: 1fr; } }

.gal figure {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--ink-850);
}
.gal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform-origin: center top;
  transition: transform .7s var(--ease);
}
.gal figure:hover img { transform: scale(1.05); }

/* Hovering a tile reveals what the studio actually reported for that render —
   the same badges the app puts on a result card. */
.gal figure::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4,6,12,.86) 12%, rgba(4,6,12,.3) 55%, transparent 85%);
  opacity: 0;
  transition: opacity .32s var(--ease);
  pointer-events: none;
}
.gal figure:hover::before,
.gal figure:focus-within::before { opacity: 1; }

.gal-meta {
  position: absolute;
  left: 13px;
  bottom: 46px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  pointer-events: none;
}
.gal-badge {
  padding: 3px 9px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 7px;
  background: rgba(4,6,12,.72);
  -webkit-backdrop-filter: blur(7px);
          backdrop-filter: blur(7px);
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: normal;
  color: var(--txt);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(9px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.gal figure:hover .gal-badge,
.gal figure:focus-within .gal-badge { opacity: 1; transform: none; }
.gal-badge:nth-child(2) { transition-delay: .05s; }
.gal-badge:nth-child(3) { transition-delay: .1s; }
.gal-badge.is-model { color: var(--blue-2); border-color: rgba(122,160,255,.4); }

/* No hover on touch — just show them. */
@media (hover: none) {
  .gal figure::before { opacity: 1; }
  .gal-badge { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gal-badge { transition: opacity .2s; transform: none; }
}
.gal figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 26px 15px 13px;
  background: linear-gradient(to top, rgba(4,6,12,.9), transparent);
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--txt);
}

/* ---------- 9. Stats / Showcase strip ----------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.8vw, 20px);
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 24px clamp(14px, 1.8vw, 22px) 20px;
  min-height: clamp(185px, 17vw, 225px);
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,.14);
  background: var(--ink-950);
  overflow: hidden;
  box-shadow: 0 12px 32px -12px rgba(0,0,0,.75);
  transition: transform .32s var(--ease), border-color .32s var(--ease), box-shadow .32s var(--ease);
}
.stat:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.38);
  box-shadow: 0 20px 44px -12px rgba(0,0,0,.88);
}
.stat-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .88;
  filter: saturate(1.15) contrast(1.05);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.stat:hover .stat-bg {
  opacity: 1;
  transform: scale(1.05);
}
.stat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,10,24,0) 25%, rgba(4,7,18,.5) 65%, rgba(2,4,12,.88) 100%);
  pointer-events: none;
}
.stat .stat-title {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(1.08rem, 1.3vw, 1.32rem);
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.25;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,.95), 0 4px 16px rgba(0,0,0,.9), 0 1px 2px #000;
}
.stat .stat-sub {
  position: relative;
  z-index: 2;
  margin: 6px 0 0;
  font-size: .95rem;
  line-height: 1.4;
  color: rgba(255,255,255,.88);
  text-shadow: 0 1px 6px rgba(0,0,0,.95);
}
.flow-spaces .stat { min-height: clamp(220px, 20vw, 280px); }
.flow-ai-note {
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  color: var(--txt-2, rgba(255,255,255,.72));
  font-size: .98rem;
}
.flow-ai-chip {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  font-weight: 600;
  font-size: .88rem;
  white-space: nowrap;
}
.flow-ai-chip.is-ai {
  border-color: rgba(167,139,250,.6);
  background: rgba(139,92,246,.18);
}
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stat { min-height: 165px; }
}
@media (max-width: 540px) {
  .stats { grid-template-columns: 1fr; gap: 12px; }
  .stat { min-height: 145px; }
}

/* ---------- 10. Feature rows (alternating) ------------------------------- */
.row {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
}
.row + .row { margin-top: clamp(72px, 8vw, 118px); }
.row.is-flip > *:first-child { order: 2; }
@media (max-width: 940px) {
  .row { grid-template-columns: 1fr; gap: 30px; }
  .row.is-flip > *:first-child { order: 0; }
}

.row .d3 { margin-block: 15px 16px; }

.checks { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.checks li { position: relative; padding-left: 28px; font-size: .96rem; line-height: 1.52; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .48em;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--accent, var(--blue)) 55%, transparent);
  background: linear-gradient(color-mix(in oklab, var(--accent, var(--blue)) 22%, transparent), transparent);
}
.checks li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: calc(.48em + 4px);
  width: 4px;
  height: 7px;
  border: solid var(--accent, var(--blue));
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(42deg);
}
.checks strong { color: var(--txt); font-weight: 700; }

/* ---------- 11. Spec table (parameters) ---------------------------------- */
.spec-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
table.spec { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .92rem; }
table.spec th, table.spec td {
  padding: 13px 18px; text-align: left;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
table.spec thead th {
  position: sticky;
  top: 0;
  background: var(--ink-750);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--txt-3);
}
table.spec tbody tr { background: var(--ink-850); transition: background .2s; }
table.spec tbody tr:hover { background: var(--ink-800); }
table.spec tbody tr:last-child td { border-bottom: 0; }
table.spec td:first-child { color: var(--txt); font-weight: 600; white-space: nowrap; }
table.spec code {
  font-family: var(--mono);
  font-size: .84em;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(122,160,255,.11);
  color: var(--blue-2);
  white-space: nowrap;
}

/* ---------- 12. Flow catalog --------------------------------------------- */
.cat-layout { display: grid; grid-template-columns: 262px minmax(0, 1fr); gap: 38px; align-items: start; }
@media (max-width: 940px) { .cat-layout { grid-template-columns: 1fr; gap: 22px; } }

.filters { position: sticky; top: calc(var(--nav-h) + 20px); }
@media (max-width: 940px) { .filters { position: static; } }

.filter-grp + .filter-grp { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.filter-grp h4 {
  font-size: .72rem; font-weight: 700; letter-spacing: normal;
  text-transform: uppercase; color: var(--txt-3); margin-bottom: 13px;
}

.fbtn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 3px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--txt-2);
  font-size: .92rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.fbtn:hover { background: rgba(255,255,255,.05); color: var(--txt); }
.fbtn.is-on {
  color: var(--txt);
  border-color: color-mix(in oklab, var(--accent, var(--blue)) 45%, transparent);
  background: color-mix(in oklab, var(--accent, var(--blue)) 13%, transparent);
}
.fbtn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent, var(--txt-3)); flex: none; }
.fbtn .n { margin-left: auto; font-family: var(--mono); font-size: .76rem; color: var(--txt-3); }

.search { position: relative; display: flex; align-items: center; margin-bottom: 22px; }
.search svg { position: absolute; left: 16px; width: 17px; height: 17px; color: var(--txt-3); pointer-events: none; }
.search input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ink-800);
  color: var(--txt);
  font: inherit;
  font-size: .96rem;
  transition: border-color .2s, background .2s;
}
.search input::placeholder { color: var(--txt-3); }
.search input:focus { outline: none; border-color: var(--line-glow); background: var(--ink-750); }

.cat-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 18px; font-size: .88rem; color: var(--txt-3);
}
.cat-meta b { color: var(--txt); font-variant-numeric: tabular-nums; }

.flow-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 16px; }

.flow {
  --accent: var(--blue);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(165deg, rgba(255,255,255,.04), transparent 62%), var(--ink-800);
  transition: border-color .28s var(--ease), transform .28s var(--ease), box-shadow .28s var(--ease);
}
.flow:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--accent) 46%, transparent);
  box-shadow: 0 16px 40px -22px color-mix(in oklab, var(--accent) 70%, transparent);
}
.flow-top { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.flow-cat { font-size: .68rem; font-weight: 800; letter-spacing: normal; text-transform: uppercase; color: var(--accent); }
.flow-grp { font-size: .68rem; font-weight: 600; letter-spacing: normal; text-transform: uppercase; color: var(--txt-3); }
.flow-grp::before { content: "/"; margin-right: 7px; opacity: .5; }
.flow h3 { font-size: 1.06rem; font-weight: 700; letter-spacing: normal; margin-bottom: 8px; }
.flow p { flex: 1; margin: 0; font-size: .885rem; line-height: 1.55; color: var(--txt-2); }
.flow .tags { margin-top: 14px; }
.flow .tag { font-size: .69rem; padding: 2px 8px; }

.flow[data-cat="create"] { --accent: var(--c-create); }
.flow[data-cat="refine"] { --accent: var(--c-refine); }
.flow[data-cat="mix"]    { --accent: var(--c-mix); }

.empty { padding: 60px 20px; text-align: center; color: var(--txt-3); }

/* ---------- 13. Space cards (the six spaces) ----------------------------- */
#spaces {
  padding-block: clamp(34px, 4vh, 52px);
}
#spaces .sec-head {
  margin-bottom: clamp(18px, 2.4vh, 28px);
}
#spaces .sec-head .d2 {
  margin-block: 8px 10px;
}
#spaces .sec-head .lead {
  max-width: 760px;
  font-size: clamp(.96rem, 1.1vw, 1.05rem);
}
#spaces .grid.g-3 {
  gap: 24px;
  margin-top: 0;
}

.space {
  --accent: #7c7bf7;
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 16 / 9.5;
  width: 100%;
  max-width: 400px;
  padding: 1.3rem 1.4rem 1.1rem;
  border: none;
  border-radius: 21.7px;
  box-shadow: none;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--accent) 88%, white 12%) 0%,
    color-mix(in oklab, var(--accent) 44%, #181c33 56%) 34%,
    color-mix(in oklab, var(--accent) 26%, #0d1020 74%) 72%,
    color-mix(in oklab, var(--accent) 14%, #070810 86%) 100%
  );
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.space::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.2s ease;
  background: radial-gradient(200px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), color-mix(in oklab, var(--accent) 26%, transparent), transparent 70%);
}
.space:hover::before {
  opacity: 1;
}
.space::after {
  display: none;
}
.space:hover {
  transform: none; /* nada se mueve/levanta al hover */
  border: none;
  box-shadow: none;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--accent) 96%, white 4%) 0%,
    color-mix(in oklab, var(--accent) 58%, #202644 42%) 34%,
    color-mix(in oklab, var(--accent) 36%, #12162c 64%) 72%,
    color-mix(in oklab, var(--accent) 22%, #0a0c16 78%) 100%
  );
}
.space:focus,
.space:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--accent) 60%, #ffffff);
  outline-offset: 3px;
  transform: none;
  border: none;
  box-shadow: none;
}
.space:hover::after,
.space:focus::after,
.space:focus-visible::after {
  display: none;
}
.space > * { position: relative; z-index: 2; }

.space h3,
.space .space-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font, 'Asap', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif);
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  color: #f8fafc;
  margin: 0 0 9px 0;
  line-height: 1.25;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.space .space-arrow {
  display: inline-block;
  opacity: 0;
  transform: translate(-3px, 3px);
  color: color-mix(in oklab, var(--accent) 85%, white 15%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.space:hover .space-arrow,
.space:focus .space-arrow {
  opacity: 1;
  transform: translate(0, 0);
}
.space p,
.space .space-desc {
  flex: 1;
  font-family: var(--font, 'Asap', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif);
  font-size: 0.97rem;
  line-height: 1.5;
  color: #ffffff;
  margin: 0 0 14px 0;
  max-width: 86%;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.space .space-tags {
  margin-top: auto;
  font-size: 0.84rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: none;
  background: none;
  padding: 0;
}

.space .space-watermark {
  position: absolute;
  right: -10px;
  top: 48%;
  transform: translateY(-48%) rotate(12deg);
  width: 140px;
  height: 140px;
  stroke: var(--accent);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.space:hover .space-watermark {
  opacity: 0.25;
  transform: translateY(-48%) rotate(16deg) scale(1.08);
}

/* ---------- 14. Engine cards --------------------------------------------- */
.engine {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 19px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--ink-850);
  transition: border-color .26s, background .26s, transform .26s var(--ease);
}
.engine + .engine { margin-top: 10px; }
.engine:hover { border-color: var(--line-2); background: var(--ink-800); transform: translateX(3px); }
.engine-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--accent, var(--blue)) 40%, transparent);
  background: color-mix(in oklab, var(--accent, var(--blue)) 13%, transparent);
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 700;
  color: var(--accent, var(--blue));
}
.engine h4 { font-size: 1.02rem; margin-bottom: 4px; }
.engine p { margin: 0; font-size: .875rem; line-height: 1.5; }
.engine-badge {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: normal;
  color: var(--txt-3);
  white-space: nowrap;
}
@media (max-width: 700px) {
  .engine { grid-template-columns: auto minmax(0,1fr); }
  .engine-badge { grid-column: 2; justify-self: start; }
}

/* ---------- 15. Pricing -------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
@media (max-width: 940px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

.plan { position: relative; padding: 30px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--ink-850); }
.plan.is-hero {
  border-color: color-mix(in oklab, var(--blue) 48%, transparent);
  background: linear-gradient(170deg, rgba(77,124,254,.12), transparent 52%), var(--ink-800);
  box-shadow: 0 28px 70px -32px rgba(77,124,254,.6);
}
.plan-flag {
  position: absolute;
  top: -11px;
  left: 30px;
  padding: 4px 13px;
  border-radius: 999px;
  background: var(--grad-brand);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: normal;
  text-transform: uppercase;
  color: #fff;
}
.plan h3 { font-size: 1.02rem; letter-spacing: normal; text-transform: uppercase; color: var(--txt-2); }
.plan .price { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 6px; }
.plan .price b { font-size: 3.1rem; font-weight: 800; letter-spacing: normal; line-height: 1; color: var(--txt); }
.plan .price span { font-size: .9rem; color: var(--txt-3); }
.plan .plan-sub { font-size: .86rem; color: var(--txt-3); margin: 0 0 22px; }
.plan .btn { width: 100%; margin-top: 6px; }
.plan .checks { margin-bottom: 24px; }

/* ---------- 16. FAQ ------------------------------------------------------ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 22px 4px;
  border: 0;
  background: transparent;
  color: var(--txt);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: normal;
  text-align: left;
  cursor: pointer;
}
.faq-q .pm { margin-left: auto; flex: none; width: 20px; height: 20px; position: relative; }
.faq-q .pm::before, .faq-q .pm::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1.6px;
  border-radius: 2px;
  background: var(--blue-2);
  transition: transform .3s var(--ease);
}
.faq-q .pm::after { transform: rotate(90deg); }
.faq-item.is-open .pm::after { transform: rotate(0); }
.faq-a { overflow: hidden; height: 0; transition: height .34s var(--ease); }
.faq-a > div { padding: 0 40px 24px 4px; font-size: .97rem; line-height: 1.65; }

/* ---------- 17. CTA band ------------------------------------------------- */
.sec:has(.cta),
section:has(.cta),
main > .sec:last-child,
main > section:last-of-type,
.sec-cta {
  padding-block: clamp(40px, 5vw, 68px) 0 !important;
  padding-bottom: 0 !important;
}

.cta {
  position: relative;
  padding: clamp(40px, 4.5vw, 64px) clamp(22px, 3.5vw, 52px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, rgba(77,124,254,.18), rgba(139,92,246,.12) 48%, transparent 78%), var(--ink-800);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.7), 0 0 35px -10px rgba(77, 124, 254, 0.18);
  text-align: center;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: -40% 20% auto;
  height: 90%;
  background: radial-gradient(ellipse at center, rgba(122,160,255,.28), transparent 68%);
  filter: blur(60px);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta .lead { margin: 16px auto 0; max-width: 680px; }
.cta .btn-row { justify-content: center; margin-top: 26px; }

/* ---------- 18. Footer --------------------------------------------------- */
.ftr {
  border-top: 1px solid var(--line);
  padding-block: 44px 30px;
  margin-top: clamp(36px, 4vw, 54px) !important;
}
.ftr-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 38px; }
@media (max-width: 900px) { .ftr-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 520px) { .ftr-grid { grid-template-columns: 1fr; } }

.ftr h5 { font-size: .73rem; font-weight: 700; letter-spacing: normal; text-transform: uppercase; color: var(--txt-3); margin-bottom: 15px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ftr ul a { font-size: .92rem; color: var(--txt-2); transition: color .2s; }
.ftr ul a:hover { color: var(--blue-2); }
.ftr-about p { font-size: .9rem; max-width: 34ch; margin: 14px 0 0; }
.ftr-base {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: .82rem;
  color: var(--txt-3);
}
/* Footer: cookie-free badge, links to legal.html#cookies. */
.ftr-cookiefree {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--txt-3); font-size: .82rem; text-decoration: none;
}
.ftr-cookiefree::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 8px rgba(74, 222, 128, .6);
}
.ftr-cookiefree:hover { color: var(--txt); }

/* ---------- 19. Motion --------------------------------------------------- */
html.js .rv { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .rv.is-in { opacity: 1; transform: none; }
html.js .rv[data-d="1"] { transition-delay: .07s; }
html.js .rv[data-d="2"] { transition-delay: .14s; }
html.js .rv[data-d="3"] { transition-delay: .21s; }
html.js .rv[data-d="4"] { transition-delay: .28s; }
html.js .rv[data-d="5"] { transition-delay: .35s; }

@media (prefers-reduced-motion: reduce) {
  html.js .rv { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .strip-track { animation: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- 20. Utilities ------------------------------------------------ */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 22px; }
.mt-3 { margin-top: 34px; }
.mt-4 { margin-top: 48px; }
.muted { color: var(--txt-3); }
.nowrap { white-space: nowrap; }
.sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 21. MCP conversation ----------------------------------------
   The Claude/Bionic section is laid out as a transcript rather than a feature
   grid: each turn is what the user said, followed by what came back. A single
   centred column, because the three outputs have different aspect ratios and a
   fixed-cell grid would have to crop them. */
.mcp-chat { max-width: 880px; margin-inline: auto; }

.mcp-turn + .mcp-turn { margin-top: clamp(34px, 5vw, 58px); }

/* The spoken line. The dot is the speaker mark; the rule below it carries the
   eye down into the image the sentence produced. */
.mcp-say {
  position: relative;
  padding: 0 0 18px 34px;
  font-size: clamp(1.06rem, 1.5vw, 1.28rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--txt);
}
.mcp-say::before {
  content: "";
  position: absolute;
  left: 0; top: .48em;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--accent, var(--blue-2));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent, var(--blue-2)) 18%, transparent);
}
.mcp-say::after {
  content: "";
  position: absolute;
  left: 5px; top: calc(.48em + 17px); bottom: 0;
  width: 1px;
  background: linear-gradient(var(--line-2), transparent);
}
.mcp-turn:last-child .mcp-say::after { display: none; }

/* What the assistant actually sent to the studio. Kept visible on purpose —
   the point of the section is that the model writes the long prompt, not you. */
.mcp-sent {
  margin: 0 0 16px 34px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent, var(--blue-2));
  border-radius: 0 10px 10px 0;
  background: var(--ink-850);
  font-family: var(--mono);
  font-size: .78rem;
  line-height: 1.6;
  color: var(--txt-3);
}
.mcp-sent b { color: var(--blue-2); font-weight: 700; }

.mcp-out { margin-left: 34px; }

/* Result strip under each image: the action, the size, the seconds. */
.mcp-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 11px 0 0 34px;
}
.mcp-fact {
  padding: 3px 9px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 700;
  color: var(--txt-3);
}
.mcp-fact.is-key { color: var(--blue-2); border-color: rgba(122,160,255,.4); }

@media (max-width: 620px) {
  .mcp-say  { padding-left: 26px; }
  .mcp-sent, .mcp-out, .mcp-facts { margin-left: 26px; }
}

/* ---- Language models: copy-the-search-name buttons (engines.html) ------- */
/* LM Studio has no download endpoint, so the model has to be searched for by
   hand — and these names are long enough to mistype. Deliberately quiet: it is
   a convenience next to the name, not a call to action competing with it. */
.copy-model {
  display: inline-block;
  margin-top: .35rem;
  padding: .15rem .5rem;
  font: inherit;
  font-size: .74rem;
  line-height: 1.5;
  color: var(--txt-3);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.copy-model:hover,
.copy-model:focus-visible {
  color: var(--txt);
  border-color: var(--line-glow);
  background: rgba(122, 160, 255, .08);
}
.copy-model.is-done {
  color: var(--blue-2);
  border-color: var(--line-glow);
  background: rgba(122, 160, 255, .12);
}
/* Shown only when the clipboard is refused: the name, selected, ready for
   a manual Ctrl+C. */
.copy-model-fallback {
  display: block;
  width: 100%;
  margin-top: .3rem;
  padding: .18rem .4rem;
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: .72rem;
  color: var(--txt);
  background: var(--ink-750);
  border: 1px solid var(--line-glow);
  border-radius: 6px;
}

/* ==========================================================================
   REFINE: MODO CREATIVO — DE LA IDEA A LA MATERIA EN LOCAL
   ========================================================================== */

.refine-hero-cinematic {
  min-height: min(100vh, 1000px);
  justify-content: flex-start;
}
.refine-hero-cinematic .hero-x-inner {
  padding-top: calc(var(--nav-h) + clamp(50px, 4.5vw, 66.5px));
}
.refine-hero-cinematic .rv {
  opacity: 1 !important;
  transform: none !important;
}
.refine-hero-cinematic .hero-x-media::after {
  background: var(--hero-scrim);
}
.refine-hero-cinematic .hero-copy {
  min-height: auto;
}
.refine-hero-cinematic .d1 {
  max-width: 18ch;
  font-size: clamp(2.4rem, 4.4vw, 4.2rem);
  line-height: 1.08;
  margin-block: 16px 18px;
  color: #fff;
}
.refine-hero-cinematic .lead {
  max-width: 54ch;
  font-size: clamp(1.05rem, 1.25vw, 1.22rem);
  line-height: 1.62;
  color: #e2e8f0;
}
.refine-hero-cinematic .lead strong {
  color: #ffffff;
}
.refine-hero-cinematic .refine-manifesto {
  margin-top: 18px;
  margin-bottom: 0;
}
.refine-hero-cinematic .btn-row {
  margin-top: 38px;
}
.refine-hero-cinematic .btn {
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 12px 30px -8px rgba(139, 92, 246, 0.7);
}
.refine-hero-cinematic .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.refine-hero-cinematic .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
}

.refine-hero {
  padding-top: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(32px, 5vw, 56px);
  position: relative;
}

.refine-manifesto {
  display: block;
  margin-top: 18px;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}
.refine-manifesto-icon {
  display: none !important;
}
.refine-manifesto-text {
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  font-weight: 600;
  letter-spacing: normal;
  color: #c084fc;
  line-height: 1.4;
}

/* Creative Cases Showcase */
.creative-cases {
  display: flex;
  flex-direction: column;
  gap: clamp(60px, 8vw, 100px);
  margin-top: 48px;
}

.creative-case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  position: relative;
}

.creative-case.is-flipped {
  grid-template-columns: 1fr 1fr;
}
.creative-case.is-flipped .case-stage {
  order: 1;
}
.creative-case.is-flipped .case-content {
  order: 2;
}

/* Content Details */
.case-badge {
  display: inline-block;
  font-size: .84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: normal;
  color: var(--amber);
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 12px;
}
#casos-mix .case-badge {
  color: var(--cyan);
}
#casos-session .case-badge {
  color: #34d399;
}

.case-title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: normal;
  margin-bottom: 14px;
  color: var(--txt);
}

.case-lead {
  font-size: 1.05rem;
  line-height: 1.62;
  color: var(--txt-2);
  margin-bottom: 24px;
}

.case-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.case-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 6px 0;
  background: transparent;
  border: none;
  transition: transform .25s var(--ease);
}
.case-step:hover {
  background: transparent;
  transform: translateX(4px);
}

.case-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  background: none;
  border: none;
  border-radius: 0;
  color: #a78bfa;
  margin-top: 2px;
  flex-shrink: 0;
}
#casos-mix .case-step-icon {
  color: var(--cyan);
}
#casos-session .case-step-icon {
  color: #34d399;
}
.case-step-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.case-step-body strong {
  display: block;
  font-size: .93rem;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 3px;
}
.case-step-body span {
  font-size: .88rem;
  line-height: 1.5;
  color: var(--txt-2);
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
}
.case-tag {
  padding: 0;
  border-radius: 0;
  font-size: .82rem;
  font-weight: 500;
  background: none;
  border: none;
  color: var(--txt-3);
  letter-spacing: normal;
  display: inline-flex;
  align-items: center;
}
.case-tag:not(:last-child)::after {
  content: "·";
  margin-left: 12px;
  color: rgba(255, 255, 255, .2);
  font-weight: 400;
}
.case-tag.is-highlight {
  color: var(--txt-2);
  border: none;
  background: none;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   PHOTO STACK: Authentic Polaroid Prints with White Paper Frame & Chin
   -------------------------------------------------------------------------- */
.case-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 8px;
}

.photo-stack {
  position: relative;
  width: 100%;
  max-width: 490px;
  aspect-ratio: 1 / 1.12;
  perspective: 1200px;
}

.photo-stack-glow {
  position: absolute;
  inset: 10% 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 165, 36, 0.12) 0%, rgba(139, 92, 246, 0.08) 50%, transparent 75%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

/* Individual Polaroid Card: Solid White Paper Frame */
.photo-card {
  position: absolute;
  border-radius: 3px;
  background: #ffffff;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.4),
    0 16px 40px -8px rgba(0, 0, 0, 0.8),
    0 30px 70px -15px rgba(0, 0, 0, 0.95);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), z-index .2s;
  cursor: pointer;
  user-select: none;
}

.photo-card-inner {
  position: relative;
  padding: 14px 14px 62px 14px; /* Thin borders around photo, large chin below */
  background: #ffffff;
  border-radius: 3px;
}

.photo-card-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1px;
  aspect-ratio: 1 / 1; /* Authentic square Polaroid format */
  background: #0f121a;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.photo-card-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.photo-card:hover .photo-card-frame img {
  transform: scale(1.02);
}

/* Base Polaroid ("Antes") */
.photo-card.photo-before {
  top: 2%;
  left: 2%;
  width: 72%;
  z-index: 2;
  transform: rotate(-6deg);
  transform-origin: bottom left;
}
.photo-card.photo-before:hover {
  z-index: 8;
  transform: rotate(-1.5deg) scale(1.03);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.5),
    0 24px 60px -8px rgba(0, 0, 0, 0.9);
}

/* Overlapping Polaroid ("Después" encima) */
.photo-card.photo-after {
  bottom: 2%;
  right: 0%;
  width: 76%;
  z-index: 4;
  transform: rotate(4.5deg) translate(1%, 2%);
  transform-origin: center;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.45),
    0 22px 55px -10px rgba(0, 0, 0, 0.9);
}
.photo-card.photo-after:hover {
  z-index: 8;
  transform: rotate(1deg) scale(1.03) translate(0, -6px);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.6),
    0 35px 85px -12px rgba(0, 0, 0, 0.98);
}

/* Alternate Tilt (For Case 2) */
.photo-stack.alt .photo-card.photo-before {
  top: 2%;
  right: 2%;
  left: auto;
  transform: rotate(6deg);
  transform-origin: bottom right;
}
.photo-stack.alt .photo-card.photo-before:hover {
  transform: rotate(1.5deg) scale(1.03);
}
.photo-stack.alt .photo-card.photo-after {
  bottom: 2%;
  left: 0%;
  right: auto;
  transform: rotate(-4.5deg) translate(-1%, 2%);
}
.photo-stack.alt .photo-card.photo-after:hover {
  transform: rotate(-1deg) scale(1.03) translate(0, -6px);
}

/* No tape on authentic polaroids */
.photo-tape {
  display: none !important;
}

/* Polaroid Chin Footer: clean typography inside the white photo frame */
.polaroid-footer {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
}

/* On base photo (Antes), stack vertically on the un-obscured side so text is 100% visible */
.photo-card.photo-before .polaroid-footer {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 2px;
  max-width: 60%;
  bottom: 12px;
}
.photo-stack.alt .photo-card.photo-before .polaroid-footer {
  align-items: flex-end;
  text-align: right;
  left: auto;
  right: 14px;
}

.polaroid-tag {
  font-size: .80rem;
  font-weight: 800;
  letter-spacing: normal;
  text-transform: uppercase;
}
.polaroid-tag.is-before {
  color: #475569;
}
.polaroid-tag.is-after {
  color: #d97706;
  font-weight: 900;
}

.polaroid-sub {
  font-size: .74rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive adjustments */
@media (max-width: 980px) {
  .creative-case,
  .creative-case.is-flipped {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .creative-case.is-flipped .case-stage {
    order: 0;
  }
  .creative-case.is-flipped .case-content {
    order: 1;
  }
  .case-stage {
    padding-inline: 0;
  }
  .photo-stack {
    max-width: 480px;
    margin-inline: auto;
  }
}

@media (max-width: 580px) {
  .photo-stack {
    aspect-ratio: 4 / 3.7;
  }
  .photo-card.photo-before {
    width: 82%;
  }
  .photo-card.photo-after {
    width: 80%;
  }
  .refine-manifesto {
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   MIX PIPELINE: Inputs (Input 1 + Input 2) to Output Studio Stage
   -------------------------------------------------------------------------- */
.mix-pipeline {
  position: relative;
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-inline: auto;
}

.mix-pipeline-glow {
  position: absolute;
  inset: 5% 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.26) 0%, rgba(139, 92, 246, 0.16) 50%, transparent 72%);
  filter: blur(52px);
  pointer-events: none;
  z-index: 0;
}

/* Row of Two Inputs */
.mix-inputs-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

/* Operator (+) — Borderless, single-color symbol */
.mix-operator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--cyan);
  flex-shrink: 0;
  z-index: 4;
}
.mix-operator svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 3.2px;
  filter: drop-shadow(0 0 10px currentColor);
}

/* Individual Mix & Session Polaroid Cards */
.mix-card {
  position: relative;
  border-radius: 3px;
  background: #ffffff;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.45),
    0 16px 36px -8px rgba(0, 0, 0, 0.82),
    0 28px 65px -12px rgba(0, 0, 0, 0.95);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), z-index .2s;
  cursor: pointer;
  user-select: none;
}
.mix-card:hover {
  transform: rotate(0deg) translateY(-5px) scale(1.02);
  z-index: 10;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.5),
    0 24px 55px -8px rgba(0, 0, 0, 0.92);
}

.mix-card-inner {
  position: relative;
  padding: 10px 10px 44px 10px; /* Border top/sides, classic Polaroid chin below */
  background: #ffffff;
  border-radius: 3px;
}

.mix-card-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1px;
  aspect-ratio: 4 / 3;
  background: #0b0f17;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}
.mix-card-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.mix-card:hover .mix-card-frame img {
  transform: scale(1.03);
}

/* Subtle Natural Polaroid Tilts for Inputs */
.mix-card.mix-card-in1 {
  transform: rotate(-2.2deg);
  transform-origin: center;
}
.mix-card.mix-card-in1:hover {
  transform: rotate(0deg) translateY(-5px) scale(1.02);
  z-index: 8;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.5),
    0 24px 55px -8px rgba(0, 0, 0, 0.92);
}

.mix-card.mix-card-in2 {
  transform: rotate(2.2deg);
  transform-origin: center;
}
.mix-card.mix-card-in2:hover {
  transform: rotate(0deg) translateY(-5px) scale(1.02);
  z-index: 8;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.5),
    0 24px 55px -8px rgba(0, 0, 0, 0.92);
}

/* Output Card: Larger Hero Polaroid */
.mix-card.mix-card-out,
.session-card-out {
  position: relative;
  z-index: 3;
  transform: rotate(0.6deg);
  transform-origin: center;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.5),
    0 22px 55px -8px rgba(0, 0, 0, 0.88),
    0 38px 85px -14px rgba(0, 0, 0, 0.98);
}
.mix-card.mix-card-out .mix-card-inner,
.session-card-out .mix-card-inner {
  padding: 12px 12px 52px 12px;
}
.mix-card.mix-card-out .mix-card-frame,
.session-card-out .mix-card-frame {
  aspect-ratio: 16 / 10;
}
.mix-card.mix-card-out:hover,
.session-card-out:hover {
  transform: rotate(0deg) translateY(-6px) scale(1.015);
  z-index: 9;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.55),
    0 32px 75px -10px rgba(0, 0, 0, 0.95),
    0 50px 110px -16px rgba(0, 0, 0, 1);
}

/* Alternate tilt for flipped cases (Case 2) */
.creative-case.is-flipped .mix-card.mix-card-in1 {
  transform: rotate(2.2deg);
}
.creative-case.is-flipped .mix-card.mix-card-in2 {
  transform: rotate(-2.2deg);
}
.creative-case.is-flipped .mix-card.mix-card-out,
.creative-case.is-flipped .session-card-out {
  transform: rotate(-0.6deg);
}
.creative-case.is-flipped .mix-card.mix-card-in1:hover,
.creative-case.is-flipped .mix-card.mix-card-in2:hover,
.creative-case.is-flipped .mix-card.mix-card-out:hover,
.creative-case.is-flipped .session-card-out:hover {
  transform: rotate(0deg) translateY(-5px) scale(1.02);
}

/* Polaroid Chin Footer */
.mix-card .polaroid-footer {
  position: absolute;
  bottom: 11px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
}
.mix-card.mix-card-out .polaroid-footer,
.session-card-out .polaroid-footer {
  bottom: 14px;
  left: 14px;
  right: 14px;
}

.mix-card .polaroid-tag {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: normal;
  text-transform: uppercase;
  color: #475569;
  white-space: nowrap;
}
.mix-card.mix-card-out .polaroid-tag.is-after {
  font-size: .80rem;
  font-weight: 900;
  color: #0891b2; /* Mix cyan */
}
#casos-session .mix-card.mix-card-out .polaroid-tag.is-after,
.session-card-out .polaroid-tag.is-after {
  color: #059669; /* Session green */
}

.mix-card .polaroid-sub {
  font-size: .72rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mix-card.mix-card-out .polaroid-sub,
.session-card-out .polaroid-sub {
  font-size: .76rem;
}

/* Flow Bridge / Connector */
.mix-flow-bridge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 2;
  margin-block: 2px;
}
.mix-flow-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.4), transparent);
}
.mix-flow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: normal;
  text-transform: uppercase;
  color: #22d3ee;
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.5);
}
.mix-flow-badge svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.7));
  transition: transform .25s var(--ease);
}
.mix-pipeline:hover .mix-flow-badge svg {
  transform: translateY(2px);
}

/* Contextual electric cyan for Case 1 (Clothing Transfer) */
.creative-case:nth-of-type(1) .case-title {
  color: #22d3ee;
  text-shadow: 0 0 24px rgba(34, 211, 238, 0.22);
}
.creative-case:nth-of-type(1) .case-step-icon {
  color: #22d3ee;
}
.creative-case:nth-of-type(1) .mix-operator {
  color: #22d3ee;
}

/* Contextual warm amber for Case 2 (Oil Painting) */
.creative-case:nth-of-type(2) .case-title {
  color: #fbbf24;
  text-shadow: 0 0 24px rgba(251, 191, 36, 0.22);
}
.creative-case:nth-of-type(2) .case-step-icon {
  color: #fbbf24;
}
.creative-case:nth-of-type(2) .mix-operator {
  color: #fbbf24;
}
.creative-case:nth-of-type(2) .mix-flow-line {
  background: linear-gradient(90deg, transparent, rgba(245, 165, 36, 0.45), transparent);
}
.creative-case:nth-of-type(2) .mix-flow-badge {
  color: #fbbf24;
  text-shadow: 0 0 18px rgba(251, 191, 36, 0.5);
}
.creative-case:nth-of-type(2) .mix-flow-badge svg {
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.7));
}

/* Contextual electric cyan for Case 3 (Klein 9B Neon) */
.creative-case:nth-of-type(3) .case-title {
  color: #38bdf8;
  text-shadow: 0 0 24px rgba(56, 189, 248, 0.25);
}
.creative-case:nth-of-type(3) .case-step-icon {
  color: #38bdf8;
}
.creative-case:nth-of-type(3) .mix-operator {
  color: #38bdf8;
}
.creative-case:nth-of-type(3) .mix-flow-line {
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.45), transparent);
}
.creative-case:nth-of-type(3) .mix-flow-badge {
  color: #38bdf8;
  text-shadow: 0 0 18px rgba(56, 189, 248, 0.55);
}
.creative-case:nth-of-type(3) .mix-flow-badge svg {
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.75));
}

/* --------------------------------------------------------------------------
   SESSION: LIBERTAD CREATIVA PARA UNIR FLOWS (SESSION PIPELINE & MODES)
   -------------------------------------------------------------------------- */
.session-hero-cinematic {
  min-height: min(100vh, 1000px);
  justify-content: flex-start;
}
.session-hero-cinematic .hero-x-inner {
  padding-top: calc(var(--nav-h) + clamp(50px, 4.5vw, 66.5px));
}
.session-hero-cinematic .rv {
  opacity: 1 !important;
  transform: none !important;
}
.session-hero-cinematic .hero-x-media::after {
  background: var(--hero-scrim);
}
.session-hero-cinematic .lead {
  max-width: 54ch;
  font-size: clamp(1.05rem, 1.25vw, 1.22rem);
  line-height: 1.62;
  color: #e2e8f0;
}
.session-hero-cinematic .lead strong {
  color: #ffffff;
}

.session-hero-cinematic .btn-row {
  margin-top: 38px;
}

.session-manifesto {
  display: block;
  margin-top: 18px;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}
.session-manifesto-icon {
  display: none !important;
}
.session-manifesto-text {
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  font-weight: 600;
  color: #34d399;
  letter-spacing: normal;
  line-height: 1.4;
}

/* Session Pipeline Stage */
.session-pipeline {
  position: relative;
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-inline: auto;
}

.session-pipeline .mix-inputs-row {
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
}

.session-pipeline-glow {
  position: absolute;
  inset: 5% 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.28) 0%, rgba(16, 185, 129, 0.16) 50%, transparent 72%);
  filter: blur(52px);
  pointer-events: none;
  z-index: 0;
}

/* Operator (+) — Borderless, clean symbol */
.session-operator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  color: #34d399;
  flex-shrink: 0;
  z-index: 4;
}
.session-operator svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 3px;
  filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.6));
}

/* Session Flow Bridge — Borderless typographic connector */
.session-flow-bridge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 2;
  margin-block: 2px;
}
.session-flow-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52, 211, 153, 0.4), transparent);
}
.session-flow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border: none;
  background: transparent;
  box-shadow: none;
  font-family: var(--font);
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #34d399;
  text-shadow: 0 0 16px rgba(52, 211, 153, 0.45);
}
.session-flow-badge svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.6));
}

/* Session Modes Grid (Simple · Guided · Custom) */
.session-modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
@media (max-width: 900px) {
  .session-modes-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.session-mode-card {
  position: relative;
  padding: 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.session-mode-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(52, 211, 153, 0.4);
}
.session-mode-card.is-featured {
  background: linear-gradient(175deg, rgba(52, 211, 153, 0.08), rgba(255, 255, 255, 0.02) 50%, transparent 100%), #0d1419;
  border-color: rgba(52, 211, 153, 0.35);
}
.session-mode-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.session-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .80rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: normal;
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
}
.session-mode-badge.badge-simple {
  color: var(--txt-3);
}
.session-mode-badge.badge-guided {
  color: #34d399;
}
.session-mode-badge.badge-custom {
  color: #fbbf24;
}

/* Session Mode Tags: Clean borderless text list separated by dots */
.session-mode-card .tags,
.session-mode-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.session-mode-card .tag,
.session-mode-tag {
  padding: 0;
  border-radius: 0;
  background: none;
  border: none;
  font-size: .82rem;
  font-weight: 500;
  color: var(--txt-3);
  letter-spacing: normal;
  display: inline-flex;
  align-items: center;
  white-space: normal;
}
.session-mode-card .tag:not(:last-child)::after,
.session-mode-tag:not(:last-child)::after {
  content: "·";
  margin-left: 12px;
  color: rgba(255, 255, 255, .2);
  font-weight: 400;
}
.session-mode-card .tag.is-accent,
.session-mode-tag.is-highlight {
  background: none;
  border: none;
  color: color-mix(in oklab, #34d399 80%, white);
  font-weight: 600;
}



/* ==========================================================================
   CREATE: DA FORMA A TUS IDEAS — ASISTENCIA CINEMATOGRÁFICA
   ========================================================================== */

.create-hero-cinematic {
  min-height: min(100vh, 1000px);
  justify-content: flex-end;
}
.create-hero-cinematic .hero-x-inner {
  padding-top: calc(var(--nav-h) + clamp(40px, 4vw, 60px));
  padding-bottom: clamp(60px, 9vh, 100px);
}
.create-hero-cinematic .rv {
  opacity: 1 !important;
  transform: none !important;
}
.create-hero-cinematic .hero-x-media::after {
  background: var(--hero-scrim);
}
.create-hero-cinematic .hero-copy {
  min-height: auto;
}
.create-hero-cinematic .d1 {
  max-width: 18ch;
  font-size: clamp(2.4rem, 4.4vw, 4.2rem);
  line-height: 1.08;
  margin-block: 16px 18px;
  color: #fff;
}
.create-hero-cinematic .lead {
  max-width: 54ch;
  font-size: clamp(1.05rem, 1.25vw, 1.22rem);
  line-height: 1.62;
  color: #e2e8f0;
}
.create-hero-cinematic .lead strong {
  color: #ffffff;
}
.create-hero-cinematic .btn-row {
  margin-top: 38px;
}
.create-hero-cinematic .btn {
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 12px 30px -8px rgba(34, 211, 238, 0.55);
}
.create-hero-cinematic .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.create-hero-cinematic .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
}

.create-manifesto {
  display: block;
  margin-top: 18px;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}
.create-manifesto-icon {
  display: none !important;
}
.create-manifesto-text {
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  font-weight: 600;
  letter-spacing: normal;
  color: #38bdf8;
  line-height: 1.4;
}

/* Assist Cinematic Showcase */
.assist-showcase {
  margin-top: 36px;
}
.assist-nav-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  margin-bottom: 38px;
  flex-wrap: wrap;
}
.assist-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 6px;
  border-radius: 0;
  font-family: var(--font);
  font-size: clamp(.88rem, .95vw, 1.02rem);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: normal;
  color: var(--txt-3);
  background: transparent;
  border: 0;
  box-shadow: none;
  cursor: pointer;
  position: relative;
  transition: color .22s var(--ease), text-shadow .22s var(--ease), transform .22s var(--ease);
}
.assist-tab-btn:hover {
  color: var(--txt);
  transform: translateY(-1px);
}
.assist-tab-btn.is-active {
  color: var(--cyan);
  text-shadow: 0 0 16px rgba(34, 211, 238, 0.55), 0 0 32px rgba(34, 211, 238, 0.25);
}
.assist-tab-dot {
  display: none;
}
.assist-tab-btn.is-active::after {
  display: none;
}

.assist-case-view {
  display: none;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.assist-case-view.is-active {
  display: grid;
  animation: fadeInCase .4s ease forwards;
}
@keyframes fadeInCase {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Pipeline Step Cards — Modern editorial presentation */
.pipeline-card {
  position: relative;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  margin-bottom: 28px;
}
.pipeline-card:hover {
  border-color: transparent;
  transform: none;
}
.pipeline-step-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 8px;
}
.pipeline-step-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: normal;
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
}
.tag-raw {
  color: #94a3b8;
}
.tag-assist {
  color: var(--cyan);
}
.tag-gpu {
  color: #c084fc;
}

.pipeline-prompt-quote {
  font-size: 1.18rem;
  font-weight: 500;
  color: #FFFFFF;
  line-height: 1.55;
  font-style: italic;
  margin-top: 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.assist-expansion-box {
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
  font-size: 1.02rem;
  line-height: 1.68;
  color: #cbd5e1;
  margin-top: 6px;
}
.assist-expansion-box mark {
  background: rgba(34, 211, 238, 0.16);
  color: #38bdf8;
  padding: 2px 7px;
  border-radius: 5px;
  font-weight: 600;
}

.assist-pill-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 14px;
  font-size: .86rem;
  font-weight: 600;
  color: #94a3b8;
}
.assist-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: #94a3b8;
  font-size: inherit;
  font-weight: 600;
  letter-spacing: normal;
}
.assist-pill svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  stroke: currentColor;
}
.assist-pill.is-active {
  color: var(--cyan);
}
.assist-pill:not(:last-child)::after {
  content: "·";
  margin-left: 12px;
  color: rgba(255, 255, 255, 0.28);
  font-weight: 800;
}

/* Cinema Frame for Result */
.cinema-frame-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 24px 60px -15px rgba(0, 0, 0, 0.9),
    0 0 45px -10px rgba(34, 211, 238, 0.22);
  border: none !important;
  background: #000;
}
.cinema-frame-wrap img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.cinema-frame-wrap:hover img {
  transform: scale(1.02);
}
.cinema-frame-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(4,6,12,.8) 0%, transparent 40%);
}
.cinema-frame-meta {
  position: absolute;
  bottom: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cinema-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border-radius: 0;
  font-family: var(--font);
  font-size: .88rem;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: normal;
  background: transparent;
  border: none;
  box-shadow: none;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 2px 10px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.cinema-chip-gpu {
  color: #34d399;
  border: none;
  text-shadow: 0 0 12px rgba(52, 211, 153, 0.6), 0 1px 4px rgba(0, 0, 0, 0.95);
}
.cinema-chip svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  width: 13px;
  height: 13px;
}

@media (max-width: 980px) {
  .assist-case-view {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
@media (max-width: 580px) {
  .create-manifesto {
    text-align: left;
  }
  .assist-nav-tabs {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==========================================================================
   MIX: FUSIÓN CREATIVA Y MINIPROGRAMAS / ADD-ONS
   ========================================================================== */

.mix-hero-cinematic {
  min-height: min(100vh, 1000px);
  justify-content: flex-start;
}
.mix-hero-cinematic .hero-x-inner {
  padding-top: calc(var(--nav-h) + clamp(50px, 4.5vw, 66.5px));
}
.mix-hero-cinematic .rv {
  opacity: 1 !important;
  transform: none !important;
}
.mix-hero-cinematic .hero-x-media::after {
  background: var(--hero-scrim);
}
.mix-hero-cinematic .hero-copy {
  min-height: auto;
}
.mix-hero-cinematic .d1 {
  max-width: 18ch;
  font-size: clamp(2.4rem, 4.4vw, 4.2rem);
  line-height: 1.08;
  margin-block: 16px 18px;
  color: #fff;
}
.mix-hero-cinematic .lead {
  max-width: 54ch;
  font-size: clamp(1.05rem, 1.25vw, 1.22rem);
  line-height: 1.62;
  color: #e2e8f0;
}
.mix-hero-cinematic .lead strong {
  color: #ffffff;
}
.mix-hero-cinematic .btn-row {
  margin-top: 38px;
}
.mix-hero-cinematic .btn {
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 12px 30px -8px rgba(34, 211, 238, 0.55);
}
.mix-hero-cinematic .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.mix-hero-cinematic .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
}

.mix-manifesto {
  display: block;
  margin-top: 18px;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}
.mix-manifesto-icon {
  display: none !important;
}
.mix-manifesto-text {
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  font-weight: 600;
  letter-spacing: normal;
  color: #22d3ee;
  line-height: 1.4;
}

/* Add-ons Showcase */
.addons-showcase-wrap {
  margin-top: 36px;
}
.addon-tabs-header {
  text-align: center;
  margin-top: -8px;
  margin-bottom: 20px;
}
.addon-tabs-label {
  display: inline-flex;
  align-items: center;
  font-family: var(--font);
  font-size: clamp(.76rem, .86vw, .88rem);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: normal;
  color: var(--txt-3);
  opacity: .85;
}
.addon-nav-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  margin-bottom: 38px;
  flex-wrap: wrap;
}
.addon-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 6px;
  border-radius: 0;
  font-family: var(--font);
  font-size: clamp(.88rem, .95vw, 1.02rem);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: normal;
  color: var(--txt-3);
  background: transparent;
  border: 0;
  box-shadow: none;
  cursor: pointer;
  position: relative;
  transition: color .22s var(--ease), text-shadow .22s var(--ease), transform .22s var(--ease);
}
.addon-tab-btn:hover {
  color: var(--txt);
  transform: translateY(-1px);
}
.addon-tab-btn.is-active {
  color: var(--cyan);
  text-shadow: 0 0 16px rgba(34, 211, 238, 0.55), 0 0 32px rgba(34, 211, 238, 0.25);
}
.addon-tab-dot {
  display: none;
}
.addon-tab-btn.is-active::after {
  display: none;
}

.addon-case-view {
  display: none;
  grid-template-columns: 1.05fr 1fr;
  column-gap: clamp(32px, 5vw, 64px);
  row-gap: 20px;
  align-items: center;
}
.addon-case-view.is-active {
  display: grid;
  animation: fadeInCase .4s ease forwards;
}

/* Polaroids Showcase for Layer Composer Assets */
.composer-polaroids-block,
.pixel-polaroids-block,
.chroma-polaroids-block {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 0;
  border-top: none;
}
.composer-polaroids-head {
  margin-bottom: 24px;
}
.composer-polaroids-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.composer-polaroids-badge {
  font-family: var(--font);
  font-size: .84rem;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: normal;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.45);
}
.composer-polaroids-tech {
  font-family: var(--mono);
  font-size: .75rem;
  color: #34d399;
  letter-spacing: normal;
}
.composer-polaroids-title {
  font-family: var(--font);
  font-size: clamp(1.2rem, 1.4vw, 1.45rem);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: normal;
  color: var(--txt);
  margin: 0 0 8px 0;
}
.composer-polaroids-lead {
  font-size: .92rem;
  line-height: 1.55;
  color: var(--txt-2);
  margin: 0;
  max-width: 820px;
}
.composer-polaroids-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.composer-polaroid-card {
  position: relative;
  background: #ffffff;
  border-radius: 6px;
  padding: 8px 8px 14px 8px;
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.6),
    0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  cursor: default;
}
.composer-polaroid-card:nth-child(1) { transform: rotate(-1.5deg); }
.composer-polaroid-card:nth-child(2) { transform: rotate(1deg); }
.composer-polaroid-card:nth-child(3) { transform: rotate(-0.8deg); }
.composer-polaroid-card:nth-child(4) { transform: rotate(1.6deg); }
.composer-polaroid-card:nth-child(5) { transform: rotate(-1.4deg); }

.composer-polaroid-card:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.04);
  z-index: 10;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.8),
    0 4px 12px rgba(0, 0, 0, 0.5);
}
.composer-polaroid-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #0f1422;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.composer-polaroid-img-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.composer-polaroid-card.is-character .composer-polaroid-img-wrap {
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, #0d121f 78%);
}
.composer-polaroid-card.is-character .composer-polaroid-img-wrap img {
  object-fit: contain;
  object-position: center top;
}
.composer-polaroid-card:hover .composer-polaroid-img-wrap img {
  transform: scale(1.05);
}
.composer-polaroid-footer {
  margin-top: 10px;
  padding: 0 4px;
}
.composer-polaroid-tag {
  display: block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: normal;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.2;
}
.composer-polaroid-tag.is-highlight {
  color: #0284c7;
  font-weight: 900;
}
.composer-polaroid-tag.is-char {
  color: #d97706;
  font-weight: 900;
}
.composer-polaroid-name {
  display: block;
  font-size: .84rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: normal;
}
.composer-polaroid-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-family: var(--mono);
  font-size: .67rem;
  color: #475569;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.composer-polaroid-time {
  font-weight: 700;
  color: #059669;
}

/* Pixel Art Showcase Grid (2 on top, 2 below) */
.pixel-polaroids-block {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 0;
  border-top: none;
}
.pixel-showcase-row {
  margin-bottom: 24px;
}
.pixel-row-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: .84rem;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: normal;
  color: #fbbf24;
  margin-bottom: 12px;
}
.pixel-row-label.is-original {
  color: var(--txt-3);
}
.pixel-polaroids-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
}
.pixel-polaroid-card .composer-polaroid-img-wrap {
  aspect-ratio: 16 / 9;
}
.pixel-polaroid-card.is-pixel-art .composer-polaroid-img-wrap img {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}
.pixel-polaroids-grid .composer-polaroid-card:nth-child(1) { transform: rotate(-0.6deg); }
.pixel-polaroids-grid .composer-polaroid-card:nth-child(2) { transform: rotate(0.6deg); }
@media (max-width: 768px) {
  .pixel-polaroids-grid {
    grid-template-columns: 1fr;
  }
}

/* Chroma Key Polaroids Showcase */
.chroma-polaroids-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.8vw, 18px);
  margin-top: 14px;
}
.chroma-polaroids-grid .composer-polaroid-card:nth-child(1) { transform: rotate(-0.8deg); }
.chroma-polaroids-grid .composer-polaroid-card:nth-child(2) { transform: rotate(0.6deg); }
.chroma-polaroids-grid .composer-polaroid-card:nth-child(3) { transform: rotate(-0.5deg); }
.chroma-polaroids-grid .composer-polaroid-card:nth-child(4) { transform: rotate(0.8deg); }

.composer-polaroid-card.is-chroma-cutout .composer-polaroid-img-wrap {
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.08) 75%),
    #0c1017;
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
}
.composer-polaroid-card.is-chroma-cutout .composer-polaroid-img-wrap img {
  object-fit: contain;
  object-position: center;
}

@media (max-width: 990px) {
  .chroma-polaroids-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .chroma-polaroids-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .composer-polaroids-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 680px) {
  .composer-polaroids-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 440px) {
  .composer-polaroids-grid {
    grid-template-columns: 1fr;
  }
}

.assist-pill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-top: 16px;
  padding-top: 0;
  border-top: none;
}

.addon-spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 500;
  padding: 0;
  border-radius: 0;
  background: none;
  border: none;
  color: var(--txt-3);
  letter-spacing: normal;
}
.addon-spec-pill:not(:last-child)::after {
  content: "·";
  margin-left: 12px;
  color: rgba(255, 255, 255, .2);
  font-weight: 400;
}
.addon-spec-pill.highlight {
  color: var(--txt);
  font-weight: 600;
}

@media (max-width: 980px) {
  .addon-case-view {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
@media (max-width: 580px) {
  .mix-manifesto {
    text-align: left;
  }
  .addon-nav-tabs {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Creative Levers Cards & Tech Spec Accordion */
.control-card-tags {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--txt-3);
}
.control-card-tags span {
  display: inline-flex;
  align-items: center;
}
.control-card-tags span:not(:last-child)::after {
  content: "·";
  margin-left: 6px;
  opacity: .5;
}

.tech-spec-accordion {
  margin-top: 36px;
  border-radius: var(--radius, 16px);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .22s var(--ease), background .22s var(--ease);
}
.tech-spec-accordion[open] {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}
.tech-spec-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  font-family: var(--font);
  font-size: .88rem;
  font-weight: 700;
  color: var(--txt-2);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.tech-spec-toggle::-webkit-details-marker {
  display: none;
}
.tech-spec-toggle:hover {
  color: var(--txt);
  background: rgba(255, 255, 255, 0.04);
}
.tech-spec-toggle-icon {
  display: inline-flex;
  align-items: center;
  color: var(--txt-3);
  transition: transform .25s var(--ease), color .2s var(--ease);
}
.tech-spec-accordion[open] .tech-spec-toggle-icon {
  transform: rotate(180deg);
  color: var(--cyan);
}
.tech-spec-accordion .spec-wrap {
  margin-top: 0;
  border-radius: 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* --- Level Guidance Image Cards --- */
.level-card {
  padding: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.level-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #080c16;
}
.level-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s cubic-bezier(0.2, 0, 0.2, 1);
}
.level-card:hover .level-card-media img {
  transform: scale(1.05);
}
.level-card-chip {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(8, 12, 22, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}
.level-card-body {
  padding: 1.25rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.level-prompt-snippet {
  background: rgba(255, 255, 255, 0.04);
  border-left: 2px solid var(--c-create);
  padding: 6px 10px;
  border-radius: 0 6px 6px 0;
  font-size: 0.80rem;
  line-height: 1.42;
  color: #C2CCE0;
  margin: 0.6rem 0 0.8rem;
  font-style: italic;
}

/* Shared shell polish: visible focus and accessible mobile language controls. */
.btn { max-width:100%; white-space:normal; text-align:center; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline:2px solid var(--blue-2); outline-offset:4px; }
.nav .langs { flex-shrink:0; }
.nav .langs button { min-height:36px; }
@media (min-width:1441px) {
  .hdr .wrap-w { gap:14px; }
  .nav { gap:0; margin-left:0; }
  .nav a { padding-inline:9px; white-space:nowrap; }
  .nav .langs { margin-left:8px; }
}
@media (max-width:400px) { .hdr .wrap-w { gap:10px; } }

/* ==========================================================================
   Output Geometry / Aspect Ratio Cards (.eng-formats)
   ========================================================================== */
.eng-formats {
  display: grid;
  grid-template-columns: 0.75fr 1fr 1.5fr;
  align-items: end;
  gap: 28px;
  margin-top: 36px;
}
.eng-format {
  margin: 0;
  min-width: 0;
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 10px 10px 16px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.eng-format:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7);
}
.eng-format img {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: 14px;
}
.eng-portrait img {
  aspect-ratio: 2/3;
  object-position: 50% top;
}
.eng-square img {
  aspect-ratio: 1;
  object-position: center;
}
.eng-wide img {
  aspect-ratio: 16/9;
  object-position: center;
}
.eng-format figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px 6px 2px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--txt);
}
.eng-format figcaption span:last-child {
  color: var(--txt-3);
  font-weight: 500;
  font-family: var(--mono);
  font-size: 0.84rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 6px;
}
.eng-note {
  font-size: 0.88rem;
  color: var(--txt-3);
  margin-top: 24px;
}

@media (max-width: 768px) {
  .eng-formats {
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
  }
  .eng-wide {
    grid-column: 1 / -1;
  }
}
@media (max-width: 480px) {
  .eng-formats {
    grid-template-columns: 1fr;
  }
}
