/* ============================================
   SmartKoala — Global Styles
   Palette: mint-forest green, clean white, warm off-white
   ============================================ */

:root {
  --green-dark:   #1a6b3c;
  --green-mid:    #2d9b5a;
  --green-light:  #52b788;
  --green-pale:   #d8f3e3;
  --green-bg:     #f0faf4;
  --white:        #ffffff;
  --grey-bg:      #f7f8f7;
  --border:       #ddeee5;
  --text:         #1a2e22;
  --text-muted:   #5a7a65;
  --radius:       12px;
  --shadow:       0 2px 16px rgba(26,107,60,0.08);
  --shadow-hover: 0 6px 28px rgba(26,107,60,0.14);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  background: var(--green-bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Header ── */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(26,107,60,0.06);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green-dark);
  text-decoration: none;
  letter-spacing: -0.3px;
}

.logo span {
  color: var(--green-mid);
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-left: 1.5rem;
  transition: color 0.15s;
}

nav a:hover {
  color: var(--green-dark);
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 4rem 1rem 3rem;
}

.hero-koala {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: block;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--green-dark);
  letter-spacing: -0.5px;
  margin-bottom: 0.6rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ── Section ── */
.section {
  max-width: 960px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ── Tool Cards Grid ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.tool-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

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

.tool-icon {
  font-size: 1.8rem;
  margin-bottom: 0.7rem;
}

.tool-card h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 0.3rem;
}

.tool-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.tool-card .tag {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--green-pale);
  color: var(--green-dark);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
  background: var(--white);
  margin-top: 2rem;
}

footer a {
  color: var(--green-mid);
  text-decoration: none;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero h1 { font-size: 1.8rem; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 400px) {
  .tools-grid { grid-template-columns: 1fr; }
}
