/* site49 — WeTheNorth Onion Guide. Dark research palette. */
:root {
  --bg:        #0f1116;
  --surface:   #15181f;
  --card:      #1a1e27;
  --line:      #262b36;
  --ink:       #e7eaf0;
  --ink-soft:  #aab0bd;
  --muted:     #7a8090;
  --red:       #ff4d54;
  --red-dark:  #c93a3f;
  --red-soft:  #2a1316;
  --good:      #4ade80;
  --warn:      #f59e0b;
  --shadow:    0 8px 30px rgba(0,0,0,.45);
  --radius:    12px;
}
*, *:before, *:after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--bg);
}
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 18px; }

.topbar {
  background: rgba(15,17,22,.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.topbar-inner { display: flex; align-items: center; gap: 18px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); }
.brand img { height: 36px; width: auto; display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text .b1 { font-size: 15px; }
.brand-text .b2 { font-size: 11px; color: var(--muted); font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }

nav.nav { margin-left: auto; display: flex; gap: 2px; flex-wrap: wrap; }
nav.nav a {
  color: var(--ink-soft); padding: 8px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
}
nav.nav a:hover { background: var(--red-soft); color: #fff; text-decoration: none; }
nav.nav a.on { background: var(--red); color: #fff; }

.hero {
  padding: 64px 0 36px;
  background:
    radial-gradient(900px 320px at 75% -10%, rgba(255,77,84,.16), transparent 60%),
    radial-gradient(700px 260px at 5% 120%, rgba(76,29,149,.12), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero .tag {
  display: inline-block; background: var(--red-soft); color: var(--red);
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px;
}
.hero h1 { font-size: 44px; line-height: 1.1; margin: 0 0 14px; letter-spacing: -.02em; }
.hero h1 .accent { color: var(--red); }
.hero .lead { font-size: 18px; color: var(--ink-soft); max-width: 760px; margin: 0; }
.hero-cta { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 8px;
  font-weight: 700; font-size: 14px; border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--red); border-color: var(--red); }
.btn-ghost:hover { background: var(--red-soft); text-decoration: none; }

.hero-meta { margin-top: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hero-meta div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.hero-meta b { display: block; color: var(--red); font-size: 20px; }
.hero-meta span { font-size: 12px; color: var(--muted); }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.card .row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line); }
.card .row:first-child { border-top: 0; }
.card .row .lbl { width: 110px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.card .row .val { flex: 1; }
.card .row .val code { background: var(--surface); padding: 6px 10px; border-radius: 6px; font-size: 13px; word-break: break-all; user-select: all; color: var(--ink); }

/* Hero onion box — high-contrast highlight. */
.onion-box {
  background:
    radial-gradient(800px 200px at 90% -20%, rgba(255,77,84,.18), transparent 60%),
    var(--card);
  border: 2px solid var(--red);
  border-radius: var(--radius);
  padding: 30px 20px 18px; margin-top: 28px;
  box-shadow: 0 18px 50px rgba(255,77,84,.20);
  position: relative;
}
.onion-box .tag {
  position: absolute; top: -10px; left: 16px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 800;
  letter-spacing: .08em; padding: 3px 10px; border-radius: 4px;
  text-transform: uppercase;
}
.onion-box .addr {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 16px; font-weight: 700; color: var(--ink);
  word-break: break-all; user-select: all; line-height: 1.4;
}
.onion-box .meta {
  margin-top: 10px; display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; font-size: 13px; color: var(--muted);
}
.onion-box .meta .pill {
  background: rgba(74,222,128,.12); color: var(--good); padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
.onion-box .meta .copy-hint { font-size: 12px; }
.status { font-size: 12px; padding: 4px 10px; border-radius: 999px; font-weight: 700; }
.status.ok { background: rgba(74,222,128,.12); color: var(--good); }
.status.warn { background: rgba(245,158,11,.12); color: var(--warn); }

section { padding: 56px 0; border-bottom: 1px solid var(--line); }
section.alt { background: var(--surface); }
section h2 { font-size: 30px; margin: 0 0 8px; letter-spacing: -.01em; }
section h3 { font-size: 18px; margin: 22px 0 8px; color: var(--ink); }
section p { color: var(--ink-soft); }
section .sub { color: var(--muted); margin-bottom: 24px; max-width: 720px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.feature .ico {
  width: 36px; height: 36px; background: var(--red-soft);
  color: var(--red); border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.feature h3 { margin: 12px 0 4px; color: var(--ink); }
.feature p { margin: 0; font-size: 14px; }

.callout {
  background: var(--red-soft); border: 1px solid #4a1f24;
  color: #ffd6d8; border-radius: var(--radius);
  padding: 14px 16px; margin: 18px 0; font-size: 14px;
}
.callout b { color: #fff; }

.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; padding: 14px 0 14px 48px; position: relative; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.steps li b { display: block; margin-bottom: 4px; color: var(--ink); }

table.tbl { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.tbl th, table.tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
table.tbl th { background: var(--surface); font-weight: 700; color: var(--ink); }
table.tbl tr:last-child td { border-bottom: 0; }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 10px; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.faq p { margin: 10px 0 0; }

footer { padding: 28px 0; background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer .row { display: flex; gap: 24px; flex-wrap: wrap; align-items: baseline; }
footer a { color: var(--muted); }

@media (max-width: 760px) {
  .hero h1 { font-size: 32px; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  nav.nav a { padding: 6px 8px; font-size: 13px; }
}
