/* =========================================================
   SEOURL — 2026 polish layer
   Direction: precise instrument, deep field, one lit signal.
   Loaded after redesign.css. 3D depth, lit actions, iPhone dock.
   ========================================================= */

:root {
  --lit: 0 1px 0 rgba(255, 255, 255, 0.55) inset;
  --depth-1: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 1px rgba(15, 23, 42, 0.03);
  --depth-2: 0 10px 30px -12px rgba(15, 23, 42, 0.22), 0 2px 6px rgba(15, 23, 42, 0.06);
  --depth-3: 0 34px 70px -28px rgba(15, 23, 42, 0.36), 0 8px 20px -10px rgba(15, 23, 42, 0.18);
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  --signal: 94 234 212;
}

html[data-theme="dark"] {
  --depth-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --depth-2: 0 12px 34px -14px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.3);
  --depth-3: 0 40px 80px -30px rgba(0, 0, 0, 0.7), 0 10px 24px -12px rgba(0, 0, 0, 0.5);
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* ---------------------------------------------------------
   Type — professional, quiet, tabular where it counts
   --------------------------------------------------------- */

body {
  font-feature-settings: "cv05" 1, "ss01" 1;
}

h1,
h2,
h3,
h4,
.brand-word {
  font-family: var(--font-display);
  letter-spacing: -0.028em;
}

h1 em,
h2 em,
h3 em {
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 em {
  position: relative;
}

.stat-card strong,
.link-metric strong,
.hero-stats dd,
[data-stat] {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.02em;
}

.mono-label {
  letter-spacing: 0.06em;
}

/* ---------------------------------------------------------
   3D depth — layered surfaces with a light top edge
   --------------------------------------------------------- */

.stat-card,
.cap-card,
.create-card,
.side-card,
.profile-card,
.login-card,
.explore-card,
.link-detail-card,
.settings-card,
.faq-item {
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  box-shadow: var(--depth-2), var(--edge);
  transform-style: preserve-3d;
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), border-color 0.32s var(--ease);
}

.cap-card:hover,
.explore-card:hover {
  transform: perspective(900px) translateY(-6px) rotateX(2.5deg);
  box-shadow: var(--depth-3), var(--edge);
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
}

/* The ticket / short-link moment gets real weight */
.shorten-ticket,
.login-domain-card {
  position: relative;
  box-shadow:
    0 42px 82px -34px rgba(15, 23, 42, 0.45),
    0 16px 32px -18px rgba(15, 23, 42, 0.26),
    var(--edge);
  transition: box-shadow 0.32s var(--ease);
}

/* moving sheen that sells the tilt */
.shorten-ticket::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.04) 26%, transparent 46%);
  opacity: 0.5;
  pointer-events: none;
}

html[data-theme="dark"] .shorten-ticket::after {
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.05) 24%, transparent 44%);
  opacity: 0.6;
}

.ticket-scene:hover .shorten-ticket {
  box-shadow:
    0 54px 98px -36px rgba(15, 23, 42, 0.5),
    0 20px 40px -18px rgba(15, 23, 42, 0.3),
    var(--edge),
    0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .ticket-scene {
    transform: rotateX(6deg);
  }
}

/* Brand mark reads as a physical object */
.brand-mark img {
  box-shadow: 0 10px 22px -8px rgba(2, 8, 20, 0.5), var(--edge);
}

/* ---------------------------------------------------------
   Lit actions — the one thing that glows on purpose
   --------------------------------------------------------- */

.btn {
  position: relative;
  isolation: isolate;
  transform: translateZ(0);
}

.btn-primary,
.btn-ink {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 74%, #ffffff), var(--accent) 52%, var(--accent-deep));
  border-color: color-mix(in srgb, var(--accent-deep) 78%, #000000);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 -2px 0 rgba(0, 0, 0, 0.22) inset,
    0 10px 26px -8px color-mix(in srgb, var(--accent) 62%, transparent),
    0 2px 5px rgba(15, 23, 42, 0.18);
}

/* the "lit" halo behind the action */
.btn-primary::before,
.btn-ink::before,
.btn-lime::before {
  content: "";
  position: absolute;
  inset: -6px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(60% 120% at 50% 120%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 72%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.btn-primary:hover,
.btn-ink:hover {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 84%, #ffffff), var(--accent) 44%, var(--accent-deep));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 -2px 0 rgba(0, 0, 0, 0.24) inset,
    0 18px 40px -10px color-mix(in srgb, var(--accent) 74%, transparent),
    0 3px 8px rgba(15, 23, 42, 0.2);
}

.btn-primary:hover::before,
.btn-ink:hover::before,
.btn-lime:hover::before,
.btn-primary:focus-visible::before,
.btn-ink:focus-visible::before {
  opacity: 1;
}

.btn-lime {
  background: linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--lime) 88%, #ffffff) 40%, var(--lime));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 -2px 0 rgba(0, 0, 0, 0.14) inset,
    0 12px 30px -8px color-mix(in srgb, var(--lime) 60%, transparent);
}

.btn-lime::before {
  background: radial-gradient(60% 120% at 50% 120%, color-mix(in srgb, var(--lime) 60%, transparent), transparent 72%);
}

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

.btn-outline {
  box-shadow: var(--depth-1), var(--edge);
}

.btn-outline:hover {
  box-shadow: 0 0 0 4px var(--glow), var(--depth-2), var(--edge);
}

/* Create action in the dock gets the same lit treatment */
.dock-create-mark {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 -2px 0 rgba(0, 0, 0, 0.22) inset,
    0 16px 30px -10px color-mix(in srgb, var(--accent) 78%, transparent),
    0 0 0 1px color-mix(in srgb, var(--accent-deep) 60%, transparent);
}

.dock-item--create:hover .dock-create-mark {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 -2px 0 rgba(0, 0, 0, 0.24) inset,
    0 22px 40px -10px color-mix(in srgb, var(--accent) 88%, transparent),
    0 0 0 1px color-mix(in srgb, var(--accent-deep) 70%, transparent);
}

/* ---------------------------------------------------------
   iPhone-style touchbar
   --------------------------------------------------------- */

.dock {
  gap: 0;
  width: min(560px, calc(100vw - 20px));
  padding: 9px 10px 20px;
  background: color-mix(in srgb, var(--surface-raised) 74%, transparent);
  border: 1px solid color-mix(in srgb, var(--line-strong) 46%, transparent);
  border-radius: 32px;
  box-shadow:
    var(--depth-3),
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  -webkit-backdrop-filter: blur(30px) saturate(1.9);
  backdrop-filter: blur(30px) saturate(1.9);
}

html[data-theme="dark"] .dock {
  background: color-mix(in srgb, var(--surface-raised) 68%, transparent);
  box-shadow:
    var(--depth-3),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

/* iOS home indicator */
.dock::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 128px;
  height: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 34%, transparent);
  transform: translateX(-50%);
  pointer-events: none;
}

html[data-theme="dark"] .dock::after {
  background: color-mix(in srgb, var(--ink) 44%, transparent);
}

.dock-item {
  position: relative;
  width: 80px;
  padding: 8px 6px 9px;
  border-radius: 18px;
  color: var(--muted);
}

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

.dock-item:hover,
.dock-item.is-active {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

.dock-item.is-active::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  transform: translateX(-50%);
}

.dock-label {
  font-size: 9.5px;
  font-weight: 600;
}

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

/* keep the home indicator clear on small screens */
@media (max-width: 640px) {
  .dock {
    padding: 8px 8px 18px;
    border-radius: 28px;
  }

  .dock::after {
    width: 108px;
    height: 4px;
    bottom: 7px;
  }

  .dock-item {
    width: auto;
    flex: 1;
  }

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

/* ---------------------------------------------------------
   Signature — the routed signal line
   --------------------------------------------------------- */

.hero-aurora {
  opacity: 0.7;
}

.eyebrow-dot {
  box-shadow: 0 0 0 4px var(--glow), 0 0 10px color-mix(in srgb, var(--accent) 60%, transparent);
}

.status-ready i,
.cap-badge--live i {
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 16%, transparent), 0 0 8px currentColor;
}

/* ---------------------------------------------------------
   Motion — one curve, no loops
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .btn,
  .cap-card,
  .explore-card,
  .dock-item,
  .dock-create-mark {
    transition: none;
  }
}
