@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@400;600;700&display=swap');

:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --radius: 12px;
  --max-w: 1100px;
}

[data-theme='dark'] {
  --bg: #0f172a;
  --surface: #1e293b;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --border: #334155;
  --primary: #3b82f6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.nav-desktop {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-desktop a {
  text-decoration: none;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background: var(--surface);
  color: var(--primary);
}

#mobileMenuBtn {
  display: none;
}

/* Hero */
.hero-section {
  padding: 2.5rem 0 4rem; 
}

.hero-grid {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3rem;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 500px;
}

.hero-img {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

/* ── Cards ─────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.25s cubic-bezier(.22,.68,0,1.2),
              border-color 0.25s ease,
              box-shadow 0.25s ease;
}

.card:hover {
  transform: scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(59,130,246,0.12);
}

.card:hover .card-icon-wrapper svg {
  transform: scale(1.12) rotate(-4deg);
  filter: drop-shadow(0 0 6px currentColor);
}

/* ── Icon wrapper ───────────────────────────────────── */
.card-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.card-icon-wrapper svg {
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Category colour tokens */
.card-icon-productivity {
  background: rgba(234,179,8,0.12);
  color: #ca8a04;
}
[data-theme='dark'] .card-icon-productivity {
  background: rgba(234,179,8,0.15);
  color: #fbbf24;
}

.card-icon-focus {
  background: rgba(239,68,68,0.1);
  color: #dc2626;
}
[data-theme='dark'] .card-icon-focus {
  background: rgba(239,68,68,0.15);
  color: #f87171;
}

.card-icon-devtool {
  background: rgba(59,130,246,0.1);
  color: #2563eb;
}
[data-theme='dark'] .card-icon-devtool {
  background: rgba(59,130,246,0.15);
  color: #60a5fa;
}

.card-icon-finance {
  background: rgba(16,185,129,0.1);
  color: #059669;
}
[data-theme='dark'] .card-icon-finance {
  background: rgba(16,185,129,0.15);
  color: #34d399;
}

/* ── Card content ───────────────────────────────────── */
.card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2px;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  flex: 1;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
}

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

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text) !important;
  background: var(--bg); /* Added background for visibility */
}

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

/* Footer */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.social-links a {
  font-size: 1.5rem;
  color: var(--text-muted);
}

/* Mobile */
@media (max-width: 800px) {
  .hero-section {
    padding: 1.5rem 0 3rem;
  }
  .hero-grid {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-content p {
    margin: 0 auto;
    font-size: 1rem;
  }
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .nav-desktop {
    display: none;
  }
  .hero-img {
    width: 240px;
    height: 240px;
  }
  .brand {
    font-size: 1.25rem;
  }
  .section-title {
    font-size: 1.75rem;
    text-align: center;
  }
  .nav-actions {
    gap: 0.2rem;
  }
  #mobileMenuBtn {
    display: flex;
  }
}

