*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --border: rgba(255,255,255,0.07);
  --accent: #c8f135;
  --accent2: #7b61ff;
  --text: #f0f0f0;
  --muted: #666;
  --card-bg: #13131c;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}
.hero-glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(123,97,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(16px);
}
.nav-logo {
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.1rem;
  letter-spacing: -0.02em; color: var(--text); text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-badge {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--border); padding: 4px 10px; border-radius: 100px;
}
header {
  position: relative; text-align: center; padding: 100px 24px 80px; overflow: hidden;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(200,241,53,0.25); background: rgba(200,241,53,0.06);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 28px;
  opacity: 0; animation: fadeUp 0.6s ease 0.1s forwards;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}
h1 {
  font-family: 'Sora', sans-serif; font-weight: 800;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.0; letter-spacing: -0.04em; margin-bottom: 20px;
  opacity: 0; animation: fadeUp 0.6s ease 0.2s forwards;
}
h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: 1.05rem; font-weight: 300; color: var(--muted);
  max-width: 480px; margin: 0 auto 48px; line-height: 1.65;
  opacity: 0; animation: fadeUp 0.6s ease 0.35s forwards;
}
.search-wrap {
  display: flex; justify-content: center; margin-bottom: 16px;
  opacity: 0; animation: fadeUp 0.6s ease 0.45s forwards;
}
.search-box { position: relative; width: 100%; max-width: 440px; }
.search-box input {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
  padding: 14px 20px 14px 44px; border-radius: 12px; outline: none; transition: border-color 0.2s;
}
.search-box input:focus { border-color: rgba(200,241,53,0.4); }
.search-box input::placeholder { color: var(--muted); }
.search-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
}
.filters {
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
  padding: 0 24px; margin-bottom: 64px;
  opacity: 0; animation: fadeUp 0.6s ease 0.55s forwards;
}
.chip {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em;
  padding: 7px 16px; border-radius: 100px; border: 1px solid var(--border);
  background: transparent; color: var(--muted); cursor: pointer;
  transition: all 0.2s; font-family: 'DM Sans', sans-serif;
}
.chip:hover, .chip.active {
  border-color: var(--accent); color: var(--accent); background: rgba(200,241,53,0.07);
}
.grid-section {
  position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 32px 100px;
}
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
}
.card {
  background: var(--card-bg); padding: 28px 28px 24px; cursor: pointer;
  transition: background 0.2s; position: relative; overflow: hidden;
  text-decoration: none; color: var(--text); display: block;
  opacity: 0; animation: fadeUp 0.5s ease forwards;
}
.card::after {
  content: ''; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(200,241,53,0.07), transparent 60%);
  transition: opacity 0.3s;
}
.card:hover { background: #161622; }
.card:hover::after { opacity: 1; }
.card-header {
  display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px;
}
.icon-wrap {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.arrow {
  color: var(--muted); opacity: 0; transition: opacity 0.2s, transform 0.2s;
  transform: translate(-4px, 4px); font-size: 18px;
}
.card:hover .arrow { opacity: 1; transform: translate(0, 0); }
.card-tag {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 4px;
  margin-bottom: 10px; display: inline-block;
}
.card h3 {
  font-family: 'Sora', sans-serif; font-size: 1rem; font-weight: 700;
  letter-spacing: -0.01em; margin-bottom: 8px; color: var(--text);
}
.card p { font-size: 0.83rem; font-weight: 300; color: #888; line-height: 1.55; }
.c-lime    { background: rgba(200,241,53,0.12); }
.c-purple  { background: rgba(123,97,255,0.15); }
.c-cyan    { background: rgba(34,211,238,0.12); }
.c-orange  { background: rgba(251,146,60,0.12); }
.c-pink    { background: rgba(236,72,153,0.12); }
.c-blue    { background: rgba(59,130,246,0.12); }
.c-emerald { background: rgba(52,211,153,0.12); }
.c-red     { background: rgba(248,113,113,0.12); }
.t-lime    { color: #c8f135; background: rgba(200,241,53,0.1); }
.t-purple  { color: #a78bfa; background: rgba(123,97,255,0.1); }
.t-cyan    { color: #22d3ee; background: rgba(34,211,238,0.1); }
.t-orange  { color: #fb923c; background: rgba(251,146,60,0.1); }
.t-pink    { color: #ec4899; background: rgba(236,72,153,0.1); }
.t-blue    { color: #60a5fa; background: rgba(59,130,246,0.1); }
.t-emerald { color: #34d399; background: rgba(52,211,153,0.1); }
.t-red     { color: #f87171; background: rgba(248,113,113,0.1); }
.card.hidden { display: none; }
footer {
  text-align: center; padding: 32px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 0.78rem; letter-spacing: 0.05em;
}
footer a { color: var(--accent); text-decoration: none; font-weight: 600; }
footer .author { margin-top: 6px; font-size: 0.7rem; opacity: 0.7; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) {
  nav { padding: 16px 20px; }
  header { padding: 72px 20px 48px; }
  .grid-section { padding: 0 16px 80px; }
}

/* === DETAIL PAGE === */
.detail-wrap {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto; padding: 48px 24px 80px;
}
.detail-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 0.85rem; font-weight: 600;
  text-decoration: none; margin-bottom: 40px; transition: color 0.2s;
}
.detail-back:hover { color: var(--text); }
.detail-icon {
  width: 64px; height: 64px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; margin-bottom: 20px;
}
.detail-tag {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 4px;
  display: inline-block; margin-bottom: 16px;
}
.detail-wrap h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15;
  margin-bottom: 16px; opacity: 1; animation: none;
}
.detail-tagline {
  font-size: 1.1rem; font-weight: 300; color: var(--muted);
  line-height: 1.65; margin-bottom: 32px;
}
.detail-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 100px;
  background: var(--accent); color: #0a0a0f;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 0.9rem;
  text-decoration: none; transition: all 0.2s;
}
.detail-cta:hover { background: #b8e02e; transform: translateY(-1px); }
.detail-body { margin-top: 56px; }
.detail-body h2 {
  font-family: 'Sora', sans-serif; font-size: 1.2rem; font-weight: 700;
  margin-bottom: 16px; letter-spacing: -0.01em;
}
.detail-body p {
  font-size: 0.95rem; font-weight: 300; color: #999;
  line-height: 1.8; margin-bottom: 24px;
}
.detail-features {
  list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 56px;
}
.detail-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; font-weight: 400; color: #999; line-height: 1.65;
}
.detail-features li::before {
  content: '→'; color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: 1px;
}
.related-section {
  border-top: 1px solid var(--border); padding-top: 48px; margin-top: 16px;
}
.related-section h2 {
  font-family: 'Sora', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 20px;
}
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
}
.related-grid .card { padding: 22px 20px; }
@media (max-width: 600px) {
  .detail-wrap { padding: 32px 16px 60px; }
  .related-grid { grid-template-columns: 1fr; }
}