:root {
  --bg: #08090d;
  --bg-soft: #0d0f16;
  --bg-card: rgba(255, 255, 255, .035);
  --bg-card-hover: rgba(255, 255, 255, .055);
  --border: rgba(255, 255, 255, .09);
  --border-hover: rgba(255, 255, 255, .18);
  --text: #f2f3f7;
  --muted: #8b8fa3;
  --muted-dim: #5c6070;
  --accent: #6e7bff;
  --accent-2: #9b6bff;
  --accent-hover: #8590ff;
  --accent-grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --green: #35d9a3;
  --amber: #fbbf24;
  --red: #f77272;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-glow: 0 0 0 1px rgba(110, 123, 255, .18), 0 8px 30px -8px rgba(110, 123, 255, .35);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg); }

body {
  font-family: var(--sans);
  background:
    radial-gradient(1100px 520px at 50% -12%, rgba(110, 123, 255, .16), transparent 60%),
    radial-gradient(900px 480px at 88% 8%, rgba(155, 107, 255, .10), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--accent-hover); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

/* ---------- background grid texture ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 0%, transparent 75%);
}

/* ---------- nav ---------- */
nav {
  border-bottom: 1px solid var(--border);
  background: rgba(8, 9, 13, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  position: sticky; top: 0; z-index: 50;
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { font-weight: 700; font-size: 17px; color: var(--text); display: flex; align-items: center; gap: 9px; letter-spacing: -.01em; }
.logo .mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px; font-size: 14px;
  background: var(--accent-grad); box-shadow: 0 4px 14px -4px rgba(110,123,255,.6);
}
.logo span { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 24px; align-items: center; font-size: 14px; }
.nav-links a:not(.btn) { color: var(--muted); font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent-grad); color: #fff; border: 1px solid transparent;
  padding: 10px 18px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit; white-space: nowrap;
  box-shadow: 0 1px 0 0 rgba(255,255,255,.12) inset, 0 6px 16px -6px rgba(110,123,255,.55);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease);
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 1px 0 0 rgba(255,255,255,.16) inset, 0 10px 22px -6px rgba(110,123,255,.65); color: #fff; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; filter: none; }
.btn-ghost { background: var(--bg-card); border-color: var(--border); color: var(--text); box-shadow: none; }
.btn-ghost:hover { background: var(--bg-card-hover); color: var(--text); border-color: var(--border-hover); box-shadow: none; filter: none; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-danger { background: transparent; border-color: var(--border); color: var(--red); box-shadow: none; }
.btn-danger:hover { background: rgba(247,114,114,.1); color: var(--red); border-color: rgba(247,114,114,.4); box-shadow: none; filter: none; }

/* ---------- eyebrow / badge ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 6px 13px; border-radius: 99px; margin-bottom: 22px;
}
.eyebrow .dot-static { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(53,217,163,.18); }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 76px 0 40px; }
.hero h1 {
  font-size: clamp(32px, 5.2vw, 50px); line-height: 1.1; letter-spacing: -.03em;
  margin-bottom: 16px; font-weight: 700;
}
.hero p { color: var(--muted); font-size: 17.5px; max-width: 600px; margin: 0 auto; }

/* ---------- inbox widget ---------- */
.mailbox {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 18px; padding: 22px; margin-bottom: 18px;
  backdrop-filter: blur(6px);
  box-shadow: 0 20px 60px -30px rgba(0,0,0,.6);
}
.addr-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.addr {
  flex: 1; min-width: 260px; font-family: var(--mono); font-size: clamp(15px, 2.4vw, 20px);
  background: rgba(0,0,0,.35); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 16px; color: var(--green); user-select: all; overflow-x: auto; white-space: nowrap;
}
.meta-row {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  margin-top: 14px; font-size: 13px; color: var(--muted);
}
.timer { font-family: var(--mono); font-weight: 600; color: var(--text); }
.timer.warn { color: var(--amber); }
.timer.crit { color: var(--red); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-dim); display: inline-block; }
.dot.live { background: var(--green); box-shadow: 0 0 0 3px rgba(53,217,163,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .55; } }

select.domain-pick {
  background: rgba(0,0,0,.35); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 10px; font-family: var(--mono); font-size: 13px;
}

/* ---------- message list ---------- */
.messages { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--bg-card); backdrop-filter: blur(6px); }
.msg-empty { padding: 56px 24px; text-align: center; color: var(--muted); }
.msg-empty .spin {
  width: 26px; height: 26px; border: 2px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; margin: 0 auto 14px; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.msg { border-bottom: 1px solid var(--border); }
.msg:last-child { border-bottom: none; }
.msg-head { padding: 16px 18px; cursor: pointer; display: flex; gap: 14px; align-items: flex-start; transition: background .15s var(--ease); }
.msg-head:hover { background: rgba(255,255,255,.03); }
.msg-main { flex: 1; min-width: 0; }
.msg-from { font-size: 13px; color: var(--muted); margin-bottom: 3px; }
.msg-subject { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-time { font-size: 12px; color: var(--muted); white-space: nowrap; font-family: var(--mono); }
.otp-chip {
  display: inline-flex; align-items: center; gap: 6px; background: rgba(53,217,163,.12);
  border: 1px solid rgba(53,217,163,.35); color: var(--green); font-family: var(--mono);
  font-weight: 700; padding: 4px 11px; border-radius: 7px; font-size: 14px; letter-spacing: .05em;
  cursor: pointer; margin-top: 7px; transition: background .15s var(--ease);
}
.otp-chip:hover { background: rgba(53,217,163,.2); }
.msg-body { display: none; padding: 0 18px 18px; }
.msg.open .msg-body { display: block; }
.msg-frame {
  width: 100%; height: 120px; min-height: 60px; max-height: 600px;
  border: 1px solid var(--border); border-radius: 10px; background: #fff;
  display: block; transition: height .15s ease;
}
pre.msg-text {
  white-space: pre-wrap; word-break: break-word; font-family: var(--mono); font-size: 13px;
  background: rgba(0,0,0,.3); padding: 14px; border-radius: 10px; border: 1px solid var(--border);
  max-height: 420px; overflow: auto; color: var(--text);
}

/* ---------- generic ---------- */
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.section { padding: 52px 0; }
.section h2 { font-size: 27px; margin-bottom: 8px; letter-spacing: -.02em; font-weight: 700; }
.section .sub { color: var(--muted); margin-bottom: 26px; }

.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; font-size: 16px; margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(110,123,255,.18), rgba(155,107,255,.10));
  border: 1px solid rgba(110,123,255,.25);
}

code, .code { font-family: var(--mono); font-size: 13px; }
code.inline { background: rgba(255,255,255,.06); padding: 2px 6px; border-radius: 5px; color: var(--accent); }
pre.block {
  background: rgba(0,0,0,.45); border: 1px solid var(--border); border-radius: 12px;
  padding: 18px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.7;
  box-shadow: 0 20px 50px -30px rgba(0,0,0,.7);
}
pre.block .c { color: var(--muted-dim); }
pre.block .s { color: var(--green); }
pre.block .k { color: var(--accent); }

.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--green); color: #06281c; padding: 11px 20px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px; opacity: 0; transition: .28s var(--ease); z-index: 100; pointer-events: none;
  box-shadow: 0 12px 30px -8px rgba(53,217,163,.5);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.banner {
  background: linear-gradient(135deg, rgba(110,123,255,.14), rgba(155,107,255,.08));
  border: 1px solid rgba(110,123,255,.3); border-radius: var(--radius); padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.banner p { color: var(--muted); font-size: 14px; }
.banner strong { color: var(--text); }

table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th, table.tbl td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); }
table.tbl th { color: var(--muted); font-weight: 600; font-size: 13px; }
table.tbl tr:last-child td { border-bottom: none; }

.label { font-size: 13px; color: var(--muted); display: block; margin-bottom: 6px; }
input.field, select.field {
  width: 100%; background: rgba(0,0,0,.3); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 13px; color: var(--text); font-family: inherit; font-size: 14px; margin-bottom: 14px;
  transition: border-color .15s var(--ease);
}
input.field:focus, select.field:focus { outline: none; border-color: var(--accent); }

footer { border-top: 1px solid var(--border); padding: 34px 0; margin-top: 56px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); margin-left: 18px; }
footer a:hover { color: var(--text); }

.pill { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; padding: 3px 9px; border-radius: 20px; font-weight: 700; }
.pill-free { background: rgba(139,143,163,.15); color: var(--muted); }
.pill-starter { background: rgba(110,123,255,.15); color: var(--accent); }
.pill-pro { background: rgba(53,217,163,.15); color: var(--green); }

.bar { height: 7px; background: rgba(0,0,0,.35); border-radius: 4px; overflow: hidden; border: 1px solid var(--border); }
.bar > div { height: 100%; background: var(--accent-grad); transition: width .4s var(--ease); }
.bar > div.warn { background: var(--amber); }
.bar > div.crit { background: var(--red); }

/* ---------- trust strip ---------- */
.trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px;
  padding: 30px 0 56px; border-top: 1px solid var(--border); margin-top: 12px;
  font-size: 13px; color: var(--muted); text-align: center;
}

@media (max-width: 640px) {
  .hero { padding: 48px 0 28px; }
  .nav-links { gap: 14px; font-size: 13px; }
  .nav-links .hide-sm { display: none; }
}

/* ---------- Long-form / legal pages ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: 34px 0 70px; }
.prose h1 { font-size: 32px; letter-spacing: -.02em; margin-bottom: 10px; font-weight: 700; }
.prose .updated { color: var(--muted); font-size: 13.5px; margin-bottom: 30px; }
.prose h2 { font-size: 21px; margin: 38px 0 12px; letter-spacing: -.01em; scroll-margin-top: 80px; font-weight: 700; }
.prose h3 { font-size: 16.5px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--muted); font-size: 15px; line-height: 1.75; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; display: grid; gap: 8px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); }
.prose .callout { border: 1px solid var(--border); border-left: 3px solid var(--amber);
                  background: var(--bg-card); border-radius: 10px; padding: 15px 18px; margin: 20px 0; }
.prose .callout p:last-child { margin-bottom: 0; }
.prose .callout.danger { border-left-color: var(--red); }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--muted); }
.prose th { color: var(--text); font-weight: 600; font-size: 13px;
            text-transform: uppercase; letter-spacing: .05em; }
.toc-box { border: 1px solid var(--border); background: var(--bg-card);
           border-radius: 12px; padding: 16px 20px; margin-bottom: 32px; }
.toc-box ol { margin: 0 0 0 18px; gap: 5px; }
.toc-box li { font-size: 14px; }
