/* ─── Stax Link — Matrix / hacker theme ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0e0c;
  --surface:   #101613;
  --surface2:  #161d19;
  --border:    #243028;
  --matrix:    #39ff14;
  --matrix-dim:#1faa0e;
  --cyan:      #00e5c0;
  --amber:     #ffb020;
  --danger:    #ff5c5c;
  --text:      #d4e8d8;
  --text-dim:  #7a9a82;
  --text-mute: #4a6354;
  --glow:      rgba(57, 255, 20, 0.35);
  --radius:    8px;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Menlo', 'Consolas', monospace;
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max:       1100px;
}

html { scroll-behavior: smooth; }

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

/* Matrix canvas behind everything */
#matrix-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.22;
}

.page {
  position: relative;
  z-index: 1;
}

a { color: var(--matrix); text-decoration: none; }
a:hover { color: var(--cyan); text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ─── Layout ──────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

.section { padding: 88px 0; }
.section--sm { padding: 56px 0; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--matrix);
  margin-bottom: 12px;
}

.section-label::before {
  content: '// ';
  color: var(--matrix-dim);
}

.section-title {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 14px;
}

.section-sub {
  max-width: 560px;
  color: var(--text-dim);
  font-size: 1.02rem;
}

/* ─── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 14, 12, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--matrix);
  text-decoration: none;
}

.nav__logo img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1px solid var(--border);
  box-shadow: 0 0 12px var(--glow);
}

.nav__logo:hover { color: var(--cyan); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  text-decoration: none;
}

.nav__links a:hover { color: var(--matrix); }

.nav__cta {
  font-family: var(--font-mono) !important;
  font-size: 0.75rem !important;
  padding: 7px 12px;
  border: 1px solid var(--matrix);
  border-radius: 4px;
  color: var(--matrix) !important;
  box-shadow: 0 0 14px rgba(57, 255, 20, 0.12);
}

.nav__cta:hover {
  background: rgba(57, 255, 20, 0.1);
  color: var(--cyan) !important;
  border-color: var(--cyan);
}

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--matrix);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
}

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 12px 20px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.btn--primary {
  background: var(--matrix);
  color: #041006;
  box-shadow: 0 0 24px rgba(57, 255, 20, 0.25);
}

.btn--primary:hover {
  background: #5dff3a;
  color: #041006;
  box-shadow: 0 0 32px rgba(57, 255, 20, 0.4);
}

.btn--outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn--outline:hover {
  border-color: var(--matrix);
  color: var(--matrix);
  box-shadow: 0 0 16px rgba(57, 255, 20, 0.12);
}

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 72px;
  overflow: hidden;
}

.hero__scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
  z-index: 2;
  opacity: 0.4;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 3;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--matrix);
  border: 1px solid var(--border);
  background: rgba(57, 255, 20, 0.06);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero__badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--matrix);
  box-shadow: 0 0 8px var(--matrix);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.hero h1 {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: var(--text);
}

.hero h1 .accent {
  color: var(--matrix);
  text-shadow: 0 0 28px var(--glow);
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 480px;
  margin-bottom: 28px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  text-transform: uppercase;
}

.hero__meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__meta span::before {
  content: '▸';
  color: var(--matrix-dim);
}

/* Terminal window visual */
.term-window {
  background: rgba(16, 22, 19, 0.92);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(57, 255, 20, 0.06),
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(57, 255, 20, 0.08);
  overflow: hidden;
  font-family: var(--font-mono);
}

.term-window__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}

.term-window__bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-mute);
}

.term-window__bar .dot--r { background: #ff5c5c; }
.term-window__bar .dot--y { background: #ffb020; }
.term-window__bar .dot--g { background: #39ff14; }

.term-window__title {
  margin-left: 8px;
  font-size: 0.72rem;
  color: var(--text-mute);
  letter-spacing: 0.06em;
}

.term-window__body {
  padding: 18px 18px 22px;
  min-height: 280px;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-dim);
}

.term-window__body .prompt { color: var(--matrix); }
.term-window__body .cmd { color: var(--text); }
.term-window__body .out { color: var(--text-dim); }
.term-window__body .ok { color: var(--cyan); }
.term-window__body .dim { color: var(--text-mute); }
.term-window__body .line { margin-bottom: 2px; white-space: pre-wrap; word-break: break-word; }

.cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--matrix);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
  box-shadow: 0 0 8px var(--matrix);
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ─── Strip ───────────────────────────────────────────────────────────────── */
.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(16, 22, 19, 0.75);
  backdrop-filter: blur(8px);
}

.strip__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 28px 0;
}

.strip__item {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  padding: 8px 12px;
  text-align: center;
}

.strip__item strong {
  display: block;
  color: var(--matrix);
  font-size: 0.9rem;
  margin-bottom: 4px;
  font-weight: 600;
}

/* ─── Features ────────────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.feature-card {
  background: rgba(16, 22, 19, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.feature-card:hover {
  border-color: rgba(57, 255, 20, 0.35);
  box-shadow: 0 0 28px rgba(57, 255, 20, 0.08);
  transform: translateY(-2px);
}

.feature-card__icon {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--matrix);
  margin-bottom: 14px;
  letter-spacing: 0.08em;
}

.feature-card h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ─── How it works ────────────────────────────────────────────────────────── */
.steps {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 36px;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  background: rgba(16, 22, 19, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.step__num {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--matrix);
  text-shadow: 0 0 12px var(--glow);
  padding-top: 2px;
}

.step h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 6px;
}

.step p {
  font-size: 0.92rem;
  color: var(--text-dim);
}

/* ─── Security ────────────────────────────────────────────────────────────── */
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}

.security-card {
  background: rgba(16, 22, 19, 0.85);
  border: 1px solid var(--border);
  border-left: 3px solid var(--matrix-dim);
  border-radius: var(--radius);
  padding: 22px;
}

.security-card h3 {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--matrix);
  margin-bottom: 10px;
}

.security-card p {
  font-size: 0.92rem;
  color: var(--text-dim);
}

.security-note {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-mute);
  border: 1px dashed var(--border);
  padding: 14px 16px;
  border-radius: var(--radius);
}

/* ─── Screenshots ─────────────────────────────────────────────────────────── */
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.shot {
  background: rgba(16, 22, 19, 0.9);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.shot:hover {
  border-color: rgba(57, 255, 20, 0.4);
  box-shadow: 0 0 32px rgba(57, 255, 20, 0.1);
}

.shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  background: var(--surface2);
}

.shot--wide img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.shot figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  padding: 12px 14px;
  border-top: 1px solid var(--border);
}

/* ─── Stack table ─────────────────────────────────────────────────────────── */
.stack-table {
  width: 100%;
  margin-top: 32px;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: rgba(16, 22, 19, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stack-table th,
.stack-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.stack-table th {
  color: var(--matrix);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--surface2);
}

.stack-table td { color: var(--text-dim); }
.stack-table tr:last-child td { border-bottom: none; }
.stack-table td:first-child { color: var(--text); font-weight: 500; }

/* ─── CTA ─────────────────────────────────────────────────────────────────── */
.cta {
  padding: 88px 0;
}

.cta__box {
  background: linear-gradient(145deg, rgba(31, 170, 14, 0.12), rgba(16, 22, 19, 0.95));
  border: 1px solid rgba(57, 255, 20, 0.25);
  border-radius: 12px;
  padding: 48px 36px;
  text-align: center;
  box-shadow: 0 0 60px rgba(57, 255, 20, 0.08);
}

.cta__box h2 {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--text);
  margin-bottom: 12px;
}

.cta__box p {
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto 24px;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 40px;
  background: rgba(10, 14, 12, 0.9);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--matrix);
  text-decoration: none;
}

.footer__brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-mute);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer__links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer__links a:hover { color: var(--matrix); }

/* ─── Privacy page ────────────────────────────────────────────────────────── */
.privacy-hero {
  padding: 120px 0 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(16, 22, 19, 0.6);
}

.privacy-hero h1 {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--matrix);
  margin-bottom: 10px;
}

.privacy-hero p {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-mute);
}

.privacy-body {
  max-width: 720px;
  padding-bottom: 64px;
}

.privacy-body h2 {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--matrix);
  margin: 36px 0 12px;
}

.privacy-body h3 {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text);
  margin: 22px 0 8px;
}

.privacy-body p,
.privacy-body li {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.privacy-body ul {
  padding-left: 22px;
  margin-bottom: 12px;
}

.privacy-body a { color: var(--cyan); }

.privacy-highlight {
  border: 1px solid var(--border);
  border-left: 3px solid var(--matrix);
  background: rgba(57, 255, 20, 0.05);
  padding: 16px 18px;
  border-radius: var(--radius);
  margin: 16px 0;
}

.privacy-highlight p { margin: 0; color: var(--text); }

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .features-grid,
  .shots,
  .security-grid {
    grid-template-columns: 1fr 1fr;
  }

  .strip__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nav__toggle { display: block; }

  .nav__links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 14, 12, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
  }

  .nav__links.is-open { display: flex; }

  .nav__links li a {
    display: block;
    padding: 14px 22px;
    border-bottom: 1px solid var(--border);
  }

  .nav__links li:last-child a { border-bottom: none; }

  .nav__cta {
    margin: 8px 22px 12px !important;
    text-align: center;
  }

  .features-grid,
  .shots,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .shots .shot:first-child {
    grid-column: auto;
  }

  .hero { min-height: auto; padding-top: 96px; }
  .cta__box { padding: 36px 22px; }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
