:root {
  --bg: #f4f6fb;
  --bg-sky: #dfe8fb;
  --surface: #ffffff;
  --text: #16203a;
  --muted: #5b6684;
  --accent: #3b6ef5;
  --border: #dde3f0;
  --shadow: 0 1px 2px rgba(22, 32, 58, 0.06), 0 8px 24px rgba(22, 32, 58, 0.06);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1220;
    --bg-sky: #16213d;
    --surface: #151c2e;
    --text: #e6ebf7;
    --muted: #94a0bf;
    --accent: #7a9cff;
    --border: #253150;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  text-align: center;
  padding: 4.5rem 1.25rem 3.5rem;
  background: linear-gradient(to bottom, var(--bg-sky), var(--bg));
}

.ship {
  width: 150px;
  max-width: 50%;
  animation: float 6s ease-in-out infinite;
}
.ship .hull { fill: var(--accent); }
.ship .fin, .ship .gondola { fill: var(--accent); opacity: 0.75; }
.ship .rope { stroke: var(--accent); stroke-width: 3; opacity: 0.6; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .ship { animation: none; }
}

h1 {
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  letter-spacing: -0.03em;
  margin: 0.6rem 0 0.3rem;
}

.tagline {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0;
}

main {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 1rem 1.25rem 4rem;
  flex: 1;
}

.section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
a.card:hover, a.card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
  outline: none;
}
.card.soon { opacity: 0.55; }

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}
.card h3 { margin: 0; font-size: 1.15rem; }

.badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-sky);
  color: var(--accent);
}

.desc { margin: 0; color: var(--muted); flex: 1; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.tags li {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
}

.host { font-size: 0.85rem; font-weight: 600; color: var(--accent); }

footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
