:root {
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --text: #1a1a1a;
  --muted: #5c636a;
  --border: #e1e4e8;
  --accent: #2563eb;
  --container: 1080px;
  --radius: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

a { color: inherit; text-decoration: none; }

/* ---------- HEADER ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(225, 228, 232, 0.5);
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px) saturate(160%);
  -webkit-backdrop-filter: blur(6px) saturate(160%);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand { font-weight: 700; font-size: 1.05rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.brand-logo { width: 1.8em; height: 1.8em; vertical-align: middle; display: inline-block; }
.brand-font {
  font-family: "JetBrainsMono Nerd Font", "JetBrainsMono NF", "JetBrains Mono", monospace;
  font-weight: 700;
}
.brand-for {
  font-family: "JetBrains Mono", monospace;
  font-style: italic;
  color: var(--accent);
  text-transform: lowercase;
}
.nav { display: flex; gap: 1.4rem; font-size: 1.05rem; font-weight: 700; color: #000000; }
.nav a { transition: color 0.2s ease; }
.nav a:hover { color: var(--accent); }

/* ---------- MASTHEAD ---------- */
.masthead { padding: 0; }
.masthead-banner {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 3.5rem 0;
  margin-top: 4rem;
  background: #000000;
  color: #ffffff;
}
.masthead-content { position: relative; z-index: 1; }
.masthead-code {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.35;
}
.masthead-code-track {
  margin: 0;
  flex: none;
  width: max-content;
  white-space: nowrap;
  font-family: "JetBrainsMono Nerd Font", "JetBrainsMono NF", "JetBrains Mono", monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  animation: banner-scroll 240s linear infinite;
}
.masthead-code-track .hljs {
  background: transparent;
  padding: 0;
  display: inline;
}
@keyframes banner-scroll {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.masthead h1 {
  font-size: 2.6rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.masthead-tag { color: #b8bcc4; font-size: 1.1rem; }

/* ---------- SECTIONS ---------- */
.section { padding: 4rem 0; }
.section.alt { background: var(--bg-alt); }
.section h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
  border-top: 3px solid var(--accent);
}
.lead { font-size: 1.1rem; color: var(--muted); max-width: 70ch; margin-bottom: 2rem; }
.lead-wide { max-width: none; }

/* ---------- ABOUT ---------- */
.about-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.about-points h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.about-points p { color: var(--muted); font-size: 0.95rem; }

/* ---------- TABLE ---------- */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.table th,
.table td {
  text-align: left;
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.table thead th {
  background: var(--bg-alt);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.table tbody tr:last-child td { border-bottom: none; }
.table .lang { font-weight: 700; }
.table .status { font-weight: 600; color: var(--accent); }
.table .status.muted { color: var(--muted); }

/* ---------- CONTACT ---------- */
.form { max-width: 480px; display: flex; flex-direction: column; gap: 1rem; }
.form label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 600; font-size: 0.95rem; }
.form input,
.form textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form textarea { resize: vertical; }
.form .btn { align-self: flex-start; margin-top: 0.2rem; }
.form-note { color: #16a34a; font-weight: 600; }

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  border: none;
  transition: filter 0.2s ease;
}
.btn:hover { filter: brightness(1.15); }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--border); padding: 2rem 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 800px) {
  .about-points { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; height: auto; padding: 0.8rem 0; gap: 0.5rem; }
  .masthead h1 { font-size: 2.1rem; }
  .table { display: block; overflow-x: auto; }
}
