:root {
  --ink: #071727;
  --ink-soft: #0b2135;
  --paper: #f4f8fb;
  --surface: #ffffff;
  --line: #cedce7;
  --muted: #607386;
  --cyan: #39d3f2;
  --blue: #1688ed;
  --green: #91ee59;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.permlens-page {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body.permlens-page a { color: inherit; }
.pl-skip { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px; color: var(--ink); background: var(--cyan); border-radius: 8px; transform: translateY(-150%); }
.pl-skip:focus { transform: translateY(0); }

.pl-header { position: sticky; z-index: 40; top: 0; color: #fff; background: rgba(7, 23, 39, .94); border-bottom: 1px solid rgba(160, 194, 219, .18); backdrop-filter: blur(18px); }
.pl-nav { width: min(1440px, calc(100% - 64px)); min-height: 88px; margin: 0 auto; display: flex; align-items: center; gap: 28px; }
.pl-brand { display: inline-flex; align-items: center; gap: 14px; margin-right: auto; color: #fff; font-size: 18px; font-weight: 760; text-decoration: none; }
.pl-brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: var(--cyan); border: 1px solid rgba(57, 211, 242, .48); border-radius: 12px; font-family: var(--mono); font-size: 12px; }
.pl-nav-links,
.pl-mobile-links { display: flex; align-items: center; gap: 30px; }
.pl-nav-links a,
.pl-mobile-links a,
.pl-github { color: #c5d2dd; font-size: 15px; font-weight: 680; text-decoration: none; }
.pl-nav-links a:hover,
.pl-mobile-links a:hover,
.pl-github:hover { color: var(--cyan); }
.pl-mobile-links { display: none; }

.pl-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(rgba(64, 153, 214, .075) 1px, transparent 1px), linear-gradient(90deg, rgba(64, 153, 214, .075) 1px, transparent 1px), radial-gradient(circle at 82% 15%, rgba(42, 106, 210, .28), transparent 32%), var(--ink); background-size: 52px 52px, 52px 52px, auto, auto; }
.pl-hero-inner { width: min(1440px, calc(100% - 88px)); min-height: 680px; margin: 0 auto; padding: 86px 0 82px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr); align-items: center; gap: 84px; }
.pl-eyebrow,
.pl-section-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--cyan); font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.pl-eyebrow::before,
.pl-section-kicker::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.pl-hero h1 { max-width: 780px; margin: 0; color: #f8fbff; font-size: clamp(50px, 5.2vw, 78px); line-height: .98; letter-spacing: -.055em; }
.pl-hero-lede { max-width: 680px; margin: 30px 0 0; color: #afc1d0; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.65; }
.pl-actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.pl-button { min-height: 52px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(159, 190, 213, .32); border-radius: 10px; color: #f4f9fd; font-size: 15px; font-weight: 760; text-decoration: none; }
.pl-button-primary { color: var(--ink); background: var(--cyan); border-color: var(--cyan); }
.pl-button:hover { transform: translateY(-2px); }
.pl-trust { margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; color: #87a0b3; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; }
.pl-trust li::before { content: ""; width: 7px; height: 7px; display: inline-block; margin-right: 8px; background: var(--green); border-radius: 999px; box-shadow: 0 0 0 5px rgba(145, 238, 89, .08); }

.pl-product { position: relative; padding: 16px; background: rgba(3, 16, 29, .62); border: 1px solid rgba(67, 175, 225, .32); border-radius: 22px; box-shadow: 0 28px 70px rgba(0, 0, 0, .28); }
.pl-product-bar { min-height: 46px; padding: 0 14px; display: flex; align-items: center; gap: 7px; color: #71899b; border-bottom: 1px solid rgba(139, 176, 204, .18); font-family: var(--mono); font-size: 11px; }
.pl-product-bar span { width: 8px; height: 8px; border-radius: 50%; background: #ff6868; }
.pl-product-bar span:nth-child(2) { background: #ffd05d; }
.pl-product-bar span:nth-child(3) { background: #63e0a1; }
.pl-product-bar b { margin-left: auto; color: #71899b; font-weight: 500; }
.pl-product-body { padding: 24px; }
.pl-product-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.pl-product-heading small,
.pl-signal small { display: block; margin-bottom: 6px; color: #708b9f; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.pl-product-heading strong { font-size: 20px; }
.pl-status { padding: 7px 10px; color: var(--green); background: rgba(145, 238, 89, .08); border: 1px solid rgba(145, 238, 89, .22); border-radius: 999px; font-family: var(--mono); font-size: 10px; white-space: nowrap; }
.pl-access-map { position: relative; min-height: 250px; margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 14px 56px; }
.pl-access-map::before,
.pl-access-map::after { content: ""; position: absolute; inset: 50% 26% auto; height: 1px; background: linear-gradient(90deg, rgba(57, 211, 242, .15), var(--cyan), rgba(57, 211, 242, .15)); transform: rotate(20deg); }
.pl-access-map::after { transform: rotate(-20deg); }
.pl-signal { position: relative; z-index: 1; min-height: 82px; padding: 16px; background: #0c2235; border: 1px solid rgba(126, 164, 193, .18); border-radius: 12px; }
.pl-signal strong { font-size: 14px; }
.pl-signal-result { grid-column: 2; border-color: rgba(145, 238, 89, .3); }
.pl-signal-result strong { color: var(--green); }

.pl-section { width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 104px 0; }
.pl-section-heading { max-width: 800px; margin-bottom: 48px; }
.pl-section-kicker { margin-bottom: 16px; color: #0476c7; }
.pl-section h2,
.pl-security h2,
.pl-support h2 { margin: 0; color: var(--ink); font-size: clamp(36px, 4vw, 58px); line-height: 1.05; letter-spacing: -.045em; }
.pl-section-heading > p,
.pl-support p { max-width: 680px; margin: 20px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.pl-features { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.pl-feature { min-height: 250px; padding: 32px; background: rgba(255, 255, 255, .68); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pl-feature-num { display: block; margin-bottom: 48px; color: #1688ed; font-family: var(--mono); font-size: 11px; }
.pl-feature h3 { margin: 0 0 12px; font-size: 20px; }
.pl-feature p { margin: 0; color: var(--muted); line-height: 1.65; }
.pl-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pl-step { min-height: 230px; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.pl-step span { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 42px; color: #0c679f; background: #e5f6ff; border-radius: 50%; font-family: var(--mono); font-size: 12px; }
.pl-step h3 { margin: 0 0 10px; font-size: 21px; }
.pl-step p { margin: 0; color: var(--muted); line-height: 1.65; }

.pl-security-wrap { padding: 0 32px 96px; }
.pl-security { width: min(1240px, 100%); margin: 0 auto; padding: 68px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; color: #fff; background: var(--ink-soft); border-radius: 24px; }
.pl-security h2 { color: #fff; }
.pl-security p { color: #a9bdcc; line-height: 1.7; }
.pl-security-list { margin: 0; padding: 0; list-style: none; }
.pl-security-list li { padding: 20px 0; border-top: 1px solid rgba(155, 191, 217, .18); }
.pl-security-list strong { display: block; margin-bottom: 7px; color: var(--cyan); }
.pl-security-list span { color: #afc1d0; line-height: 1.55; }
.pl-support { width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 20px 0 110px; display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; }
.pl-support-links { display: flex; flex-wrap: wrap; gap: 12px; }
.pl-support .pl-button { color: var(--ink); border-color: #acc3d4; }
.pl-support .pl-button-primary { border-color: var(--cyan); }
.pl-footer { padding: 28px 32px; color: #8fa5b5; background: var(--ink); font-size: 13px; line-height: 1.6; text-align: center; }

.pl-article { width: min(860px, calc(100% - 48px)); margin: 0 auto; padding: 84px 0 110px; }
.pl-article h1 { margin: 0 0 24px; color: var(--ink); font-size: clamp(44px, 6vw, 68px); line-height: 1; letter-spacing: -.05em; }
.pl-article-lede { color: #334d62; font-size: 20px; line-height: 1.7; }
.pl-article-meta { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.pl-article h2 { margin: 58px 0 14px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 28px; }
.pl-article p,
.pl-article li { color: #3f5669; font-size: 17px; line-height: 1.78; }
.pl-article code { padding: 2px 6px; background: #e4edf4; border-radius: 5px; font-family: var(--mono); font-size: .88em; }
.pl-article a { color: #006eb8; }

@media (max-width: 980px) {
  .pl-nav-links { display: none; }
  .pl-mobile-links { display: flex; }
  .pl-hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .pl-product { max-width: 700px; }
  .pl-features { grid-template-columns: repeat(2, 1fr); }
  .pl-security { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 680px) {
  .pl-nav { width: calc(100% - 28px); min-height: 72px; gap: 14px; }
  .pl-brand { gap: 9px; font-size: 15px; }
  .pl-brand-mark { width: 38px; height: 38px; }
  .pl-mobile-links { gap: 14px; }
  .pl-mobile-links a,
  .pl-github { font-size: 13px; }
  .pl-hero-inner { width: calc(100% - 36px); min-height: auto; padding: 62px 0 58px; }
  .pl-hero h1 { font-size: clamp(42px, 13vw, 58px); }
  .pl-hero-lede { font-size: 17px; }
  .pl-actions { align-items: stretch; flex-direction: column; }
  .pl-button { width: 100%; }
  .pl-trust { align-items: flex-start; flex-direction: column; }
  .pl-product { padding: 10px; border-radius: 16px; }
  .pl-product-body { padding: 18px 12px 12px; }
  .pl-product-heading { align-items: flex-start; flex-direction: column; }
  .pl-access-map { min-height: auto; grid-template-columns: 1fr; gap: 10px; }
  .pl-access-map::before,
  .pl-access-map::after { display: none; }
  .pl-signal-result { grid-column: auto; }
  .pl-section { width: calc(100% - 36px); padding: 76px 0; }
  .pl-features,
  .pl-flow { grid-template-columns: 1fr; }
  .pl-feature { min-height: auto; padding: 26px; }
  .pl-feature-num { margin-bottom: 30px; }
  .pl-flow { gap: 12px; }
  .pl-step { min-height: auto; }
  .pl-step span { margin-bottom: 30px; }
  .pl-security-wrap { padding: 0 18px 74px; }
  .pl-security { padding: 38px 24px; border-radius: 18px; }
  .pl-support { width: calc(100% - 36px); padding-bottom: 80px; align-items: stretch; flex-direction: column; }
  .pl-support-links { flex-direction: column; }
  .pl-article { width: calc(100% - 36px); padding: 60px 0 84px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pl-button:hover { transform: none; }
}
