/* NuruBots — base styles (PG‑13) */
:root {
  --bg: #0b0d12;
  --surface: #121420;
  --fg: #e8eaf0;
  --muted: #a4a9b6;
  --accent: #00ffd1;
  --accent-2: #ff3df0;
  --danger: #ff5c7c;
  --ok: #00e5a8;
  --shadow: rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji;
  background: radial-gradient(1200px 800px at 80% -20%, rgba(255,61,240,0.1), transparent),
              radial-gradient(1200px 800px at -20% 120%, rgba(0,255,209,0.12), transparent),
              var(--bg);
  color: var(--fg);
  line-height: 1.5;
}

.container { max-width: 1080px; margin: 0 auto; padding: 24px; }
.surface { background: var(--surface); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; box-shadow: 0 10px 30px var(--shadow); }

header.site {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(6px);
  background: linear-gradient(to bottom, rgba(11,13,18,0.9), rgba(11,13,18,0.6));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
.brand img { width: 28px; height: 28px; }
.brand .wordmark { font-weight: 700; letter-spacing: 0.6px; }
.links { display: flex; gap: 16px; align-items: center; }
.links a { color: var(--fg); text-decoration: none; opacity: 0.9; }
.links a:hover { color: var(--accent); }
.controls { display: flex; gap: 12px; align-items: center; }

button, .btn {
  background: rgba(255,255,255,0.06);
  color: var(--fg);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 12px; border-radius: 10px; cursor: pointer;
}
button:hover, .btn:hover { border-color: var(--accent); color: var(--accent); }

select {
  background: rgba(255,255,255,0.06);
  color: var(--fg);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 10px; border-radius: 10px;
}

.hero { padding: 56px 0 24px; text-align: center; }
.hero h1 { font-size: clamp(32px, 6vw, 56px); line-height: 1.05; margin: 0 0 12px; text-shadow: 0 0 18px rgba(0,255,209,0.2);
  background: linear-gradient(90deg, var(--fg), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); margin: 0 auto; max-width: 760px; font-size: 18px; }
.cta { display: flex; gap: 12px; justify-content: center; margin-top: 18px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 16px; }
.card { padding: 18px; }
.card h3 { margin: 0 0 6px; }
.muted { color: var(--muted); }

footer.site { margin-top: 48px; padding: 16px 0; color: var(--muted); border-top: 1px solid rgba(255,255,255,0.06); }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

/* Age gate modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(3px); display: none; }
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; }
.modal[open], .modal.open { display: flex; }
.modal-backdrop.open { display: block; }
.modal .panel { max-width: 560px; margin: 24px; padding: 22px; }
.modal .panel h2 { margin-top: 0; }

/* Demo chat */
.chat { max-width: 760px; margin: 16px auto; }
.chat-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.msg { padding: 10px 12px; border-radius: 12px; max-width: 80%; }
.msg.user { align-self: flex-end; background: rgba(0,255,209,0.08); border: 1px solid rgba(0,255,209,0.25); }
.msg.bot { align-self: flex-start; background: rgba(255,61,240,0.07); border: 1px solid rgba(255,61,240,0.25); }
.chat-input { display: flex; gap: 10px; margin-top: 12px; }
.chat-input input[type="text"] { flex: 1; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); color: var(--fg); }

/* Utility */
.glow { text-shadow: 0 0 12px rgba(0,255,209,0.35), 0 0 24px rgba(255,61,240,0.2); }
.hidden { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,1px,1px); white-space: nowrap; border: 0; }

/* Focus & motion */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Small screens: fit navbar on iPhone widths */
@media (max-width: 480px) {
  .nav { gap: 8px; flex-wrap: wrap; }
  .brand .wordmark { display: none; }
  .links { gap: 10px; flex: 1 0 100%; order: 3; justify-content: center; }
  .controls { order: 2; margin-left: auto; }
  button, .btn { padding: 6px 10px; font-size: 14px; }
  select { padding: 6px 10px; font-size: 14px; }
}
