/* AnimaIA · Pergamino — paper, navy, gold · editorial calm */

:root {
  --paper: #F4ECD8;
  --paper-deep: #EDE3CA;
  --paper-edge: #E1D4B3;
  --ink: #1F2A4B;
  --ink-soft: #364068;
  --ink-mute: #6B7494;
  --gold: #C9A961;
  --gold-deep: #A88542;
  --rust: #B85C3A;
  --ok: #2F6E5A;
  --serif: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--paper); color: var(--ink); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Subtle paper grain */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at calc(20% + var(--mxw, 0px)) calc(30% + var(--myw, 0px)), rgba(184, 92, 58, .06), transparent 40%),
    radial-gradient(circle at calc(80% - var(--mxw, 0px)) calc(70% - var(--myw, 0px)), rgba(31, 42, 75, .05), transparent 40%);
  z-index: 0;
  transition: background-position .6s ease;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12  0 0 0 0 0.16  0 0 0 0 0.29  0 0 0 0.045 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: .85;
  z-index: 1;
  mix-blend-mode: multiply;
}

main, header, footer { position: relative; z-index: 2; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 720px) { .container { padding: 0 24px; } }

/* ─── Nav ─────────────────────────────────── */
.nav {
  position: sticky; top: 0;
  z-index: 50;
  padding: 22px 0;
  background: linear-gradient(180deg, rgba(244,236,216,.94) 60%, rgba(244,236,216,0));
  backdrop-filter: blur(8px);
}
.nav__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 36px; height: 36px; }
.brand__word {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: .01em;
  font-style: italic;
}
.brand__word b { font-style: normal; font-weight: 400; }
.nav__links { display: flex; gap: 28px; font-size: 13px; letter-spacing: .02em; color: var(--ink-soft); }
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  font-family: var(--sans); font-size: 13px;
  background: var(--ink); color: var(--paper);
  padding: 10px 18px; border-radius: 999px;
  letter-spacing: .02em;
  transition: all .25s ease;
}
.nav__cta:hover { background: var(--gold-deep); color: var(--paper); }
@media (max-width: 820px) { .nav__links { display: none; } }

/* ─── Hero ─────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  padding: 80px 0 120px;
  display: flex; align-items: center;
}
.hero__inner { width: 100%; position: relative; z-index: 2; }
.hero__eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 32px;
  display: inline-flex; align-items: center; gap: 12px;
}
.hero__eyebrow::before {
  content: ''; width: 28px; height: 1px; background: var(--gold);
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 144px);
  line-height: .92;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 28px;
  text-wrap: balance;
}
.hero__title em {
  font-style: italic;
  color: var(--gold-deep);
}
.hero__title .amp {
  font-style: italic;
  color: var(--rust);
  font-family: var(--serif);
  margin: 0 .04em;
}
.hero__lede {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.42;
  max-width: 720px;
  color: var(--ink-soft);
  margin-bottom: 44px;
  text-wrap: pretty;
}
.hero__lede b { color: var(--ink); font-weight: 500; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: .02em;
  transition: all .25s ease;
  border: 1px solid transparent;
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--gold-deep); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn__arrow { transition: transform .25s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Hero breathing animation, behind text on the right */
.hero__breath {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translate(calc(var(--mx, 0px) * 1), calc(-50% + var(--my, 0px) * 1));
  width: 720px; height: 720px;
  pointer-events: none;
  z-index: 1;
  opacity: .85;
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
}
@media (max-width: 980px) { .hero__breath { opacity: .4; right: -30%; width: 600px; height: 600px; } }
.hero__breath circle {
  fill: none;
  stroke: var(--ink);
  stroke-width: .5;
  transform-origin: center;
  animation: breathe 7s ease-in-out infinite;
}
.hero__breath circle:nth-child(1) { animation-delay: 0s;   stroke: var(--gold); stroke-width: .6; }
.hero__breath circle:nth-child(2) { animation-delay: .3s; }
.hero__breath circle:nth-child(3) { animation-delay: .6s;  stroke: var(--gold); }
.hero__breath circle:nth-child(4) { animation-delay: .9s; }
.hero__breath circle:nth-child(5) { animation-delay: 1.2s; stroke: var(--gold); }
.hero__breath circle:nth-child(6) { animation-delay: 1.5s; }
@keyframes breathe {
  0%, 100% { transform: scale(.86); opacity: .15; }
  50%      { transform: scale(1.04); opacity: .9; }
}
.hero__breath .core {
  fill: var(--rust);
  stroke: none;
  animation: pulse-core 3.5s ease-in-out infinite;
  transform-origin: center;
}
@keyframes pulse-core {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.7); opacity: .6; }
}

.hero__meta {
  position: absolute;
  bottom: 32px;
  left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: end;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-mute);
}
.hero__meta div { display: flex; gap: 8px; align-items: center; }
.hero__meta i { font-style: normal; color: var(--gold-deep); }

/* ─── Section primitives ─────────────────────── */
.section {
  padding: 120px 0;
  position: relative;
}
.section__head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  margin-bottom: 72px;
  align-items: end;
}
@media (max-width: 820px) {
  .section { padding: 80px 0; }
  .section__head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
}
.section__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: flex; gap: 14px; align-items: center;
}
.section__num::before {
  content: ''; width: 36px; height: 1px; background: var(--gold);
}
.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: .98;
  letter-spacing: -.015em;
  color: var(--ink);
  margin-top: 16px;
  text-wrap: balance;
}
.section__title em { font-style: italic; color: var(--gold-deep); }
.section__sub {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 540px;
  text-wrap: pretty;
}

/* ─── Differentiators ─────────────────────── */
.diffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--paper-edge); }
@media (max-width: 820px) { .diffs { grid-template-columns: 1fr; } }
.diff {
  padding: 44px 36px 44px 0;
  border-right: 1px solid var(--paper-edge);
  position: relative;
}
.diff:last-child { border-right: 0; padding-right: 0; }
.diff + .diff { padding-left: 36px; }
@media (max-width: 820px) {
  .diff { border-right: 0; border-bottom: 1px solid var(--paper-edge); padding: 32px 0; }
  .diff + .diff { padding-left: 0; }
}
.diff__mark {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 24px;
}
.diff__title {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--ink);
}
.diff__title em { font-style: italic; color: var(--rust); }
.diff__body { color: var(--ink-soft); font-size: 15px; line-height: 1.6; max-width: 36ch; }

/* ─── Agents ─────────────────────── */
.agents { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.agent {
  grid-column: span 2;
  padding: 36px 32px 32px;
  background: var(--paper-deep);
  border: 1px solid var(--paper-edge);
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  transition: all .35s cubic-bezier(.2,.7,.2,1);
}
.agent:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-3px);
  box-shadow: 0 20px 50px -20px rgba(31,42,75,.45);
}
.agent:hover .agent__title { color: var(--paper); }
.agent:hover .agent__body { color: var(--paper-edge); }
.agent:hover .agent__channel { color: var(--gold); border-color: var(--gold); }
.agent:hover .agent__icon { color: var(--gold); }

.agent--feature { grid-column: span 6; padding: 48px; min-height: 320px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
.agent--wide { grid-column: span 3; }
@media (max-width: 980px) {
  .agents { grid-template-columns: repeat(2, 1fr); }
  .agent, .agent--wide { grid-column: span 1; }
  .agent--feature { grid-column: span 2; grid-template-columns: 1fr; gap: 32px; padding: 36px 28px; }
}
@media (max-width: 600px) {
  .agents { grid-template-columns: 1fr; }
  .agent--feature { grid-column: span 1; }
}

.agent__channel {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-bottom: 1px solid var(--paper-edge);
  padding-bottom: 12px;
  margin-bottom: 24px;
  display: flex; justify-content: space-between;
  transition: all .3s;
}
.agent__title {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -.01em;
  margin-bottom: 16px;
  color: var(--ink);
  transition: color .3s;
  text-wrap: balance;
}
.agent--feature .agent__title { font-size: 52px; }
.agent__body { color: var(--ink-soft); font-size: 15px; line-height: 1.55; transition: color .3s; text-wrap: pretty; }
.agent__icon { color: var(--ink); margin-bottom: 24px; transition: color .3s; }

.agent__visual {
  align-self: stretch;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  min-height: 200px;
}

/* ─── Process timeline ─────────────────────── */
.process { position: relative; }
.process__rail {
  position: absolute;
  top: 28px; left: 0; right: 0;
  height: 1px; background: var(--paper-edge);
}
.process__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 820px) { .process__steps { grid-template-columns: 1fr 1fr; gap: 40px 24px; } .process__rail { display: none; } }
@media (max-width: 520px) { .process__steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 56px; }
.step__node {
  position: absolute; top: 22px; left: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--gold);
}
.step__node::after {
  content: ''; position: absolute; inset: 3px;
  border-radius: 50%; background: var(--gold);
  transform: scale(0); transition: transform .4s;
}
.step:hover .step__node::after, .step.is-active .step__node::after { transform: scale(1); }
.step__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--gold-deep);
  margin-bottom: 12px;
}
.step__title {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 12px;
}
.step__body { font-size: 14px; line-height: 1.6; color: var(--ink-soft); max-width: 28ch; }

/* ─── Results ─────────────────────── */
.results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 820px) { .results { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .results { grid-template-columns: 1fr; } }
.result {
  padding: 36px 32px 40px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.result:nth-child(even) { background: var(--paper-deep); color: var(--ink); }
.result:nth-child(even) .result__big { color: var(--ink); }
.result:nth-child(even) .result__label { color: var(--ink-mute); }
.result:nth-child(even) .result__body { color: var(--ink-soft); }
.result__big {
  font-family: var(--serif);
  font-size: 76px;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--gold);
}
.result__big small { font-size: 32px; opacity: .7; }
.result__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 16px;
  margin-bottom: 8px;
}
.result__title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.result__body { font-size: 13px; line-height: 1.55; opacity: .8; }

/* ─── Chat demo section ─────────────────────── */
.demo {
  background: linear-gradient(180deg, var(--paper-deep), var(--paper));
  border-top: 1px solid var(--paper-edge);
  border-bottom: 1px solid var(--paper-edge);
}
.demo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
@media (max-width: 980px) { .demo__grid { grid-template-columns: 1fr; gap: 48px; } }
.demo__caption .section__title { font-size: clamp(36px, 4.5vw, 60px); }
.demo__hints { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.demo__hint { display: flex; gap: 14px; align-items: start; font-size: 14px; color: var(--ink-soft); }
.demo__hint::before {
  content: ''; flex-shrink: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); margin-top: 7px;
}

/* Chat widget styling */
.aichat {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  border-radius: 24px;
  height: 560px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(31,42,75,.35), 0 1px 0 rgba(255,255,255,.5) inset;
}
.aichat__head {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--paper-edge);
  background: var(--paper-deep);
}
.aichat__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(47,110,90,.18);
  animation: dot-pulse 2.2s ease-in-out infinite;
}
@keyframes dot-pulse { 0%,100%{box-shadow:0 0 0 4px rgba(47,110,90,.18);} 50%{box-shadow:0 0 0 7px rgba(47,110,90,.08);} }
.aichat__title { font-size: 13px; color: var(--ink); font-weight: 500; }
.aichat__sub {
  margin-left: auto;
  font-family: var(--mono); font-size: 10px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ink-mute);
}
.aichat__log {
  flex: 1; overflow-y: auto;
  padding: 24px 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.aichat__msg { display: flex; max-width: 88%; }
.aichat__msg--bot { align-self: flex-start; }
.aichat__msg--user { align-self: flex-end; }
.aichat__bubble {
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 14px; line-height: 1.5;
  font-family: var(--sans);
}
.aichat__msg--bot .aichat__bubble {
  background: var(--paper-deep);
  color: var(--ink);
  border-bottom-left-radius: 6px;
}
.aichat__msg--user .aichat__bubble {
  background: var(--ink);
  color: var(--paper);
  border-bottom-right-radius: 6px;
}
.aichat__bubble p + p { margin-top: 8px; }
.aichat__typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.aichat__typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-mute); animation: type 1.2s ease-in-out infinite;
}
.aichat__typing i:nth-child(2) { animation-delay: .15s; }
.aichat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes type { 0%,80%,100% { opacity:.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.aichat__chips {
  padding: 0 22px 14px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.aichat__chip {
  border: 1px solid var(--paper-edge);
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px; padding: 8px 14px;
  border-radius: 999px;
  transition: all .2s;
}
.aichat__chip:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.aichat__form {
  display: flex; gap: 8px;
  padding: 14px 16px 18px;
  border-top: 1px solid var(--paper-edge);
  background: var(--paper-deep);
}
.aichat__input {
  flex: 1;
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  font-family: var(--sans);
  transition: border-color .2s;
}
.aichat__input:focus { border-color: var(--gold); }
.aichat__send {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.aichat__send:hover { background: var(--gold-deep); transform: scale(1.05); }

/* ─── FAQ ─────────────────────── */
.faq__list { border-top: 1px solid var(--paper-edge); }
.faq__item {
  border-bottom: 1px solid var(--paper-edge);
  padding: 28px 0;
  cursor: pointer;
}
.faq__q {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
  color: var(--ink);
}
.faq__plus {
  width: 36px; height: 36px;
  border: 1px solid var(--paper-edge);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s;
  color: var(--ink);
}
.faq__item.is-open .faq__plus { background: var(--ink); color: var(--paper); transform: rotate(45deg); }
.faq__a {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease;
  font-size: 16px; line-height: 1.6; color: var(--ink-soft);
  font-family: var(--sans);
}
.faq__item.is-open .faq__a { max-height: 320px; padding-top: 16px; }
.faq__a p { max-width: 60ch; }

/* ─── CTA final ─────────────────────── */
.final {
  padding: 140px 0;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.final__inner { text-align: center; max-width: 1000px; margin: 0 auto; position: relative; z-index: 2; }
.final__quote {
  font-family: var(--serif);
  font-size: clamp(20px, 1.6vw, 24px);
  font-style: italic;
  color: var(--gold);
  margin-bottom: 32px;
  letter-spacing: .02em;
}
.final__big {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--paper);
  text-wrap: balance;
  margin-bottom: 40px;
}
.final__big em { color: var(--gold); font-style: italic; }
.final__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.final .btn--primary { background: var(--gold); color: var(--ink); }
.final .btn--primary:hover { background: var(--paper); color: var(--ink); }
.final .btn--ghost { border-color: var(--paper-edge); color: var(--paper-edge); }
.final .btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.final__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
}
.final__meta i { font-style: normal; color: var(--gold); }
.final__breath {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 900px;
  z-index: 1;
  pointer-events: none;
  opacity: .08;
}
.final__breath circle { fill: none; stroke: var(--gold); stroke-width: .5; }

/* ─── Footer ─────────────────────── */
.foot { padding: 48px 0 40px; }
.foot__row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: end; }
.foot__brand { display: flex; align-items: center; gap: 12px; }
.foot__brand img { width: 28px; height: 28px; }
.foot__copy { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); letter-spacing: .12em; text-transform: uppercase; }
.foot__links { display: flex; gap: 24px; font-size: 13px; color: var(--ink-soft); }
.foot__links a:hover { color: var(--ink); }

/* ─── Scroll reveal ─────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .7s, transform .7s; }
.reveal--stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal--stagger.is-visible > *:nth-child(1) { transition-delay: .05s; }
.reveal--stagger.is-visible > *:nth-child(2) { transition-delay: .12s; }
.reveal--stagger.is-visible > *:nth-child(3) { transition-delay: .19s; }
.reveal--stagger.is-visible > *:nth-child(4) { transition-delay: .26s; }
.reveal--stagger.is-visible > *:nth-child(5) { transition-delay: .33s; }
.reveal--stagger.is-visible > *:nth-child(6) { transition-delay: .4s; }

/* Bottom reserved space for switcher */
.foot { padding-bottom: 90px; }

/* ─── Estudio (editorial spread) ─────────────────────── */
.studio { background: var(--paper-deep); border-top: 1px solid var(--paper-edge); border-bottom: 1px solid var(--paper-edge); }
.studio__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 980px) { .studio__grid { grid-template-columns: 1fr; gap: 48px; } }
.studio__visual { position: relative; }
.studio__primary {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  box-shadow: 0 30px 60px -30px rgba(31,42,75,.35);
  --image-slot-bg: #E3D5B3;
  --image-slot-color: #6B7494;
}
.studio__secondary {
  position: absolute;
  bottom: -56px; right: -24px;
  width: 46%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  border: 10px solid var(--paper);
  box-shadow: 0 20px 40px -20px rgba(31,42,75,.4);
  --image-slot-bg: #E3D5B3;
  --image-slot-color: #6B7494;
}
@media (max-width: 980px) { .studio__secondary { position: relative; bottom: 0; right: 0; width: 60%; margin-top: -56px; } }
.studio__caption {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 80px;
  padding-top: 16px;
  border-top: 1px solid var(--paper-edge);
  max-width: 320px;
}
.studio__num { font-family: var(--mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 18px; display: flex; gap: 14px; align-items: center; }
.studio__num::before { content: ''; width: 36px; height: 1px; background: var(--gold); }
.studio__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -.015em;
  color: var(--ink);
  margin-bottom: 28px;
  text-wrap: balance;
}
.studio__title em { font-style: italic; color: var(--rust); }
.studio__body p {
  font-family: var(--serif);
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.studio__body p + p { margin-top: 18px; }
.studio__signature {
  margin-top: 32px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  display: flex; align-items: center; gap: 12px;
}
.studio__signature::before { content: ''; width: 32px; height: 1px; background: var(--gold); }

/* ─── Voces (testimonial) ─────────────────────── */
.voices {
  padding: 120px 0;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.voices__grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  position: relative; z-index: 2;
}
@media (max-width: 820px) { .voices__grid { grid-template-columns: 1fr; gap: 36px; } }
.voices__portrait {
  width: 260px;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  --image-slot-bg: #14213F;
  --image-slot-color: #C9A961;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.4);
}
@media (max-width: 820px) { .voices__portrait { width: 200px; } }
.voices__quote {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.18;
  letter-spacing: -.01em;
  color: var(--paper);
  font-style: italic;
  text-wrap: balance;
}
.voices__quote::before { content: '"'; color: var(--gold); margin-right: 4px; }
.voices__quote::after { content: '"'; color: var(--gold); margin-left: 2px; }
.voices__attribution {
  margin-top: 26px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
}
.voices__attribution b { color: var(--paper); font-weight: 500; }
.voices__deco {
  position: absolute;
  font-family: var(--serif);
  font-style: italic;
  font-size: 360px;
  color: var(--gold);
  opacity: .06;
  left: -40px; top: -120px;
  line-height: 1;
  z-index: 1;
  pointer-events: none;
}

/* ─── Hero portrait stamp (optional, beside lede) ─────────────────────── */
.hero__stamp {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-mute);
}
.hero__stamp-img {
  width: 56px; height: 56px;
  border-radius: 50%;
  --image-slot-bg: #E3D5B3;
  --image-slot-color: #6B7494;
}
.hero__stamp i { font-style: normal; color: var(--ink); font-family: var(--serif); font-size: 14px; letter-spacing: 0; text-transform: none; }

/* ─── Photo treatment (ken-burns + warm wash) ─────────────────────── */
.photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  filter: saturate(.78) contrast(1.02) sepia(.06);
}
.photo--frame { overflow: hidden; border-radius: 6px; }
.kenburns { overflow: hidden; }
.kenburns img { animation: kenburns 22s ease-in-out infinite alternate; transform-origin: center; }
@keyframes kenburns {
  0%   { transform: scale(1.02) translate(0,0); }
  100% { transform: scale(1.12) translate(-1%, -1.5%); }
}
.kenburns--alt img { animation-direction: alternate-reverse; animation-duration: 26s; }

/* Photo stamp overlay */
.photo-card { position: relative; overflow: hidden; }
.photo-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(31,42,75,.18));
  pointer-events: none;
}
.photo-card__caption {
  position: absolute;
  left: 18px; bottom: 16px;
  color: var(--paper);
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase;
  z-index: 2;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}

/* ─── Marquee strip ─────────────────────── */
.marquee {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  border-top: 1px solid var(--paper-edge);
  border-bottom: 1px solid var(--paper-edge);
  padding: 22px 0;
  position: relative;
}
.marquee__track {
  display: flex; align-items: center; gap: 56px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 44px);
  font-style: italic;
  letter-spacing: -.01em;
}
.marquee__track span { display: inline-flex; align-items: center; gap: 56px; flex-shrink: 0; }
.marquee__sep {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  vertical-align: middle;
}
.marquee em { font-style: italic; color: var(--gold); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee--paper { background: var(--paper-deep); color: var(--ink); }

/* ─── Logo float animation ─────────────────────── */
.brand img, .foot__brand img { animation: logo-float 9s ease-in-out infinite; transform-origin: center; }
@keyframes logo-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-3px) rotate(2deg); }
}

/* ─── Hero ambient logo watermark ─────────────────────── */
.hero__wm {
  position: absolute;
  right: 6%; bottom: 60px;
  width: 92px; height: 92px;
  opacity: .35;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(31,42,75,.15));
  transform: translate(calc(var(--mx, 0px) * -0.4), calc(var(--my, 0px) * -0.4));
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.hero__wm img { width: 100%; height: 100%; animation: logo-rotate 60s linear infinite; }
@keyframes logo-rotate { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@media (max-width: 720px) { .hero__wm { display: none; } }

/* ─── Hover lift for photo blocks ─────────────────────── */
.photo-card { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.photo-card:hover { transform: translateY(-4px); }

/* Voices: improve grain on portrait */
.voices__portrait .photo { filter: saturate(.7) contrast(1.05) sepia(.04); }

/* ─── Language pill (in nav) ─────────────────────── */
.lang-pill {
  display: inline-flex;
  gap: 0;
  border: 1px solid var(--paper-edge);
  border-radius: 999px;
  padding: 3px;
  background: transparent;
  transition: border-color .3s, background .3s;
}
.lang-pill button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .25s ease;
}
.lang-pill button:hover { color: var(--ink); }
.lang-pill button.is-active { background: var(--ink); color: var(--paper); }
@media (max-width: 980px) { .lang-pill { display: none; } }

/* ─── DARK THEME OVERRIDES (Nocturno) ─────────────────────── */
[data-theme="dark"] {
  --paper:        #0A1124;
  --paper-deep:   #0E1830;
  --paper-edge:   rgba(242,230,204,.12);
  --ink:          #F2E6CC;
  --ink-soft:     #D8CBB0;
  --ink-mute:     #8E8676;
  --gold:         #D6B26A;
  --gold-deep:    #E8C682;
  --rust:         #D87653;
  --ok:           #6CC2A4;
}
[data-theme="dark"] body::before {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(214,178,106,.08), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(216,118,83,.05), transparent 60%),
    radial-gradient(ellipse at 0% 70%, rgba(108,194,164,.04), transparent 60%);
}
[data-theme="dark"] body::after {
  mix-blend-mode: overlay;
  opacity: 0.6;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.9  0 0 0 0 0.8  0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
[data-theme="dark"] .nav {
  background: linear-gradient(180deg, rgba(10,17,36,.88) 60%, rgba(10,17,36,0));
}
[data-theme="dark"] .brand img { filter: drop-shadow(0 0 8px rgba(214,178,106,.3)); }
[data-theme="dark"] .brand__word b { color: var(--gold); }
[data-theme="dark"] .nav__cta { background: var(--gold); color: var(--paper); font-weight: 500; }
[data-theme="dark"] .nav__cta:hover { background: var(--ink); color: var(--paper); }

[data-theme="dark"] .hero__breath circle { stroke: var(--ink); opacity: .8; }
[data-theme="dark"] .hero__breath circle:nth-child(odd) { stroke: var(--gold); }
[data-theme="dark"] .hero__breath .core { fill: var(--gold); filter: drop-shadow(0 0 14px rgba(214,178,106,.55)); }
[data-theme="dark"] .hero__title em { color: var(--gold); }
[data-theme="dark"] .hero__title .amp { color: var(--rust); }
[data-theme="dark"] .hero__wm { opacity: .45; }
[data-theme="dark"] .hero__wm img { filter: drop-shadow(0 0 16px rgba(214,178,106,.4)); }

[data-theme="dark"] .btn--primary { background: var(--gold); color: var(--paper); }
[data-theme="dark"] .btn--primary:hover { background: var(--ink); color: var(--paper); }
[data-theme="dark"] .btn--ghost { color: var(--ink); border-color: rgba(242,230,204,.3); }
[data-theme="dark"] .btn--ghost:hover { background: rgba(242,230,204,.06); border-color: var(--ink); }

[data-theme="dark"] .marquee--paper { background: var(--paper-deep); color: var(--ink); }
[data-theme="dark"] .marquee--paper em { color: var(--gold); }

[data-theme="dark"] .section__title em,
[data-theme="dark"] .diff__title em,
[data-theme="dark"] .agent__title em { color: var(--gold); }
[data-theme="dark"] .diff__title em { color: var(--rust); }

[data-theme="dark"] .agent {
  background: var(--paper-deep);
  border-color: rgba(242,230,204,.1);
}
[data-theme="dark"] .agent:hover {
  background: var(--gold);
  color: var(--paper);
  box-shadow: 0 20px 50px -20px rgba(214,178,106,.35);
}
[data-theme="dark"] .agent:hover .agent__title { color: var(--paper); }
[data-theme="dark"] .agent:hover .agent__body { color: var(--paper); opacity: .85; }
[data-theme="dark"] .agent:hover .agent__channel { color: var(--paper); border-color: rgba(10,17,36,.3); }
[data-theme="dark"] .agent:hover .agent__icon { color: var(--paper); }
[data-theme="dark"] .agent__channel { border-color: rgba(242,230,204,.1); color: var(--ink-mute); }

[data-theme="dark"] .step__node { background: var(--paper); border-color: var(--gold); }
[data-theme="dark"] .step:hover .step__node::after,
[data-theme="dark"] .step.is-active .step__node::after { background: var(--gold); }

[data-theme="dark"] .result { background: var(--paper-deep); color: var(--ink); }
[data-theme="dark"] .result:nth-child(even) { background: var(--gold); color: var(--paper); }
[data-theme="dark"] .result:nth-child(even) .result__big { color: var(--paper); }
[data-theme="dark"] .result:nth-child(even) .result__label { color: var(--paper); opacity: .7; }
[data-theme="dark"] .result:nth-child(even) .result__body { color: var(--paper); opacity: .85; }
[data-theme="dark"] .result__big { color: var(--gold); }

[data-theme="dark"] .studio { background: var(--paper-deep); }
[data-theme="dark"] .studio__title em { color: var(--gold); }
[data-theme="dark"] .studio__secondary { border-color: var(--paper-deep); }

[data-theme="dark"] .voices { background: var(--paper-deep); }
[data-theme="dark"] .voices__quote { color: var(--ink); }
[data-theme="dark"] .voices__quote::before, [data-theme="dark"] .voices__quote::after { color: var(--gold); }
[data-theme="dark"] .voices__attribution b { color: var(--ink); }
[data-theme="dark"] .voices__attribution { color: var(--gold); }
[data-theme="dark"] .voices__deco { color: var(--gold); opacity: .07; }

[data-theme="dark"] .demo {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(214,178,106,.06), transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(216,118,83,.05), transparent 50%),
    var(--paper-deep);
}
[data-theme="dark"] .aichat {
  background: var(--paper);
  border-color: rgba(242,230,204,.14);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.6),
              0 0 0 1px rgba(214,178,106,.05) inset,
              0 30px 60px -20px rgba(214,178,106,.08);
}
[data-theme="dark"] .aichat__head { background: var(--paper-deep); border-color: rgba(242,230,204,.1); }
[data-theme="dark"] .aichat__title { color: var(--ink); }
[data-theme="dark"] .aichat__msg--bot .aichat__bubble { background: var(--paper-deep); color: var(--ink); }
[data-theme="dark"] .aichat__msg--user .aichat__bubble { background: var(--gold); color: var(--paper); font-weight: 500; }
[data-theme="dark"] .aichat__chip { color: var(--ink-soft); border-color: rgba(242,230,204,.18); }
[data-theme="dark"] .aichat__chip:hover { background: var(--gold); color: var(--paper); border-color: var(--gold); }
[data-theme="dark"] .aichat__form { background: var(--paper-deep); border-color: rgba(242,230,204,.1); }
[data-theme="dark"] .aichat__input { background: var(--paper); border-color: rgba(242,230,204,.14); color: var(--ink); }
[data-theme="dark"] .aichat__input::placeholder { color: var(--ink-mute); }
[data-theme="dark"] .aichat__input:focus { border-color: var(--gold); }
[data-theme="dark"] .aichat__send { background: var(--gold); color: var(--paper); }
[data-theme="dark"] .aichat__send:hover { background: var(--ink); color: var(--paper); }

[data-theme="dark"] .faq__item.is-open .faq__plus { background: var(--gold); color: var(--paper); border-color: var(--gold); }

[data-theme="dark"] .final {
  background: linear-gradient(180deg, var(--paper), var(--paper-deep));
}
[data-theme="dark"] .final__quote { color: var(--gold); }
[data-theme="dark"] .final__big em { color: var(--gold); }
[data-theme="dark"] .final .btn--primary { background: var(--gold); color: var(--paper); }
[data-theme="dark"] .final .btn--primary:hover { background: var(--ink); color: var(--paper); }
[data-theme="dark"] .final .btn--ghost { border-color: rgba(242,230,204,.3); color: var(--ink); }
[data-theme="dark"] .final .btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
[data-theme="dark"] .final__meta { color: var(--ink-mute); }
[data-theme="dark"] .final__meta i { color: var(--gold); }

[data-theme="dark"] .foot__copy { color: var(--ink-mute); }
[data-theme="dark"] .lang-pill { border-color: rgba(242,230,204,.2); }
[data-theme="dark"] .lang-pill button { color: var(--ink-soft); }
[data-theme="dark"] .lang-pill button:hover { color: var(--ink); }
[data-theme="dark"] .lang-pill button.is-active { background: var(--gold); color: var(--paper); }

[data-theme="dark"] .photo { filter: saturate(.55) contrast(1.05) brightness(.75); }
[data-theme="dark"] .photo-card::after {
  background: linear-gradient(180deg, rgba(10,17,36,.1) 0%, transparent 30%, transparent 60%, rgba(10,17,36,.55) 100%);
}

/* Theme transition smoothing */
html, body { transition: background-color .5s ease, color .5s ease; }
.agent, .result, .aichat, .studio, .voices, .final, .demo, .marquee, .nav, .btn { transition: background-color .4s ease, color .4s ease, border-color .4s ease, box-shadow .4s ease; }

/* ─── Google Translate widget — hide banner & cleanup ─────────────────── */
.skiptranslate, #goog-gt-tt, .goog-te-banner-frame, .goog-te-balloon-frame { display: none !important; }
body.translated-rtl, body.translated-ltr { top: 0 !important; }
body > .skiptranslate { display: none !important; }
.goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background: transparent !important; box-shadow: none !important; }
html { top: 0 !important; }
font[style*="background"] { background: transparent !important; }

/* ─── Theme-aware SVG primitives (for inline mockups) ─────────────────── */
.svg-frame      { fill: var(--paper); stroke: var(--ink); }
.svg-frame-line { stroke: var(--ink); opacity: .35; }
.svg-bubble     { fill: var(--paper-deep); }
.svg-bubble-ink { fill: var(--ink); }
.svg-text-ink   { fill: var(--ink); }
.svg-text-paper { fill: var(--paper); }

/* ─── Social buttons (brand colors, theme-stable) ─────────────────── */
.socials {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.social {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,.2);
}
.social:hover {
  transform: translateY(-2px) scale(1.06);
  filter: brightness(1.08);
  box-shadow: 0 8px 18px -4px rgba(0,0,0,.3);
}
.social svg { width: 15px; height: 15px; position: relative; z-index: 1; }
.social--ig {
  background: radial-gradient(circle at 30% 110%, #FED576 0%, #F47133 20%, #BC3081 45%, #4C63D2 90%);
}
.social--fb { background: #1877F2; }
.social--tk {
  background: #000;
}
.social--tk::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(255,0,80,.6) 0%, transparent 25%, rgba(0,242,234,.6) 65%, transparent 95%);
  mix-blend-mode: screen;
}
.social--li { background: #0A66C2; }
.social--yt { background: #FF0000; }

@media (max-width: 640px) {
  .foot__row { flex-direction: column; align-items: flex-start; gap: 28px; }
}
