/* ══════════════════════════════════════
   TOKENS
══════════════════════════════════════ */
:root {
  --bg:      #07070f;
  --bg2:     #0d0d1a;
  --bg3:     #12121f;
  --surface: #16162a;
  --border:  rgba(255,255,255,0.07);
  --text:    #eeeef8;
  --muted:   #6b7280;
  --muted2:  #9ca3af;
  --accent:  oklch(0.72 0.17 160);
  --accent2: oklch(0.75 0.15 200);
  --violet:  oklch(0.65 0.25 280);
  --font-d:  'Syne', sans-serif;
  --font-b:  'DM Sans', sans-serif;
  --radius:  14px;
}

/* ══════════════════════════════════════
   RESET & BASE
══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
body::after {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 9000;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.022;
}
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-b); cursor: pointer; }
input, button { outline: none; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1e1e36; border-radius: 3px; }

/* ══════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════ */
@keyframes fadeUp   { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:none; } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }
@keyframes orb      { 0%,100% { transform:scale(1);   opacity:.45; }
                      50%      { transform:scale(1.08); opacity:.7;  } }

.fade-up { animation: fadeUp .55s ease both; }
.fade-in { animation: fadeIn .3s ease both; }
[style*="--d"] { animation-delay: var(--d,0s); }

/* ══════════════════════════════════════
   LAYOUT HELPERS
══════════════════════════════════════ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill,minmax(270px,1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
@media(max-width:900px){
  .grid-3,.grid-2 { grid-template-columns:1fr; }
}
@media(max-width:600px){
  .grid-4 { grid-template-columns:1fr; }
}

/* ══════════════════════════════════════
   TYPOGRAPHY
══════════════════════════════════════ */
.display {
  font-family: var(--font-d);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.section-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.grad-text {
  background: linear-gradient(135deg,#fff 30%,var(--accent) 70%,var(--accent2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 0 24px;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(7,7,15,.88);
  border-color: var(--border);
  backdrop-filter: blur(18px);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 9px;
}
.nav-logo-icon {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg,var(--violet),var(--accent2));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-logo-text {
  font-family: var(--font-d); font-weight: 800; font-size: 18px;
  letter-spacing: -.02em;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-block;
  background: none; border: none;
  color: var(--muted2); padding: 6px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500; transition: color .2s, background .2s;
  font-family: var(--font-b);
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-link.active { color: var(--accent); background: rgba(52,211,153,.08); }
.nav-cta {
  display: inline-block;
  background: linear-gradient(135deg,var(--accent),oklch(.65 .17 170));
  border: none; color: #fff; padding: 8px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 600; transition: opacity .2s;
  font-family: var(--font-b);
}
.nav-cta:hover { opacity: .85; }

/* Mobile nav */
@media(max-width:700px){
  .nav-links { display: none; }
}

/* ══════════════════════════════════════
   PAGE WRAPPER
══════════════════════════════════════ */
.page-wrap { padding-top: 64px; animation: fadeIn .25s ease; }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  position: relative; min-height: 88vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
.hero-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  animation: orb 7s ease-in-out infinite;
}
.hero-orb-1 {
  width: 550px; height: 550px; top: 10%; left: 15%;
  background: radial-gradient(circle,oklch(.65 .25 280/.16) 0%,transparent 70%);
  filter: blur(2px);
}
.hero-orb-2 {
  width: 420px; height: 420px; top: 25%; right: 10%;
  background: radial-gradient(circle,oklch(.75 .15 200/.13) 0%,transparent 70%);
  animation-delay: 2.5s; filter: blur(2px);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.022) 1px,transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%,black 40%,transparent 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; padding: 0 24px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; padding: 6px 16px; margin-bottom: 32px;
  font-size: 12px; color: var(--muted2);
}
.hero-pill-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.hero-title { font-size: clamp(42px,6vw,80px); margin-bottom: 24px; }
.hero-sub {
  font-size: clamp(15px,1.8vw,18px); color: var(--muted2);
  font-weight: 300; max-width: 520px; margin: 0 auto 40px; line-height: 1.7;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg,var(--accent),oklch(.65 .17 170));
  border: none; color: #fff; padding: 13px 26px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 4px 24px oklch(.72 .17 160/.3); transition: opacity .2s;
  font-family: var(--font-b); cursor: pointer;
}
.btn-primary:hover { opacity: .87; }
.btn-ghost {
  display: inline-flex; align-items: center;
  background: transparent; border: 1px solid var(--border);
  color: var(--text); padding: 13px 26px; border-radius: 10px;
  font-size: 14px; font-weight: 500; transition: border-color .2s;
  font-family: var(--font-b); cursor: pointer;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.2); }
.hero-stats {
  display: flex; gap: 40px; justify-content: center;
  margin-top: 60px; padding-top: 36px;
  border-top: 1px solid var(--border);
}
.hero-stat-n  { font-family: var(--font-d); font-weight: 700; font-size: 22px; }
.hero-stat-l  { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ══════════════════════════════════════
   SECTIONS
══════════════════════════════════════ */
.section { padding: 72px 0; }
.section-alt { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 36px;
}
.section-title { font-family: var(--font-d); font-weight: 800; font-size: clamp(26px,3.5vw,38px); letter-spacing: -.02em; }
.link-more {
  display: inline-block;
  background: transparent; border: 1px solid var(--border);
  color: var(--muted2); padding: 7px 14px; border-radius: 8px;
  font-size: 13px; transition: border-color .2s, color .2s;
  font-family: var(--font-b);
}
.link-more:hover { border-color: var(--accent); color: var(--accent); }

/* ══════════════════════════════════════
   TOOL CARD
══════════════════════════════════════ */
.tool-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  cursor: pointer; transition: transform .22s ease, border-color .22s, box-shadow .22s, background .22s;
  position: relative; overflow: hidden;
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: oklch(.72 .17 160 / .4);
  box-shadow: 0 12px 36px oklch(.72 .17 160 / .1);
  background: var(--bg3);
}
.tool-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,transparent,oklch(.72 .17 160 / .6),transparent);
  opacity: 0; transition: opacity .22s;
}
.tool-card:hover::before { opacity: 1; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.card-emoji {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.card-name  { font-family: var(--font-d); font-weight: 700; font-size: 16px; margin-bottom: 5px; }
.card-line  { font-size: 13px; color: var(--muted2); line-height: 1.5; margin-bottom: 12px; }
.card-tags  { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.tag {
  font-size: 11px; color: var(--muted); background: var(--surface);
  border: 1px solid var(--border); border-radius: 4px; padding: 2px 7px;
}
.card-footer { display: flex; justify-content: space-between; align-items: center; }
.stars { color: #facc15; font-size: 12px; letter-spacing: 1px; }
.rating-val { color: var(--muted); font-size: 11px; margin-left: 5px; }
.card-price { font-size: 12px; color: var(--muted); }

/* ══════════════════════════════════════
   BADGE
══════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 6px; padding: 2px 8px; font-size: 11px; font-weight: 600; letter-spacing: .04em;
}
.badge-dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.badge-violet { background:oklch(.65 .25 280/.15); color:#a78bfa; border:1px solid oklch(.65 .25 280/.3); }
.badge-violet .badge-dot { background:#a78bfa; }
.badge-cyan   { background:oklch(.75 .15 200/.12); color:#67e8f9; border:1px solid oklch(.75 .15 200/.25); }
.badge-cyan .badge-dot   { background:#67e8f9; }
.badge-emerald{ background:oklch(.72 .17 160/.12); color:#6ee7b7; border:1px solid oklch(.72 .17 160/.25); }
.badge-emerald .badge-dot{ background:#6ee7b7; }
.badge-orange { background:oklch(.72 .18 55/.12); color:#fdba74; border:1px solid oklch(.72 .18 55/.25); }
.badge-orange .badge-dot { background:#fdba74; }
.badge-pink   { background:oklch(.7 .2 340/.12); color:#f9a8d4; border:1px solid oklch(.7 .2 340/.25); }
.badge-pink .badge-dot   { background:#f9a8d4; }

/* ══════════════════════════════════════
   NEWS CARD
══════════════════════════════════════ */
.news-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; cursor: pointer;
  transition: transform .2s, border-color .2s;
  display: flex; flex-direction: column; gap: 10px;
}
.news-card:hover { transform: translateY(-2px); border-color: oklch(.75 .15 200/.3); }
.news-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent2); }
.news-title { font-family: var(--font-d); font-weight: 700; font-size: 16px; line-height: 1.35; }
.news-sum { font-size: 13px; color: var(--muted2); line-height: 1.6; }
.news-date { font-size: 12px; color: var(--muted); margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); }
.hot-badge { background:oklch(.72 .18 55/.15); color:#fdba74; border:1px solid oklch(.72 .18 55/.3); border-radius:5px; padding:1px 7px; font-size:11px; font-weight:600; }

/* ══════════════════════════════════════
   GUIDE CARD
══════════════════════════════════════ */
.guide-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; cursor: pointer;
  transition: transform .2s, border-color .2s;
}
.guide-card:hover { transform: translateY(-2px); border-color: oklch(.72 .17 160/.35); }
.guide-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.guide-time { font-size:12px; color:var(--muted); }
.guide-title { font-family:var(--font-d); font-weight:700; font-size:18px; line-height:1.3; margin-bottom:8px; }
.guide-sub { font-size:13px; color:var(--muted2); line-height:1.6; margin-bottom:14px; }
.guide-tags { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:14px; }
.guide-foot { display:flex; justify-content:space-between; font-size:12px; color:var(--muted); padding-top:14px; border-top:1px solid var(--border); }

/* ══════════════════════════════════════
   PAGE HEADER
══════════════════════════════════════ */
.page-hero {
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 56px 24px 48px;
}
.page-hero-label { font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; margin-bottom:12px; }
.page-hero-title { font-family:var(--font-d); font-weight:800; font-size:clamp(30px,5vw,52px); letter-spacing:-.03em; margin-bottom:12px; }
.page-hero-sub { font-size:15px; color:var(--muted2); font-weight:300; line-height:1.7; max-width:480px; }

/* ══════════════════════════════════════
   EXPLORER — filters + search
══════════════════════════════════════ */
.search-wrap { position:relative; max-width:480px; margin-bottom:28px; }
.search-icon { position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--muted); pointer-events:none; }
#search-input {
  width:100%; background:var(--bg); border:1px solid var(--border);
  border-radius:10px; padding:11px 16px 11px 40px;
  color:var(--text); font-family:var(--font-b); font-size:14px;
  transition:border-color .2s;
}
#search-input:focus { border-color:oklch(.72 .17 160/.5); }
#search-input::placeholder { color:var(--muted); }
.filters { display:flex; gap:7px; flex-wrap:wrap; padding-bottom:0; }
.filter-btn {
  background:var(--bg); border:1px solid var(--border);
  color:var(--muted2); padding:7px 15px; border-radius:8px;
  font-size:13px; font-weight:500; transition:all .2s;
  font-family: var(--font-b); cursor: pointer;
}
.filter-btn:hover { color:var(--text); border-color:rgba(255,255,255,.15); }
.filter-btn.active { background:var(--accent); border-color:var(--accent); color:#fff; }
.results-count { font-size:13px; color:var(--muted); margin-bottom:20px; }

/* ══════════════════════════════════════
   TRENDING ROW
══════════════════════════════════════ */
.trending-card {
  background:var(--bg); border:1px solid var(--border);
  border-radius:var(--radius); padding:24px;
  display:flex; gap:18px; align-items:flex-start; cursor:pointer;
  transition:border-color .2s, transform .2s;
}
.trending-card:hover { border-color:oklch(.75 .15 200/.3); transform:translateY(-2px); }
.trending-emoji {
  width:50px; height:50px; border-radius:12px; flex-shrink:0;
  background:var(--surface); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; font-size:24px;
}
.trending-rank { font-size:11px; color:var(--muted); background:var(--surface); padding:2px 8px; border-radius:4px; }

/* ══════════════════════════════════════
   MODAL
══════════════════════════════════════ */
#modal-overlay {
  display:none; position:fixed; inset:0; z-index:1000;
  background:rgba(0,0,0,.72); backdrop-filter:blur(10px);
  align-items:center; justify-content:center; padding:24px;
}
#modal-overlay.open { display:flex; animation:fadeIn .2s ease; }
#modal {
  background:var(--bg2); border:1px solid var(--border);
  border-radius:20px; max-width:620px; width:100%;
  max-height:90vh; overflow:auto; animation:fadeUp .3s ease;
}
.modal-head { padding:28px 28px 22px; border-bottom:1px solid var(--border); }
.modal-top { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:18px; }
.modal-id { display:flex; gap:14px; align-items:center; }
.modal-emoji {
  width:58px; height:58px; border-radius:14px; font-size:28px;
  background:var(--surface); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
}
.modal-name { font-family:var(--font-d); font-weight:800; font-size:24px; letter-spacing:-.02em; margin-bottom:5px; }
.modal-close {
  width:34px; height:34px; border-radius:8px;
  background:var(--surface); border:1px solid var(--border);
  color:var(--muted2); font-size:18px; display:flex;
  align-items:center; justify-content:center; transition:color .2s;
  cursor: pointer;
}
.modal-close:hover { color:var(--text); }
.modal-meta { display:flex; gap:20px; align-items:center; font-size:13px; color:var(--muted); }
.modal-body { padding:24px 28px; }
.modal-section-label { font-family:var(--font-d); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); margin-bottom:10px; }
.modal-desc { font-size:14px; color:var(--muted2); line-height:1.75; margin-bottom:24px; }
.features-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; margin-bottom:24px; }
.feature-item {
  display:flex; align-items:center; gap:10px;
  background:var(--surface); border:1px solid var(--border);
  border-radius:8px; padding:10px 14px; font-size:13px;
}
.feature-dot { color:var(--accent); font-size:12px; }
.modal-kpis { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:24px; }
.kpi { background:var(--surface); border:1px solid var(--border); border-radius:10px; padding:14px; text-align:center; }
.kpi-label { font-size:11px; color:var(--muted); margin-bottom:4px; }
.kpi-val { font-family:var(--font-d); font-weight:700; font-size:14px; }
.modal-foot { padding:0 28px 28px; display:flex; gap:10px; }
.btn-visit {
  flex:1; display:block;
  background:linear-gradient(135deg,var(--accent),oklch(.65 .17 170));
  border:none; color:#fff; padding:13px; border-radius:10px;
  font-size:14px; font-weight:600; text-align:center; transition:opacity .2s;
  font-family: var(--font-b);
}
.btn-visit:hover { opacity:.85; }
.btn-cancel {
  background:transparent; border:1px solid var(--border);
  color:var(--muted2); padding:13px 20px; border-radius:10px; font-size:14px;
  font-family: var(--font-b); cursor: pointer;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  background:var(--bg2); border-top:1px solid var(--border); padding:48px 24px;
}
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr; gap:40px; margin-bottom:40px; }
@media(max-width:700px){ .footer-grid { grid-template-columns:1fr; } }
.footer-brand { display:flex; align-items:center; gap:8px; margin-bottom:14px; }
.footer-brand-icon {
  width:24px; height:24px; border-radius:6px;
  background:linear-gradient(135deg,var(--violet),var(--accent2));
  display:flex; align-items:center; justify-content:center;
}
.footer-brand-name { font-family:var(--font-d); font-weight:800; font-size:16px; }
.footer-desc { font-size:13px; color:var(--muted); line-height:1.7; max-width:220px; }
.footer-col-title { font-family:var(--font-d); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); margin-bottom:14px; }
.footer-link { font-size:13px; color:var(--muted2); margin-bottom:9px; display:block; transition:color .2s; }
.footer-link:hover { color:var(--text); }
.footer-bottom { padding-top:24px; border-top:1px solid var(--border); display:flex; justify-content:space-between; font-size:12px; color:var(--muted); }

/* ══════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════ */
.empty { text-align:center; padding:80px 24px; color:var(--muted); }
.empty-icon { font-size:44px; margin-bottom:14px; }
.empty-text { font-size:15px; }
