/* ============================================================
   TURNIFY INC. — DESIGN SYSTEM v2.0
   Architecture: Sharlee-tier
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Syne:wght@700;800&display=swap');

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  --bg:          #050507;
  --surface-0:   #0a0a0f;
  --surface-1:   #0f0f16;
  --surface-2:   #14141d;
  --accent:      #ff7a30;
  --accent-dim:  rgba(255, 122, 48, 0.12);
  --accent-glow: rgba(255, 122, 48, 0.25);
  --text-hi:     #f0f0f5;
  --text-md:     #8888a0;
  --text-lo:     #444458;
  --border-sub:  rgba(255, 255, 255, 0.05);
  --border-base: rgba(255, 255, 255, 0.09);
  --border-hi:   rgba(255, 255, 255, 0.15);
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   14px;
  --font-display:'Syne', system-ui, sans-serif;
  --font-body:   'Inter', -apple-system, sans-serif;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --transition:  0.35s var(--ease-out);
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--text-hi);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NOISE LAYER ─────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ── AMBIENT GRADIENT ────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  top: -20vh;
  left: 50%;
  transform: translateX(-50%);
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── LAYOUT WRAPPER ──────────────────────────────────────── */
.site-wrap { position: relative; z-index: 1; }


/* ══════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 8%;
  border-bottom: 1px solid var(--border-sub);
  background: rgba(5, 5, 7, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-hi);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  color: var(--text-md);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.01em;
}

.nav-link:hover {
  color: var(--text-hi);
  background: var(--border-sub);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.nav-cta:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.nav-cta-icon {
  display: flex;
  align-items: center;
  opacity: 0.85;
}
.nav-cta-icon svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}


/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */

.hero {
  padding: 9rem 8% 6rem;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.9rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 999px;
}

.eyebrow-divider {
  width: 32px;
  height: 1px;
  background: var(--border-hi);
}

.eyebrow-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-md);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 750;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--text-hi);
  margin-bottom: 2rem;
  max-width: 14ch;
}

.hero-heading .line-dim {
  color: var(--text-lo);
}

.hero-heading .word-accent {
  position: relative;
  display: inline-block;
}

.hero-heading .word-accent::after {
  content: '';
  position: absolute;
  bottom: 0.08em;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-md);
  max-width: 38ch;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-hi);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-md);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

.hero-meta-divider {
  width: 1px;
  height: 36px;
  background: var(--border-base);
}

/* Ticker */
.hero-ticker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--surface-1);
  border: 1px solid var(--border-base);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--text-md);
}

.ticker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: live-pulse 1.6s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

.ticker-count {
  font-weight: 600;
  color: var(--text-hi);
}


/* ══════════════════════════════════════════════════════════
   DIVIDER
══════════════════════════════════════════════════════════ */

.section-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 5rem 8% 5rem;
}

.divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hi), transparent);
}

.divider-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-lo);
  font-weight: 700;
  white-space: nowrap;
  padding: .35rem .9rem;
  border: 1px solid var(--border-base);
  border-radius: 999px;
  background: var(--surface-1);
}


/* ══════════════════════════════════════════════════════════
   BENTO GRID
══════════════════════════════════════════════════════════ */

.ecosystem {
  padding: 0 8% 8rem;
}

.ecosystem-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.ecosystem-title {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-md);
}

.ecosystem-count {
  font-size: 0.75rem;
  color: var(--text-lo);
  font-variant-numeric: tabular-nums;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-sub);
  border: 1px solid var(--border-sub);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Unit Card */
.unit {
  position: relative;
  background: var(--surface-0);
  padding: 2.5rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  transition: background var(--transition);
}

.unit::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition);
  transform: scaleX(0);
  transition: opacity var(--transition), transform var(--transition);
}

.unit:hover {
  background: var(--surface-1);
}

.unit:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.unit-index {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-lo);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 2rem;
  font-family: var(--font-body);
}

.unit-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  border: 1px solid rgba(37, 99, 235, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: background var(--transition), border-color var(--transition);
}

.unit-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.unit:hover .unit-icon {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.3);
}

.unit-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-hi);
  letter-spacing: -0.03em;
  margin-bottom: 0.65rem;
  line-height: 1.1;
}

.unit-desc {
  font-size: 0.85rem;
  color: var(--text-md);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 2rem;
}

.unit-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-sub);
}

.unit-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  color: var(--text-lo);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
}

.unit-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: gap var(--transition), opacity var(--transition);
}

.unit-link:hover {
  gap: 0.65rem;
}

.unit-link-arrow {
  font-size: 0.85rem;
  transition: transform var(--transition);
}

.unit:hover .unit-link-arrow {
  transform: translateX(3px);
}

/* Corner tag */
.unit-tag {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--border-base);
  border-radius: 3px;
  color: var(--text-lo);
  font-family: var(--font-body);
}


/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */

footer {
  padding: 2.5rem 8%;
  border-top: 1px solid var(--border-sub);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-lo);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-lo);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--text-lo);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--text-md); }


/* ══════════════════════════════════════════════════════════
   ANIMATIONS ON LOAD
══════════════════════════════════════════════════════════ */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim {
  opacity: 0;
  animation: fade-up 0.7s var(--ease-out) forwards;
}

.anim-1 { animation-delay: 0.05s; }
.anim-2 { animation-delay: 0.15s; }
.anim-3 { animation-delay: 0.25s; }
.anim-4 { animation-delay: 0.38s; }
.anim-5 { animation-delay: 0.50s; }


/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .navbar {
    padding: 1rem 5%;
  }

  .hero {
    padding: 6rem 5% 4rem;
  }

  .ecosystem {
    padding: 0 5% 6rem;
  }

  footer {
    padding: 2rem 5%;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
}

@media (max-width: 600px) {
  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero-meta-divider { display: none; }

  .nav-center { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .anim { animation: none; opacity: 1; }
  .logo-dot, .ticker-dot { animation: none; }
}
/* ═══════════════════════════════════════════════
   LIGHT MODE
═══════════════════════════════════════════════ */
html[data-theme="light"] {
  --bg:          #f5f3ef;
  --surface-0:   #faf9f7;
  --surface-1:   #eeecea;
  --surface-2:   #e4e2de;
  --accent:      #ff7a30;
  --accent-dim:  rgba(255, 122, 48, 0.08);
  --accent-glow: rgba(255, 122, 48, 0.18);
  --text-hi:     #1a1814;
  --text-md:     #5a5650;
  --text-lo:     #a09c98;
  --border-sub:  rgba(0,0,0,.05);
  --border-base: rgba(0,0,0,.09);
  --border-hi:   rgba(0,0,0,.15);
}
html[data-theme="light"] body { color-scheme: light; }

/* Transición suave día/noche */
html, body, .navbar, .unit, .chat-mock, .roadmap-item, .waitlist-box, .coco-pill {
  transition: background-color .8s var(--ease-out), border-color .8s var(--ease-out), color .8s var(--ease-out);
}

/* cursor nativo en Coco — sin ring personalizado */

/* ── CURSOR RING ─────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, .coco-pill { cursor: none; }

  .cursor-dot, .cursor-ring {
    position: fixed; top:0; left:0;
    pointer-events:none; z-index:9999;
    border-radius:50%;
    transform:translate(-50%,-50%);
    will-change:transform;
  }
  .cursor-dot {
    width:6px; height:6px;
    background:var(--text-hi);
    transition:opacity .2s;
  }
  .cursor-ring {
    width:32px; height:32px;
    border:1px solid var(--border-hi);
    transition:width .25s var(--ease-out), height .25s var(--ease-out),
                border-color .25s var(--ease-out), background .25s var(--ease-out), opacity .2s;
  }
  .cursor-ring.hovering {
    width:52px; height:52px;
    border-color:var(--accent);
    background:var(--accent-dim);
  }
  body.cursor-hidden .cursor-dot,
  body.cursor-hidden .cursor-ring { opacity:0; }
}
/* ═══════════════════════════════════════════════
   TEXT HOVER REVEAL — letters spread apart
═══════════════════════════════════════════════ */
.reveal-text {
  display: inline-flex;
}
.reveal-text .char {
  display: inline-block;
  transition: transform .5s var(--ease-out), letter-spacing .5s var(--ease-out);
  transform: translateX(0);
}
.reveal-text:hover .char {
  transform: translateX(calc(var(--dir, 0) * 6px));
}

/* ═══════════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════════ */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   MAGNETIC BUTTONS
═══════════════════════════════════════════════ */
.magnetic {
  display: inline-flex;
  transition: transform .25s var(--ease-out);
  will-change: transform;
}

/* ═══════════════════════════════════════════════
   INTRO LOADER
═══════════════════════════════════════════════ */
.intro-loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s var(--ease-out), visibility .6s var(--ease-out);
}
.intro-loader.hidden {
  opacity: 0; visibility: hidden; pointer-events: none;
}
.intro-loader-logo {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--text-hi);
  opacity: 0;
  animation: loader-fade 1.1s var(--ease-out) forwards;
}
.intro-loader-logo span { color: var(--accent); }
@keyframes loader-fade {
  0%   { opacity: 0; transform: translateY(8px) scale(.96); }
  40%  { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ═══════════════════════════════════════════════
   NAV TOGGLES (lang / theme)
═══════════════════════════════════════════════ */
.nav-toggles {
  display: flex; align-items: center; gap: 0.5rem;
}
.btn-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  border: 1px solid var(--border-sub);
  color: var(--text-md);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.btn-toggle:hover {
  color: var(--text-hi);
  border-color: var(--border-hi);
}
.btn-toggle svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
html[data-theme="light"] .icon-moon { display: none; }
html[data-theme="light"] .icon-sun  { display: block; }
html:not([data-theme="light"]) .icon-sun  { display: none; }
html:not([data-theme="light"]) .icon-moon { display: block; }

@media (max-width: 860px) {
  .nav-toggles { display: none; }
}

/* ═══════════════════════════════════════════════
   COCO — Estilos específicos
═══════════════════════════════════════════════ */

/* WhatsApp chat mockup */
.chat-mock {
  background: var(--surface-0);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.chat-bubble {
  padding: .75rem 1rem;
  border-radius: var(--radius-md);
  font-size: .85rem;
  line-height: 1.45;
  max-width: 85%;
}
.chat-bubble.user {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-bubble.coco {
  background: var(--surface-2);
  color: var(--text-hi);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-bubble.coco strong { color: var(--accent); }

/* Roadmap list */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-sub);
  border: 1px solid var(--border-sub);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.roadmap-item {
  background: var(--surface-0);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: background var(--transition);
}
.roadmap-item:hover { background: var(--surface-1); }
.roadmap-item.locked { opacity: .45; }
.roadmap-check {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: .1rem;
  background: var(--accent-dim);
  border: 1px solid rgba(139,92,246,.25);
}
.roadmap-item.locked .roadmap-check {
  background: var(--surface-2);
  border-color: var(--border-base);
}
.roadmap-check svg { width: 13px; height: 13px; stroke: var(--accent); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.roadmap-item.locked .roadmap-check svg { stroke: var(--text-lo); }
.roadmap-text h4 { font-size: .9rem; font-weight: 700; margin-bottom: .3rem; }
.roadmap-text p { font-size: .8rem; color: var(--text-md); }
.roadmap-badge {
  display: inline-block; font-size: .6rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-lo);
  border: 1px solid var(--border-base); border-radius: 999px;
  padding: .15rem .55rem; margin-top: .5rem;
}

/* Waitlist form */
.waitlist-box {
  background: var(--surface-0);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}
.waitlist-form {
  display: flex;
  gap: .75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.waitlist-form input {
  flex: 1;
  min-width: 180px;
  padding: .85rem 1.1rem;
  background: var(--surface-1);
  border: 1px solid var(--border-base);
  border-radius: 999px;
  color: var(--text-hi);
  font-family: var(--font-body);
  font-size: .9rem;
  outline: none;
  transition: border-color var(--transition);
}
.waitlist-form input:focus { border-color: var(--accent); }
.waitlist-form button {
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: opacity var(--transition);
}
.waitlist-form button:hover { opacity: .88; }

/* ── btn-secondary (CTA grande estilo WhatsApp) ── */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), opacity .25s var(--ease-out);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
  opacity: .92;
}
.btn-secondary svg {
  width: 18px; height: 18px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ── Arreglo: link del modal siempre clickeable ── */
.coco-modal-foot a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  pointer-events: auto !important;
  position: relative;
  z-index: 10;
}
.coco-modal-body {
  pointer-events: auto;
}
.coco-modal {
  pointer-events: auto;
}

@media (max-width: 860px) {
  .roadmap-grid { grid-template-columns: 1fr; }
  .waitlist-form { flex-direction: column; }
}

/* ═══════════════════════════════════════════════
   COCO — Aura + Mascota (perrito digital)
═══════════════════════════════════════════════ */
.coco-orb-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2.5rem auto;
  position: relative;
  width: 220px;
  height: 220px;
}

.coco-orb-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  filter: blur(28px);
  opacity: .55;
  animation: coco-pulse 3.2s ease-in-out infinite;
}

.coco-orb-ring {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: .35;
  animation: coco-rotate 14s linear infinite;
}
.coco-orb-ring::before, .coco-orb-ring::after {
  content: '';
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  top: -3px; left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px 2px var(--accent);
}
.coco-orb-ring::after {
  top: auto; bottom: -3px;
  box-shadow: 0 0 12px 2px var(--accent);
}

.coco-orb-core {
  position: relative;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent-glow), var(--surface-0) 70%);
  border: 1px solid var(--border-base);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 60px var(--accent-glow), inset 0 0 30px rgba(255,122,48,.08);
  animation: coco-breathe 4s ease-in-out infinite;
  padding: 0;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.coco-orb-core svg {
  width: 64px; height: 64px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes coco-pulse {
  0%, 100% { opacity: .4; transform: scale(1); }
  50%      { opacity: .65; transform: scale(1.08); }
}
@keyframes coco-rotate {
  to { transform: rotate(360deg); }
}
@keyframes coco-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.035); }
}

@media (prefers-reduced-motion: reduce) {
  .coco-orb-glow, .coco-orb-ring, .coco-orb-core { animation: none; }
}

#toast-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* ═══════════════════════════════════════════════
   COCO — Orb como link + label
═══════════════════════════════════════════════ */
.coco-orb-link {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.coco-orb-link:hover .coco-orb-core { transform: scale(1.05); }
.coco-orb-label {
  position: absolute;
  bottom: -2.2rem; left: 0; right: 0;
  text-align: center;
  font-size: .75rem;
  color: var(--text-md);
  letter-spacing: .04em;
}

/* ═══════════════════════════════════════════════
   COCO — Carrusel "equalizer"
═══════════════════════════════════════════════ */
.coco-carousel-wrap {
  position: relative;
  margin: 4rem auto 2rem;
  max-width: 720px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.coco-carousel {
  display: flex;
  gap: .75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: .5rem 50% ; /* deja espacio para que cualquier pill llegue al centro */
}
.coco-carousel::-webkit-scrollbar { display: none; }

.coco-pill {
  flex: 0 0 auto;
  scroll-snap-align: center;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  background: var(--surface-0);
  border: 1px solid var(--border-base);
  font-size: .9rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-md);
  white-space: nowrap;
  cursor: pointer;
  transition: transform .35s var(--ease-out), border-color .35s var(--ease-out),
              color .35s var(--ease-out), box-shadow .35s var(--ease-out), background .35s var(--ease-out);
}
.coco-pill:hover {
  color: var(--text-hi);
  border-color: var(--accent);
}
.coco-pill.active {
  color: var(--text-hi);
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: scale(1.12) translateY(-4px);
  box-shadow: 0 0 24px var(--accent-glow);
}
.coco-carousel-hint {
  text-align: center;
  font-size: .75rem;
  color: var(--text-lo);
  margin-top: 1rem;
  letter-spacing: .02em;
}

/* ═══════════════════════════════════════════════
   COCO — Demo chat modal
═══════════════════════════════════════════════ */
.coco-modal-overlay {
  position: fixed; inset: 0; z-index: 10001;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease-out), visibility .3s var(--ease-out);
  padding: 1.25rem;
}
.coco-modal-overlay.open { opacity: 1; visibility: visible; }
.coco-modal {
  width: 100%; max-width: 420px;
  max-height: 80vh;
  background: var(--surface-0);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: translateY(16px) scale(.97);
  transition: transform .3s var(--ease-out);
}
.coco-modal-overlay.open .coco-modal { transform: translateY(0) scale(1); }
.coco-modal-head {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-sub);
}
.coco-modal-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-dim);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.coco-modal-avatar svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.coco-modal-head strong { display: block; font-size: .9rem; }
.coco-modal-status { font-size: .7rem; color: var(--accent); }
.coco-modal-close {
  margin-left: auto;
  width: 28px; height: 28px;
  border: none; background: var(--surface-2);
  border-radius: 50%;
  color: var(--text-md);
  font-size: .8rem;
  cursor: pointer;
}
.coco-modal-body {
  flex: 1; overflow-y: auto;
  padding: 1.25rem;
  display: flex; flex-direction: column; gap: .65rem;
  min-height: 220px;
}
.coco-modal-foot {
  padding: .9rem 1.25rem;
  border-top: 1px solid var(--border-sub);
  font-size: .72rem;
  color: var(--text-lo);
  text-align: center;
}
.coco-modal-foot a { color: var(--accent); font-weight: 600; text-decoration: none; cursor: pointer; }

/* ═══════════════════════════════════════════════
   COCO — Estela de mouse a página completa
═══════════════════════════════════════════════ */
.page-trail-dot {
  position: fixed; top: 0; left: 0;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: screen;
  filter: blur(1px);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .page-trail-dot { display: none; }
}

/* ═══════════════════════════════════════════════
   CONOCÉ A COCO — Footer con perrito caminando
═══════════════════════════════════════════════ */
.conoce-footer {
  position: relative;
  padding-top: 2rem;
}
.footer-dog-track { display: none; }
.footer-dog { display: none; }

@media (max-width: 600px) {
  .footer-dog, .footer-dog svg { width: 38px; height: 38px; }
}

@media (max-width: 600px) {
  .coco-carousel-wrap { margin: 3rem auto 1.5rem; }
  .coco-pill { font-size: .8rem; padding: .7rem 1.2rem; }
  .coco-orb-wrap { width: 170px; height: 170px; margin: 2rem auto 3rem; }
  .coco-orb-core { width: 108px; height: 108px; }
  .coco-orb-core svg { width: 50px; height: 50px; }
  .coco-orb-ring { inset: 10px; }
}

@keyframes coco-ping {
  0%   { opacity: .9; transform: scale(1); }
  60%  { opacity: .85; transform: scale(1.25); }
  100% { opacity: .55; transform: scale(1); }
}

/* ═══════════════════════════════════════════════
   COCO — Mascota interactiva (sigue el mouse + estela)
═══════════════════════════════════════════════ */
.coco-orb-core {
  cursor: pointer;
  border: 1px solid var(--border-base);
  transition: background .5s var(--ease-out), border-color .5s var(--ease-out),
              box-shadow .5s var(--ease-out), filter .5s var(--ease-out);
  will-change: transform;
}
.coco-orb-core:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Estela */
.coco-trail {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.trail-dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(3px);
  will-change: transform;
  transition: background .5s var(--ease-out), opacity .5s var(--ease-out);
}
.coco-trail .trail-dot:nth-child(1) { opacity: .5; width: 9px; height: 9px; }
.coco-trail .trail-dot:nth-child(2) { opacity: .35; width: 8px; height: 8px; }
.coco-trail .trail-dot:nth-child(3) { opacity: .22; width: 7px; height: 7px; }
.coco-trail .trail-dot:nth-child(4) { opacity: .12; width: 6px; height: 6px; }

/* ── Estado "dormido" ─────────────────────────── */
.coco-orb-wrap.sleeping .coco-orb-core {
  background: radial-gradient(circle at 35% 30%, #2a2a30, #050507 70%);
  border-color: var(--border-sub);
  box-shadow: 0 0 30px rgba(0,0,0,.4), inset 0 0 30px rgba(0,0,0,.3);
  filter: saturate(0);
}
.coco-orb-wrap.sleeping .coco-orb-core svg { stroke: #555; }
.coco-orb-wrap.sleeping .coco-orb-core .coco-eye {
  transform: scaleY(0.15);
  transform-box: fill-box;
  transform-origin: center;
}
.coco-orb-wrap.sleeping .coco-orb-core .coco-mouth { opacity: .4; }
.coco-orb-wrap.sleeping .trail-dot { background: var(--text-lo); }
.coco-orb-wrap.sleeping .coco-orb-glow { opacity: .18; animation-play-state: paused; }
.coco-orb-wrap.sleeping .coco-orb-ring { animation-duration: 40s; opacity: .15; }

@media (max-width: 600px) {
  .coco-orb-wrap { width: 170px; height: 170px; margin: 2rem auto 3rem; }
  .coco-orb-core { width: 108px; height: 108px; }
  .coco-orb-core svg { width: 50px; height: 50px; }
  .coco-orb-ring { inset: 10px; }
}

/* ═══════════════════════════════════════════════
   CONOCÉ A COCO — Demo chat inline
═══════════════════════════════════════════════ */
.conoce-demo-wrap {
  max-width: 520px;
  margin: 2rem auto 0;
  background: var(--surface-0);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.conoce-demo-chat {
  padding: 1.25rem;
  min-height: 180px;
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.conoce-demo-msg {
  max-width: 78%;
  padding: .65rem 1rem;
  border-radius: 16px;
  font-size: .9rem;
  line-height: 1.45;
}
.conoce-demo-msg.coco {
  background: var(--surface-1);
  color: var(--text-hi);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.conoce-demo-msg.user {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.conoce-demo-suggestions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  padding: .75rem 1.25rem .25rem;
  border-top: 1px solid var(--border-sub);
}
.conoce-sugg {
  padding: .4rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--border-base);
  background: var(--surface-1);
  color: var(--text-md);
  font-size: .78rem;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.conoce-sugg:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.conoce-demo-field {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.25rem 1rem;
}
.conoce-demo-field input {
  flex: 1;
  padding: .7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-base);
  background: var(--surface-1);
  color: var(--text-hi);
  font-size: .88rem;
  outline: none;
  transition: border-color .2s;
}
.conoce-demo-field input:focus { border-color: var(--accent); }
.conoce-demo-field button {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity .2s;
}
.conoce-demo-field button:hover { opacity: .85; }
.conoce-demo-field button svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.conoce-demo-disclaimer {
  text-align: center;
  font-size: .72rem;
  color: var(--text-lo);
  padding: 0 1.25rem 1rem;
}
.conoce-demo-disclaimer a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* ── EFECTO SHARLEE ── */
.logo-sharlee { display: inline-flex; align-items: center; }
.logo-char {
  display: inline-block;
  transition: transform 0.55s cubic-bezier(0.16,1,0.3,1), opacity 0.45s cubic-bezier(0.16,1,0.3,1), color 0.3s;
  will-change: transform;
}
.logo:hover .logo-char {
  transform: translate(var(--sx,0px), var(--sy,0px)) rotate(var(--sr,0deg));
  opacity: 0.15;
  color: var(--accent);
}

/* ── MOBILE IMPROVEMENTS ─────────────────────── */
@media (max-width: 600px) {
  .navbar { padding: 0 1.25rem; }
  .nav-toggles { gap: .35rem; }
  .btn-toggle { width: 30px; height: 30px; }
  .nav-cta { padding: .5rem .9rem; font-size: .75rem; }

  .coco-orb-wrap { width: 200px; height: 200px; margin: 1.5rem auto 2rem; }
  .coco-orb-core { width: 120px; height: 120px; }
  .coco-orb-core img { width: 56px; height: 56px; }

  .coco-carousel { gap: .5rem; }
  .coco-pill { padding: .55rem 1rem; font-size: .8rem; }

  .hero { padding: 6rem 1.25rem 3rem; }
  .hero-heading { font-size: clamp(2rem, 9vw, 3rem); }
  .hero-sub { font-size: .9rem; }

  .roadmap-grid { grid-template-columns: 1fr; }
  .section-divider { padding: 3rem 5%; }

  .waitlist-box { padding: 2rem 1.25rem; }
  .waitlist-input-row { flex-direction: column; }
  .waitlist-input-row input { width: 100%; }
}
