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

  :root {
    --bg: #e8e8e6;
    --card: #f4f4f2;
    --white: #f4f4f2;
    --ink: #1a1a1a;
    --muted: #7a7a78;
    --accent: #1a1a1a;
    --border: rgba(0,0,0,0.08);
    --radius: 28px;
    --orange: #1a1a1a;
    --orange-light: rgba(26,26,26,0.10);
    /* Botones específicos */
  --btn-bg: #1a1a1a;
  --btn-text: #ffffff;
  --btn-hover: #333333;
  --btn-shadow: rgba(0, 0, 0, 0.15);
  
  /* Logo icon */
  --logo-bg: #1a1a1a;
  --logo-icon: #ffffff;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
  }

  /* ── NAV ── */
  nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(232,232,230,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
  }

  .logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: var(--ink);
  }

  .logo span { font-style: italic; color: var(--muted); }

  .nav-btns { display: flex; gap: 10px; }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 100px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
  }

  .btn-outline {
    background: transparent;
    border: 1.5px solid rgba(0,0,0,0.18);
    color: var(--ink);
  }
  .btn-outline:hover { background: rgba(0,0,0,0.05); }

  .btn-solid {
    background: var(--ink);
    color: #fff;
  }
  .btn-solid:hover { background: #333; transform: translateY(-1px); }

  /* ── SECTIONS ── */
  .section { padding: 24px 20px; }

  .card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 72px 40px;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
  }

  /* ── HERO ── */
  #hero .card { padding: 80px 40px 70px; }

  .neural-wrap {
    width: 100%;
    max-width: 680px;
    margin: 10px auto 28px;
    position: relative;
  }

  #neuralCanvas {
    width: 100%;
    height: auto;
    display: block;
  }

  .hero-big-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.05;
    color: var(--ink);
    margin-bottom: 32px;
    text-align: center;
  }

  .aurx-label {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 10px;
    text-align: center;
  }

 .btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 28px;
  background: var(--btn-bg);
  color: var(--btn-text);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  width: 100%;
  max-width: 280px;
}

.btn-cta svg {
  width: 18px;
  height: 18px;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--btn-shadow);
  background: var(--btn-hover);
}
  
  

  .hero-typewriter {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.5rem, 5vw, 2.4rem);
    font-style: italic;
    color: var(--orange);
    margin: 0 auto 16px;
    letter-spacing: -0.5px;
    text-align: center;
    line-height: 1.3;
  }

  .typewriter-wrap {
    display: inline;
    font-family: 'DM Serif Display', serif;
    font-size: inherit;
    font-style: italic;
    color: var(--orange);
    border-right: 2px solid var(--orange);
    white-space: nowrap;
    overflow: hidden;
    animation: blink 0.7s step-end infinite;
  }

  @keyframes blink { 50% { border-color: transparent; } }

  .hero-sub {
    font-size: 0.95rem;
    color: var(--muted);
    max-width: 380px;
    margin: 0 auto 36px;
  }

  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 36px;
  }

  .dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; display: inline-block; }

  /* ── BRANDS ── */
  #brands .card { padding: 36px 40px; }
  .brands-label { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 24px; }
  .brands-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 28px 40px; }
  .brand-chip {
    font-family: 'DM Serif Display', serif;
    font-size: 1rem;
    color: var(--muted);
    letter-spacing: -0.3px;
    opacity: 0.7;
    transition: opacity 0.2s;
  }
  .brand-chip:hover { opacity: 1; }

  /* ── FEATURES HEADER ── */
  .section-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 40px;
  }

  .section-header h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.2;
    letter-spacing: -0.5px;
  }

  .section-header h2 strong { font-weight: 700; }
  .section-header h2 em { font-style: italic; color: var(--muted); }

  .section-header p { color: var(--muted); font-size: 0.95rem; margin-top: 12px; }

  .pill-label {
    display: inline-block;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 5px 14px;
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 16px;
  }

  /* ── FEATURE CARDS GRID ── */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    max-width: 780px;
    margin: 0 auto;
  }

  .feat-card {
    background: var(--white);
    border-radius: 20px;
    padding: 32px 28px;
    text-align: left;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .feat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.07); }

  .feat-icon {
    width: 44px; height: 44px;
    background: var(--bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 1.3rem;
  }

  .feat-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; }
  .feat-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.55; }

  /* ── QUOTE / INFO ── */
  #quote .card { padding: 60px 48px; }
  .quote-icon { font-size: 3rem; margin-bottom: 20px; opacity: 0.15; font-family: Georgia, serif; line-height: 1; }
  .quote-text {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    line-height: 1.4;
    font-style: italic;
    color: var(--ink);
    max-width: 520px;
    margin: 0 auto 24px;
  }
  .quote-author { font-size: 0.82rem; color: var(--muted); }

  /* ── API KEY ── */
  #api-key .card { position: relative; overflow: hidden; }
  .coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 100px;
    padding: 5px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 20px;
  }

  /* ── PRICING ── */
  #pricing { padding: 24px 20px 40px; }
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
  }

  /* ── PLAN SELECTION ── */
  .plan-card {
    background: var(--card);
    border-radius: 24px;
    padding: 36px 28px;
    border: 1.5px solid var(--border);
    position: relative;
    transition: transform 0.25s, box-shadow 0.25s, background 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    cursor: pointer;
  }

  .plan-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.09); }

  .plan-card.selected {
    border-color: #1a1a1a !important;
    border-width: 2.5px !important;
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.13);
  }

  .plan-card.selected .plan-sep { background: var(--border); }
  .plan-card.selected .plan-btn-light { background: #1a1a1a !important; color: white !important; }
  .plan-card.selected .plan-cancel-btn { color: var(--muted); border-color: rgba(0,0,0,0.18); }
  .plan-card.selected .plan-cancel-btn:hover { background: rgba(0,0,0,0.05); color: var(--ink); }

  .plan-select-tag {
    display: none;
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: white;
    border-radius: 100px;
    padding: 4px 14px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
    animation: popIn 0.25s cubic-bezier(0.34,1.56,0.64,1) forwards;
  }

  .plan-select-tag { display: none !important; }

  @keyframes popIn {
    from { opacity: 0; transform: translateX(-50%) scale(0.7); }
    to   { opacity: 1; transform: translateX(-50%) scale(1); }
  }

  .plan-cancel-btn {
    display: none;
    margin-top: 10px;
    width: 100%;
    text-align: center;
    padding: 8px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.15);
    background: transparent;
    color: var(--muted);
    transition: all 0.2s;
  }
  .plan-cancel-btn:hover { background: rgba(0,0,0,0.04); color: var(--ink); }
  .plan-card.selected .plan-cancel-btn { display: block; }
  /* Keep dark cards' cancel button readable */
  .plan-card.featured .plan-cancel-btn,
  .plan-card.mega .plan-cancel-btn {
    border-color: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
  }
  .plan-card.featured .plan-cancel-btn:hover,
  .plan-card.mega .plan-cancel-btn:hover {
    background: rgba(255,255,255,0.08);
    color: white;
  }

  .plan-card.featured {
    background: var(--ink);
    color: white;
    border-color: var(--ink);
  }

  .plan-card.mega {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    border: none;
  }

  .plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #fbbf24;
    color: #78350f;
    border-radius: 100px;
    padding: 4px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
  }

  .plan-name { font-family: 'DM Serif Display', serif; font-size: 1.4rem; margin-bottom: 6px; }
  .plan-price { font-size: 2.2rem; font-weight: 700; line-height: 1; margin: 16px 0 6px; }
  .plan-price span { font-size: 0.9rem; font-weight: 400; opacity: 0.6; }

  .plan-period { font-size: 0.78rem; opacity: 0.5; margin-bottom: 24px; }

  .plan-sep { height: 1px; background: var(--border); margin-bottom: 20px; }
  .plan-card.featured .plan-sep,
  .plan-card.mega .plan-sep { background: rgba(255,255,255,0.12); }

  .plan-features { list-style: none; flex: 1; }
  .plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    padding: 5px 0;
    opacity: 0.85;
    line-height: 1.4;
  }

  .plan-features li .check { flex-shrink: 0; margin-top: 1px; }
  .plan-features li.nope { opacity: 0.4; text-decoration: line-through; }
  .plan-features li.nope .check { opacity: 0; }

  .plan-btn {
    margin-top: 28px;
    display: block;
    text-align: center;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
  }

  .plan-btn-light { background: var(--ink); color: white; }
  .plan-btn-light:hover { background: #333; }
  .plan-btn-dark { background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.2); }
  .plan-btn-dark:hover { background: rgba(255,255,255,0.25); }
  .plan-btn-mega { background: #fbbf24; color: #78350f; }
  .plan-btn-mega:hover { background: #f59e0b; }

  /* ── COMMUNITY ── */
  #community { padding: 24px 20px 40px; }

  .comm-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: var(--card);
    border-radius: 20px;
    padding: 28px 32px;
    max-width: 560px;
    margin: 0 auto 20px;
    border: 1px solid var(--border);
  }

  .comm-stat { flex: 1; text-align: center; }
  .comm-stat-num {
    display: block;
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 4px;
  }
  .comm-stat-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
  .comm-stat-div { width: 1px; height: 40px; background: var(--border); margin: 0 16px; }

  .comm-capacity {
    max-width: 560px;
    margin: 0 auto 32px;
    padding: 0 4px;
  }
  .comm-cap-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 8px;
  }
  .comm-cap-bar {
    height: 6px;
    background: var(--border);
    border-radius: 100px;
    overflow: hidden;
  }
  .comm-cap-fill {
    height: 100%;
    width: 0%;
    background: #1a1a1a;
    border-radius: 100px;
    transition: width 1.8s cubic-bezier(0.22,1,0.36,1);
  }

  .comm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    max-width: 780px;
    margin: 0 auto 24px;
  }

  .comm-card {
    background: var(--card);
    border-radius: 20px;
    padding: 28px 24px;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .comm-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.07); }
  .comm-card-icon {
    width: 44px; height: 44px;
    background: var(--bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--ink);
  }
  .comm-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; }
  .comm-card p  { font-size: 0.82rem; color: var(--muted); line-height: 1.55; }

  .comm-feed {
    max-width: 560px;
    margin: 0 auto;
    padding: 32px 28px;
    text-align: center;
  }
  .comm-feed-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
  }
  .comm-live-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74,222,128,0.5);
    animation: livePulse 1.8s infinite;
  }
  @keyframes livePulse {
    0%  { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
    70% { box-shadow: 0 0 0 7px rgba(74,222,128,0); }
    100%{ box-shadow: 0 0 0 0 rgba(74,222,128,0); }
  }
  .comm-feed-list { display: flex; flex-direction: column; gap: 10px; text-align: left; }
  .comm-feed-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg);
    border-radius: 12px;
    animation: feedIn 0.4s ease forwards;
    opacity: 0;
  }
  @keyframes feedIn {
    from { opacity:0; transform: translateX(-8px); }
    to   { opacity:1; transform: translateX(0); }
  }
  .comm-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--ink);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
  }
  .comm-feed-text { font-size: 0.8rem; color: var(--ink); line-height: 1.4; padding-top: 2px; }
  .comm-feed-text strong { font-weight: 600; }
  .comm-feed-time { font-size: 0.7rem; color: var(--muted); margin-top: 2px; }

  /* ── TYPING INDICATOR ── */
  .typing-bubble {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg);
    border-radius: 12px;
  }
  .typing-dots {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 4px;
  }
  .typing-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    animation: typingBounce 1.1s infinite ease-in-out;
  }
  .typing-dots span:nth-child(1) { background: #c0c0be; animation-delay: 0s; }
  .typing-dots span:nth-child(2) { background: #888886; animation-delay: 0.18s; }
  .typing-dots span:nth-child(3) { background: #1a1a1a; animation-delay: 0.36s; }
  @keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0) scale(1);    opacity: 0.5; }
    30%            { transform: translateY(-7px) scale(1.1); opacity: 1; }
  }

  /* ── CTA ── */
  #cta .card { padding: 70px 40px; }
  .cta-icon { font-size: 2.5rem; margin-bottom: 20px; }
  .cta-title { font-family: 'DM Serif Display', serif; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 24px; line-height: 1.2; }
  .cta-title em { font-style: italic; color: var(--muted); }
  .cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

  /* ── FOOTER ── */
  footer {
    padding: 28px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 12px;
  }

  footer a { color: var(--muted); text-decoration: none; }
  footer a:hover { color: var(--ink); }

  /* ── ANIMATIONS ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .fade-up { opacity: 0; animation: fadeUp 0.7s ease forwards; }
  .delay-1 { animation-delay: 0.1s; }
  .delay-2 { animation-delay: 0.25s; }
  .delay-3 { animation-delay: 0.4s; }
  .delay-4 { animation-delay: 0.55s; }

  /* ── RESPONSIVE ── */
  @media (max-width: 600px) {
    nav { padding: 18px 20px; }
    .card { padding: 48px 24px; border-radius: 20px; }
    #quote .card { padding: 40px 24px; }
    footer { flex-direction: column; text-align: center; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 360px; }
  }

/* ════════════════════════════════════════════════════════
   FEED ANIMATIONS — clases nuevas, no toca estilos existentes
   ════════════════════════════════════════════════════════ */

/* 1. ENTRADA mejorada: slide-up + fade + scale */
.comm-feed-item.msg-new {
  animation: msgSlideUp 300ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes msgSlideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* 2. HIGHLIGHT: flash verde suave ~600ms, luego vuelve al color normal */
.comm-feed-item.msg-highlight {
  outline: 1.5px solid rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.09) !important;
  transition: background 600ms ease, outline-color 600ms ease;
}
.comm-feed-item.msg-highlight.msg-settled {
  background: var(--bg) !important;
  outline-color: transparent;
}

/* 3. SALIDA del mensaje más antiguo */
.comm-feed-item.msg-exit {
  animation: msgExit 260ms ease-in forwards;
  pointer-events: none;
}
@keyframes msgExit {
  from { opacity: 1; transform: translateY(0);    }
  to   { opacity: 0; transform: translateY(-8px); }
}

/* 4. SALIDA del typing bubble */
.typing-bubble.typing-exit {
  animation: typingFadeOut 180ms ease-in forwards;
}
@keyframes typingFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* 5. BOTÓN: press con spring */
.btn-press {
  animation: btnPress 340ms cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
@keyframes btnPress {
  0%   { transform: scale(1);    }
  35%  { transform: scale(0.87); }
  68%  { transform: scale(1.07); }
  100% { transform: scale(1);    }
}

/* 6. RIPPLE dentro del botón */
.btn-ripple {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.22);
  transform: scale(0);
  animation: btnRipple 440ms ease-out forwards;
  pointer-events: none;
}
@keyframes btnRipple {
  to { transform: scale(2.8); opacity: 0; }
}
