/* =========================================================
   SEOURL — 2026 redesign layer
   Tokens, glass chrome, 3D surfaces, dock and page overrides.
   ========================================================= */

:root {
  --paper: #eef2f9;
  --paper-deep: #e6edf8;
  --paper-deeper: #dbe5f4;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-soft: #f5f8fd;
  --ink: #0b1220;
  --ink-soft: #3c4b63;
  --muted: #64748b;
  --line: #dce5f2;
  --line-strong: #c3d2e6;
  --accent: #2563eb;
  --accent-deep: #1d4ed8;
  --accent-soft: #dbeafe;
  --accent-ink: #ffffff;
  --lime: #7ce8d5;
  --lime-deep: #2dd4bf;
  --green: #0f766e;
  --green-soft: #d9f7f0;
  --blue: #2563eb;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-serif: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 18px 50px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-float: 0 34px 90px rgba(15, 23, 42, 0.18), 0 6px 18px rgba(15, 23, 42, 0.06);
  --header-bg: rgba(238, 242, 249, 0.82);
  --glow: rgba(37, 99, 235, 0.22);
  --glow-strong: rgba(37, 99, 235, 0.38);
  --footer-bg: #0a1120;
  --footer-text: #e8effa;
  --footer-muted: #9fb0c9;
  --footer-line: rgba(232, 239, 250, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] {
  --paper: #070b14;
  --paper-deep: #0a101c;
  --paper-deeper: #0d1626;
  --surface: #0d1626;
  --surface-raised: #111d31;
  --surface-soft: #0a1322;
  --ink: #f2f7ff;
  --ink-soft: #b7c5d9;
  --muted: #8494ab;
  --line: #1d2a40;
  --line-strong: #2b3b55;
  --accent: #60a5fa;
  --accent-deep: #3b82f6;
  --accent-soft: #12233d;
  --accent-ink: #04101f;
  --lime: #5eead4;
  --lime-deep: #2dd4bf;
  --green: #5eead4;
  --green-soft: #0d2a25;
  --blue: #93c5fd;
  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.42), 0 2px 10px rgba(0, 0, 0, 0.28);
  --shadow-float: 0 40px 100px rgba(0, 0, 0, 0.55), 0 8px 24px rgba(0, 0, 0, 0.4);
  --header-bg: rgba(7, 11, 20, 0.8);
  --glow: rgba(96, 165, 250, 0.22);
  --glow-strong: rgba(96, 165, 250, 0.4);
}

/* ---------------------------------------------------------
   Base
   --------------------------------------------------------- */

html {
  scroll-padding-top: 92px;
}

body {
  min-height: 100vh;
  padding-bottom: 0;
  background:
    radial-gradient(circle at 12% -8%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 38%),
    radial-gradient(circle at 92% 4%, color-mix(in srgb, var(--lime-deep) 11%, transparent), transparent 34%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.65;
  transition: background-color 0.25s ease, color 0.25s ease;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 10% -6%, rgba(59, 130, 246, 0.18), transparent 36%),
    radial-gradient(circle at 92% 2%, rgba(45, 212, 191, 0.1), transparent 32%),
    var(--paper);
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: -0.035em;
}

h1 em,
h2 em,
h3 em {
  color: var(--accent);
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
}

.hero h1 em,
.dash-title-row h1 em,
.profile-title-row h1 em,
.detail-title h1 em,
.explore-title-row h1 em,
.login-editorial h1 em,
.legal-header h1 em {
  line-height: inherit;
  font-size: inherit;
}

.container {
  max-width: 1200px;
  padding-inline: 28px;
}

.section {
  padding: 96px 0;
}

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

.eyebrow {
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  flex-basis: 6px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--glow);
}

.eyebrow--light {
  color: var(--footer-muted);
}

.eyebrow--light .eyebrow-dot {
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.16);
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.text-link {
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 4px;
}

.text-link:hover {
  color: var(--accent-deep);
  text-decoration-color: currentColor;
}

code {
  font-family: var(--font-mono);
}

/* ---------------------------------------------------------
   Buttons and fields
   --------------------------------------------------------- */

.btn {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary,
.btn-ink {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, #ffffff), var(--accent) 55%, var(--accent-deep));
  color: var(--accent-ink);
  border-color: color-mix(in srgb, var(--accent-deep) 70%, #000000);
  box-shadow:
    0 10px 24px var(--glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -2px 0 rgba(0, 0, 0, 0.16);
}

.btn-primary:hover,
.btn-ink:hover {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #ffffff), var(--accent) 45%, var(--accent-deep));
  color: var(--accent-ink);
  border-color: var(--accent-deep);
  box-shadow:
    0 16px 34px var(--glow-strong),
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}

.btn-outline {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.btn-outline:hover {
  background: var(--surface-raised);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 4px var(--glow), 0 10px 24px rgba(15, 23, 42, 0.08);
}

.btn-lime {
  background: linear-gradient(180deg, color-mix(in srgb, var(--lime) 78%, #ffffff), var(--lime));
  color: #04231f;
  border-color: color-mix(in srgb, var(--lime-deep) 70%, #000000);
  box-shadow:
    0 12px 28px rgba(45, 212, 191, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.btn-lime:hover {
  background: linear-gradient(180deg, #ffffff, var(--lime));
  color: #04231f;
  border-color: var(--lime);
  box-shadow:
    0 18px 40px rgba(45, 212, 191, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-sm {
  min-height: 38px;
  padding: 0 15px;
  font-size: 11.5px;
}

.btn-large {
  min-height: 54px;
  padding: 0 24px;
  font-size: 13.5px;
}

.btn-submit {
  min-height: 54px;
  padding-inline: 18px;
}

.btn[disabled] {
  opacity: 0.55;
}

.field {
  gap: 7px;
}

.field label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ink-soft);
}

.field label span {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
}

.url-input,
.slug-input {
  min-height: 48px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.url-input:focus-within,
.slug-input:focus-within,
.text-input:focus {
  background: var(--surface-raised);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--glow);
}

.url-input > svg {
  color: var(--muted);
}

.url-input input,
.slug-input input {
  font-size: 13px;
}

.slug-prefix {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
}

.text-input {
  min-height: 46px;
  padding: 11px 13px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.textarea {
  min-height: 96px;
  resize: vertical;
}

.field-hint {
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--muted);
}

.field-hint code {
  padding: 1px 4px;
  background: var(--accent-soft);
  border-radius: 4px;
  color: var(--accent);
}

.check-row {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
}

.check-row:hover {
  border-color: var(--accent);
  background: var(--surface-raised);
}

.check-copy strong {
  font-size: 12px;
  font-weight: 600;
}

.check-copy small {
  font-size: 10.5px;
  color: var(--muted);
}

.status-ready {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  color: var(--green);
}

.status-ready i {
  width: 6px;
  height: 6px;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 16%, transparent);
}

.pill {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  padding: 3px 7px;
}

.pill--soft {
  background: var(--accent-soft);
  color: var(--accent);
}

.pill--line {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--muted);
}

.pill--off {
  background: color-mix(in srgb, #ef4444 12%, transparent);
  color: #dc2626;
}

html[data-theme="dark"] .pill--off {
  color: #fca5a5;
}

.pill--seo {
  background: var(--ink);
  color: var(--lime);
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
}

.header-inner {
  min-height: 72px;
  gap: 26px;
}

.brand-mark {
  width: 36px;
  height: 36px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(2, 8, 20, 0.22);
}

.brand:hover .brand-mark {
  transform: translateY(-1px) rotate(-3deg);
}

.brand-word {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-domain {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.02em;
}

.desktop-nav {
  gap: 24px;
  margin-left: 12px;
}

.desktop-nav a {
  padding: 8px 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.desktop-nav a::after {
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--glow-strong);
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--ink);
}

.header-actions {
  gap: 10px;
}

.header-login {
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.header-login:hover {
  color: var(--accent);
}

.header-cta {
  box-shadow: 0 8px 20px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: color-mix(in srgb, var(--surface) 68%, transparent);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-soft);
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--surface-raised);
  box-shadow: 0 0 0 4px var(--glow);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

.account-menu {
  position: relative;
}

.account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 3px 10px 3px 4px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.account-trigger:hover,
.account-trigger[aria-expanded="true"] {
  background: var(--surface-raised);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--glow);
}

.account-trigger img,
.account-trigger .avatar-fallback {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.account-trigger .avatar-fallback {
  font-size: 12px;
}

.account-trigger-name {
  font-size: 12px;
  font-weight: 600;
}

.account-chevron {
  width: 14px;
  height: 14px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.account-trigger[aria-expanded="true"] .account-chevron {
  transform: rotate(180deg);
}

.account-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 90;
  width: 270px;
  padding: 8px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-float);
}

.account-panel[hidden] {
  display: none;
}

.account-panel-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 10px 13px;
  margin-bottom: 5px;
  border-bottom: 1px solid var(--line);
}

.account-panel-head img,
.account-panel-head .avatar-fallback {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.account-panel-head strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
}

.account-panel-head span {
  display: block;
  max-width: 180px;
  overflow: hidden;
  font-size: 10.5px;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-panel-link,
.account-panel-logout button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  color: var(--ink-soft);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.account-panel-link svg,
.account-panel-logout svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.account-panel-link:hover,
.account-panel-logout button:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.account-panel-link:hover svg,
.account-panel-logout button:hover svg {
  color: var(--accent);
}

.account-panel-logout {
  margin-top: 4px;
  padding-top: 5px;
  border-top: 1px solid var(--line);
}

.account-panel-logout button:hover {
  background: color-mix(in srgb, #ef4444 10%, transparent);
  color: #dc2626;
}

html[data-theme="dark"] .account-panel-logout button:hover {
  color: #fca5a5;
}

.nav-toggle {
  background: color-mix(in srgb, var(--surface) 68%, transparent);
  border-color: var(--line);
  border-radius: 11px;
}

.mobile-nav {
  background: var(--surface-raised);
  border-top-color: var(--line);
  box-shadow: var(--shadow-card);
}

.mobile-nav a:not(.btn) {
  border-bottom-color: var(--line);
  font-size: 13px;
  font-weight: 500;
}

/* ---------------------------------------------------------
   Flash and toast
   --------------------------------------------------------- */

.flash {
  background: var(--surface-raised);
  border-color: var(--line);
  border-left-width: 2px;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

.flash p {
  font-size: 12px;
}

.flash-close:hover {
  background: var(--surface-soft);
}

.site-toast {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-float);
  font-size: 12px;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: 64px;
  padding-bottom: 120px;
  background: var(--footer-bg);
  color: var(--footer-text);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 50%;
  height: 120%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.14), transparent 65%);
  pointer-events: none;
}

.site-footer .container {
  position: relative;
}

.footer-grid {
  gap: 42px;
  padding-bottom: 46px;
}

.brand--footer .brand-word {
  color: var(--footer-text);
}

.brand--footer .brand-domain {
  color: var(--footer-muted);
}

.footer-brand > p {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--footer-muted);
}

.footer-place {
  margin-top: 16px;
  padding: 5px 9px;
  border-color: var(--footer-line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--footer-muted);
}

.footer-title {
  margin-bottom: 14px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(232, 239, 250, 0.42);
}

.footer-col {
  gap: 8px;
}

.footer-col a {
  font-size: 12px;
  color: var(--footer-muted);
}

.footer-col a:hover {
  color: var(--lime);
}

.footer-col--note p {
  font-size: 11px;
  line-height: 1.7;
  color: var(--footer-muted);
}

.footer-bottom {
  padding-top: 18px;
  padding-bottom: 20px;
  border-top: 1px solid var(--footer-line);
}

.footer-bottom p {
  font-size: 10px;
  color: rgba(232, 239, 250, 0.42);
}

.footer-mono {
  font-size: 8px !important;
  letter-spacing: 0.1em;
}

/* ---------------------------------------------------------
   Dock / touchbar
   --------------------------------------------------------- */

.dock {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 2px;
  width: min(520px, calc(100vw - 24px));
  padding: 8px 10px;
  background: color-mix(in srgb, var(--surface-raised) 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--line-strong) 58%, transparent);
  border-radius: 24px;
  box-shadow:
    0 22px 55px rgba(2, 8, 20, 0.28),
    0 2px 8px rgba(2, 8, 20, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  backdrop-filter: blur(24px) saturate(1.5);
  transform: translateX(-50%);
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 74px;
  padding: 7px 4px;
  border-radius: 15px;
  color: var(--muted);
  transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.dock-item:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.dock-item.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}

.dock-item svg {
  width: 21px;
  height: 21px;
}

.dock-label {
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
}

.dock-item--create {
  margin-top: -22px;
  color: var(--accent-ink);
  background: transparent;
}

.dock-item--create:hover {
  color: var(--accent-ink);
  background: transparent;
  transform: translateY(-2px);
}

.dock-create-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 84%, #ffffff), var(--accent) 55%, var(--accent-deep));
  border: 1px solid color-mix(in srgb, var(--accent-deep) 70%, #000000);
  border-radius: 18px;
  box-shadow:
    0 14px 28px var(--glow-strong),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 0 rgba(0, 0, 0, 0.16);
  color: var(--accent-ink);
}

.dock-create-mark svg {
  width: 22px;
  height: 22px;
}

.dock-item--create .dock-label {
  margin-top: 3px;
  color: var(--ink-soft);
}

.dock-item--create:hover .dock-label {
  color: var(--accent);
}

/* ---------------------------------------------------------
   Home hero
   --------------------------------------------------------- */

.hero--v2 {
  position: relative;
  overflow: hidden;
  padding: 82px 0 98px;
  border-bottom: 1px solid var(--line);
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 13%, transparent) 0.7px, transparent 0.7px);
  background-size: 22px 22px;
  background-position: -2px -2px;
}

html[data-theme="dark"] .hero--v2 {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 0.7px, transparent 0.7px);
}

.hero--v2::after {
  display: none;
}

.hero-aurora {
  position: absolute;
  top: -26%;
  left: -12%;
  width: 62%;
  height: 100%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 68%);
  opacity: 0.55;
  pointer-events: none;
}

html[data-theme="dark"] .hero-aurora {
  opacity: 0.7;
}

.hero-grid--v2 {
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: 46px;
}

.hero-copy--v2 {
  position: relative;
  z-index: 2;
}

.hero-copy--v2 h1 {
  max-width: 680px;
  margin-top: 22px;
  font-size: clamp(52px, 6.3vw, 86px);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.062em;
}

.hero-copy--v2 h1 em {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
}

.hero-copy--v2 .hero-lede {
  max-width: 570px;
  margin-top: 24px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.hero-copy--v2 .hero-lede strong {
  font-family: var(--font-mono);
  font-size: 0.84em;
  color: var(--ink);
}

.hero-copy--v2 .hero-actions {
  gap: 11px;
  margin-top: 28px;
}

.hero-copy--v2 .hero-auth-note {
  margin-top: 15px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.hero-copy--v2 .hero-stats {
  max-width: 540px;
  margin-top: 36px;
  padding-top: 16px;
  border-top-color: var(--line-strong);
}

.hero-copy--v2 .hero-stats dd {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
  perspective: 1200px;
}

.hero-cosmos {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  pointer-events: none;
}

html[data-theme="dark"] .hero-cosmos {
  opacity: 1;
}

.scene-chip {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  background: color-mix(in srgb, var(--surface-raised) 86%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-soft);
  animation: chip-float 6.5s ease-in-out infinite;
  will-change: transform;
}

.scene-chip svg {
  width: 14px;
  height: 14px;
  color: var(--lime-deep);
}

.scene-chip strong {
  font-weight: 700;
  color: var(--ink);
}

.scene-chip i {
  width: 6px;
  height: 6px;
  background: var(--lime-deep);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.14);
}

.scene-chip--seo {
  top: 6%;
  right: 2%;
}

.scene-chip--clicks {
  top: 42%;
  left: -3%;
  animation-delay: -2.2s;
}

@keyframes chip-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

.ticket-scene {
  position: relative;
  width: 100%;
  max-width: 430px;
  justify-self: center;
  perspective: 1100px;
  perspective-origin: 50% 38%;
  transform: rotateX(calc(6deg + var(--tilt-x, 0deg))) rotateY(var(--tilt-y, 0deg)) translateZ(0);
  transform-style: preserve-3d;
  animation: none;
}

.ticket-scene::before {
  inset: 18px -12px -12px 16px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  border-radius: 24px;
  transform: rotate(2.2deg);
  box-shadow: 0 20px 50px var(--glow);
}

.ticket-sticker {
  top: -20px;
  left: -16px;
  width: 68px;
  height: 68px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid color-mix(in srgb, var(--accent-deep) 60%, #000000);
  box-shadow: 0 12px 26px var(--glow-strong);
  font-size: 8.5px;
  transform: rotate(-8deg);
}

.ticket-sticker span {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.shorten-ticket {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: var(--shadow-float);
  overflow: visible;
}

.ticket-topline {
  padding: 15px 20px;
  background: var(--surface-soft);
  border-bottom-color: var(--line);
  border-radius: 22px 22px 0 0;
  font-size: 9px;
  letter-spacing: 0.07em;
}

.shorten-form {
  gap: 16px;
  padding: 20px;
}

.ticket-perforation {
  margin: 0 -20px;
  border-top-color: var(--line-strong);
}

.ticket-perforation::before,
.ticket-perforation::after {
  top: -9px;
  width: 17px;
  height: 17px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
}

.ticket-bottom {
  padding: 13px 20px 15px;
  background: var(--surface-soft);
  border-top-color: var(--line);
  border-radius: 0 0 22px 22px;
}

.ticket-bottom p {
  font-size: 10px;
}

.ticket-bars i {
  background: var(--ink-soft);
}

.ticket-caption {
  margin-top: 24px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
}

.secure-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 15%, transparent);
}

/* Login gate dialog */
.gate-dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 30px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-float);
  color: var(--ink);
}

.gate-dialog::backdrop {
  background: rgba(3, 8, 18, 0.62);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.gate-dialog[open] {
  animation: dialog-in 0.25s var(--ease);
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
}

.dialog-close:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.dialog-close svg {
  width: 15px;
  height: 15px;
}

.gate-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 16px;
  box-shadow: none;
  color: var(--accent);
}

.gate-mark svg {
  width: 28px;
  height: 28px;
}

.gate-dialog h2 {
  margin-top: 8px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.gate-dialog > p:not(.mono-label):not(.gate-footnote) {
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.gate-footnote {
  margin-top: 14px;
  font-size: 10px;
  color: var(--muted);
}

/* ---------------------------------------------------------
   Home strips and capability cards
   --------------------------------------------------------- */

.signal-strip--v2 {
  background: transparent;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.signal-strip--v2 .signal-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.signal-strip--v2 .signal-item {
  min-height: 78px;
  padding: 20px 22px;
  border-left: 1px solid var(--line);
}

.signal-strip--v2 .signal-item:first-child {
  padding-left: 0;
}

.signal-strip--v2 .signal-item:last-child {
  padding-right: 0;
}

.signal-strip--v2 .signal-num {
  color: var(--accent);
  font-size: 8.5px;
}

.signal-strip--v2 .signal-item p {
  font-size: 11.5px;
  color: var(--ink-soft);
}

.cap-section {
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  gap: 48px;
  margin-bottom: 42px;
}

.section-heading h2 {
  margin-top: 16px;
  font-size: clamp(38px, 4.8vw, 60px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.055em;
}

.section-heading h2 em {
  color: var(--accent);
}

.section-aside {
  max-width: 360px;
  padding-bottom: 4px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cap-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 392px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
}

.cap-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
}

.cap-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.cap-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 11px;
  color: var(--accent);
}

.cap-icon svg {
  width: 18px;
  height: 18px;
}

.cap-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: var(--accent-soft);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--accent);
}

.cap-badge--live i {
  width: 5px;
  height: 5px;
  background: var(--lime-deep);
  border-radius: 50%;
}

.cap-card h3 {
  margin: 16px 0 9px;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.cap-card > p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.cap-link-demo {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

.cap-link-dot {
  width: 6px;
  height: 6px;
  background: var(--lime-deep);
  border-radius: 50%;
}

.cap-link-demo strong {
  color: var(--ink);
}

.cap-link-copy {
  margin-left: auto;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
}

.cap-chart {
  margin-top: auto;
  padding: 13px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.cap-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 9.5px;
  color: var(--muted);
}

.cap-chart-head strong {
  color: var(--green);
  font-size: 9.5px;
}

.cap-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 86px;
  margin-top: 10px;
}

.cap-bars span {
  flex: 1;
  min-height: 4px;
  background: color-mix(in srgb, var(--accent) 72%, var(--surface));
  border-radius: 4px 4px 2px 2px;
}

.cap-bars span:nth-child(5),
.cap-bars span:nth-child(6),
.cap-bars span:nth-child(7) {
  background: var(--accent);
}

.cap-bars span:last-child {
  background: var(--lime-deep);
}

.cap-telegram {
  margin-top: auto;
  padding: 13px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.cap-telegram-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cap-telegram-head > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: var(--accent);
  border-radius: 50%;
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
}

.cap-telegram-head strong {
  display: block;
  font-size: 10px;
  font-weight: 600;
}

.cap-telegram-head small {
  display: block;
  font-size: 8.5px;
  color: var(--muted);
}

.cap-telegram-bubble {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 10px 0 0 14px;
  padding: 9px 11px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 3px 11px 11px 11px;
  font-size: 9.5px;
  color: var(--ink-soft);
}

.cap-telegram-bubble b {
  font-size: 10px;
  color: var(--ink);
}

.cap-telegram-bubble small {
  margin-top: 3px;
  font-size: 8px;
  color: var(--muted);
}

.cap-card--telegram h3 {
  margin-top: 18px;
}

.cap-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.cta-section {
  padding: 84px 0 100px;
}

.cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 44px;
  align-items: end;
  padding: 52px;
  background: var(--footer-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  box-shadow: var(--shadow-float);
  color: var(--footer-text);
  overflow: hidden;
}

.cta-panel::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -12%;
  width: 52%;
  height: 130%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.18), transparent 65%);
  pointer-events: none;
}

.cta-copy,
.cta-action {
  position: relative;
  z-index: 1;
}

.cta-copy h2 {
  margin-top: 16px;
  font-size: clamp(38px, 4.8vw, 62px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.055em;
}

.cta-copy h2 em {
  color: var(--lime);
}

.cta-action > p {
  max-width: 330px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--footer-muted);
}

.cta-action .btn {
  margin-top: 20px;
}

.cta-fineprint {
  display: block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.02em;
  color: rgba(232, 239, 250, 0.44);
}

/* ---------------------------------------------------------
   Breadcrumb
   --------------------------------------------------------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span[aria-hidden] {
  color: var(--line-strong);
}

/* ---------------------------------------------------------
   How it works
   --------------------------------------------------------- */

.guide-main {
  padding-bottom: 10px;
}

.guide-hero {
  position: relative;
  padding: 54px 0 78px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 84% 20%, color-mix(in srgb, var(--lime-deep) 13%, transparent), transparent 32%),
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 36%);
}

.guide-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 60px;
  align-items: center;
  margin-top: 30px;
}

.guide-hero h1 {
  margin-top: 18px;
  font-size: clamp(52px, 6.8vw, 84px);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.062em;
}

.guide-hero h1 em {
  color: var(--accent);
}

.guide-lede {
  max-width: 570px;
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--ink-soft);
}

.guide-hero .hero-actions {
  margin-top: 26px;
}

.guide-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-float);
  transform: rotate(-1deg);
}

.guide-scene::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: linear-gradient(140deg, var(--accent-soft), transparent 55%);
  border-radius: 27px;
}

.guide-scene-card {
  padding: 15px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 15px;
}

.guide-scene-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.guide-scene-card code {
  display: block;
  font-size: 10px;
  line-height: 1.6;
  color: var(--ink-soft);
  word-break: break-all;
}

.guide-scene-arrow {
  display: flex;
  justify-content: center;
  color: var(--accent);
}

.guide-scene-arrow svg {
  width: 22px;
  height: 22px;
  transform: rotate(90deg);
}

.guide-scene-card--result {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-ink);
  box-shadow: 0 16px 34px var(--glow);
}

.guide-scene-card--result .guide-scene-label {
  color: color-mix(in srgb, var(--accent-ink) 62%, transparent);
}

.guide-scene-card--result strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.guide-scene-card--result strong em {
  color: var(--lime);
  font-style: normal;
}

.guide-scene-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 9.5px;
  color: color-mix(in srgb, var(--accent-ink) 66%, transparent);
}

.guide-scene-meta i {
  width: 5px;
  height: 5px;
  background: var(--lime);
  border-radius: 50%;
}

.guide-steps-section {
  padding: 68px 0;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.guide-step {
  position: relative;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.guide-step::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--glow), transparent 68%);
  pointer-events: none;
}

.guide-step-num {
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
}

.guide-step-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 13px;
  color: var(--accent);
}

.guide-step-icon svg {
  width: 21px;
  height: 21px;
}

.guide-step h2 {
  margin: 20px 0 9px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.guide-step p {
  font-size: 12px;
  line-height: 1.72;
  color: var(--ink-soft);
}

.guide-step code {
  padding: 1px 4px;
  background: var(--surface-soft);
  border-radius: 4px;
  color: var(--accent);
}

.guide-under-section {
  padding: 76px 0;
  background: var(--paper-deep);
  border-block: 1px solid var(--line);
}

.guide-under-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 70px;
  align-items: start;
}

.guide-under-grid h2 {
  margin-top: 16px;
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.guide-under-grid h2 em {
  color: var(--accent);
}

.guide-under-copy {
  max-width: 450px;
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.78;
  color: var(--ink-soft);
}

.guide-under-grid .text-link {
  margin-top: 20px;
}

.guide-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.guide-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.guide-list li > span {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--accent);
}

.guide-list strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
}

.guide-list p {
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------------------------------------------------------
   FAQ page
   --------------------------------------------------------- */

.faq-main {
  padding-bottom: 10px;
}

.faq-page-hero {
  padding: 54px 0 40px;
}

.faq-page-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 60px;
  align-items: end;
  margin-top: 30px;
}

.faq-page-head h1 {
  margin-top: 18px;
  font-size: clamp(50px, 6.4vw, 82px);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.062em;
}

.faq-page-head h1 em {
  color: var(--accent);
}

.faq-page-head > p {
  max-width: 440px;
  padding-bottom: 8px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.faq-page-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 46px;
  align-items: start;
  padding: 34px 0 86px;
}

.faq-page-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
  border-color: var(--line-strong);
}

.faq-item[open] {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 0 0 4px var(--glow);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 21px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary > span {
  position: relative;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-item summary > span::before,
.faq-item summary > span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  background: var(--ink-soft);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.faq-item summary > span::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] summary > span {
  background: var(--accent);
  border-color: var(--accent);
}

.faq-item[open] summary > span::before,
.faq-item[open] summary > span::after {
  background: var(--accent-ink);
}

.faq-item[open] summary > span::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  padding: 0 21px 20px;
}

.faq-answer p {
  max-width: 680px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.faq-answer code {
  padding: 1px 4px;
  background: var(--surface-soft);
  border-radius: 4px;
  color: var(--accent);
}

.faq-page-aside {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-page-aside .side-card h2 {
  margin-top: 10px;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.faq-page-aside .side-card > p:not(.mono-label) {
  margin-top: 9px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.faq-page-aside .btn {
  margin-top: 16px;
}

.faq-page-aside .text-link {
  margin-top: 12px;
}

.faq-aside-copy {
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------
   Shared side cards
   --------------------------------------------------------- */

.side-card {
  padding: 21px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.side-card .mono-label {
  color: var(--muted);
}

.side-card h2 {
  letter-spacing: -0.035em;
}

/* ---------------------------------------------------------
   Dashboard
   --------------------------------------------------------- */

.dash-hero {
  padding: 48px 0 30px;
  background:
    radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 30%),
    transparent;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.dash-topline {
  gap: 20px;
}

.dash-topline .eyebrow {
  color: var(--ink-soft);
}

.dash-topline .eyebrow-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--glow);
}

.account-chip {
  padding: 5px 11px 5px 5px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border-color: var(--line);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.account-chip img,
.account-chip .avatar-fallback {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.account-copy strong {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
}

.account-copy small {
  font-size: 9.5px;
  color: var(--muted);
}

.account-edit {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--accent);
}

.account-edit:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.logout-button {
  font-size: 9.5px;
  color: var(--muted);
}

.logout-button:hover {
  color: #dc2626;
}

.dash-title-row {
  gap: 32px;
  margin-top: 32px;
}

.dash-title-row h1 {
  margin-top: 0;
  font-size: clamp(42px, 5.2vw, 66px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.dash-title-row h1 em {
  color: var(--accent);
}

.dash-title-row p {
  max-width: 590px;
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.dash-title-row .btn {
  flex: 0 0 auto;
}

.dash-stats-head {
  margin-top: 36px;
}

.dash-stats-head .mono-label {
  color: var(--muted);
}

.stats-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-soft);
}

.stats-refresh:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 3px var(--glow);
}

.stats-refresh svg {
  width: 14px;
  height: 14px;
}

.dash-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.stat-card {
  min-height: 146px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.stat-card--accent {
  background: linear-gradient(155deg, var(--accent), var(--accent-deep));
  border-color: transparent;
  color: var(--accent-ink);
  box-shadow: 0 18px 40px var(--glow-strong);
}

.stat-card--visits {
  position: relative;
  overflow: hidden;
}

.stat-card--visits::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--lime-deep), var(--accent));
}

.stat-index {
  top: 18px;
  right: 18px;
  font-size: 9px;
  color: var(--muted);
}

.stat-card--accent .stat-index {
  color: color-mix(in srgb, var(--accent-ink) 55%, transparent);
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
}

.stat-card--accent .stat-label {
  color: color-mix(in srgb, var(--accent-ink) 76%, transparent);
}

.stat-card strong {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 33px;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.stat-card--accent strong {
  color: var(--accent-ink);
}

.stat-meta {
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
}

.stat-card--accent .stat-meta {
  color: color-mix(in srgb, var(--accent-ink) 64%, transparent);
}

.dashboard-layout {
  grid-template-columns: minmax(0, 390px) minmax(0, 1fr);
  gap: 24px;
  padding: 30px 0 78px;
}

.create-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.create-card-head {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.create-card-head h2 {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.create-badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
}

.create-form {
  gap: 15px;
  padding: 20px 22px;
}

.create-form .field-hint {
  font-size: 10px;
}

.create-form .btn-submit {
  margin-top: 2px;
}

.create-card-foot {
  padding: 12px 22px;
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
  font-size: 9.5px;
  color: var(--muted);
}

.geo-note {
  gap: 10px;
  padding: 11px 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.geo-note svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.geo-note p {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
}

.geo-note strong {
  color: var(--ink-soft);
}

.side-tip {
  margin-top: 14px;
  padding: 16px 18px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 16px;
}

.side-tip p {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.links-column {
  min-width: 0;
}

.links-head {
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 18px;
}

.links-head h2 {
  margin-top: 4px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.links-count {
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--muted);
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 210px;
  padding: 0 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.search-form svg {
  color: var(--muted);
}

.search-form input {
  width: 100%;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 11.5px;
}

.search-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--glow);
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.link-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 74px 76px 28px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.link-row:hover {
  transform: translateX(2px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.link-row.is-inactive {
  opacity: 0.64;
}

.link-index {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
}

.link-slug {
  gap: 1px;
  font-size: 13px;
}

.link-slug span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted);
}

.link-slug strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.link-dest {
  margin-top: 2px;
  overflow: hidden;
  font-size: 10.5px;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-flags {
  gap: 4px;
  margin-top: 6px;
}

.link-metric {
  text-align: right;
}

.link-metric strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.link-metric span {
  font-size: 8.5px;
  color: var(--muted);
}

.link-date {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--muted);
}

.row-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
}

.link-row:hover .row-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.links-empty {
  padding: 54px 28px;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
}

.links-empty h3 {
  margin-top: 12px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.links-empty p {
  max-width: 420px;
  margin: 7px auto 18px;
  font-size: 12px;
  color: var(--muted);
}

.empty-mark {
  width: 46px;
  height: 46px;
  margin: 0 auto;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 14px;
  color: var(--accent);
  font-size: 22px;
  line-height: 44px;
}

.pagination {
  margin-top: 20px;
}

.page-button {
  background: var(--surface);
  border-color: var(--line);
  border-radius: 9px;
  color: var(--ink-soft);
}

.page-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.page-status {
  font-size: 10.5px;
  color: var(--muted);
}

/* ---------------------------------------------------------
   Profile
   --------------------------------------------------------- */

.profile-hero {
  padding: 48px 0 22px;
}

.profile-title-row {
  gap: 30px;
  margin-top: 26px;
}

.profile-title-row h1 {
  margin-top: 12px;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.058em;
}

.profile-title-row h1 em {
  color: var(--accent);
}

.profile-title-row p {
  max-width: 560px;
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.profile-back {
  flex: 0 0 auto;
}

.profile-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding: 22px 0 78px;
}

.profile-card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.profile-card-head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.profile-avatar-large {
  width: 112px;
  height: 112px;
  flex: 0 0 112px;
  overflow: hidden;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--glow);
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-large .avatar-fallback {
  width: 100%;
  height: 100%;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
}

.profile-card-copy h2 {
  margin-top: 4px;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.profile-card-copy > p {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted);
}

.profile-card-copy .status-ready {
  display: inline-flex;
  margin-top: 10px;
}

.profile-form {
  margin-top: 22px;
}

.profile-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.profile-avatar-field {
  grid-column: 1 / -1;
}

.avatar-upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px dashed var(--line-strong);
  border-radius: 13px;
}

.avatar-upload-button {
  min-height: 38px;
  padding: 0 14px;
  font-size: 11px;
  cursor: pointer;
}

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

.inline-reset {
  padding: 0;
  background: transparent;
  border: 0;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-reset:hover {
  color: var(--accent-deep);
}

.avatar-upload-status {
  font-size: 10px;
  color: var(--muted);
}

.avatar-upload-status.is-error {
  color: #dc2626;
}

html[data-theme="dark"] .avatar-upload-status.is-error {
  color: #fca5a5;
}

.avatar-url-row {
  margin-top: 10px;
}

.avatar-url-row > span {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  color: var(--muted);
}

.profile-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.profile-form-foot p {
  max-width: 430px;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--muted);
}

.profile-side {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-facts {
  margin-top: 12px;
}

.profile-facts > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.profile-facts > div:last-child {
  border-bottom: 1px solid var(--line);
}

.profile-facts dt {
  font-size: 10px;
  color: var(--muted);
}

.profile-facts dd {
  max-width: 180px;
  overflow-wrap: anywhere;
  font-size: 11px;
  text-align: right;
  color: var(--ink-soft);
}

.profile-note-card p {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.profile-note-card .text-link {
  margin-top: 12px;
}

/* ---------------------------------------------------------
   Explore
   --------------------------------------------------------- */

.explore-head {
  padding: 50px 0 40px;
  border-bottom: 1px solid var(--line);
}

.explore-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: end;
  margin-top: 28px;
}

.explore-title-row h1 {
  margin-top: 16px;
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.explore-title-row h1 em {
  color: var(--accent);
}

.explore-intro p {
  max-width: 440px;
  font-size: 13px;
  line-height: 1.78;
  color: var(--ink-soft);
}

.explore-intro .btn {
  margin-top: 18px;
}

.explore-list-section {
  padding: 34px 0 56px;
}

.explore-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.explore-card {
  display: flex;
  flex-direction: column;
  min-height: 248px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s var(--ease), border-color 0.22s ease, box-shadow 0.22s ease;
}

.explore-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.12);
}

.explore-card-top {
  display: flex;
  align-items: center;
  gap: 9px;
}

.card-number {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
}

.domain-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--muted);
}

.domain-tag > span {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  background: var(--accent-soft);
  border-radius: 50%;
  color: var(--accent);
  font-size: 7.5px;
}

.explore-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: auto;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.explore-card:hover .explore-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.explore-card h2 {
  margin-top: 18px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.explore-card > p {
  margin-top: 7px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.explore-card-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 8px;
  color: var(--muted);
}

.explore-empty {
  padding: 60px 28px;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
}

.explore-empty h2 {
  font-weight: 600;
}

.explore-empty > p:not(.mono-label) {
  font-size: 12px;
  color: var(--muted);
}

.empty-big-mark {
  color: var(--accent);
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
}

.explore-note {
  margin-top: 24px;
  padding-bottom: 20px;
}

.explore-note-card {
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 28px;
  padding: 22px 26px;
  background: var(--footer-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  color: var(--footer-text);
}

.explore-note-card .mono-label {
  color: rgba(232, 239, 250, 0.42);
}

.explore-note-card > p {
  font-size: 11px;
  line-height: 1.7;
  color: var(--footer-muted);
}

.explore-note-card .text-link {
  color: var(--lime);
}

/* ---------------------------------------------------------
   Login
   --------------------------------------------------------- */

.login-main {
  padding: 58px 0 96px;
}

.login-stage {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 58px;
  align-items: center;
}

.login-editorial h1 {
  margin-top: 18px;
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.login-editorial h1 em {
  color: var(--accent);
}

.login-lede {
  max-width: 520px;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.78;
  color: var(--ink-soft);
}

.login-domain-card {
  max-width: 420px;
  margin-top: 28px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-float);
  transform: rotate(-1deg);
}

.login-domain-head,
.login-domain-foot {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--muted);
}

.login-domain-url {
  margin: 14px 0;
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}

.login-domain-url strong {
  color: var(--accent);
}

.login-domain-url i {
  background: var(--accent);
}

.login-points {
  margin-top: 26px;
}

.login-points p {
  font-size: 11px;
  color: var(--muted);
}

.login-points span {
  color: var(--accent);
}

.login-card {
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-float);
}

.login-card h2 {
  margin-top: 8px;
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.login-card-lede {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.google-button {
  min-height: 52px;
  margin-top: 20px;
  padding: 0 16px;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.google-button:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--glow), 0 12px 28px rgba(15, 23, 42, 0.08);
}

.config-notice {
  margin-top: 18px;
  padding: 13px;
  background: color-mix(in srgb, #f59e0b 10%, transparent);
  border: 1px solid color-mix(in srgb, #f59e0b 32%, transparent);
  border-radius: 12px;
}

.config-notice p {
  font-size: 11px;
  color: var(--ink-soft);
}

.dev-login {
  margin-top: 16px;
  padding: 13px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.dev-login > p {
  font-size: 10.5px;
  color: var(--muted);
}

.dev-login > p span {
  color: var(--accent);
}

.login-divider {
  margin: 22px 0 16px;
}

.login-divider::before,
.login-divider::after {
  background: var(--line);
}

.login-divider span {
  background: var(--surface);
  color: var(--muted);
  font-size: 9px;
}

.login-consent {
  font-size: 10.5px;
  line-height: 1.65;
  color: var(--muted);
}

.login-consent a {
  color: var(--accent);
}

.back-link {
  margin-top: 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
}

.back-link:hover {
  color: var(--accent);
}

/* ---------------------------------------------------------
   Legal pages
   --------------------------------------------------------- */

.legal-main {
  padding: 40px 0 86px;
}

.legal-header {
  margin: 38px 0 42px;
}

.legal-header h1 {
  margin-top: 18px;
  font-size: clamp(48px, 6.6vw, 82px);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.062em;
}

.legal-header h1 em {
  color: var(--accent);
}

.legal-deck {
  margin-top: 20px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.legal-meta {
  margin-top: 22px;
  border-top-color: var(--line-strong);
  font-size: 8.5px;
  color: var(--muted);
}

.legal-layout {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
}

.legal-toc {
  position: sticky;
  top: 96px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.legal-toc .mono-label {
  margin-bottom: 10px;
}

.legal-toc a {
  display: block;
  padding: 6px 0;
  font-size: 10.5px;
  color: var(--muted);
}

.legal-toc a:hover {
  color: var(--accent);
}

.legal-copy {
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

.legal-callout {
  padding: 16px 18px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 14px;
}

.legal-callout p {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.legal-copy section {
  margin-top: 30px;
}

.legal-copy h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.legal-copy h2 span {
  margin-right: 9px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  color: var(--accent);
}

.legal-copy p,
.legal-copy li {
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.legal-copy ul {
  margin-top: 8px;
}

.legal-copy li {
  position: relative;
  padding-left: 15px;
}

.legal-copy li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.legal-copy a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------
   Link detail
   --------------------------------------------------------- */

.detail-head {
  padding: 42px 0 28px;
}

.detail-title-row {
  gap: 28px;
  margin-top: 24px;
}

.detail-title h1 {
  margin-top: 8px;
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 700;
  letter-spacing: -0.055em;
}

.detail-title h1 span {
  color: var(--muted);
  font-weight: 500;
}

.detail-title h1 em {
  color: var(--accent);
}

.detail-title > p {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.detail-actions {
  gap: 8px;
}

.created-banner {
  margin-top: 24px;
  padding: 18px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 18px;
}

.created-copy h2 {
  font-size: 23px;
  font-weight: 600;
}

.created-copy > p {
  font-size: 11.5px;
  color: var(--ink-soft);
}

.created-link {
  background: var(--surface);
  border-color: var(--line);
  border-radius: 10px;
}

.created-link code {
  font-size: 10px;
  color: var(--accent);
}

.detail-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  padding: 24px 0 78px;
}

.metric-grid {
  gap: 10px;
}

.metric-card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.metric-card:first-child {
  background: linear-gradient(155deg, var(--accent), var(--accent-deep));
  border-color: transparent;
  color: var(--accent-ink);
  box-shadow: 0 18px 40px var(--glow-strong);
}

.metric-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.metric-card:first-child .metric-label,
.metric-card:first-child span {
  color: color-mix(in srgb, var(--accent-ink) 66%, transparent);
}

.metric-card strong {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.metric-card span {
  font-size: 9.5px;
  color: var(--muted);
}

.panel {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.panel-head h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.panel-caption {
  font-size: 9.5px;
  color: var(--muted);
}

.chart-total strong {
  font-family: var(--font-display);
  font-weight: 600;
}

.bar-track {
  background: var(--surface-soft);
}

.bar-fill {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
}

.bar-label,
.bar-count {
  font-size: 8px;
  color: var(--muted);
}

.click-table th {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.click-table td {
  font-size: 10.5px;
  color: var(--ink-soft);
}

.click-table tr:last-child td {
  border-bottom: 0;
}

.detail-side {
  gap: 14px;
}

.qr-frame {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.qr-caption {
  font-size: 10px;
  color: var(--muted);
}

.download-link {
  font-size: 10.5px;
  color: var(--accent);
}

.detail-list > div {
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.detail-list dt {
  font-size: 9.5px;
  color: var(--muted);
}

.detail-list dd {
  font-size: 10.5px;
  color: var(--ink-soft);
}

.detail-list a {
  color: var(--accent);
}

.settings-card details summary {
  cursor: pointer;
}

.settings-card .mono-label {
  color: var(--muted);
}

.inline-warning {
  padding: 9px 11px;
  background: color-mix(in srgb, #f59e0b 10%, transparent);
  border: 1px solid color-mix(in srgb, #f59e0b 28%, transparent);
  border-radius: 9px;
  font-size: 10px;
  color: var(--ink-soft);
}

.danger-button {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid color-mix(in srgb, #ef4444 35%, var(--line));
  border-radius: 10px;
  font-size: 10.5px;
  font-weight: 600;
  color: #dc2626;
}

html[data-theme="dark"] .danger-button {
  color: #fca5a5;
}

.danger-button:hover {
  background: color-mix(in srgb, #ef4444 10%, transparent);
  border-color: #ef4444;
}

/* ---------------------------------------------------------
   Public link preview
   --------------------------------------------------------- */

.preview-main {
  padding: 34px 0 80px;
}

.preview-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  margin-top: 22px;
}

.preview-card {
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-float);
}

.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.preview-source {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.domain-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 11px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}

.preview-source span {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--muted);
}

.preview-source strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.preview-card h1 {
  margin-top: 24px;
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.preview-desc {
  max-width: 640px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.preview-action {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.preview-target {
  margin-top: 24px;
  padding: 13px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.preview-target code {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 10.5px;
  color: var(--ink-soft);
}

.preview-disclaimer {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding: 13px;
  background: color-mix(in srgb, #f59e0b 8%, transparent);
  border: 1px solid color-mix(in srgb, #f59e0b 24%, transparent);
  border-radius: 12px;
}

.preview-disclaimer svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #b45309;
}

html[data-theme="dark"] .preview-disclaimer svg {
  color: #fbbf24;
}

.preview-disclaimer p {
  font-size: 10.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.preview-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.preview-qr {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.preview-qr img {
  width: 190px;
  height: 190px;
  margin: 12px auto 0;
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.preview-facts {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.preview-facts > div {
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.preview-facts > div:first-child {
  border-top: 0;
}

.preview-facts dt {
  font-size: 9.5px;
  color: var(--muted);
}

.preview-facts dd {
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-soft);
}

.preview-explore-link {
  padding: 0 4px;
}

.preview-about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 50px;
  margin-top: 50px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.preview-about h2 {
  margin-top: 14px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.preview-about h2 em {
  color: var(--accent);
}

.preview-about-copy p {
  font-size: 12px;
  line-height: 1.78;
  color: var(--ink-soft);
}

.preview-about-copy p + p {
  margin-top: 10px;
}

/* ---------------------------------------------------------
   Error
   --------------------------------------------------------- */

.error-main {
  padding: 70px 0 100px;
}

.error-copy h1 {
  font-size: clamp(40px, 5.2vw, 64px);
  font-weight: 700;
  letter-spacing: -0.055em;
}

.error-copy > p {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.error-hint {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted);
}

.error-number {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.08em;
}

.error-ticket {
  background: var(--footer-bg);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--footer-text);
  box-shadow: var(--shadow-float);
}

.error-ticket span,
.error-ticket small {
  color: var(--footer-muted);
}

.error-ticket i {
  background: var(--lime);
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 1100px) {
  .hero-grid--v2 {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
    gap: 30px;
  }

  .cap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-layout {
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  }

  .dash-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-layout,
  .detail-layout,
  .preview-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

  .explore-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-layout {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
    margin-left: 0;
  }

  .header-actions {
    margin-left: auto;
  }

  .mobile-nav:not([hidden]) {
    display: block;
  }

  .hero-grid--v2,
  .guide-hero-grid,
  .login-stage {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-copy--v2 h1 {
    max-width: 720px;
  }

  .hero-visual {
    min-height: 500px;
    margin-top: 6px;
  }

  .section-heading,
  .dash-title-row,
  .profile-title-row,
  .detail-title-row,
  .explore-title-row,
  .faq-page-head,
  .preview-about {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .section-aside {
    max-width: 560px;
  }

  .signal-strip--v2 .signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-strip--v2 .signal-item {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-right: 16px;
  }

  .signal-strip--v2 .signal-item:nth-child(-n + 2) {
    border-top: 0;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-under-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faq-page-body {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .faq-page-aside,
  .profile-side,
  .detail-side,
  .legal-toc {
    position: static;
  }

  .dashboard-layout,
  .profile-layout,
  .detail-layout,
  .preview-layout {
    grid-template-columns: 1fr;
  }

  .dash-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .create-column {
    order: 0;
  }

  .links-column {
    order: 1;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 30px;
  }

  .footer-col--note {
    grid-column: 1 / -1;
    padding-top: 20px;
    border-top: 1px solid var(--footer-line);
  }

  .cta-panel {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 38px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .explore-note-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 720px) {
  .container {
    padding-inline: 20px;
  }

  .section {
    padding: 70px 0;
  }

  .header-inner {
    min-height: 64px;
    gap: 12px;
  }

  .brand-word {
    font-size: 16px;
  }

  .brand-domain {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .account-trigger-name {
    display: none;
  }

  .account-trigger {
    padding-right: 6px;
  }

  .account-chevron {
    display: none;
  }

  .hero--v2 {
    padding: 58px 0 72px;
  }

  .hero-copy--v2 h1 {
    font-size: clamp(44px, 12vw, 60px);
  }

  .hero-copy--v2 .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-visual {
    min-height: 470px;
  }

  .scene-chip--seo,
  .scene-chip--clicks {
    display: none;
  }

  .ticket-scene {
    max-width: 390px;
  }

  .ticket-sticker {
    width: 58px;
    height: 58px;
    top: -16px;
    left: -10px;
    font-size: 7.5px;
  }

  .ticket-sticker span {
    font-size: 19px;
  }

  .signal-strip--v2 .signal-item p {
    font-size: 10.5px;
  }

  .cap-grid {
    grid-template-columns: 1fr;
  }

  .cap-card {
    min-height: 330px;
  }

  .cta-section {
    padding: 64px 0 80px;
  }

  .cta-panel {
    padding: 28px;
    border-radius: 22px;
  }

  .guide-hero {
    padding: 40px 0 56px;
  }

  .guide-steps-section,
  .guide-under-section {
    padding: 56px 0;
  }

  .guide-scene {
    transform: none;
    padding: 18px;
  }

  .guide-step,
  .faq-item,
  .side-card {
    border-radius: 16px;
  }

  .faq-page-hero {
    padding: 40px 0 26px;
  }

  .faq-page-body {
    padding: 22px 0 64px;
  }

  .dash-hero {
    padding: 34px 0 24px;
  }

  .dash-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .stat-card {
    min-height: 128px;
    padding: 16px;
  }

  .stat-card strong {
    font-size: 27px;
  }

  .dashboard-layout {
    padding: 22px 0 64px;
  }

  .links-head {
    flex-direction: column;
    align-items: stretch;
  }

  .search-form {
    min-width: 0;
  }

  .link-row {
    grid-template-columns: 24px minmax(0, 1fr) 58px 26px;
    gap: 9px;
    padding: 12px;
  }

  .link-date {
    display: none;
  }

  .link-metric strong {
    font-size: 15px;
  }

  .profile-card {
    padding: 20px;
  }

  .profile-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-avatar-large {
    width: 92px;
    height: 92px;
    flex-basis: 92px;
  }

  .profile-fields {
    grid-template-columns: 1fr;
  }

  .profile-form-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .avatar-upload-row {
    align-items: flex-start;
  }

  .explore-grid {
    grid-template-columns: 1fr;
  }

  .explore-card {
    min-height: 220px;
  }

  .login-card,
  .legal-copy {
    padding: 22px;
  }

  .detail-title h1 {
    font-size: clamp(34px, 9vw, 46px);
  }

  .detail-actions {
    width: 100%;
  }

  .detail-actions .btn {
    flex: 1 1 auto;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .preview-card {
    padding: 22px;
  }

  .preview-action .btn {
    flex: 1 1 auto;
  }

  .preview-about {
    margin-top: 34px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .site-footer {
    padding-top: 50px;
    padding-bottom: 110px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .dock {
    width: calc(100vw - 16px);
    padding: 7px 6px;
    border-radius: 22px;
  }

  .dock-item {
    width: 20%;
    padding: 6px 2px;
  }

  .dock-label {
    font-size: 8px;
  }

  .dock-create-mark {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .dock-item--create {
    margin-top: -18px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 16px;
  }

  .hero-copy--v2 h1 {
    font-size: 42px;
  }

  .hero-copy--v2 .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-copy--v2 .hero-actions .btn {
    width: 100%;
  }

  .hero-copy--v2 .hero-stats {
    gap: 0;
  }

  .hero-copy--v2 .hero-stats dd {
    font-size: 20px;
  }

  .hero-visual {
    min-height: 430px;
  }

  .shorten-form {
    padding: 16px;
  }

  .ticket-topline,
  .ticket-bottom {
    padding-inline: 16px;
  }

  .ticket-perforation {
    margin-inline: -16px;
  }

  .dash-stats {
    grid-template-columns: 1fr;
  }

  .link-row {
    grid-template-columns: minmax(0, 1fr) 54px 24px;
  }

  .link-index {
    display: none;
  }

  .profile-fields {
    gap: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-col--note {
    grid-column: auto;
  }

  .explore-title-row h1,
  .guide-hero h1,
  .faq-page-head h1,
  .login-editorial h1 {
    font-size: 40px;
  }

  .dock-label {
    font-size: 7.5px;
  }

  .dock-item svg {
    width: 19px;
    height: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}




