/* ============================================================
   4u.fyi — design system & landing
   Light, professional, network-inspired. No frameworks.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-var.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --bg: #f3f2ef;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --surface-3: #f8fafc;
  --line: rgba(0, 0, 0, 0.10);
  --line-strong: rgba(0, 0, 0, 0.20);
  --text: #191919;
  --text-2: #4f4f4f;
  --text-3: #6f6f6f;
  --accent: #0a66c2;
  --accent-strong: #004182;
  --cyan: #0073b1;
  --violet: #5f67d8;
  --ok: #057642;
  --warn: #915907;
  --err: #b24020;
  --grad: linear-gradient(120deg, #0a66c2, #2b7fc3 58%, #0073b1);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 14px rgba(0, 0, 0, 0.05);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, 0.10), 0 16px 40px rgba(0, 0, 0, 0.08);
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 18px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', 'JetBrains Mono', Menlo, Consolas, monospace;
  --nav-h: 64px;
  --max: 1160px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: rgba(91, 124, 255, 0.35); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-s) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.container {
  width: min(var(--max), 100% - 48px);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  user-select: none;
  background: none;
}
.btn:active { transform: translateY(1px) scale(0.995); }

.btn-primary {
  color: #fff;
  background: var(--grad);
  background-size: 160% 160%;
  background-position: 0% 50%;
  box-shadow: 0 8px 24px rgba(82, 100, 255, 0.35), 0 1px 0 rgba(255,255,255,0.25) inset;
}
.btn-primary:hover {
  background-position: 60% 50%;
  box-shadow: 0 12px 32px rgba(82, 100, 255, 0.45), 0 1px 0 rgba(255,255,255,0.25) inset;
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(148, 163, 216, 0.06);
}
.btn-ghost:hover {
  border-color: rgba(151, 165, 214, 0.42);
  background: rgba(148, 163, 216, 0.12);
}

.btn-danger {
  color: #ffd7db;
  border-color: rgba(255, 107, 122, 0.4);
  background: rgba(255, 107, 122, 0.08);
}
.btn-danger:hover { background: rgba(255, 107, 122, 0.16); }

.btn-sm { padding: 7px 14px; font-size: 13.5px; border-radius: 9px; }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 12px; }

.btn .icon { width: 16px; height: 16px; flex: none; }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.is-scrolled {
  background: rgba(10, 12, 18, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: min(var(--max), 100% - 48px);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-mark {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-tld { color: var(--text-2); font-weight: 600; }

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}
.nav-links a {
  padding: 8px 13px;
  border-radius: 9px;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(148, 163, 216, 0.08); }
.nav-links a.is-active { color: var(--text); }

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-burger {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--text);
  padding: 8px;
  cursor: pointer;
}

.nav-panel {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 99;
  background: rgba(11, 14, 22, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 12px 24px 20px;
  flex-direction: column;
  gap: 2px;
}
.nav-panel a { padding: 11px 6px; font-size: 15.5px; color: var(--text-2); border-radius: 8px; }
.nav-panel a:hover { color: var(--text); }
.nav-panel hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.nav-panel .btn { width: 100%; margin-top: 8px; }
.nav-panel.is-open { display: flex; }

.inline-form { display: inline; margin: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 84px) 0 96px;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: -20% 0 0 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(126, 145, 205, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 145, 205, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, black 30%, transparent 75%);
}
.hero-glow {
  position: absolute;
  top: -340px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 640px;
  background:
    radial-gradient(560px 300px at 50% 40%, rgba(91, 124, 255, 0.22), transparent 70%),
    radial-gradient(380px 240px at 62% 30%, rgba(139, 92, 246, 0.16), transparent 70%);
  filter: blur(10px);
}
.hero-sweep {
  position: absolute;
  top: -12%;
  left: 50%;
  width: 520px;
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(circle at center, rgba(47, 214, 240, 0.10), transparent 60%);
  animation: hero-sweep 11s ease-in-out infinite alternate;
  opacity: 0.9;
}
@keyframes hero-sweep {
  from { transform: translateX(-78%); opacity: 0.55; }
  50%  { opacity: 0.95; }
  to   { transform: translateX(-22%); opacity: 0.6; }
}
.hero-dots {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 12% 30%, rgba(160, 180, 255, 0.4), transparent 100%),
    radial-gradient(2px 2px at 28% 62%, rgba(160, 180, 255, 0.28), transparent 100%),
    radial-gradient(2px 2px at 71% 26%, rgba(160, 180, 255, 0.34), transparent 100%),
    radial-gradient(2px 2px at 86% 55%, rgba(160, 180, 255, 0.22), transparent 100%),
    radial-gradient(1.5px 1.5px at 55% 74%, rgba(160, 180, 255, 0.3), transparent 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  gap: 56px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--line-strong);
}
.kicker .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.8);
}

.hero h1 {
  font-size: clamp(40px, 6.2vw, 72px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 22px;
}
.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(16px, 1.6vw, 18.5px);
  color: var(--text-2);
  max-width: 46ch;
  margin-bottom: 34px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.hero-note {
  font-size: 13.5px;
  color: var(--text-3);
}
.hero-note b { color: var(--text-2); font-weight: 600; }

/* ---------- Shortener widget ---------- */
.widget {
  background: linear-gradient(180deg, rgba(21, 26, 42, 0.92), rgba(15, 19, 32, 0.92));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-2);
  padding: 22px;
  position: relative;
}
.widget::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(91, 124, 255, 0.5), rgba(151, 165, 214, 0.06) 34%, rgba(151, 165, 214, 0.05) 70%, rgba(139, 92, 246, 0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.widget-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}
.widget-label .live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ok);
  letter-spacing: 0.08em;
}
.widget-label .live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse-dot 2.4s ease-out infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.field {
  position: relative;
  margin-bottom: 12px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-m);
  border: 1px solid var(--line-strong);
  background: rgba(9, 11, 18, 0.72);
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.field input::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 124, 255, 0.22);
  background: rgba(9, 11, 18, 0.9);
}
.field .prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13.5px;
  color: var(--text-3);
  pointer-events: none;
  font-weight: 500;
}
.field.has-prefix input { padding-left: 76px; }
.field .suffix-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(148, 163, 216, 0.1);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.field .suffix-btn:hover { background: rgba(148, 163, 216, 0.2); color: var(--text); }

.widget-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.widget .btn { width: 100%; }
.widget-row .btn { width: auto; }

.widget-msg {
  min-height: 18px;
  font-size: 13px;
  margin-top: 10px;
  color: var(--text-3);
}
.widget-msg.err { color: var(--err); }
.widget-msg.ok { color: var(--ok); }

/* Result card */
.result-card {
  margin-top: 16px;
  border: 1px solid var(--line);
  background: rgba(9, 11, 18, 0.6);
  border-radius: var(--radius-m);
  padding: 16px;
  display: none;
}
.result-card.is-shown { display: block; animation: rise-in 0.35s ease; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.result-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.result-qr {
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 10px;
  background: #fff;
  padding: 5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.result-qr svg, .result-qr img { width: 100%; height: 100%; }
.result-url {
  font-family: var(--mono);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.result-url .host { color: var(--text-3); font-weight: 500; }
.result-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.result-actions .btn { flex: 1; min-width: 84px; padding: 8px 10px; font-size: 13px; }
.result-actions .btn.copied { border-color: rgba(52, 211, 153, 0.5); color: var(--ok); }

/* ---------- Sections ---------- */
.section { padding: 104px 0; position: relative; }
.section-tight { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; max-width: 680px; }
.section-head.center .kicker { justify-content: center; }
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.section-head .lede {
  color: var(--text-2);
  font-size: 16.5px;
}
.section-divider {
  height: 1px;
  width: min(var(--max), 100% - 48px);
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

/* ---------- Product proof / link card ---------- */
.proof {
  background:
    radial-gradient(600px 240px at 20% 0%, rgba(91, 124, 255, 0.08), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}
.proof-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
}
.proof-copy h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}
.proof-copy p { color: var(--text-2); font-size: 16px; max-width: 46ch; }

.link-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.link-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 18, 0.5);
}
.link-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.link-card-title .qr-mini {
  width: 34px; height: 34px;
  flex: none;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
}
.link-card-title .qr-mini svg { width: 100%; height: 100%; }
.link-card-title .alias {
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link-card-title .alias .host { color: var(--text-3); font-weight: 500; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-active { color: var(--ok); background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.25); }
.status-disabled { color: var(--text-3); background: rgba(148, 163, 216, 0.08); border: 1px solid var(--line); }
.status-pill.warn { color: var(--warn); background: rgba(245, 180, 83, 0.1); border: 1px solid rgba(245, 180, 83, 0.3); }

.link-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}
.metric {
  background: var(--surface);
  padding: 16px 18px;
}
.metric .label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}
.metric .value {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.metric .value small { font-size: 12.5px; color: var(--text-3); font-weight: 500; margin-left: 4px; }

.link-card-foot {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.link-card-foot .btn { font-size: 12.5px; padding: 7px 12px; }
.link-card-foot .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  padding: 7px 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
}

/* ---------- Bento features ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.feature {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 26px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.feature::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(151, 165, 214, 0.35), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.feature:hover::after { opacity: 1; }
.feature h3 {
  font-size: 18.5px;
  font-weight: 650;
  margin: 18px 0 8px;
  letter-spacing: -0.015em;
}
.feature p {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.65;
}
.feature .f-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(91, 124, 255, 0.12);
  border: 1px solid rgba(91, 124, 255, 0.28);
  color: var(--accent);
}
.feature .f-icon svg { width: 20px; height: 20px; }
.feature.f-violet .f-icon { background: rgba(139, 92, 246, 0.12); border-color: rgba(139, 92, 246, 0.3); color: var(--violet); }
.feature.f-cyan .f-icon { background: rgba(47, 214, 240, 0.1); border-color: rgba(47, 214, 240, 0.28); color: var(--cyan); }

.f-1 { grid-column: span 3; }
.f-2 { grid-column: span 3; }
.f-3 { grid-column: span 2; }
.f-4 { grid-column: span 2; }
.f-5 { grid-column: span 2; }

/* Feature 1: mini link visual */
.mini-links { margin-top: 20px; display: grid; gap: 8px; }
.mini-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(9, 11, 18, 0.5);
  font-family: var(--mono);
  font-size: 12.5px;
}
.mini-link .arrow { color: var(--text-3); }
.mini-link .src { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.mini-link .dst { color: var(--text); font-weight: 600; white-space: nowrap; }
.mini-link .dst .hl { color: var(--accent); }

/* Feature 3: mini chart */
.mini-chart { margin-top: 18px; }
.mini-chart svg { width: 100%; height: auto; }
.mini-chart .grid { stroke: rgba(151, 165, 214, 0.12); }
.mini-chart .line { stroke: url(#mini-chart-grad); fill: none; stroke-width: 2; }
.mini-chart .area { fill: url(#mini-chart-area); }

/* ---------- Analytics showcase ---------- */
.analytics-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.panel {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 22px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.panel-head h3 { font-size: 15.5px; font-weight: 650; letter-spacing: -0.01em; }
.panel-head .panel-sub { font-size: 12.5px; color: var(--text-3); }
.chart { width: 100%; }
.chart-trend { height: auto; }
.chart-grid { stroke: rgba(151, 165, 214, 0.12); stroke-width: 1; }
.chart-line {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: draw-line 1.4s ease-out forwards;
}
@keyframes draw-line { to { stroke-dashoffset: 0; } }
.chart-axis {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-3);
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}

.stat-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.stat-row .big {
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-row .delta { font-size: 12.5px; color: var(--ok); font-weight: 600; }

.analytics-side { display: grid; gap: 16px; }
.analytics-side .panel { padding: 18px 20px; }

.bar-row {
  display: grid;
  grid-template-columns: 74px 1fr 44px;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.bar-label {
  font-size: 12.5px;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar-track {
  height: 6px;
  border-radius: 4px;
  background: rgba(148, 163, 216, 0.1);
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  min-width: 4px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.bar-value {
  font-size: 12px;
  color: var(--text-3);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.chart-empty { color: var(--text-3); font-size: 13px; padding: 8px 0; }

.recent-list { display: grid; gap: 2px; }
.recent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.recent-item:last-child { border-bottom: 0; }
.recent-item .ric {
  width: 26px; height: 26px;
  flex: none;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(148, 163, 216, 0.09);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
}
.recent-item .ric svg { width: 13px; height: 13px; }
.recent-item .who { flex: 1; color: var(--text-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-item .when { color: var(--text-3); font-size: 12px; white-space: nowrap; }

.sample-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-3);
}
.sample-note::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 8px rgba(245, 180, 83, 0.6);
}

/* ---------- Alias section ---------- */
.alias-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}
.alias-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: 24px;
}
.alias-box .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.alias-box.before .url {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-3);
  word-break: break-all;
  line-height: 1.7;
}
.alias-box.after {
  border-color: rgba(91, 124, 255, 0.4);
  box-shadow: 0 0 0 1px rgba(91, 124, 255, 0.15), 0 20px 50px rgba(60, 80, 220, 0.18);
  background:
    radial-gradient(300px 120px at 20% 0%, rgba(91, 124, 255, 0.16), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.alias-box.after .url {
  font-family: var(--mono);
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 650;
  letter-spacing: -0.01em;
}
.alias-box.after .url .host { color: var(--text-3); font-weight: 500; }
.alias-box.after .url .path {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.alias-arrow {
  width: 54px; height: 54px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  color: var(--accent);
  box-shadow: var(--shadow-1);
}
.alias-arrow svg { width: 22px; height: 22px; }

/* ---------- QR section ---------- */
.qr-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: center;
}
.qr-tile {
  background: linear-gradient(180deg, #ffffff, #eef1f8);
  border-radius: var(--radius-l);
  padding: 22px;
  box-shadow: var(--shadow-2);
  display: grid;
  justify-items: center;
  gap: 14px;
}
.qr-tile .qr-visual {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.qr-tile .qr-visual svg { width: 100%; height: 100%; }
.qr-tile .qr-url {
  font-family: var(--mono);
  font-size: 13px;
  color: #3c445c;
  font-weight: 600;
}
.qr-downloads {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.qr-list { display: grid; gap: 14px; }
.qr-list-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
  transition: border-color 0.2s ease;
}
.qr-list-item:hover { border-color: var(--line-strong); }
.qr-list-item .ic {
  width: 34px; height: 34px;
  flex: none;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(47, 214, 240, 0.1);
  border: 1px solid rgba(47, 214, 240, 0.25);
  color: var(--cyan);
}
.qr-list-item .ic svg { width: 16px; height: 16px; }
.qr-list-item b { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 3px; }
.qr-list-item span { font-size: 13.5px; color: var(--text-2); }

/* ---------- Flow (link control) ---------- */
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
}
.flow-node {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: 20px;
}
.flow-node .fn-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}
.flow-node .fn-url {
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 8px;
  word-break: break-all;
}
.flow-node .fn-url .host { color: var(--text-3); font-weight: 500; }
.flow-node .fn-desc { font-size: 13px; color: var(--text-2); }
.flow-node.same {
  border-color: rgba(91, 124, 255, 0.45);
  background:
    radial-gradient(260px 120px at 30% 0%, rgba(91, 124, 255, 0.18), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.flow-node.same .fn-url {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 16px;
}
.flow-link {
  display: grid;
  place-items: center;
  color: var(--text-3);
}
.flow-link svg { width: 20px; height: 20px; }

/* ---------- Use cases ---------- */
.usecases {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.usecase {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.usecase:hover {
  border-color: rgba(91, 124, 255, 0.45);
  color: var(--text);
  background: rgba(91, 124, 255, 0.07);
}
.usecase svg { width: 15px; height: 15px; color: var(--text-3); flex: none; }
.usecase:hover svg { color: var(--accent); }

/* ---------- Developers ---------- */
.dev-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: center;
}
.code-window {
  background: #0b0e17;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.code-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(21, 26, 42, 0.5);
}
.code-titlebar .dot3 { display: flex; gap: 6px; }
.code-titlebar .dot3 i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(148, 163, 216, 0.2);
}
.code-titlebar .file {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
}
.code-window pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-2);
}
.code-window .tk-c { color: var(--text-3); }
.code-window .tk-k { color: var(--violet); }
.code-window .tk-s { color: #7dd3a8; }
.code-window .tk-f { color: var(--cyan); }
.code-window .tk-p { color: var(--accent); }

.dev-points { display: grid; gap: 14px; margin-top: 26px; }
.dev-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.dev-point .ck {
  width: 22px; height: 22px;
  flex: none;
  margin-top: 1px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--ok);
}
.dev-point .ck svg { width: 12px; height: 12px; }
.dev-point b { display: block; font-size: 14.5px; font-weight: 600; }
.dev-point span { font-size: 13.5px; color: var(--text-2); }

/* ---------- Security ---------- */
.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.security-item {
  background: var(--surface);
  padding: 20px;
}
.security-item .ic {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(91, 124, 255, 0.1);
  border: 1px solid rgba(91, 124, 255, 0.25);
  color: var(--accent);
  margin-bottom: 12px;
}
.security-item .ic svg { width: 15px; height: 15px; }
.security-item b { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.security-item span { font-size: 12.5px; color: var(--text-2); line-height: 1.55; display: block; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: 28px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.plan:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.plan.highlight {
  border-color: rgba(91, 124, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(91, 124, 255, 0.25), 0 24px 60px rgba(60, 80, 220, 0.22);
  background:
    radial-gradient(400px 160px at 50% 0%, rgba(91, 124, 255, 0.14), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.plan .plan-name { font-size: 16px; font-weight: 650; margin-bottom: 6px; }
.plan .plan-price {
  font-size: 34px;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.plan .plan-price .per { font-size: 14px; color: var(--text-3); font-weight: 500; letter-spacing: 0; }
.plan .plan-sub { font-size: 13px; color: var(--text-3); margin-bottom: 20px; }
.plan ul { display: grid; gap: 10px; margin-bottom: 26px; flex: 1; }
.plan li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
  align-items: flex-start;
}
.plan li svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--ok); }
.plan .badge-plan {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--grad);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-note {
  margin-top: 22px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-3);
}

/* ---------- CTA ---------- */
.cta-shell {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: clamp(48px, 7vw, 88px) 24px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(700px 300px at 50% -20%, rgba(91, 124, 255, 0.22), transparent 70%),
    radial-gradient(500px 240px at 80% 120%, rgba(139, 92, 246, 0.16), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.cta-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(151, 165, 214, 0.5), transparent);
}
.cta-shell h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}
.cta-shell p {
  color: var(--text-2);
  font-size: 17px;
  max-width: 52ch;
  margin: 0 auto 34px;
}
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 64px 0 32px;
  margin-top: 40px;
}
.footer-grid,
.footer-bottom,
.footer-inner {
  width: min(var(--max), 100% - 48px);
  margin-inline: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 32px;
}
.footer-brand .nav-brand { position: static; margin-bottom: 14px; font-size: 18px; }
.footer-tag { color: var(--text-3); font-size: 13.5px; }
.site-footer h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}
.site-footer div a {
  display: block;
  padding: 5px 0;
  color: var(--text-2);
  font-size: 14px;
  transition: color 0.15s ease;
}
.site-footer div a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-3);
}
.site-footer.app { margin-top: 0; padding: 28px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-3);
}
.footer-inner a { color: var(--text-2); }
.footer-inner a:hover { color: var(--text); }
.site-footer .footer-inner a { display: inline; padding: 0; }
.footer-note { }

/* ---------- Forms (auth) ---------- */
.auth-shell {
  min-height: calc(100vh - 40px);
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + 48px) 24px 64px;
  position: relative;
  overflow: hidden;
}
.auth-shell::before {
  content: "";
  position: absolute;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(480px 260px at 50% 40%, rgba(91, 124, 255, 0.16), transparent 70%);
  pointer-events: none;
}
.auth-card {
  width: min(440px, 100%);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-2);
  padding: 32px;
  position: relative;
}
.auth-card h1 { font-size: 24px; font-weight: 750; margin-bottom: 6px; letter-spacing: -0.02em; }
.auth-card .auth-sub { color: var(--text-2); font-size: 14px; margin-bottom: 24px; }
.auth-card .field { margin-bottom: 14px; }
.auth-card .btn { width: 100%; margin-top: 6px; }
.auth-alt {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13.5px;
  color: var(--text-3);
}
.auth-alt a { color: var(--text); font-weight: 600; }
.form-alert {
  border-radius: var(--radius-m);
  padding: 12px 14px;
  font-size: 13.5px;
  margin-bottom: 16px;
  display: none;
}
.form-alert.err { display: block; background: rgba(255, 107, 122, 0.09); border: 1px solid rgba(255, 107, 122, 0.3); color: #ffb3bb; }
.form-alert.ok { display: block; background: rgba(52, 211, 153, 0.09); border: 1px solid rgba(52, 211, 153, 0.3); color: #9be8c9; }
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-2);
  margin: 4px 0 14px;
}
.checkbox-row input {
  width: 16px; height: 16px;
  accent-color: var(--accent);
}

/* ---------- Dashboard ---------- */
.app-main { padding: calc(var(--nav-h) + 40px) 0 64px; }
.app-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.app-head h1 { font-size: 26px; font-weight: 750; letter-spacing: -0.025em; }
.app-head .sub { color: var(--text-2); font-size: 14px; margin-top: 4px; }

.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 24px;
}
.card h2 {
  font-size: 16.5px;
  font-weight: 650;
  margin-bottom: 4px;
}
.card .card-sub { font-size: 13px; color: var(--text-3); margin-bottom: 18px; }

.create-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.create-grid .field { margin-bottom: 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 720px;
}
table.data th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 18, 0.4);
  white-space: nowrap;
}
table.data td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: rgba(148, 163, 216, 0.04); }
td.mono { font-family: var(--mono); font-size: 13px; }
td .num { font-variant-numeric: tabular-nums; font-weight: 650; }
td .dim { color: var(--text-3); font-size: 12.5px; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.row-actions .btn { padding: 6px 10px; font-size: 12.5px; }

.empty-state {
  text-align: center;
  padding: 56px 24px;
  color: var(--text-3);
}
.empty-state .es-icon {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(148, 163, 216, 0.08);
  border: 1px solid var(--line);
  color: var(--text-2);
}
.empty-state .es-icon svg { width: 22px; height: 22px; }
.empty-state b { display: block; color: var(--text-2); font-size: 15px; margin-bottom: 6px; }

/* Link detail */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.setting-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.setting-row:last-child { border-bottom: 0; }
.setting-row label { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.setting-row .field { margin: 0; }
.setting-row .field input, .setting-row .field select { padding: 10px 12px; font-size: 14px; }
.seg {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  overflow: hidden;
}
.seg button {
  border: 0;
  background: none;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.seg button + button { border-left: 1px solid var(--line-strong); }
.seg button.is-on { background: rgba(91, 124, 255, 0.16); color: var(--text); }
.seg button:hover:not(.is-on) { background: rgba(148, 163, 216, 0.08); }

/* Account */
.token-box {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}
.token-box code {
  flex: 1;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-2);
  background: rgba(9, 11, 18, 0.7);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Status page */
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.status-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
  padding: 18px;
}
.status-item .si-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.status-item b { font-size: 14.5px; font-weight: 600; }
.status-item span { font-size: 12.5px; color: var(--text-3); }
.status-item .val { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }

/* 404 */
.notfound {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
}
.notfound .nf-code {
  font-size: clamp(72px, 14vw, 150px);
  font-weight: 850;
  letter-spacing: -0.06em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}
.notfound h1 { font-size: 24px; margin-bottom: 10px; }
.notfound p { color: var(--text-2); margin-bottom: 28px; }

/* ---------- Light professional theme ---------- */
.site-nav { background: rgba(255, 255, 255, 0.96); border-bottom-color: var(--line); }
.site-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.nav-links a:hover { background: #eef3f8; }
.nav-panel { background: rgba(255, 255, 255, 0.98); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08); }
.btn-primary { box-shadow: none; }
.btn-primary:hover { background: var(--accent-strong); box-shadow: 0 4px 12px rgba(10, 102, 194, 0.20); }
.btn-ghost { background: #fff; }
.btn-ghost:hover { border-color: var(--accent); background: #eef3f8; color: var(--accent-strong); }
.btn-danger { color: var(--err); background: #fff7f5; border-color: rgba(178, 64, 32, 0.35); }

.hero { background: #fff; }
.hero-grid {
  background-image: linear-gradient(rgba(10, 102, 194, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 102, 194, 0.055) 1px, transparent 1px);
}
.hero-glow { background: radial-gradient(560px 300px at 50% 40%, rgba(10, 102, 194, 0.10), transparent 70%), radial-gradient(380px 240px at 62% 30%, rgba(0, 115, 177, 0.07), transparent 70%); }
.hero-sweep { background: radial-gradient(circle at center, rgba(10, 102, 194, 0.06), transparent 60%); }
.hero-dots { opacity: 0.25; }
.widget,
.card,
.auth-card { background: #fff; }
.widget::before { background: linear-gradient(160deg, rgba(10, 102, 194, 0.55), rgba(0, 0, 0, 0.05) 38%, rgba(10, 102, 194, 0.20)); }
.field input,
.field select,
.field textarea { background: #fff; }
.field input:focus,
.field select:focus,
.field textarea:focus { background: #fff; box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.14); }
.field .suffix-btn { background: #f3f6f8; }
.field .suffix-btn:hover { background: #e7f0f8; }
.result-card,
.mini-links,
.mini-link,
.token-box code { background: #f8fafc; }

.section.proof { background: #f3f2ef; }
.section-divider { background: var(--line); }
.link-card,
.feature,
.analytics-shell .panel,
.alias-box,
.qr-tile,
.flow-step,
.usecase,
.security-item,
.plan,
.status-item { background: #fff; }
.feature:hover,
.usecase:hover,
.plan:hover { border-color: rgba(10, 102, 194, 0.35); box-shadow: var(--shadow-1); }
.feature .f-icon,
.security-item .ic { background: #eef3f8; border-color: #d8e6f3; }
.mini-chart .grid,
.chart-grid { stroke: rgba(0, 0, 0, 0.10); }
.bar-track { background: #e8e8e8; }
.alias-box.after,
.flow-step.active,
.plan.highlight { background: linear-gradient(180deg, #f7fbff, #fff); box-shadow: var(--shadow-1); }
.qr-copy .qr-point .ic { background: #e8f4fb; border-color: #c7e4f2; }
.code-window { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14); }
.cta-shell { background: linear-gradient(135deg, #f3f8fc, #fff); border-color: #cbddea; box-shadow: var(--shadow-1); }
.site-footer { background: #fff; }
.auth-shell::before { background: radial-gradient(480px 260px at 50% 40%, rgba(10, 102, 194, 0.10), transparent 70%); }
.form-alert.err { color: #8f2f17; background: #fff3f0; }
.form-alert.ok { color: #075f39; background: #effaf5; }
table.data th { background: #f7f7f7; }
table.data tr:hover td { background: #f5f9fc; }
.empty-state .es-icon { background: #eef3f8; }
.seg button.is-on { background: #e8f3fc; color: var(--accent-strong); }
.seg button:hover:not(.is-on) { background: #f3f6f8; }

/* ---------- 4u Pages landing showcase ---------- */
.pages-showcase{background:#fff}.pages-showcase-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,.72fr);gap:70px;align-items:center}.pages-showcase-copy h2{font-size:clamp(34px,4.5vw,54px);margin-bottom:18px}.pages-showcase-copy .lede{margin-bottom:24px}.pages-audience{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:28px}.pages-audience span{padding:6px 10px;border-radius:999px;background:#f3f6f8;border:1px solid var(--line);font-size:12px;color:var(--text-2)}.pages-phone-wrap{display:grid;place-items:center}.pages-phone{width:310px;min-height:610px;padding:17px 19px 22px;border:9px solid #191919;border-radius:42px;background:linear-gradient(160deg,#eef7ff,#fff);box-shadow:0 24px 60px rgba(0,0,0,.16);text-align:center;display:flex;flex-direction:column;align-items:center}.phone-status{width:100%;display:flex;justify-content:space-between;font-size:9px;font-weight:700;margin-bottom:22px}.demo-avatar{width:74px;height:74px;display:grid;place-items:center;border-radius:50%;background:var(--accent);color:#fff;font-size:22px;font-weight:800;margin-bottom:10px}.pages-phone>strong{font-size:18px}.pages-phone>small{color:var(--text-3)}.pages-phone>p{font-size:11px;line-height:1.5;color:var(--text-2);margin:12px 8px}.demo-socials{display:flex;gap:8px;margin:3px 0 14px}.demo-socials i{width:29px;height:29px;display:grid;place-items:center;border-radius:50%;background:#fff;border:1px solid var(--line);font-size:8px;font-style:normal;font-weight:750}.demo-page-link{width:100%;min-height:48px;padding:10px 12px;margin-bottom:9px;border-radius:12px;background:#fff;border:1px solid var(--line-strong);display:flex;align-items:center;justify-content:space-between;text-align:left;font-size:10px;font-weight:650}.demo-page-link.featured{min-height:68px;background:var(--accent);color:#fff;display:grid}.demo-page-link small{font-weight:400;opacity:.76}.pages-phone>em{margin-top:auto;font-size:9px;color:var(--text-3);font-style:normal}@media(max-width:900px){.pages-showcase-grid{grid-template-columns:1fr;gap:44px}.pages-phone{width:min(310px,100%)}}

/* ---------- 4u Pages dashboard and builder ---------- */
.container.wide{--max:1380px}.pages-layout{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.5fr);gap:18px;align-items:start}.page-create-form{display:grid;gap:12px}.page-list{display:grid}.page-list-item{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:16px 0;border-top:1px solid var(--line)}.page-list-item>div:first-child{display:grid}.page-list-item strong{font-size:15px}.page-list-item a:not(.btn){color:var(--accent);font-size:13px}.page-list-item span{color:var(--text-3);font-size:12px}.back-link{color:var(--accent);font-size:13px;font-weight:650}.builder-shell{display:grid;grid-template-columns:minmax(480px,1fr) minmax(420px,.9fr);gap:22px;align-items:start}.builder-panel{display:grid;gap:14px}.builder-section{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px}.builder-section>summary{cursor:pointer;font-weight:700}.builder-form{display:grid;gap:12px;margin-top:16px}.builder-form label,.block-edit label{display:grid;gap:5px;color:var(--text-2);font-size:12px;font-weight:650}.builder-form input,.builder-form textarea,.builder-form select,.block-edit input{width:100%;padding:10px 11px;border:1px solid var(--line-strong);border-radius:8px;background:#fff;color:var(--text)}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.builder-form .check,.block-edit .check{display:flex;align-items:center;gap:8px}.builder-form .check input,.block-edit .check input{width:auto}.upload-row{display:flex;align-items:center;gap:10px;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.block-list-section h2{font-size:16px;display:flex;justify-content:space-between}.block-list-section h2 span{font-size:11px;color:var(--text-3);font-weight:500}.builder-blocks{display:grid;gap:8px;margin-top:14px}.builder-block{display:flex;align-items:center;gap:10px;padding:11px;background:#f8fafc;border:1px solid var(--line);border-radius:10px}.builder-block.is-hidden{opacity:.58}.builder-block.dragging{opacity:.4;border-color:var(--accent)}.drag-handle{cursor:grab;color:var(--text-3);letter-spacing:-3px}.block-main{display:grid;min-width:0;flex:1}.block-main b{font-size:12px}.block-main span{font-size:12px;color:var(--text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.builder-block details{position:relative}.builder-block details[open] .block-edit{display:grid}.block-edit{position:absolute;right:0;top:38px;z-index:5;width:330px;display:none;gap:10px;padding:16px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-2)}.icon-action{border:0;background:none;font-size:18px;cursor:pointer;color:var(--text-2)}.icon-action.danger{color:var(--err)}.preview-panel{position:sticky;top:calc(var(--nav-h) + 20px)}.preview-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.preview-toolbar>div{display:flex;border:1px solid var(--line);border-radius:8px;overflow:hidden}.preview-switch{border:0;background:#fff;padding:7px 10px;color:var(--text-2);cursor:pointer}.preview-switch.is-on{background:#e8f3fc;color:var(--accent)}.phone-frame{width:100%;max-width:390px;height:720px;margin:auto;padding:10px;border:1px solid var(--line-strong);border-radius:28px;background:#171717;box-shadow:var(--shadow-2);transition:max-width .25s}.phone-frame iframe{width:100%;height:100%;border:0;border-radius:20px;background:#fff}@media(max-width:1050px){.builder-shell{grid-template-columns:1fr}.preview-panel{position:static}.pages-layout{grid-template-columns:1fr}}@media(max-width:600px){.two-fields{grid-template-columns:1fr}.builder-section{padding:14px}.builder-block{flex-wrap:wrap}.block-edit{position:fixed;inset:80px 16px auto;width:auto;max-height:70vh;overflow:auto}.page-list-item{align-items:flex-start;flex-direction:column}}

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hero-sweep { animation: none; opacity: 0.5; }
  .chart-line { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-top: calc(var(--nav-h) + 56px); }
  .proof-inner { grid-template-columns: 1fr; gap: 36px; }
  .analytics-shell { grid-template-columns: 1fr; }
  .dev-shell { grid-template-columns: 1fr; gap: 32px; }
  .qr-shell { grid-template-columns: 1fr; gap: 32px; }
  .qr-tile { max-width: 420px; margin-inline: auto; }
  .bento { grid-template-columns: repeat(4, 1fr); }
  .f-1, .f-2 { grid-column: span 4; }
  .f-3, .f-4, .f-5 { grid-column: span 2; }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .plan.highlight { order: -1; }
  .alias-shell { grid-template-columns: 1fr; }
  .alias-arrow { margin: 0 auto; transform: rotate(90deg); }
  .flow { grid-template-columns: 1fr; }
  .flow-link svg { transform: rotate(90deg); }
  .detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .nav-burger { display: inline-flex; }
}

@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .bento { grid-template-columns: 1fr; }
  .f-1, .f-2, .f-3, .f-4, .f-5 { grid-column: auto; }
  .security-grid { grid-template-columns: 1fr; }
  .link-card-metrics { grid-template-columns: 1fr 1fr; }
  .create-grid { grid-template-columns: 1fr; }
  .create-grid .btn { width: 100%; }
  .setting-row { grid-template-columns: 1fr; gap: 8px; }
  .widget-row { grid-template-columns: 1fr; }
  .result-actions .btn { flex: 1 1 40%; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .bar-row { grid-template-columns: 64px 1fr 40px; }
  .auth-card { padding: 24px 20px; }
  .site-footer.app { padding: 24px 0; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-inner > span { width: 100%; }
  .table-wrap { border-radius: 0; border-left: 0; border-right: 0; }
}
