@font-face {
  font-family: 'Atlas UI';
  src: url('assets/font_ui.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

:root {
  --bg: #000000;
  --bg-soft: #0a0a0c;
  --card: #131316;
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(1, 179, 251, 0.35);
  --text: #e4e5e8;
  --text-dim: #9a9da3;
  --accent: #01b3fb;
  --accent-bright: #4fd0ff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Atlas UI', 'Segoe UI', -apple-system, sans-serif;
  scroll-behavior: smooth;
}

canvas#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  /* z-index: -1 sinks it below the html/body background paint in most
     browsers, which is why the stars never showed - 0 keeps it above that
     but still behind every normal-flow element that comes after it in the DOM. */
  z-index: 0;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 60%);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid var(--card-border);
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

header img.logo {
  height: 34px;
  display: block;
}

nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  margin-left: 32px;
  transition: color 0.15s ease;
}

nav a:hover,
nav a.active {
  color: var(--text);
}

nav a.active {
  color: var(--accent-bright);
}

main {
  /* positioned + z-index so it (and everything in it) is compared against
     the canvas by z-index value rather than losing to it automatically -
     an unpositioned/static element always paints behind any positioned one,
     canvas included, no matter what z-index the canvas has or what the DOM
     order is */
  position: relative;
  z-index: 1;
  padding-top: 64px;
  padding-bottom: 96px;
}

.hero {
  text-align: center;
  padding: 40px 0 72px;
}

.hero img.logo-big {
  height: 92px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.25;
  margin: 0 0 16px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.hero h1 span {
  color: var(--accent-bright);
}

.hero p.sub {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #06121a;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--card-border);
}

.btn.ghost:hover {
  border-color: var(--card-border-hover);
  background: rgba(255, 255, 255, 0.03);
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 72px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
}

.card .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-bottom: 12px;
  box-shadow: 0 0 10px rgba(1, 179, 251, 0.7);
}

.product-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 32px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  transition: border-color 0.2s ease;
}

.product-card:hover {
  border-color: var(--card-border-hover);
}

.product-card img.icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  flex-shrink: 0;
}

.product-card .body {
  flex: 1;
}

.product-card h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
}

.product-card .meta {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 14px;
}

.product-card .desc {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}

.feature-list li {
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.notice {
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(1, 179, 251, 0.06);
  border: 1px solid rgba(1, 179, 251, 0.2);
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.6;
}

.notice strong {
  color: var(--text);
}

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--card-border);
  padding: 28px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

footer a {
  color: var(--text-dim);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent-bright);
}

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .product-card { flex-direction: column; }
  .feature-list { grid-template-columns: 1fr; }
}
