:root {
  --bg: #05070d;
  --panel: #0c1018;
  --line: #1c2433;
  --text: #ececec;
  --muted: #9aa3b2;
  --green: #45e945;
  --max: 920px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* faint circuit-grid backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.25;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 70%);
}

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

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* ---------- header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 7, 13, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.02em; }
.brand img { height: 30px; width: auto; display: block; }
nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.92rem; color: var(--muted); }
nav a { padding: 4px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
nav a:hover, nav a:focus-visible { color: var(--text); border-color: var(--green); outline: none; }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 12vw, 120px) 0 clamp(40px, 8vw, 80px); text-align: center; }
.hero .logo { width: min(460px, 82%); height: auto; margin: 0 auto 24px; display: block; filter: drop-shadow(0 0 22px rgba(69, 233, 69, 0.18)); }
.hero h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: -0.02em; line-height: 1.1; }
.hero .tag { margin: 14px 0 0; font-size: clamp(1.05rem, 2.6vw, 1.35rem); color: var(--green); font-weight: 600; }
.hero .sub { margin: 14px auto 0; max-width: 560px; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); border-color: var(--green); box-shadow: 0 6px 24px rgba(69, 233, 69, 0.12); outline: none; }
.btn.primary { background: var(--green); color: #04110a; border-color: var(--green); }

/* ---------- sections ---------- */
section { padding: clamp(36px, 7vw, 64px) 0; border-top: 1px solid var(--line); }
h2 { margin: 0 0 22px; font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green); font-weight: 700; }
.about p { margin: 0 0 14px; font-size: 1.08rem; max-width: 66ch; }
.about p:last-child { margin-bottom: 0; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .15s, border-color .15s;
}
a.card:hover, a.card:focus-visible { transform: translateY(-3px); border-color: var(--green); outline: none; }
.card h3 { margin: 0; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .go { margin-top: auto; padding-top: 6px; color: var(--green); font-size: 0.88rem; font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chips li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: 0.95rem; }
.chips li.main { border-color: var(--green); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 36px 0 56px; text-align: center; color: var(--muted); font-size: 0.92rem; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin-bottom: 14px; }
footer .links a { color: var(--text); border-bottom: 1px solid var(--green); padding-bottom: 1px; }
footer .links a:hover { color: var(--green); }
.keywords { letter-spacing: 0.08em; }

@media (max-width: 640px) {
  header.site .wrap { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
