:root {
  color-scheme: dark;
  --bg: #090b10;
  --surface: rgba(17, 21, 29, .78);
  --surface-strong: #11151d;
  --surface-soft: #151a24;
  --border: rgba(255,255,255,.09);
  --border-strong: rgba(255,255,255,.14);
  --text: #f4f7fb;
  --muted: #929bad;
  --muted-2: #687184;
  --accent: #8ba7ff;
  --accent-strong: #b3c3ff;
  --accent-soft: rgba(117, 145, 255, .13);
  --success: #83e5bd;
  --danger: #ff9b9b;
  --shadow: 0 24px 80px rgba(0,0,0,.32);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% -15%, rgba(82,105,185,.13), transparent 34rem),
    linear-gradient(180deg, #0b0e14 0%, var(--bg) 48%, #080a0e 100%);
  color: var(--text);
  overflow-x: hidden;
}
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ambient { position: fixed; pointer-events: none; filter: blur(90px); opacity: .16; border-radius: 50%; }
.ambient-one { width: 330px; height: 330px; background: #526fd7; top: 50px; left: -180px; }
.ambient-two { width: 300px; height: 300px; background: #715bc4; right: -190px; top: 390px; }

.site-header {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; color: var(--accent-strong); }
.brand-mark svg { width: 100%; height: 100%; }
.header-pill { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 12px; background: rgba(255,255,255,.025); }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(131,229,189,.08); }

.shell { width: min(980px, calc(100% - 40px)); margin: 0 auto; }
.hero { text-align: center; padding: 82px 0 48px; }
.eyebrow, .section-label { color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .15em; }
.hero h1 { margin: 16px auto 18px; max-width: 800px; font-size: clamp(42px, 6vw, 70px); line-height: 1.02; letter-spacing: -.055em; font-weight: 720; }
.hero h1 span { color: #a6afbf; }
.hero p { max-width: 620px; margin: 0 auto; color: var(--muted); font-size: 17px; line-height: 1.65; }

.glass { background: linear-gradient(180deg, rgba(19,24,33,.86), rgba(14,18,25,.82)); border: 1px solid var(--border); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.inbox-card { border-radius: 22px; padding: 28px; }
.card-topline, .messages-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.card-topline > div:first-child { display: flex; flex-direction: column; gap: 9px; }
.live-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.address-shell { display: flex; gap: 10px; margin-top: 22px; padding: 7px; border: 1px solid var(--border-strong); background: rgba(4,7,11,.52); border-radius: 15px; transition: border-color .2s, box-shadow .2s; }
.address-shell:focus-within { border-color: rgba(139,167,255,.38); box-shadow: 0 0 0 4px rgba(139,167,255,.05); }
.email-address { min-width: 0; flex: 1; padding: 13px 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: clamp(15px, 2.3vw, 19px); letter-spacing: -.02em; color: #f8faff; }
.button, .icon-button { border: 1px solid var(--border); border-radius: 11px; cursor: pointer; transition: transform .16s, background .16s, border-color .16s, opacity .16s; }
.button:hover:not(:disabled), .icon-button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled, .icon-button:disabled { cursor: not-allowed; opacity: .45; }
.button { padding: 12px 16px; font-size: 13px; font-weight: 700; }
.button-primary { color: #0c1120; border-color: transparent; background: linear-gradient(180deg, #bdcaff, #91a9ff); min-width: 125px; }
.button-primary:hover:not(:disabled) { background: linear-gradient(180deg, #c9d3ff, #9eb3ff); }
.button-secondary { color: #d8deea; background: rgba(255,255,255,.035); }
.button-secondary:hover:not(:disabled) { background: rgba(255,255,255,.065); border-color: var(--border-strong); }

.turnstile-area { margin-top: 18px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,.018); }
.turnstile-area.is-hidden { display: none; }
.turnstile-hint { margin-top: 9px; color: var(--muted-2); font-size: 11px; }
.inbox-meta { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 18px; color: var(--muted); font-size: 12px; }
.meta-item { display: flex; align-items: center; gap: 8px; }
.meta-icon { color: var(--accent); font-size: 16px; }
.meta-right { text-align: right; }
.refresh-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--muted-2); }

.error-box { margin-top: 15px; padding: 12px 14px; border: 1px solid rgba(255,155,155,.22); background: rgba(255,155,155,.07); border-radius: 11px; color: var(--danger); font-size: 13px; }
.hidden { display: none !important; }

.messages-card { margin-top: 18px; border-radius: 22px; padding: 28px; min-height: 330px; }
.messages-header h2 { margin: 8px 0 0; font-size: 22px; letter-spacing: -.03em; }
.icon-button { display: flex; align-items: center; gap: 8px; padding: 10px 13px; color: var(--muted); background: rgba(255,255,255,.025); }
.icon-button svg { width: 16px; height: 16px; }
.messages { margin-top: 22px; }
.empty-state { min-height: 205px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px; border: 1px dashed rgba(255,255,255,.08); border-radius: 16px; }
.empty-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(139,167,255,.12); }
.empty-icon svg { width: 25px; height: 25px; }
.empty-state h3 { margin: 16px 0 7px; font-size: 16px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.waiting { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--muted-2); font-size: 11px; }
.waiting span { width: 6px; height: 6px; border-radius: 50%; background: var(--success); animation: pulse 1.8s infinite; }

.message-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; text-align: left; padding: 17px 16px; border: 0; border-top: 1px solid var(--border); color: var(--text); background: transparent; cursor: pointer; transition: background .15s; }
.message-row:first-child { border-top: 0; }
.message-row:hover { background: rgba(255,255,255,.025); border-radius: 10px; }
.message-main { min-width: 0; }
.message-subject { font-size: 14px; font-weight: 680; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-sender { margin-top: 5px; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-time { flex: 0 0 auto; color: var(--muted-2); font-size: 11px; }

.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 20px 0 0; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--border); }
.trust-row div { padding: 17px; background: #0e1219; }
.trust-row strong, .trust-row span { display: block; }
.trust-row strong { font-size: 12px; font-weight: 650; }
.trust-row span { margin-top: 5px; color: var(--muted-2); font-size: 10px; }

.footer { width: min(980px, calc(100% - 40px)); margin: 48px auto 0; padding: 25px 0 40px; border-top: 1px solid rgba(255,255,255,.06); display: flex; justify-content: center; gap: 10px; color: var(--muted-2); font-size: 11px; }

.message-dialog { width: min(780px, calc(100% - 30px)); max-height: 85vh; padding: 0; color: var(--text); border: 1px solid var(--border-strong); border-radius: 20px; background: #0e1219; box-shadow: 0 40px 120px rgba(0,0,0,.7); }
.message-dialog::backdrop { background: rgba(0,0,0,.68); backdrop-filter: blur(5px); }
.dialog-header { display: flex; justify-content: space-between; gap: 20px; padding: 25px; border-bottom: 1px solid var(--border); }
.dialog-header h2 { margin: 8px 0 6px; font-size: 21px; }
.dialog-header p { margin: 0; color: var(--muted); font-size: 12px; }
.dialog-close { width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid var(--border); border-radius: 10px; color: var(--muted); background: rgba(255,255,255,.03); cursor: pointer; font-size: 22px; }
.dialog-content { padding: 25px; overflow: auto; }
.dialog-content pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: inherit; color: #d8deea; font-size: 13px; line-height: 1.65; }
.html-wrap { margin-top: 28px; }
.html-wrap .section-label { margin-bottom: 10px; }
.html-wrap iframe { width: 100%; min-height: 340px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }

@keyframes pulse { 0%,100% { opacity:.35; box-shadow:0 0 0 0 rgba(131,229,189,.2); } 50% { opacity:1; box-shadow:0 0 0 5px rgba(131,229,189,0); } }

@media (max-width: 720px) {
  .site-header, .shell, .footer { width: min(100% - 24px, 980px); }
  .site-header { height: 70px; }
  .hero { padding: 55px 4px 34px; }
  .hero h1 { font-size: clamp(38px, 11vw, 54px); }
  .hero p { font-size: 15px; }
  .inbox-card, .messages-card { padding: 19px; border-radius: 18px; }
  .address-shell { flex-direction: column; }
  .button-primary { width: 100%; }
  .inbox-meta { align-items: flex-start; flex-direction: column; gap: 9px; }
  .meta-right { text-align: left; }
  .trust-row { grid-template-columns: 1fr 1fr; }
  .footer { flex-wrap: wrap; text-align: center; }
}
@media (max-width: 430px) {
  .header-pill { display: none; }
  .card-topline { align-items: flex-start; }
  .button-secondary { padding: 10px 12px; }
  .trust-row { grid-template-columns: 1fr; }
  .turnstile-area { padding: 10px; overflow-x: auto; }
}


html { scroll-behavior: smooth; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-nav > a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  transition: color .16s;
}
.site-nav > a:hover { color: var(--text); }

.philosophy {
  margin-top: 110px;
  padding: 90px 0 35px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.philosophy-intro {
  max-width: 760px;
  margin-bottom: 55px;
}
.philosophy-intro h2 {
  margin: 15px 0 18px;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.philosophy-lead {
  max-width: 650px;
  margin: 0;
  color: #b4bdcc;
  font-size: 19px;
  line-height: 1.6;
}
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--border);
}
.philosophy-block {
  position: relative;
  min-height: 390px;
  padding: 34px;
  background: linear-gradient(145deg, #10141c, #0d1117);
}
.philosophy-feature {
  background:
    radial-gradient(circle at 0 0, rgba(109,137,234,.12), transparent 55%),
    linear-gradient(145deg, #121722, #0e1219);
}
.block-number {
  display: inline-block;
  margin-bottom: 55px;
  color: var(--muted-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}
.philosophy-block h3 {
  max-width: 430px;
  margin: 0 0 20px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.035em;
}
.philosophy-block p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}
.philosophy-block > strong {
  display: block;
  margin-top: 24px;
  color: #dbe1ec;
  font-size: 14px;
  line-height: 1.6;
}
.closing-thought {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.closing-thought span,
.closing-thought strong { display: block; }
.closing-thought span {
  color: var(--muted);
  font-size: 13px;
}
.closing-thought strong {
  margin-top: 8px;
  color: var(--accent-strong);
  font-size: 16px;
  line-height: 1.45;
}
.privacy-note {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .site-nav > a { display: none; }
  .philosophy { margin-top: 75px; padding-top: 65px; }
  .philosophy-intro { margin-bottom: 35px; }
  .philosophy-lead { font-size: 16px; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .philosophy-block { min-height: auto; padding: 26px; }
  .block-number { margin-bottom: 35px; }
}
