:root {
  --bg: #0a0a0a;
  --fg: #e8e4da;
  --muted: #8a8578;
  --accent: #b8863f;
  --accent-dim: #6b5228;
  --card-bg: #121212;
  --card-border: #262420;
  --radius: 2px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 88px 16px 64px;
  position: relative;
  background-image:
    linear-gradient(rgba(184,134,63,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,134,63,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.matrix-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.45;
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--card-border);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.topbar .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5fa96a;
  margin-right: 6px;
  box-shadow: 0 0 6px #5fa96a;
  animation: blink 2s ease-in-out infinite;
}

@media (max-width: 520px) {
  .topbar {
    font-size: 9px;
    padding: 11px 14px;
    letter-spacing: 0.1em;
  }
  .topbar span:last-child { display: none; }
  body { padding-top: 64px; }
}

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

.wrap {
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 1;
}

.profile {
  text-align: center;
  margin-bottom: 32px;
}

.mark {
  color: var(--accent);
  margin: 0 auto 16px;
  width: 72px;
}

h1 {
  font-size: 28px;
  letter-spacing: 0.35em;
  margin: 0 0 8px;
  font-weight: 600;
}

.tagline {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.25em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.sub {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}

.links {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.link.social {
  color: var(--fg);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--card-border);
  padding: 10px 18px;
  border-radius: var(--radius);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.link.social:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.products {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  display: block;
  position: relative;
  background: linear-gradient(180deg, rgba(184,134,63,0.05), transparent 40%), var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px 22px;
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.15s ease, transform 0.1s ease;
}

.card::before, .card::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--accent-dim);
  opacity: 0.7;
  transition: border-color 0.15s ease;
}

.card::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.card::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

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

.card:hover::before, .card:hover::after { border-color: var(--accent); }

.card-eyebrow {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.card-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 14px;
}

.card-cta {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--fg);
}

.foot {
  margin-top: 40px;
  text-align: center;
}

.foot p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* ---- detail pages ---- */

.back {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.05em;
  margin-bottom: 28px;
}

.back:hover { color: var(--accent); }

.detail-header {
  text-align: center;
  margin-bottom: 12px;
}

.detail-mark {
  width: 48px;
  margin: 0 auto 20px;
}

.detail-eyebrow {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.2em;
  margin-bottom: 10px;
}

.detail-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 14px;
}

.detail-price {
  font-size: 15px;
  color: var(--fg);
  margin-bottom: 32px;
}

.detail-price .amount {
  color: var(--accent);
  font-weight: 600;
}

.detail-body {
  margin-bottom: 32px;
}

.detail-body p {
  color: var(--fg);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.feature-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  font-size: 13px;
  color: var(--fg);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}

.feature-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.buy-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: #0a0a0a;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 14px;
  transition: opacity 0.15s ease;
}

.buy-btn:hover { opacity: 0.85; }

.buy-note {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin: 0 0 16px;
  text-transform: uppercase;
}

.section-title::before { content: "//"; opacity: 0.6; }
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--card-border);
}

.toc {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  border-top: 1px solid var(--card-border);
}

.toc li {
  border-bottom: 1px solid var(--card-border);
  padding: 12px 0;
  font-size: 13px;
  color: var(--fg);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.toc li span.n {
  color: var(--muted);
}

.faq {
  margin-bottom: 20px;
}

.faq-item {
  border-bottom: 1px solid var(--card-border);
  padding: 16px 0;
}

.faq-q {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.faq-a {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ---- leak strip (cross-page teaser) ---- */

.leak-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.leak-strip-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5fa96a;
  box-shadow: 0 0 6px #5fa96a;
  animation: blink 2s ease-in-out infinite;
}

.leak-strip-text { flex: 1; }
.leak-strip-text strong { color: var(--fg); }

.leak-strip-cta {
  flex-shrink: 0;
  color: var(--accent);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.leak-strip-cta:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .leak-strip { flex-direction: column; align-items: flex-start; gap: 8px; }
  .leak-strip-dot { display: none; }
  .leak-strip-cta { margin-left: 0; }
}

/* ---- check page ---- */

.result-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 8px;
}

.result-box.ok {
  border-color: #3f6b47;
  color: #a9d6b0;
  font-size: 13px;
}

.result-box.bad {
  border-color: #6b3f3f;
  color: #e0a9a9;
  font-size: 13px;
}

.leak-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--card-border);
}

.leak-row:last-child { border-bottom: none; }

.leak-row span { color: var(--muted); }
.leak-row strong { color: var(--fg); font-weight: 500; text-align: right; }

.muted { color: var(--muted); font-size: 13px; margin: 0; }

.check-form {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.check-form input {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--fg);
  padding: 14px 16px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 13px;
}

.check-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.check-form .buy-btn {
  width: auto;
  padding: 14px 20px;
  white-space: nowrap;
}

.breach-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 8px;
  font-size: 13px;
}

@media (max-width: 420px) {
  .check-form { flex-direction: column; }
  .check-form .buy-btn { width: 100%; }
}

/* ---- data flow diagram ---- */

.flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 28px 0 36px;
}

.flow-node {
  width: 100%;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  padding: 13px 16px;
  border-radius: var(--radius);
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.03em;
}

.flow-node .label-top {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.flow-node.highlight {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 16px rgba(184,134,63,0.15);
}

.flow-connector {
  width: 1px;
  height: 30px;
  background: var(--card-border);
  position: relative;
}

.flow-connector::after {
  content: "";
  position: absolute;
  left: -2px;
  top: -4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: flow-dot 2.4s linear infinite;
}

.flow-connector:nth-of-type(1)::after { animation-delay: 0s; }
.flow-connector:nth-of-type(2)::after { animation-delay: 0.4s; }
.flow-connector:nth-of-type(3)::after { animation-delay: 0.8s; }
.flow-connector:nth-of-type(4)::after { animation-delay: 1.2s; }
.flow-connector:nth-of-type(5)::after { animation-delay: 1.6s; }

@keyframes flow-dot {
  0% { top: -4px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 30px; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-connector::after { animation: none; opacity: 0.6; top: 13px; }
}

/* ---- language switcher ---- */

.lang-switch {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0 0 20px;
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--muted);
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  border-radius: var(--radius);
  cursor: pointer;
}

.lang-btn.active {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- video embed ---- */

.video-section {
  margin-bottom: 28px;
  text-align: center;
}

.video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: #000;
  margin-bottom: 10px;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- mobile compaction ---- */

.gap-lg { margin-top: 40px; }

@media (max-width: 480px) {
  .gap-lg { margin-top: 26px; }

  .card { padding: 16px 18px; }
  .result-box { padding: 13px 15px; }

  .leak-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 9px 0;
  }
  .leak-row strong { text-align: left; word-break: break-word; }

  h1 { font-size: 22px; }
  .detail-title { font-size: 19px; }
  .card-title { font-size: 15px; }
  .section-title { font-size: 10px; }

  .flow-node { padding: 11px 14px; }
  .flow-connector { height: 22px; }
}
