/* ---------- Tokens ---------- */
:root {
  --color-primary: #4F4FE0;
  --color-primary-dark: #3A3AC0;
  --color-primary-light: #E3E3FB;

  --color-ink: #1C1E33;
  --color-ink-2: #14142C;
  --color-text: #1A1A2E;
  --color-text-soft: #6B6A7C;
  --color-text-invert: #F1F0FA;
  --color-text-invert-soft: #9997B3;

  --color-border: #E7E6F2;
  --color-border-dark: rgba(255,255,255,.12);
  --color-bg: #FFFFFF;
  --color-bg-alt: #F7F7FC;

  --font-heading: "Plus Jakarta Sans", sans-serif;
  --font-body: "DM Sans", sans-serif;

  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 24px 60px -28px rgba(28, 30, 51, 0.4);
  --shadow-glow: 0 20px 50px -18px rgba(79, 79, 224, .45);
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-ink); margin: 0 0 .6em; line-height: 1.15; letter-spacing: -0.015em; }
p { margin: 0 0 1em; color: var(--color-text-soft); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.tag-label {
  display: inline-block;
  font-family: var(--font-heading); font-weight: 700; font-size: .92rem;
  color: var(--color-primary);
  margin-bottom: 18px;
}
.tag-label--light { color: #B9BCF7; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 600; font-size: .95rem;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-outline { background: transparent; color: var(--color-ink); border-color: var(--color-border); }
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline--invert { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline--invert:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-dark { background: var(--color-ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-light { background: #fff; color: var(--color-primary); }
.btn-sm { padding: 10px 20px; font-size: .85rem; }

.btn-client {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-color: transparent;
}
.btn-client:hover { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-glow); }
.btn-client-icon { width: 16px; height: 16px; transition: transform .2s ease; }
.btn-client:hover .btn-client-icon { transform: translateX(2px); }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--color-primary); z-index: 200;
  transition: width .1s ease-out;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 8px 24px -18px rgba(28,30,51,.3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 24px; }
.logo img { height: 30px; }
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.main-nav a[data-nav-link] {
  position: relative;
  padding-bottom: 6px;
  font-weight: 500; font-size: .93rem; color: var(--color-text);
  transition: color .15s ease;
}
.main-nav a[data-nav-link]::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; border-radius: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}
.main-nav a[data-nav-link]:hover, .main-nav a[data-nav-link].active { color: var(--color-primary); }
.main-nav a[data-nav-link]:hover::after, .main-nav a[data-nav-link].active::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
  padding-left: 24px;
  border-left: 1px solid var(--color-border);
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--color-ink); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 110px; overflow: hidden; }
.hero-wash {
  position: absolute; inset: -10% -10% auto -10%; height: 720px;
  background: radial-gradient(60% 60% at 78% 15%, rgba(79,79,224,.16), transparent 70%),
              radial-gradient(40% 40% at 95% 45%, rgba(79,79,224,.1), transparent 70%);
  z-index: 0;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr .95fr; gap: 56px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.2rem, 3.8vw, 3.3rem); font-weight: 800; }
.hero-copy h1 .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.hero-copy h1 .word-inner {
  display: inline-block;
  transform: translateY(115%);
  animation: word-rise .7s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: var(--word-delay, 0s);
}
@keyframes word-rise { to { transform: translateY(0); } }
.hero-sub { font-size: 1.08rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Hero visual: glass composition ---------- */
.hero-visual { position: relative; }
.glass-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255,255,255,.6);
}
.glass-frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.glass-frame img.js-parallax { transform: scale(1.12) translateY(var(--parallax-y, 0px)); }
.glass-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(79,79,224,.18), transparent 55%);
}

.glass-chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-soft);
  max-width: 240px;
  animation: float 6s ease-in-out infinite;
}
.glass-chip strong { display: block; font-family: var(--font-heading); font-size: .85rem; color: var(--color-ink); }
.glass-chip small { color: var(--color-text-soft); font-size: .75rem; }
.glass-chip--b { bottom: -8%; right: -6%; animation-delay: .4s; }
.glass-chip-icon {
  flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-primary-light); color: var(--color-primary);
}
.glass-chip-icon svg { width: 19px; height: 19px; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- YUDA Market (flagship) ---------- */
.product-badge {
  display: inline-block;
  font-family: var(--font-heading); font-weight: 700; font-size: .78rem;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
/* ---------- Stats ---------- */
.stats-section { padding: 44px 0; background: var(--color-bg-alt); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-value { font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--color-ink); }
.stat-item small { color: var(--color-text-soft); font-size: .82rem; }

.market-section { padding: 90px 0 110px; }
.market-grid { display: grid; grid-template-columns: .95fr 1fr; gap: 56px; align-items: center; }
.market-visual { position: relative; }
.market-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.market-copy p { font-size: 1.05rem; }

/* ---------- Spotlight: cotización + curso ---------- */
.spotlight-section { padding-top: 90px; padding-bottom: 90px; background: var(--color-bg-alt); }
.spotlight-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.spotlight-card {
  display: flex; flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.spotlight-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.spotlight-card h3 { font-size: 1.4rem; }
.spotlight-card p { font-size: .98rem; margin-bottom: 24px; }
.spotlight-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Dark services bar ---------- */
.services-bar { background: var(--color-ink); padding: 26px 0; }
.services-bar-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px 44px; }
.services-bar-item { display: flex; align-items: center; gap: 10px; color: var(--color-text-invert-soft); font-size: .92rem; font-weight: 500; }
.services-bar-icon { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; color: #B9BCF7; flex-shrink: 0; }
.services-bar-icon svg { width: 18px; height: 18px; }

/* ---------- Trust cards ---------- */
.trust-section { background: var(--color-bg-alt); padding: 40px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust-card {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 18px 20px;
  box-shadow: var(--shadow-soft);
}
.is-magnetic { transition: transform .15s ease-out; will-change: transform; }
.trust-card strong { display: block; font-size: .92rem; }
.trust-card small { color: var(--color-text-soft); font-size: .8rem; }
.trust-pill {
  flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 999px;
  background: var(--color-primary-light); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: .78rem;
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-ink { background: var(--color-ink); }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink p { color: var(--color-text-invert-soft); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head .tag-label { justify-content: center; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-head p { font-size: 1.05rem; }
.section-head--light h2 { color: #fff; }

/* ---------- Dark split (services detail) ---------- */
.dark-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.dark-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 320px;
}
.dark-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.dark-photo-caption {
  position: relative; z-index: 1;
  margin-top: auto;
  background: linear-gradient(0deg, rgba(28,30,51,.92), rgba(28,30,51,.1));
  padding: 32px 26px 24px;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.dark-photo-caption strong { display: block; color: #fff; font-family: var(--font-heading); font-size: 1.05rem; margin-bottom: 6px; }
.dark-photo-caption p { color: var(--color-text-invert-soft); font-size: .9rem; margin: 0; max-width: 36ch; }

.dark-list { display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.dark-list-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--color-border-dark);
}
.dark-list-item:last-child { border-bottom: none; }
.dark-list-item strong { display: block; color: #fff; font-family: var(--font-heading); font-size: 1rem; margin-bottom: 4px; }
.dark-list-item p { color: var(--color-text-invert-soft); font-size: .9rem; margin: 0; }
.link-arrow { display: inline-block; margin-top: 10px; font-weight: 600; font-size: .88rem; color: var(--color-primary); }
.link-arrow--light { color: #B9BCF7; }
.link-arrow--light:hover { color: #fff; }

/* ---------- Process ---------- */
.process-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-line {
  position: absolute; top: 48px; left: 12.5%; right: 12.5%; height: 2px;
  z-index: 0;
  background-image: repeating-linear-gradient(90deg, var(--color-primary) 0 8px, transparent 8px 16px);
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
}
.process-card {
  position: relative; z-index: 1;
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.process-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.process-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-primary-light); color: var(--color-primary);
  font-family: var(--font-heading); font-weight: 700; font-size: 1rem;
  margin-bottom: 18px;
}
.process-card h3 { font-size: 1.05rem; }
.process-card p { font-size: .9rem; margin-bottom: 0; }
@media (max-width: 960px) {
  .process-line { display: none; }
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about-copy h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.checklist { margin: 24px 0 32px; display: flex; flex-direction: column; gap: 14px; }
.checklist li { position: relative; padding-left: 32px; font-weight: 500; color: var(--color-text); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--color-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 12px;
}

/* ---------- Office gallery ---------- */
.office-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.office-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4/5;
}
.office-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.office-card img.js-parallax { transform: scale(1.12) translateY(var(--parallax-y, 0px)); }
.office-card:hover img.js-parallax { transform: scale(1.2) translateY(var(--parallax-y, 0px)); }

/* ---------- CTA banner ---------- */
.cta-banner { position: relative; overflow: hidden; background: var(--color-ink); }
.cta-glow {
  position: absolute; inset: 0;
  background: radial-gradient(50% 80% at 85% 20%, rgba(79,79,224,.35), transparent 70%);
}
.cta-banner-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 72px 24px; flex-wrap: wrap; }
.cta-route { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.cta-route-badge {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,.28);
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.7);
  font-size: 1.3rem; line-height: 1;
}
.cta-route-badge--flag { background: #fff; }
.cta-route-badge--globe { background: var(--color-primary-light); color: var(--color-primary); }
.cta-route-badge--globe svg { width: 22px; height: 22px; }
.cta-route-line {
  flex: 0 0 52px; height: 1px;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 6px, transparent 6px 13px);
  position: relative;
}
.cta-route-line::after {
  content: '';
  position: absolute; right: -1px; top: 50%;
  width: 6px; height: 6px;
  border-top: 1.5px solid rgba(255,255,255,.65); border-right: 1.5px solid rgba(255,255,255,.65);
  transform: translateY(-50%) rotate(45deg);
}
.cta-banner-inner h2 { color: #fff; margin-bottom: .3em; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.cta-banner-inner p { color: var(--color-text-invert-soft); margin: 0; max-width: 42ch; }
.cta-banner-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-ink); color: var(--color-text-invert-soft); padding: 80px 0 0; border-top: 1px solid var(--color-border-dark); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--color-border-dark); }
.footer-logo { height: 28px; margin-bottom: 16px; }
.footer-brand p { color: var(--color-text-invert-soft); max-width: 30ch; }
.footer-social { display: flex; gap: 16px; margin-top: 16px; }
.footer-social a, .footer-social span { font-size: .85rem; font-weight: 500; color: var(--color-text-invert-soft); }
.footer-social a:hover { color: #fff; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--color-text-invert-soft); font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.footer-address li { color: var(--color-text-invert-soft); font-size: .9rem; line-height: 1.5; }
.footer-address strong { color: #fff; }
.footer-bottom { padding: 24px; text-align: center; }
.footer-bottom p { color: #5C5A72; font-size: .82rem; margin: 0; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.process-grid [data-reveal]:nth-child(1) { transition-delay: 0s; }
.process-grid [data-reveal]:nth-child(2) { transition-delay: .1s; }
.process-grid [data-reveal]:nth-child(3) { transition-delay: .2s; }
.process-grid [data-reveal]:nth-child(4) { transition-delay: .3s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .dark-split, .market-grid { grid-template-columns: 1fr; }
  .hero-visual, .market-visual { order: -1; margin-bottom: 10px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dark-photo { min-height: 260px; }
  .office-grid { grid-template-columns: repeat(2, 1fr); }
  /* En layout de una columna la imagen ocupa casi todo el ancho del container;
     el sangrado original (right:-6%) queda cortado feo por el overflow:hidden
     de .hero, así que se reduce para que la tarjeta quede siempre visible. */
  .glass-chip--b { right: 4%; bottom: 6%; }
}

@media (max-width: 900px) {
  /* El nav completo (6 links + acciones) necesita ~870px para no desbordar;
     por eso colapsa a hamburguesa antes del breakpoint general de 720px. */
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open .main-nav {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 20px 24px 24px;
    border-bottom: 1px solid var(--color-border);
    gap: 18px;
  }
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    padding-top: 18px;
    border-left: none;
    border-top: 1px solid var(--color-border);
  }
  .nav-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 720px) {
  .trust-grid { grid-template-columns: 1fr; }
  .spotlight-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .glass-chip { display: none; }
  .cta-banner-inner { flex-direction: column; text-align: center; }
  .office-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .55);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 18px 36px -10px rgba(37, 211, 102, .65); }
.whatsapp-float svg { width: 30px; height: 30px; }

@media (max-width: 720px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

.btn-block { width: 100%; justify-content: center; }

/* ---------- Market password gate ---------- */
.market-gate {
  position: fixed; inset: 0; z-index: 300;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.market-gate.is-open { display: flex; }
.market-gate-backdrop {
  position: absolute; inset: 0;
  background: rgba(20,20,44,.6);
  backdrop-filter: blur(4px);
}
.market-gate-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 40px;
  max-width: 380px; width: 100%;
  text-align: center;
  animation: gate-in .25s ease;
}
@keyframes gate-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.market-gate-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; cursor: pointer;
  font-size: 1.4rem; line-height: 1; color: var(--color-text-soft);
}
.market-gate-close:hover { color: var(--color-ink); }
.market-gate-card h3 { font-size: 1.3rem; margin: 8px 0 10px; }
.market-gate-card p { font-size: .92rem; margin-bottom: 22px; }
.market-gate-card form { display: flex; flex-direction: column; gap: 14px; }
.market-gate-card input {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--color-border); font-family: inherit; font-size: .95rem;
  text-align: center; letter-spacing: 2px;
}
.market-gate-card input:focus { outline: none; border-color: var(--color-primary); }
.market-gate-error { display: none; color: #C0392B; font-size: .85rem; margin: -6px 0 0; }
.market-gate.has-error .market-gate-error { display: block; }
.market-gate.has-error input { border-color: #C0392B; }

/* ---------- Custom cursor (fine pointers only) ---------- */
@media (pointer: fine) {
  html.has-custom-cursor, html.has-custom-cursor * {
    cursor: none;
  }
  html.has-custom-cursor input, html.has-custom-cursor textarea {
    cursor: text;
  }
  .cursor-dot, .cursor-ring {
    position: fixed; top: 0; left: 0; z-index: 999;
    pointer-events: none;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity .2s ease;
  }
  html.has-custom-cursor .cursor-dot,
  html.has-custom-cursor .cursor-ring {
    opacity: 1;
  }
  .cursor-dot {
    width: 7px; height: 7px;
    background: var(--color-primary);
  }
  .cursor-ring {
    width: 34px; height: 34px;
    border: 1.5px solid rgba(79,79,224,.45);
    transition: opacity .2s ease, width .25s cubic-bezier(.2,.8,.2,1), height .25s cubic-bezier(.2,.8,.2,1), border-color .25s ease, background .25s ease;
  }
  .cursor-ring.is-hover {
    width: 54px; height: 54px;
    border-color: var(--color-primary);
    background: rgba(79,79,224,.08);
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  html.has-custom-cursor, html.has-custom-cursor * { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
  .hero-copy h1 .word-inner { transform: none; animation: none; }
}
