/* --------------------------------------------------
   GLOBAL RESET + FONTS
-------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-body: #f7f8fa;
  --bg-surface: #ffffff;
  --border-subtle: #e5e7eb;
  --text-main: #111827;
  --text-muted: #4b5563;
  --text-soft: #6b7280;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --accent-dark: #1d4ed8;
  --danger: #b91c1c;
  --success: #15803d;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 18px 45px rgba(15, 23, 42, 0.12);
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* --------------------------------------------------
   LAYOUT HELPERS
-------------------------------------------------- */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --------------------------------------------------
   NAVIGATION
-------------------------------------------------- */
.navbar {
  width: 100%;
  background: #ffffffcc;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 50;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #38bdf8, #1e293b);
}

.nav-logo-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links a.active {
  color: var(--accent);
  border-color: var(--accent);
}

/* --------------------------------------------------
   BUTTONS
-------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: #f3f4f6;
}

/* --------------------------------------------------
   TYPOGRAPHY
-------------------------------------------------- */
h1, h2, h3 {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text-main);
}

.section-heading {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  color: var(--text-soft);
  font-size: 0.98rem;
}

/* --------------------------------------------------
   CARDS
-------------------------------------------------- */
.card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

/* --------------------------------------------------
   FORMS & INPUTS
-------------------------------------------------- */
input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid #d1d5db;
  background: #ffffff;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder {
  color: #9ca3af;
}

input[type="text"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* --------------------------------------------------
   STATUS LABELS
-------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success {
  background: #dcfce7;
  color: var(--success);
}

.badge-danger {
  background: #fee2e2;
  color: var(--danger);
}

/* --------------------------------------------------
   RESULTS BOX
-------------------------------------------------- */
.results-box {
  margin-top: 1.5rem;
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: #f9fafb;
  display: none;
}

.results-box h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer h2 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.footer p {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.footer-note {
  margin-top: 1.2rem;
  color: #9ca3af;
  font-size: 0.8rem;
}

/* Newsletter form */
.newsletter-form {
  margin-top: 1.1rem;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
  max-width: 260px;
}

/* --------------------------------------------------
   RESPONSIVE
-------------------------------------------------- */
@media (max-width: 768px) {
  .navbar-inner {
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
  }

  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
  }
}