/* Arden AI — ardenlm.com
   Paleta heredada de Arden Guard: azul marino + naranja; cian de los ojos del logo para Arden. */
:root {
  --navy-950: #061224;
  --navy-900: #0a1b33;
  --navy-800: #102846;
  --navy-700: #1b3a61;
  --orange:   #ff6b35;
  --orange-d: #e85a26;
  --cyan:     #3ee6f0;
  --ink:      #eaf0f8;
  --muted:    #9db0c8;
  --line:     rgba(157, 176, 200, .18);
  --radius-l: 22px;
  --radius-s: 10px;
  --font: 'Ubuntu', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--navy-950);
  background-image:
    radial-gradient(900px 520px at 50% 18%, rgba(62, 230, 240, .10), transparent 70%),
    radial-gradient(700px 480px at 85% 0%, rgba(255, 107, 53, .10), transparent 70%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950) 70%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* Rejilla tenue tipo placa de circuito, sólo en la zona del hero */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: .35;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
  z-index: -1;
}

a { color: inherit; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Barra superior ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .01em;
}
.brand img { border-radius: 50%; }
.brand b { color: var(--orange); }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 14px;
  border-radius: var(--radius-s);
  text-decoration: none;
  color: var(--muted);
  transition: color .15s, background-color .15s;
}
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }

.lang {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 18, 36, .6);
}
.lang a {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .85rem;
  text-decoration: none;
  color: var(--muted);
}
.lang a[aria-current="true"] { background: var(--navy-700); color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}

.announce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  font-size: .92rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.announce:hover { color: var(--ink); }
.spark {
  width: 8px; height: 8px; flex: none;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, .18);
}

.avatar {
  margin-top: 40px;
  border-radius: 50%;
  filter: drop-shadow(0 0 28px rgba(62, 230, 240, .28));
}

h1 {
  margin: 18px 0 8px;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.01em;
}

.sub {
  max-width: 46ch;
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 1.08rem;
}

/* ---------- Chat ---------- */
.chat { width: 100%; max-width: 760px; }

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 360px;
  overflow-y: auto;
  margin-bottom: 14px;
  padding: 4px 2px;
  text-align: left;
  scrollbar-width: thin;
}

.msg { display: flex; gap: 10px; align-items: flex-start; max-width: 88%; }
.msg p { margin: 0; padding: 11px 15px; border-radius: 16px; white-space: pre-wrap; word-break: break-word; }

.msg-user { align-self: flex-end; }
.msg-user p { background: var(--navy-700); border-bottom-right-radius: 4px; }

.msg-bot img { flex: none; border-radius: 50%; margin-top: 2px; }
.msg-bot p {
  background: rgba(16, 40, 70, .75);
  border: 1px solid rgba(62, 230, 240, .22);
  border-bottom-left-radius: 4px;
}

.typing { display: inline-flex; gap: 5px; padding: 15px 16px !important; }
.typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  animation: blink 1.1s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.composer {
  padding: 16px 16px 12px;
  border: 1px solid rgba(157, 176, 200, .28);
  border-radius: var(--radius-l);
  background: rgba(10, 27, 51, .78);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  transition: border-color .15s;
}
.composer:focus-within { border-color: rgba(62, 230, 240, .55); }

.composer textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  max-height: 200px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.02rem;
}
.composer textarea::placeholder { color: #7489a5; }

.composer-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.toggles { display: flex; gap: 8px; }

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .88rem;
  cursor: pointer;
  transition: all .15s;
}
.toggle:hover { color: var(--ink); }
.toggle[aria-pressed="true"] {
  color: var(--cyan);
  border-color: rgba(62, 230, 240, .5);
  background: rgba(62, 230, 240, .08);
}

.ico { width: 14px; height: 14px; display: inline-block; background: currentColor; }
.ico-reason {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Cellipse cx='12' cy='12' rx='10' ry='4'/%3E%3Cellipse cx='12' cy='12' rx='10' ry='4' transform='rotate(60 12 12)'/%3E%3Cellipse cx='12' cy='12' rx='10' ry='4' transform='rotate(120 12 12)'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Cellipse cx='12' cy='12' rx='10' ry='4'/%3E%3Cellipse cx='12' cy='12' rx='10' ry='4' transform='rotate(60 12 12)'/%3E%3Cellipse cx='12' cy='12' rx='10' ry='4' transform='rotate(120 12 12)'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ico-search {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2c3 3 3 17 0 20M12 2c-3 3-3 17 0 20'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2c3 3 3 17 0 20M12 2c-3 3-3 17 0 20'/%3E%3C/svg%3E") center / contain no-repeat;
}

.send {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  cursor: pointer;
  transition: background-color .15s, opacity .15s;
}
.send:hover:not(:disabled) { background: var(--orange-d); }
.send:disabled { opacity: .35; cursor: not-allowed; }

.disclaimer { margin: 10px 0 0; font-size: .8rem; color: #6f83a0; }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.btn-primary { background: var(--orange); color: #fff; border: 1px solid var(--orange); }
.btn-primary:hover { background: var(--orange-d); border-color: var(--orange-d); }
.btn-ghost { background: rgba(10, 27, 51, .6); color: var(--ink); border: 1px solid rgba(157, 176, 200, .35); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Familia de modelos ---------- */
.models {
  max-width: 980px;
  margin: 0 auto;
  padding: 72px 24px 88px;
  border-top: 1px solid var(--line);
}
.models h2 { margin: 0 0 8px; font-size: clamp(1.7rem, 3.5vw, 2.3rem); font-weight: 500; }
.models-sub { margin: 0 0 36px; max-width: 60ch; color: var(--muted); }

.scale-head,
.scale-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.4fr) 130px;
  gap: 24px;
  align-items: center;
}
.scale-head {
  padding: 0 0 12px;
  font-size: .85rem;
  color: #7489a5;
  border-bottom: 1px solid var(--line);
}
.scale-row { padding: 18px 0; border-bottom: 1px solid var(--line); }

.cell-name strong { display: block; font-weight: 500; }
.cell-name small { color: var(--muted); font-size: .88rem; }

.cell-bar { display: flex; align-items: center; gap: 14px; }
.bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(157, 176, 200, .12); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--navy-700); }
.num { width: 48px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }

.is-released .bar i { background: var(--orange); }
.is-integrated .bar i { background: var(--cyan); }

.pill {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: .8rem;
  color: var(--muted);
  border: 1px solid var(--line);
}
.is-released .pill { color: var(--orange); border-color: rgba(255, 107, 53, .45); }
.is-integrated .pill { color: var(--cyan); border-color: rgba(62, 230, 240, .45); }

/* ---------- Pie ---------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 40px;
  font-size: .88rem;
  color: #7489a5;
}
.footer p { margin: 0; }
.footer nav { display: flex; gap: 20px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ---------- Responsivo ---------- */
@media (max-width: 820px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .scale-head { display: none; }
  .scale-row { grid-template-columns: 1fr auto; gap: 10px 16px; }
  .cell-bar { grid-column: 1 / -1; grid-row: 2; }
  .cell-status { grid-column: 2; grid-row: 1; }
}

@media (max-width: 480px) {
  .hero { padding-top: 32px; }
  .avatar { width: 88px; height: 88px; margin-top: 28px; }
  .toggle { padding: 7px 10px; }
  .msg { max-width: 96%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
