/* Landing page — standalone, no Starlight */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&family=JetBrains+Mono:wght@400&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: #1a2f8a;
  color: #f0f2ff;
  line-height: 1.7;
}

/* --- Hero --- */

.hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffd666;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.tagline {
  font-size: 1.1rem;
  color: #b8c4e8;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.btn-primary {
  background: #ffd666;
  color: #0f1a50;
}

.btn-primary:hover {
  background: #ffe8a0;
}

.btn-secondary {
  background: #2240a8;
  color: #88bbff;
  border: 1px solid #4470cc;
}

.btn-secondary:hover {
  background: #3366d6;
  color: #ffd666;
}

/* --- Demo --- */

.demo-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.demo-section h2 {
  font-size: 1.1rem;
  color: #ffe8a0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.demo-note {
  font-size: 0.85rem;
  color: #7888b8;
  margin-top: 0.5rem;
}

/* --- Alap demo (inline from AlapDemo component) --- */

.alap-demo {
  padding: 1.25rem 1.5rem;
  background: #2240a8;
  border: 1px solid #4470cc;
  border-radius: 8px;
  color: #f0f2ff;
  line-height: 1.8;
}

.alap-demo alap-link {
  color: #88bbff;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  cursor: pointer;
}

.alap-demo alap-link:hover {
  color: #ffd666;
}

.alap-demo alap-link::part(menu) {
  background: #2240a8;
  border: 1px solid #4470cc;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  padding: 0.25rem 0;
  min-width: 180px;
}

.alap-demo alap-link::part(link) {
  display: block;
  padding: 0.5rem 1rem;
  color: #f0f2ff;
  text-decoration: none;
  font-size: 0.9rem;
}

.alap-demo alap-link::part(link):hover,
.alap-demo alap-link::part(link):focus,
.alap-demo alap-link::part(link):focus-visible {
  background: #3366d6;
  color: #ffd666;
  outline: none;
}

/* --- Feature sections --- */

.feature-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.feature-section h2 {
  font-size: 1.1rem;
  color: #ffe8a0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.feature-section pre {
  background: #152568;
  border: 1px solid #2e48a0;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #b8c4e8;
}

.feature-section p {
  color: #b8c4e8;
  margin-top: 0.75rem;
}

.feature-section code {
  font-family: 'JetBrains Mono', monospace;
  background: #1a2870;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-size: 0.85em;
  color: #88bbff;
}

/* --- Features grid --- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  background: #2240a8;
  border: 1px solid #2e48a0;
  border-radius: 8px;
  padding: 1.25rem;
}

.feature-card h3 {
  font-size: 0.95rem;
  color: #ffd666;
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.85rem;
  color: #b8c4e8;
  margin: 0;
}

/* --- Footer --- */

footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #7888b8;
}

footer a {
  color: #88bbff;
  text-decoration: none;
}

footer a:hover {
  color: #ffd666;
}

/* --- Announcement page --- */

.announce-nav {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.5rem 0;
}

.announce-nav a {
  color: #88bbff;
  text-decoration: none;
  font-size: 0.9rem;
}

.announce-nav a:hover {
  color: #ffd666;
}

.subsection-heading {
  font-size: 1rem;
  color: #ffd666;
  margin: 2rem 0 0.75rem;
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
  margin: 0.75rem 0;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.table-wrap th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  color: #ffe8a0;
  border-bottom: 1px solid #4470cc;
  font-weight: 600;
}

.table-wrap td {
  padding: 0.5rem 0.75rem;
  color: #b8c4e8;
  border-bottom: 1px solid #2e48a0;
}

.table-wrap tr:hover td {
  background: rgba(34, 64, 168, 0.4);
}

.code-comment {
  color: #5a6a9a;
}

/* --- Announcement banner on splash --- */

.announce-banner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.announce-banner a {
  display: block;
  padding: 0.75rem 1.25rem;
  background: #152568;
  border: 1px solid #4470cc;
  border-radius: 8px;
  color: #ffd666;
  text-decoration: none;
  font-size: 0.9rem;
  text-align: center;
  transition: background 0.15s, color 0.15s;
}

.announce-banner a:hover {
  background: #2240a8;
  color: #ffe8a0;
}

.announce-banner .announce-label {
  color: #ffd666;
  font-weight: 600;
}

/* --- Responsive --- */

@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .features-grid { grid-template-columns: 1fr; }
}
