/* ================================================
   Global reset & base
   ================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --clr-bg: #0f0f13;
  --clr-surface: #18181f;
  --clr-surface-2: #21212b;
  --clr-border: rgba(255,255,255,0.07);
  --clr-text: #f1f1f5;
  --clr-muted: #9090a8;
  --clr-accent: #7c3aed;
  --clr-accent-2: #a855f7;
  --radius: 1rem;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ================================================
   Header
   ================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 19, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--clr-border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--clr-text);
  letter-spacing: -0.02em;
  text-decoration: none;
}

/* ================================================
   Hero
   ================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.hero-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-accent-2);
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 30%, var(--clr-accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--clr-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* Decorative blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
}

.blob1 {
  width: 420px;
  height: 420px;
  background: var(--clr-accent);
  top: -80px;
  left: -100px;
}

.blob2 {
  width: 300px;
  height: 300px;
  background: #2563eb;
  bottom: -60px;
  right: -60px;
}

/* ================================================
   Cards Grid
   ================================================ */
main {
  flex: 1;
  padding-bottom: 5rem;
}

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

/* Card = full <a> tag */
.card {
  display: flex;
  flex-direction: column;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--icon-color, #7c3aed) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}

.card:hover::before {
  opacity: 0.06;
}

/* Icon */
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 0.75rem;
  background: var(--icon-bg, #eef2ff);
  color: var(--icon-color, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

/* Body */
.card-body {
  flex: 1;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--clr-muted);
  line-height: 1.55;
}

/* Footer link */
.card-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--clr-border);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--icon-color, #7c3aed);
  transition: gap 0.2s ease;
}

.card:hover .card-link {
  gap: 0.55rem;
}

/* ================================================
   Footer
   ================================================ */
footer {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding: 1.25rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--clr-muted);
}

/* ================================================
   Responsive
   ================================================ */
@media (max-width: 600px) {
  .hero {
    padding: 3.5rem 1.25rem 3rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
