:root {
  --primary: #2563eb;
  --primary-light: #eff6ff;
  --background: #f8fafc;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --error: #ef4444;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--background);
  color: var(--text);
}

/* NAVBAR */
.navbar {
  background: white;
  border-bottom: 2px solid var(--primary-light);
  margin-bottom: 20px;
}

.nav-container {
  max-width: 1100px;
  margin: auto;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--primary);
}

.nav-links a {
  margin-left: 16px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* MAIN CONTAINER */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 24px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  padding: 40px 20px;
  border-radius: 16px;
  margin-bottom: 30px;
  text-align: center;
}

/* TOOL CARDS */
.tool-card {
  display: block;
  padding: 18px;
  background: var(--card-bg);
  border-radius: 14px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
}

.tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.12);
}

.tool-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--primary);
}

.tool-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* CONTENT SECTION */
.content-section {
  margin-top: 32px;
  padding: 24px;
  background: white;
  border-radius: 16px;
  border-left: 6px solid var(--primary);
}

.content-section h2 {
  margin-top: 20px;
}

.all-calculators-list {
  columns: 3 220px;
  column-gap: 24px;
  padding-left: 20px;
  margin: 12px 0 0;
}

.all-calculators-list li {
  break-inside: avoid;
  margin: 4px 0;
  font-size: 0.9rem;
}

.all-calculators-list a {
  color: var(--muted);
  text-decoration: none;
}

.all-calculators-list a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ADS PLACEHOLDER */
.ads {
  margin: 24px 0;
  padding: 14px;
  background: #f1f5f9;
  border: 1px dashed var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  border-radius: 12px;
}

/* NEWSLETTER SECTION */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  color: white;
  padding: 40px 20px;
  text-align: center;
  margin: 40px 0;
  border-radius: 12px;
}

.newsletter-section h2 {
  margin-bottom: 10px;
  font-size: 1.8rem;
  font-weight: 600;
}

.newsletter-section p {
  margin-bottom: 25px;
  opacity: 0.9;
  font-size: 1.1rem;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto 15px;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 250px;
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  background: white;
  color: var(--text);
}

.newsletter-form button {
  padding: 12px 24px;
  background: #fbbf24;
  color: var(--text);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.newsletter-form button:hover {
  background: #f59e0b;
}

.privacy-note {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 10px;
}

/* CONTACT FORM */
.contact-form-container {
  max-width: 600px;
  margin: 0 auto 40px;
  background: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 5px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  padding: 14px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  align-self: flex-start;
}

.submit-btn:hover {
  background: #1d4ed8;
}

.contact-info {
  text-align: center;
  padding: 20px;
  background: var(--card-bg);
  border-radius: 12px;
  margin-bottom: 20px;
}

.contact-info h3 {
  color: var(--primary);
  margin-bottom: 15px;
}

/* FOOTER */
footer {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  color: var(--muted);
}

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

@media (max-width: 640px) {
  .all-calculators-list {
    columns: 1;
  }
}
