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

:root {
  --bg:      #080b0f;
  --surface: #0f1318;
  --border:  #1a2030;
  --green:   #3dffa0;
  --text:    #dde2ec;
  --muted:   #4a5568;
  --mono:    'IBM Plex Mono', monospace;
  --serif:   'Instrument Serif', serif;
  --sans:    'DM Sans', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(61,255,160,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,255,160,0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
  z-index: 0;
}

* { position: relative; z-index: 1; }

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

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,11,15,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 58px;
}
.logo {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--text);
}
.logo span { color: var(--green); }
nav ul { list-style: none; display: flex; gap: 2rem; }
nav ul a { font-size: 0.82rem; color: var(--muted); transition: color 0.15s; }
nav ul a:hover, nav ul a.back:hover { color: var(--green); }

.page-hero { max-width: 820px; margin: 5rem auto 4rem; padding: 0 2.5rem; }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.13;
  margin-bottom: 1.4rem;
}
.page-hero h1 em { font-style: italic; color: var(--green); }
.page-intro { font-size: 1.02rem; color: var(--muted); max-width: 600px; line-height: 1.68; }

.section-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--green);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  opacity: 0.8;
}

section { max-width: 820px; margin: 0 auto 4rem; padding: 0 2.5rem; }
section h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.6rem;
}

.divider { border: none; border-top: 1px solid var(--border); max-width: 820px; margin: 0 auto 4rem; }

.text-block { margin-bottom: 2rem; }
.text-block p, section > p { color: var(--muted); margin-bottom: 1rem; font-size: 0.97rem; }
.text-block p:last-child { margin-bottom: 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.two-col p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.8rem; }
@media (max-width: 620px) { .two-col { grid-template-columns: 1fr; } }

.mono-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--green);
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  opacity: 0.9;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 2rem;
}
.card {
  background: var(--bg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: background 0.15s;
}
.card:hover { background: var(--surface); }
.card-icon { font-family: var(--mono); font-size: 0.68rem; color: var(--green); letter-spacing: 0.08em; opacity: 0.7; }
.card h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 400; line-height: 1.2; }
.card p { font-size: 0.88rem; color: var(--muted); flex: 1; line-height: 1.55; }
.card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--green);
  border: 1px solid rgba(61,255,160,0.25);
  padding: 0.15rem 0.55rem;
  letter-spacing: 0.04em;
}

.highlight-box { background: var(--surface); border: 1px solid var(--border); padding: 2rem; margin-top: 2rem; }
.highlight-box h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; margin-bottom: 1rem; line-height: 1.2; }
.highlight-box p { font-size: 0.93rem; color: var(--muted); margin-bottom: 0.85rem; }
.highlight-box p:last-of-type { margin-bottom: 0; }
.ext-link {
  display: inline-block;
  margin-top: 1.2rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--green);
  letter-spacing: 0.04em;
  transition: opacity 0.15s;
}
.ext-link:hover { opacity: 0.7; }

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 1.8rem;
}
.spec-item { background: var(--surface); padding: 1.2rem 1.4rem; }
.spec-item .label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  opacity: 0.7;
}
.spec-item .value { font-size: 0.9rem; color: var(--text); }
@media (max-width: 520px) { .spec-grid { grid-template-columns: 1fr; } }

footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 4rem;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up   { animation: fadeUp 0.55s ease both; }
.fade-up-2 { animation: fadeUp 0.55s 0.1s ease both; }
.fade-up-3 { animation: fadeUp 0.55s 0.2s ease both; }
