:root {
  --brand-cyan: #5ce1e6;
  --brand-navy: #050a30;
  --brand-blue: #00abff;
  --bg: #f5f9ff;
  --ink: #050a30;
  --muted: #30416e;
  --accent: #00abff;
  --accent-soft: #d8f4ff;
  --panel: #ffffff;
  --line: #aacde2;
  --comp-apricot: #ffb28a;
  --comp-gold: #ffd166;
  --comp-lilac: #c7b8ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 10%, #dbfbff 0, transparent 36%),
    radial-gradient(circle at 90% 12%, #d6e3ff 0, transparent 34%),
    linear-gradient(180deg, #fcfeff 0%, var(--bg) 68%);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.left-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 2rem 1.2rem;
  border-right: 1px solid var(--line);
  background: linear-gradient(185deg, #050a30 0%, #0a1552 58%, #10206b 100%);
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.3rem;
  color: #f5fdff;
}

.left-rail nav {
  display: grid;
  gap: 0.6rem;
}

.left-rail a {
  color: #d7ecff;
  text-decoration: none;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
}

.left-rail a:hover {
  background: rgba(92, 225, 230, 0.2);
}

.content {
  padding: 2rem;
}

h1, h2, h3 {
  font-family: "IBM Plex Serif", Georgia, serif;
  margin-top: 0;
}

.hero {
  background: linear-gradient(135deg, #ffffff 0%, #ebf9ff 62%, #dff6ff 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem;
}

.hero.compact {
  padding: 1.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 0.4rem;
  font-weight: 700;
  font-size: 0.78rem;
}

.lede {
  color: var(--muted);
  max-width: 70ch;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.cards.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card, .panel, .post {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.long-scroll .story-step {
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.screenshot-placeholder {
  min-height: 110px;
  border: 1px dashed #6b8fb3;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.stack {
  display: grid;
  gap: 0.7rem;
}

.inline-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

input, textarea, select, button {
  font: inherit;
}

input, textarea, select {
  width: 100%;
  padding: 0.6rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

textarea {
  min-height: 120px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #08143f;
  text-decoration: none;
  border: 0;
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  font-weight: 600;
}

.btn.ghost {
  background: var(--accent-soft);
  color: #04325d;
  border: 1px solid #8cd6ff;
}

.cta-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

.feed {
  display: grid;
  gap: 0.8rem;
}

.meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.tag-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.8rem;
  background: #ffe6d8;
  color: #7a2e10;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}


.error {
  color: #9a1f07;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.version-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  margin: 0.4rem 0;
}

.narrow {
  max-width: 520px;
}

@media (max-width: 980px) {
  body {
    grid-template-columns: 1fr;
  }

  .left-rail {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .cards,
  .cards.two,
  .panel-grid,
  .gallery {
    grid-template-columns: 1fr;
  }
}
