/* Micro-tools hub — landing page */
:root {
  --bg: #070b14;
  --bg-2: #0d1424;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --primary: #60a5fa;
  --primary-2: #a78bfa;
  --accent: #34d399;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

[data-theme="light"] {
  --bg: #f8fafc;
  --bg-2: #eef2ff;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-hover: #fff;
  --border: rgba(15, 23, 42, 0.08);
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-2: #7c3aed;
  --accent: #059669;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

html[data-theme="light"] { color-scheme: light; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(96, 165, 250, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(167, 139, 250, 0.12), transparent),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
  line-height: 1.5;
}

a { color: inherit; }

.hub {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
}

.hub__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hub__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.hub__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  box-shadow: 0 8px 24px rgba(96, 165, 250, 0.35);
}

.hub__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hub__tag {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.hub__theme {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.hub__theme:hover {
  background: var(--surface-hover);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
}

.hub__hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.hub__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hub__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hub__title {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.hub__title span {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hub__lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.65;
}

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

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(12px);
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow);
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  background: var(--surface-hover);
}

.tool-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.tool-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.tool-card__icon--html { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.tool-card__icon--email { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.tool-card__icon--khaata { background: linear-gradient(135deg, #059669, #14b8a6); }
.tool-card__icon--css { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.tool-card__icon--laravel { background: linear-gradient(135deg, #ef4444, #f97316); }

.tool-card__status {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.tool-card__name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tool-card__desc {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.tool-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tool-card__tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.tool-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
}

.tool-card__cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.15s;
}

.tool-card:hover .tool-card__cta svg {
  transform: translateX(3px);
}

.hub__footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.hub__footer a {
  color: var(--primary);
  text-decoration: none;
}

.hub__footer a:hover { text-decoration: underline; }

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  padding: 0.75rem 1rem;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}

.cookie-banner--show { transform: translateY(0); }
.cookie-banner[hidden] { display: none; }

.cookie-banner__panel {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.cookie-banner__title { margin: 0 0 0.35rem; font-size: 1rem; }
.cookie-banner__text { margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
.cookie-banner__text a { color: var(--primary); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-left: auto; }

@media (max-width: 640px) {
  .hub__header { margin-bottom: 2.5rem; }
  .hub__grid { grid-template-columns: 1fr; }
}
