/* ===== Base from chat-ui v2 (tweaked for Mano) ===== */
:root {
  --bg: #0e0f12;
  --surface: #181a1f;
  --surface-2: #1f2228;
  --border: #2b2f38;
  --text: #f3f6fb;
  --muted: #a7b0c0;
  --brand: #10b981;
  --focus: #60a5fa;

  --radius-lg: 16px;
  --radius-xl: 20px;
  --ring: 2px;
  --shadow: 0 10px 30px rgba(0,0,0,.25);

  --container: 1120px;
  --prompt-max: 880px;

  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --fs-hero: clamp(28px, 5vw, 40px);
}

* { box-sizing: border-box }
html, body { height: 100% }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer }

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

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(160%) blur(8px);
  background: linear-gradient(180deg, rgba(14,15,18,.9), rgba(14,15,18,.6));
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 56px }
.brand { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px }
.brand:hover { background: rgba(255,255,255,.04) }
.brand:focus-visible { outline: none; box-shadow: 0 0 0 var(--ring) var(--focus) }
.brand__mark { width: 22px; height: 22px; border-radius: 6px; background: radial-gradient(60% 60% at 30% 30%, rgba(16,185,129,.9), transparent), radial-gradient(60% 60% at 70% 70%, rgba(59,130,246,.8), transparent), #0b1220; border: 1px solid var(--border) }
.brand__name { font-weight: 600; letter-spacing: .2px }

.nav__right { display: flex; gap: 10px }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,.02); transition: background .2s, border-color .2s, transform .05s }
.btn:hover { background: rgba(255,255,255,.06) }
.btn:active { transform: translateY(1px) }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 var(--ring) var(--focus) }
.btn--primary { background: linear-gradient(180deg, rgba(16,185,129,.18), rgba(16,185,129,.1)); border-color: rgba(16,185,129,.45); font-weight: 600 }

/* ===== Hero (Home) ===== */
.main { min-height: calc(100dvh - 56px - 64px); display: grid; place-items: center }
.hero { width: 100%; text-align: center }
.hero__title { font-size: var(--fs-hero); font-weight: 700; letter-spacing: .2px; margin: 40px 0 24px }

/* Prompt bar (from v2) */
.prompt { display: flex; justify-content: center }
.prompt__bar {
  width: min(var(--prompt-max), 92vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px;
}
.prompt__left, .prompt__right { display: flex; align-items: center; gap: 8px }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,.02); white-space: nowrap }
.chip:hover { background: var(--surface-2) }
.icon { width: 18px; height: 18px }
.prompt__input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 16px; line-height: 1.6; padding: 10px }
.prompt__input::placeholder { color: var(--muted) }
.badge { display: inline-flex; align-items: center; justify-content: center; padding: 4px 8px; border-radius: 8px; font-size: 12px; font-weight: 600; color: #0b1a13; background: linear-gradient(180deg, rgba(16,185,129,.95), rgba(16,185,129,.8)); border: 1px solid rgba(16,185,129,.9) }

/* Suggestions pills */
.suggest { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 18px auto 0; max-width: min(920px, 92vw) }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,.02); transition: background .2s, transform .05s }
.pill:hover { background: var(--surface-2) }
.pill:active { transform: translateY(1px) }
.pill .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--brand); box-shadow: 0 0 0 2px rgba(16,185,129,.25) }

/* ===== Bottom Tabs ===== */
.tabs {
  position: sticky; bottom: 0; z-index: 9;
  background: linear-gradient(180deg, rgba(14,15,18,.0), rgba(14,15,18,.9));
  border-top: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.tabs__inner { max-width: var(--container); margin: 0 auto; display: flex; justify-content: center; gap: 24px; padding: 12px 20px }
.tab {
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color .2s, background .2s, border-color .2s;
}
.tab:hover { color: var(--text); background: rgba(255,255,255,.04); border-color: var(--border) }
.tab.is-active { color: var(--text); border-color: rgba(16,185,129,.45); background: linear-gradient(180deg, rgba(16,185,129,.12), rgba(16,185,129,.06)) }

/* ===== Footer legal ===== */
.foot { height: 52px; display: grid; place-items: center; border-top: 1px solid var(--border); background: linear-gradient(0deg, rgba(14,15,18,.9), rgba(14,15,18,.6)) }
.legal { margin: 0; color: var(--muted); font-size: 12px; text-align: center }

/* ===== Content pages ===== */
.page { padding: 48px 0 120px }
.page h1 { font-size: clamp(28px, 4vw, 36px); margin: 0 0 10px }
.page p.lead { font-size: clamp(16px, 2.6vw, 18px); color: var(--muted); margin: 0 0 24px }

.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(12, 1fr);
}
.card {
  grid-column: span 6;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card h3 { margin: 6px 0 10px }
.card p { color: var(--muted); margin: 0 }

/* Photo blocks */
.photo {
  position: relative;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  grid-column: span 6;
  min-height: 260px;
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); transition: transform .6s ease }
.photo:hover img { transform: scale(1.08) }
.photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.25));
}

/* Movement / reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease }
.reveal.is-visible { opacity: 1; transform: none }
.floaty {
  position: absolute; inset: auto;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(16,185,129,.35), transparent);
  filter: blur(10px);
  animation: drift 12s ease-in-out infinite alternate;
}
.floaty.f2 { left: 5%; top: 20% }
.floaty.f1 { right: 10%; top: 30% }
@keyframes drift {
  from { transform: translateY(0) translateX(0) scale(1) }
  to { transform: translateY(-30px) translateX(10px) scale(1.08) }
}

/* Contact */
.contact-list { display: grid; gap: 12px; margin-top: 12px }
.contact-list a { color: var(--text); text-decoration: underline; text-underline-offset: 3px }
.form {
  margin-top: 18px;
  display: grid; gap: 10px;
  grid-template-columns: 1fr 1fr;
}
.form input, .form textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
}
.form textarea { grid-column: span 2; min-height: 120px; resize: vertical }
.form button { grid-column: span 2 }

/* Responsive */
@media (max-width: 900px) {
  .card, .photo { grid-column: span 12 }
  .form { grid-template-columns: 1fr }
  .form textarea, .form button { grid-column: span 1 }
}
