:root {
  --primary: #2563eb;       /* Royal Blue */
  --primary-dark: #1e40af;
  --bg: #f8fafc;            /* Light Slate */
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
}

/* Header & Nav */
header {
  background: var(--primary);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
  letter-spacing: -0.5px;
}

nav a {
  color: rgba(255, 255, 255, 0.9);
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
nav a:hover { color: white; }

/* Hero Section */
.hero {
  background: white;
  text-align: center;
  padding: 4rem 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}
.hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; color: var(--text-main); }
.hero p { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* Layout Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

/* Cards */
.card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s;
}
.card:hover { transform: translateY(-4px); }
.card h3 { margin-top: 0; color: var(--text-main); }
.card p { color: var(--text-muted); }

/* Tool Inputs */
textarea, input[type="text"] {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}
textarea:focus, input:focus {
  outline: none;
  border-color: var(--primary);
}
textarea { height: 200px; resize: vertical; }

/* Buttons */
.btn-primary, button {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary:hover, button:hover { background: var(--primary-dark); }

/* Stats Bar */
.stats-bar {
  display: flex;
  gap: 2rem;
  padding: 1rem;
  background: #eff6ff;
  border-radius: 8px;
  color: var(--primary-dark);
  font-weight: bold;
}

/* SEO Content Text */
.seo-content { margin-top: 3rem; border-top: 1px solid var(--border); padding-top: 2rem; }
.seo-content h2 { margin-top: 0; }

/* Footer */
footer {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: auto;
}
footer a { color: var(--primary); text-decoration: none; }

/* Mobile */
@media(max-width: 600px) {
  .nav-flex { flex-direction: column; gap: 1rem; }
  nav a { margin: 0 0.5rem; }
  .hero h1 { font-size: 2rem; }
}
