/* AI-LEO Policy Simulator — static landing (Phase C9.1)
   No external fonts or assets. System font stack only. */

:root {
  --bg-deep: #0a1628;
  --bg-card: #111f36;
  --bg-elevated: #152a45;
  --text-primary: #f1f5f9;
  --text-muted: #94a3b8;
  --accent-cyan: #22d3ee;
  --accent-cyan-dim: #0891b2;
  --accent-amber: #fbbf24;
  --accent-amber-bg: rgba(251, 191, 36, 0.12);
  --border: rgba(148, 163, 184, 0.25);
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-deep);
  background-image: radial-gradient(
      ellipse 120% 80% at 50% -20%,
      rgba(34, 211, 238, 0.08),
      transparent 50%
    ),
    linear-gradient(180deg, #0d1b2e 0%, var(--bg-deep) 40%);
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: #67e8f9;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Top bar */
.site-header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}
.brand span {
  color: var(--accent-cyan);
}
.nav-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}
.nav-inline a {
  color: var(--text-muted);
}
.nav-inline a:hover {
  color: var(--accent-cyan);
}

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover {
  text-decoration: none;
}
.btn-primary {
  background: var(--accent-cyan-dim);
  color: #042f2e;
  border-color: var(--accent-cyan);
}
.btn-primary:hover {
  background: var(--accent-cyan);
  color: #042f2e;
}
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}
.btn-ghost {
  background: transparent;
  color: var(--accent-cyan);
  border-color: rgba(34, 211, 238, 0.45);
}
.btn-ghost:hover {
  background: rgba(34, 211, 238, 0.1);
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--accent-cyan);
}
.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Warning / non-operational */
.notice-critical {
  border: 2px solid var(--accent-amber);
  background: var(--accent-amber-bg);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.notice-critical strong {
  color: var(--accent-amber);
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.notice-critical p {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.95rem;
}

/* Hero */
.hero {
  padding: 2.5rem 0 2rem;
  text-align: center;
}
.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.hero .subtitle {
  max-width: 42rem;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Ten-second block — high visibility */
.block-ten-sec {
  margin: 2rem 0 2.5rem;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(34, 211, 238, 0.15) 0%,
    var(--bg-card) 45%,
    var(--bg-card) 100%
  );
  border: 2px solid var(--accent-cyan);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.2), var(--shadow);
}
.block-ten-sec h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  color: var(--accent-cyan);
  text-align: center;
}
.steps-grid {
  display: grid;
  gap: 0.75rem;
  counter-reset: step;
}
@media (min-width: 640px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .steps-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
.step-card {
  counter-increment: step;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 0.85rem;
  text-align: center;
  min-height: 5.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.step-card::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--bg-deep);
  background: var(--accent-cyan);
  border-radius: 50%;
}
.step-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.35;
}
.block-ten-sec .tagline {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.98rem;
  color: var(--text-muted);
}

/* Sections */
section {
  padding: 2rem 0;
}
section h2 {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  color: var(--text-primary);
  border-left: 4px solid var(--accent-cyan);
  padding-left: 0.75rem;
}

.grid-capabilities {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .grid-capabilities {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .grid-capabilities {
    grid-template-columns: repeat(3, 1fr);
  }
}

.flow-diagram {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo,
    monospace;
  font-size: clamp(0.7rem, 1.5vw, 0.88rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  overflow-x: auto;
  text-align: center;
  color: var(--accent-cyan);
  line-height: 1.8;
  white-space: nowrap;
}
.flow-diagram .arrow {
  color: var(--text-muted);
  margin: 0 0.2rem;
}

.pages-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
@media (min-width: 600px) {
  .pages-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
.pages-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
}
.pages-list code {
  color: var(--accent-cyan);
  font-size: 0.88em;
}

.citation-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.citation-block ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}
.citation-block li {
  margin: 0.35rem 0;
}

/* Start-here cards */
.start-here-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .start-here-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 980px) {
  .start-here-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
.start-here-grid .card h3 {
  font-size: 1rem;
}

/* Mini table (R0/R1/R2) */
.table-wrap {
  overflow-x: auto;
}
table.mini-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  table-layout: auto;
}
table.mini-table th,
table.mini-table td {
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0.85rem;
  text-align: left;
  vertical-align: top;
}
table.mini-table th {
  color: var(--accent-cyan);
  font-weight: 800;
  font-size: 0.9rem;
  background: rgba(34, 211, 238, 0.06);
}
table.mini-table td {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Downloads page list */
.downloads-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.downloads-list li {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-deep);
}
.downloads-meta {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}

/* Screenshots gallery */
.screenshot-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .screenshot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1040px) {
  .screenshot-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.screenshot-card {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem;
  box-shadow: var(--shadow);
}
.screenshot-frame {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-deep);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.screenshot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.screenshot-card figcaption {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

pre,
.code-block {
  margin: 0.75rem 0 0;
  padding: 1rem 1.1rem;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #e2e8f0;
}

.site-footer {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.site-footer a {
  color: var(--accent-cyan);
}

/* Tutorial page */
.page-title {
  padding: 2rem 0 1rem;
}
.page-title h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
}
.page-title p {
  margin: 0;
  color: var(--text-muted);
}
.article section {
  padding: 1.25rem 0;
}
.article h2 {
  font-size: 1.2rem;
}
.article ol,
.article ul {
  color: var(--text-muted);
  padding-left: 1.25rem;
}
.article li {
  margin: 0.4rem 0;
}
.article .card {
  margin-top: 0.75rem;
}

/* --- Phase C9.4: collage hero, gallery grid, citation status --- */

.collage-hero {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-deep);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.collage-hero:hover {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.2), var(--shadow);
}
.collage-hero--compact {
  border: none;
  background: transparent;
}
.collage-hero--compact:hover {
  box-shadow: none;
}
.collage-hero a {
  display: block;
  line-height: 0;
}
.collage-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

.caption-muted {
  margin: 0.85rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.gallery-intro {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.gallery-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-card {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem;
  box-shadow: var(--shadow);
}
.gallery-card a {
  display: block;
}
.gallery-frame {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-deep);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-frame img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  display: block;
}
.gallery-card figcaption {
  margin-top: 0.65rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.collage-preview-card {
  overflow: hidden;
}

.citation-status-card {
  padding: 1.25rem 1.35rem;
}
.citation-status-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: var(--accent-cyan);
}
.citation-status-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}
.citation-status-list li {
  margin: 0.4rem 0;
}
