:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(15, 23, 42, 0.1);
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --accent-soft: rgba(79, 70, 229, 0.1);
  --ok: #10b981;
  --ok-soft: rgba(16, 185, 129, 0.12);
  --warn: #ef4444;
  --warn-soft: rgba(239, 68, 68, 0.1);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.12);
  --radius: 16px;
}

[data-theme="dark"] {
  --bg: #0b0f17;
  --surface: #121826;
  --surface-2: #192235;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: rgba(241, 245, 249, 0.1);
  --primary: #6366f1;
  --primary-hover: #818cf8;
  --accent-soft: rgba(99, 102, 241, 0.16);
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, 0.15);
  --warn: #f87171;
  --warn-soft: rgba(248, 113, 113, 0.14);
  --shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.6);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Hind Siliguri", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name {
  font-family: "Sora", "Hind Siliguri", sans-serif;
  margin: 0;
  line-height: 1.2;
}

.mono {
  font-family: "JetBrains Mono", monospace;
}

a {
  color: inherit;
  text-decoration: none;
}

.ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.wrap {
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
}

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

.bg-glow {
  position: fixed;
  inset: -200px auto auto 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 440px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18), transparent 68%);
  pointer-events: none;
  z-index: -1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: #fff;
  font-family: "Sora", sans-serif;
  font-weight: 800;
}

.header-search {
  flex: 1;
  max-width: 380px;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.92rem;
  font-weight: 600;
}

.header-nav a:hover {
  color: var(--primary);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.th-sun { display: none; }
[data-theme="dark"] .th-moon { display: none; }
[data-theme="dark"] .th-sun { display: block; }

/* Notice */
.wrap-notices {
  margin-top: 18px;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--warn-soft);
  border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent);
}

.notice-ico {
  color: var(--warn);
  margin-top: 2px;
}

.notice-body {
  flex: 1;
  font-size: 0.93rem;
}

.notice-title {
  display: block;
  margin-bottom: 4px;
}

.notice-cta {
  padding: 7px 14px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.notice-x {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
}

/* Hero */
.hero {
  padding: 48px 0 36px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 0.83rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.93rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.18s ease;
}

.btn-lg {
  padding: 12px 22px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--primary);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.hero-stats dt {
  font-family: "Sora", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
}

.hero-stats dd {
  margin: 2px 0 0;
  font-size: 0.83rem;
  color: var(--muted);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  min-height: 270px;
  display: grid;
  place-items: center;
}

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

.hv-main {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hv-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hv-row.between {
  justify-content: space-between;
  font-size: 0.78rem;
}

.hv-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ok);
}

.hv-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-2);
}

.hv-file > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hv-line {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: var(--border);
}

.w80 { width: 80%; }
.w60 { width: 60%; }
.w40 { width: 40%; }

.hv-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.hv-progress span {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--ok));
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.75rem;
}

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

.hv-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 600;
}

.hv-a { top: 8px; right: 0; }
.hv-b { bottom: 8px; left: 0; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-block: 16px 42px;
}

.feature {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.feature .ico {
  color: var(--primary);
  margin-top: 2px;
}

.feature h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.feature p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Catalog */
.catalog {
  padding-bottom: 56px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-head p {
  margin: 4px 0 0;
  font-size: 0.9rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips-cats {
  margin-bottom: 20px;
}

.chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.chip-sm {
  padding: 5px 12px;
  font-size: 0.82rem;
}

.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.pc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pc-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--primary);
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.badge-paid {
  background: var(--accent-soft);
  color: var(--primary);
}

.badge-free {
  background: var(--ok-soft);
  color: var(--ok);
}

.pc-title {
  font-size: 1.05rem;
}

.pc-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

.star-ico {
  color: #f59e0b;
}

.pc-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: auto;
}

.pc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.price {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.pc-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
}

/* Contact Section */
.contact-section {
  padding-bottom: 56px;
}

.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-box p {
  margin: 6px 0 0;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.footer-inner p {
  margin: 0;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(2, 6, 23, 0.65);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: min(560px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
  padding-right: 36px;
}

.modal-logo {
  width: 54px;
  height: 54px;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.modal-head h3 {
  margin: 6px 0;
  font-size: 1.25rem;
}

.modal-desc {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0 0 14px;
}

.modal-highlights {
  margin: 0 0 20px;
  padding-left: 18px;
  font-size: 0.9rem;
  display: grid;
  gap: 6px;
}

.modal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.small-label {
  display: block;
  font-size: 0.78rem;
}

.modal-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    display: none;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .contact-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-nav a {
    display: none;
  }
}
