/* Tool-Lifes — refined visual layer (loaded after style.css).
 * Calm editorial atlas: display serif + clean sans, cool slate, quiet chrome. */

:root {
  --accent: #0e7490;
  --accent2: #155e75;
  --bg: #eef2f6;
  --surface: #ffffff;
  --ink: #0a1628;
  --ink2: #334155;
  --muted: #64748b;
  --line: #d8dee8;
  --track: #e4e9f0;
  --radius: 12px;
  --shadow: 0 1px 0 rgba(10, 22, 40, .04), 0 12px 32px -20px rgba(10, 22, 40, .18);
  --shadow-soft: 0 1px 0 rgba(10, 22, 40, .03);
  --maxw: 1100px;
  --font-sans: "Figtree", "Apple SD Gothic Neo", "Noto Sans KR", "Hiragino Sans",
    "Yu Gothic", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-display: "Newsreader", "Iowan Old Style", "Apple SD Gothic Neo", "Noto Serif KR",
    "Hiragino Mincho ProN", "Songti SC", Georgia, serif;
}

body {
  background:
    radial-gradient(1200px 480px at 12% -8%, rgba(14, 116, 144, .07), transparent 55%),
    radial-gradient(900px 420px at 92% 8%, rgba(15, 23, 42, .04), transparent 50%),
    var(--bg);
  font-family: var(--font-sans);
  line-height: 1.7;
  font-feature-settings: "ss01" on, "kern" on;
}

h1, h2, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.02em;
}
h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
h3 {
  font-family: var(--font-sans);
  font-weight: 650;
  letter-spacing: -.015em;
}

.site-header {
  background: rgba(247, 248, 250, .78);
  backdrop-filter: saturate(1.2) blur(14px);
  border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { height: 56px; }
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -.03em;
}
.lang-select {
  border-radius: 999px;
  padding: 6px 30px 6px 14px;
  font-size: .84rem;
  font-weight: 500;
}

.hero {
  color: #f8fafc;
  background:
    radial-gradient(ellipse 70% 80% at 88% 0%, rgba(14, 116, 144, .28), transparent 58%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(21, 94, 117, .18), transparent 55%),
    linear-gradient(165deg, #07111f 0%, #0a1628 48%, #123044 100%) !important;
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none; opacity: .55;
  inset: 0 !important;
  height: auto !important;
  background: none !important;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) !important;
  background-size: 48px 48px !important;
}
.hero .kicker {
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
  color: #94a8bc;
  font-size: .72rem;
  letter-spacing: .16em;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.15rem);
  font-weight: 600;
  letter-spacing: -.035em;
  max-width: 14em;
}
.hero .lede {
  color: #b6c5d6;
  font-size: 1.05rem;
  max-width: 36em;
  font-family: var(--font-sans);
  font-weight: 450;
  line-height: 1.65;
}

.card {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
a.card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: var(--shadow);
}

/* ---------- hub ---------- */
.hub-page main { padding-top: 40px; }
.hub-hero {
  text-align: left;
  padding: clamp(64px, 12vh, 104px) 0 clamp(52px, 8vh, 72px) !important;
  min-height: min(72vh, 620px);
  display: flex;
  align-items: flex-end;
}
.hub-hero .wrap { width: 100%; padding-bottom: 8px; }
.hub-brand {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: #fff;
  margin: 0 0 22px;
}
.hub-brand .dot { color: #5eead4; }
.hub-hero h1 {
  font-size: clamp(2.35rem, 6.2vw, 4rem) !important;
  max-width: 11em;
  margin: 0 0 18px !important;
  font-weight: 600;
  letter-spacing: -.04em;
}
.hub-hero .lede {
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  max-width: 32em;
  color: #a8bacd !important;
  margin: 0 0 28px !important;
}
.hub-hero::after {
  width: min(58vmin, 520px);
  height: min(58vmin, 520px);
  right: -8%;
  top: 8%;
  opacity: 1;
  background: radial-gradient(circle at 40% 40%, rgba(94, 234, 212, .22), rgba(14, 116, 144, .12) 42%, transparent 68%);
  filter: blur(2px);
}
.hub-stats { display: none !important; }

.hub-group h2 {
  font-size: .78rem !important;
  font-family: var(--font-sans) !important;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--line);
}

.hub-grid {
  gap: 0 !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  border-top: 1px solid var(--line);
}
a.app-tile,
.app-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 22px 26px 26px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 0 !important;
  border-right: 1px solid var(--line) !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important;
  border-top: 0 !important;
  box-shadow: none !important;
  color: var(--ink);
  text-decoration: none;
  transition: background .2s ease;
}
a.app-tile:hover,
.app-tile:hover {
  text-decoration: none;
  background: var(--surface);
  transform: none !important;
  box-shadow: none !important;
}
.app-tile-accent {
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 3px;
  border-radius: 2px;
  background: var(--card-accent, var(--accent));
  opacity: .85;
}
.app-tile .icons {
  font-size: 1.15rem;
  letter-spacing: .2em;
  line-height: 1;
  opacity: .72;
  filter: grayscale(.15);
}
.app-tile h3 {
  margin: 2px 0 0;
  font-size: 1.18rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.025em;
}
.app-tile .sub {
  color: var(--muted);
  font-size: .9rem;
  margin: 0;
  line-height: 1.55;
  flex: 1;
}
.app-tile .go {
  color: var(--ink);
  font-weight: 650;
  font-size: .86rem;
  letter-spacing: -.01em;
  margin-top: 6px;
}
.app-tile:hover .go { color: var(--accent); }

.hub-featured { margin: 0 0 2.8rem !important; }
.hub-featured > h2 {
  font-size: .78rem !important;
  font-family: var(--font-sans) !important;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem !important;
}
.hub-featured-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.hub-featured-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color .18s ease, transform .18s ease;
}
.hub-featured-card:hover {
  text-decoration: none;
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  transform: translateY(-1px);
}
.hub-featured-card strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.02em;
}
.hub-featured-card span {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}

.hub-hero .hub-search,
.hub-page .hub-search {
  display: flex;
  gap: 0 !important;
  margin: 0 !important;
  max-width: 440px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
}
.hub-hero .hub-search input,
.hub-page .hub-hero .hub-search input {
  flex: 1;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 14px 18px !important;
  background: transparent !important;
  color: #fff !important;
}
.hub-hero .hub-search input::placeholder { color: #8fa3b8; }
.hub-hero .hub-search button,
.hub-page .hub-hero .hub-search button {
  border: 0;
  border-radius: 0 !important;
  padding: 14px 20px !important;
  font-weight: 650;
  background: #5eead4 !important;
  color: #0a1628 !important;
}
.hub-hero .hub-search button:hover { background: #99f6e4 !important; }

.search-page .hub-search {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  gap: 0;
}
.search-page .hub-search input {
  border: 0;
  color: var(--ink);
  background: transparent;
}
.search-page .hub-search button {
  background: var(--accent);
  color: #fff;
  border-radius: 0;
}

.tl-search-btn:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.tl-palette-item:hover,
.tl-palette-item.is-active { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.tl-palette-app { color: var(--accent2); }
.tl-read-progress i {
  background: linear-gradient(90deg, #0e7490, #155e75);
}

.site-footer { background: #07111f; }

@media (prefers-reduced-motion: reduce) {
  .app-tile,
  .hub-featured-card,
  a.card { transition: none; }
}
