@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  --bg: #071018;
  --bg-2: #0d1a28;
  --card: #112233;
  --line: rgba(180, 210, 235, 0.14);
  --text: #e8f1f7;
  --muted: #8aa0b3;
  --accent: #8ec5e8;
  --accent-2: #d4b483;
  --danger: #e07a7a;
  --ok: #7dce9a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --font: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-display: clamp(2rem, 4.2vw, 3.25rem);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { font-size: 16px; }
body {
  font-family: var(--font);
  font-size: var(--text-md);
  font-weight: 400;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(142, 197, 232, 0.12), transparent 55%),
    linear-gradient(180deg, #08131e 0%, var(--bg) 40%);
  color: var(--text);
  line-height: 1.55;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, .brand strong {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: var(--text-display); margin: 0.15em 0 0.4em; }
h2 { font-size: var(--text-2xl); margin: 0 0 0.5rem; }
h3 { font-size: var(--text-lg); margin: 0 0 0.35rem; }
h4 { font-size: var(--text-md); margin: 0; }
.kicker {
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 0.4rem;
}
.kicker.gold { color: var(--accent-2); }
.muted { color: var(--muted); }
.topbar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 1.4rem;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 24, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: flex; gap: 0.75rem; align-items: center; color: inherit; text-decoration: none; }
.brand strong { font-size: var(--text-md); font-weight: 600; }
.brand small { display: block; color: var(--muted); font-size: var(--text-xs); font-weight: 400; letter-spacing: 0.02em; }
.mark {
  width: 2.4rem; height: 2.4rem; border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #1c3b56, #0a1b2b);
  border: 1px solid rgba(142, 197, 232, 0.35);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
}
.nav { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-left: auto; align-items: center; }
.nav a {
  color: var(--muted);
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
}
.nav a.is-on, .nav a:hover { color: var(--text); background: rgba(142, 197, 232, 0.12); }
.nav-quiet {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-quiet:hover { color: var(--text); }
main { max-width: 1120px; margin: 0 auto; padding: 1.5rem 1.2rem 4rem; }
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0 1.15rem; border-radius: 10px;
  background: var(--accent); color: #082033;
  font-family: inherit; font-size: var(--text-sm); font-weight: 600;
  letter-spacing: 0.01em; border: 0; cursor: pointer;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.05); text-decoration: none; }
.btn.ghost, button.ghost, .ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line); min-height: 2.5rem; padding: 0 0.9rem;
  border-radius: 10px; cursor: pointer;
  font-family: inherit; font-size: var(--text-sm); font-weight: 600;
}
.tiny {
  min-height: 2rem; padding: 0 0.6rem; font-size: var(--text-xs); font-weight: 600;
  border-radius: 8px; cursor: pointer; font-family: inherit;
  background: transparent; color: var(--text); border: 1px solid var(--line);
}
.btn-google {
  width: 100%;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-google:hover { filter: none; background: #f3f6f8; }
.divider {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--muted); font-size: var(--text-xs); letter-spacing: 0.08em;
  text-transform: uppercase; margin: 1.1rem 0;
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.hero {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
  min-height: 62vh; align-items: center;
}
@media (min-width: 880px) {
  .hero { grid-template-columns: 1.1fr 1fr; }
}
.hero-copy h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 600; }
.lede { font-size: var(--text-lg); max-width: 36rem; color: var(--muted); line-height: 1.5; margin: 0; }
.hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin: 1.2rem 0 0.4rem; }
.hint { color: var(--muted); font-size: 0.85rem; }
.hero-panel {
  position: relative; min-height: 320px; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.skyline {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 18, 30, 0.15), rgba(8, 18, 30, 0.7)),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(180, 210, 235, 0.05) 18px 19px),
    radial-gradient(ellipse at 30% 80%, rgba(142, 197, 232, 0.18), transparent 50%),
    linear-gradient(180deg, #12304a, #071018);
}
.skyline::after {
  content: "";
  position: absolute; bottom: 0; left: 8%; right: 8%; height: 58%;
  background:
    linear-gradient(#9ec9e4, #9ec9e4) 10% 100%/12% 70% no-repeat,
    linear-gradient(#7aa8c6, #7aa8c6) 26% 100%/16% 92% no-repeat,
    linear-gradient(#cfe6f4, #cfe6f4) 48% 100%/18% 78% no-repeat,
    linear-gradient(#5d8eab, #5d8eab) 70% 100%/14% 60% no-repeat,
    linear-gradient(#a9d0e6, #a9d0e6) 88% 100%/20% 85% no-repeat;
  opacity: 0.35;
  filter: blur(0.3px);
}
.caption { position: absolute; right: 1rem; bottom: 0.8rem; font-size: 0.7rem; letter-spacing: 0.16em; color: var(--muted); }
.split { display: grid; gap: 1.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; } }
.glance {
  display: grid; gap: 1.2rem; padding: 1.4rem;
  border: 1px solid rgba(142, 197, 232, 0.35);
  background: rgba(142, 197, 232, 0.08);
  border-radius: var(--radius);
  margin-bottom: 1.6rem;
}
@media (min-width: 900px) { .glance { grid-template-columns: auto minmax(0,1fr) auto; } }
.huge { font-family: inherit; font-size: 2.4rem; font-weight: 600; color: var(--accent-2); letter-spacing: -0.03em; }
.week-strip { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.6rem; }
.week-strip a, .week-strip span {
  min-width: 3.4rem; text-align: center; padding: 0.35rem 0.5rem;
  border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 0.8rem;
}
.week-strip .is-today { color: var(--text); border-color: var(--accent); background: rgba(142,197,232,0.12); }
.grid-2 { display: grid; gap: 1rem; }
@media (min-width: 800px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.15rem; box-shadow: var(--shadow);
}
.panel header { margin-bottom: 0.6rem; }
.rows { list-style: none; padding: 0; margin: 0; }
.rows li { padding: 0.7rem 0; border-top: 1px solid var(--line); display: grid; gap: 0.15rem; }
.rows li:first-child { border-top: 0; }
.empty { color: var(--muted); font-style: italic; }
.action-list { padding-left: 1.1rem; margin: 0.4rem 0 0; }
.action-list .when { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 0.4rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.rag { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.rag button { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 0.2rem 0.6rem; cursor: pointer; font-family: inherit; font-size: var(--text-xs); font-weight: 600; }
.rag .rag-green.is-on { background: #1e4d34; color: var(--ok); border-color: var(--ok); }
.rag .rag-amber.is-on { background: #4a3b16; color: #f0c674; border-color: #f0c674; }
.rag .rag-red.is-on { background: #4a2020; color: var(--danger); border-color: var(--danger); }
.page-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.speaker header { display: flex; gap: 0.8rem; align-items: center; }
.avatar {
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center;
  background: #1b3348; border: 1px solid var(--line); font-size: 0.75rem; font-weight: 700;
}
.script { display: grid; gap: 0.4rem; }
.script dt { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; }
.script dd { margin: 0; white-space: pre-wrap; }
.chip-row { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.chip {
  padding: 0.4rem 0.85rem; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted);
}
.chip.is-on { color: var(--text); border-color: var(--accent); background: rgba(142,197,232,0.12); }
.chat-log { display: grid; gap: 0.7rem; margin-bottom: 1rem; }
.bubble { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0.8rem 1rem; }
.bubble.ian { border-color: rgba(212, 180, 131, 0.4); }
.bubble.ai { opacity: 0.92; }
.bubble header { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.8rem; }
.composer { display: grid; gap: 0.6rem; }
textarea, input {
  width: 100%; background: #0b1824; color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.8rem;
  font-family: inherit; font-size: 1rem;
}
.stack { display: grid; gap: 0.8rem; }
.stack.tight { gap: 0.45rem; margin-top: 0.8rem; }
.stack-lg { display: grid; gap: 1rem; }
.narrow { max-width: 32rem; }
.card-page { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.banner { padding: 0.8rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: #142636; }
.banner.error { border-color: var(--danger); color: #ffd4d4; }
.banner.ok, .banner.warn { border-color: var(--accent-2); }
.mono, code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; }
.inline-actions { display: flex; gap: 0.4rem; }
.key-row header { display: flex; gap: 0.8rem; align-items: center; }
.key-row header form { margin-left: auto; }
.ops-group { margin-top: 0.7rem; }
.ops-group h4 { margin: 0 0 0.2rem; font-size: var(--text-sm); font-weight: 600; }
.prose p { margin: 0 0 0.9rem; color: var(--text); max-width: 38rem; }
.prose p:last-child { margin-bottom: 0; }
.home-band { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.home-cards { display: grid; gap: 1rem; margin-top: 1.2rem; }
@media (min-width: 800px) { .home-cards { grid-template-columns: repeat(3, 1fr); } }
.home-cards .panel p { color: var(--muted); margin: 0; font-size: var(--text-md); }
.site-foot {
  max-width: 1120px; margin: 0 auto; padding: 1rem 1.2rem 2.5rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: var(--muted); font-size: var(--text-sm); border-top: 1px solid var(--line);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 700px) {
  .topbar { flex-wrap: wrap; }
  .nav { margin-left: 0; width: 100%; }
  main { padding: 1rem 0.9rem 3rem; }
}
