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

:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --border: #e2e8f0;
  --border-light: #cbd5e1;
  --text: #0f172a;
  --text-body: #475569;
  --muted: #94a3b8;
  --accent: #1e3a5f;
  --accent-hover: #162d4a;
  --accent-glow: rgba(30, 58, 95, 0.12);
  --accent-light: #162d4a;
  --hover-bg: rgba(0, 0, 0, 0.04);
  --code-bg: #0f172a;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Fira Code", "Courier New", monospace;
}

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s;
  border: 1px solid transparent;
  letter-spacing: -0.1px;
}
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-primary {
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(30, 58, 95, 0.2);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 28px rgba(30, 58, 95, 0.35);
  transform: translateY(-1px);
}
.btn-outline {
  border-color: var(--border-light);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

/* Language toggle */
.lang-toggle {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.3px;
  margin-left: 4px;
  white-space: nowrap;
}
.lang-toggle a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.lang-toggle a:hover { color: var(--text); }
.lang-toggle strong { color: var(--accent); font-weight: 600; }

@media (max-width: 600px) {
  nav .lang-toggle { display: none; }
  .hero-lang { display: flex; justify-content: center; margin-top: 16px; }
}
@media (min-width: 601px) {
  .hero-lang { display: none; }
}

/* Hero */
.hero {
  padding: 80px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(30, 58, 95, 0.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 58, 95, 0.07);
  border: 1px solid rgba(30, 58, 95, 0.18);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 32px;
  letter-spacing: 0.2px;
}
.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-size: clamp(32px, 5.5vw, 58px);
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: 1.08;
  margin-bottom: 20px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text);
}
.hero .subtitle {
  font-size: 18px;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* Hero search */
.hero-search {
  margin: 0 auto 16px;
  max-width: 580px;
}
.hero-search-wrap {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  padding: 6px 8px 6px 16px;
  gap: 8px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.hero-search-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.08), 0 2px 16px rgba(0,0,0,0.06);
}
.hero-search-icon { color: var(--muted); flex-shrink: 0; }
.hero-search-wrap input {
  flex: 1;
  border: none;
  background: none;
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  min-width: 0;
}
.hero-search-wrap input::placeholder { color: var(--muted); }
.hero-search-wrap button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.hero-search-wrap button:hover { background: var(--accent-hover); }

.hero-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 36px;
}
.hero-links a {
  color: var(--text-body);
  text-decoration: none;
  transition: color 0.15s;
}
.hero-links a:hover { color: var(--accent); }

/* Trust items inside hero */
.hero-trust {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.trust-item svg { color: var(--accent); flex-shrink: 0; }

/* Recent recalls feed */
.recall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.recall-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.recall-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.07);
  border-color: var(--border-light);
}
.recall-card-image {
  width: 100%;
  height: 140px;
  overflow: hidden;
  background: var(--bg);
  flex-shrink: 0;
}
.recall-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}
.recall-card-body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.recall-card:not(.has-image) .recall-card-body {
  padding: 20px;
}
.recall-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.recall-agency {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}
.recall-agency.hc  { background: rgba(220,38,38,0.08); color: #1e3a5f; }
.recall-agency.cfia { background: rgba(22,163,74,0.1); color: #16a34a; }
.recall-agency.tc  { background: rgba(37,99,235,0.1); color: #2563eb; }
.recall-date {
  font-size: 12px;
  color: var(--muted);
}
.recall-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}
.recall-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recall-desc {
  font-size: 12px;
  color: var(--text-body);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recall-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.recall-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.15);
  padding: 2px 7px;
  border-radius: 4px;
}
.recall-tag.hazard-1 { color: #1e3a5f; border-color: rgba(220,38,38,0.2); background: rgba(220,38,38,0.05); }
.recall-tag.hazard-2 { color: #b45309; border-color: rgba(180,83,9,0.2); background: rgba(180,83,9,0.05); }
.recall-skeleton {
  height: 140px;
  background: linear-gradient(90deg, var(--surface) 25%, var(--border) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 12px;
  border: 1px solid var(--border);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Sections */
section { padding: 80px 0; }
section + section { border-top: 1px solid var(--border); }
h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
}
.section-sub {
  color: var(--muted);
  margin-bottom: 44px;
  font-size: 16px;
  max-width: 560px;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  border-color: var(--border-light);
}
.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(30, 58, 95, 0.08);
  border-radius: 10px;
  margin-bottom: 16px;
  font-family: var(--mono);
}
.feature:nth-child(2) .feature-icon { color: #7c3aed; background: rgba(124, 58, 237, 0.08); }
.feature:nth-child(3) .feature-icon { color: #b45309; background: rgba(180, 83, 9, 0.08); }
.feature:nth-child(4) .feature-icon { color: #0369a1; background: rgba(3, 105, 161, 0.08); }
.feature h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.feature p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.65;
}
.feature code {
  font-family: var(--mono);
  font-size: 12px;
  background: rgba(30, 58, 95, 0.07);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--accent);
}

/* Data section */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 16px;
}
.data-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.data-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}
.data-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.data-card-entity {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  background: rgba(30, 58, 95, 0.08);
  padding: 3px 10px;
  border-radius: 4px;
}
.data-card-count {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.data-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.data-card p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 16px;
}
.data-card-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.data-field {
  font-family: var(--mono);
  font-size: 11px;
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--accent);
}

/* Use cases */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.usecase {
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.usecase h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.usecase p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.65;
}

/* Examples */
.example-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}
.tab {
  padding: 7px 18px;
  border-radius: 7px;
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-family: var(--font);
  font-weight: 500;
  transition: all 0.15s;
}
.tab:hover { color: var(--text); }
.tab.active {
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.3);
}

.code-block {
  background: var(--code-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
}
.code-label {
  padding: 12px 20px;
  font-size: 13px;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.code-panes {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 700px) { .code-panes { grid-template-columns: 1fr; } }
.code-pane + .code-pane { border-left: 1px solid rgba(255,255,255,0.06); }
@media (max-width: 700px) { .code-pane + .code-pane { border-left: none; border-top: 1px solid rgba(255,255,255,0.06); } }
.code-pane-label {
  padding: 8px 16px;
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  font-weight: 600;
}
.code-pane { overflow-x: auto; -webkit-overflow-scrolling: touch; min-width: 0; }
.code-pane pre { padding: 20px; }
.code-pane code {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: #fca5a5;
  white-space: pre;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.pricing-card:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.pricing-card.highlight {
  background: rgba(30, 58, 95, 0.04);
  border-color: rgba(30, 58, 95, 0.3);
  position: relative;
}
.pricing-card.highlight::before {
  content: "Most Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 100px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.plan-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.plan-price {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--text);
}
.plan-period {
  font-size: 17px;
  font-weight: 400;
  color: var(--muted);
}
.plan-requests {
  font-size: 13px;
  color: var(--text-body);
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 6px;
  width: fit-content;
}
.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}
.plan-features li {
  font-size: 14px;
  color: var(--text-body);
  padding-left: 20px;
  position: relative;
}
.plan-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}
.pricing-card .btn { text-align: center; margin-top: 8px; }

/* CTA */
.cta-section { padding: 80px 0; border-top: 1px solid var(--border); }
.cta-box {
  text-align: center;
  padding: 64px 40px;
  border-radius: 20px;
  background: rgba(30, 58, 95, 0.03);
  border: 1px solid rgba(30, 58, 95, 0.12);
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(30, 58, 95, 0.05) 0%, transparent 70%);
  pointer-events: none;
}
.cta-box h2 {
  font-size: 28px;
  margin-bottom: 12px;
  position: relative;
}
.cta-box p {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 16px;
  position: relative;
}
.cta-box .btn { position: relative; }
.cta-rapidapi {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  position: relative;
}
.cta-rapidapi a { color: var(--accent); text-decoration: none; }
.cta-rapidapi a:hover { text-decoration: underline; }

/* Contact */
.contact { padding: 80px 0; }
.contact h2 { text-align: center; font-size: 28px; margin-bottom: 8px; }
.contact .section-sub { text-align: center; margin-left: auto; margin-right: auto; }
.contact-form {
  max-width: 520px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-form input,
.contact-form textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  transition: border-color 0.18s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
}
.contact-form button { align-self: flex-start; }

/* Alert signup section */
.alert-signup { padding: 48px 0; background: var(--accent); }
.alert-signup-box { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.alert-signup-text { flex: 1 1 280px; }
.alert-signup-text h2 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 8px; letter-spacing: -0.4px; }
.alert-signup-text p { font-size: 15px; color: rgba(255,255,255,0.75); line-height: 1.5; }
.alert-signup-form { display: flex; gap: 10px; flex-wrap: wrap; flex: 1 1 360px; align-items: center; }
.as-select, .as-input {
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s;
}
.as-select { cursor: pointer; }
.as-select option { background: var(--accent); color: #fff; }
.as-select:focus, .as-input:focus { border-color: rgba(255,255,255,0.7); }
.as-input::placeholder { color: rgba(255,255,255,0.5); }
.as-input { flex: 1 1 180px; }
.as-btn { height: 44px; padding: 0 22px; white-space: nowrap; background: #fff; color: var(--accent); border: none; font-weight: 700; box-shadow: none; }
.as-btn:hover { background: rgba(255,255,255,0.9); color: var(--accent); transform: none; box-shadow: none; }
.alert-signup-success { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 15px; font-weight: 500; }

/* Footer override for light theme */
footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 0; }
footer .footer-links a:hover { background: var(--hover-bg); }

/* Mobile */
@media (max-width: 600px) {
  .hero { padding: 64px 0 48px; }
  .hero h1 { letter-spacing: -1.5px; }
  .hero .subtitle { font-size: 16px; }
  .hero-search-wrap input { font-size: 14px; }
  .hero-search-wrap button { padding: 9px 14px; font-size: 13px; }
  .hero-trust { gap: 16px; justify-content: flex-start; }
  .feature-grid { grid-template-columns: 1fr; }
  .data-grid { grid-template-columns: 1fr; }
  .usecase-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .example-tabs { width: auto; flex-wrap: wrap; }
  .tab { flex: 1 1 auto; text-align: center; padding: 7px 12px; font-size: 13px; }
  .code-pane pre { padding: 12px; }
  .code-pane code { font-size: 11px; }
  .cta-box { padding: 40px 20px; }
  .cta-box h2 { font-size: 22px; }
}
@media (max-width: 800px) {
  .alert-signup-box { flex-direction: column; align-items: stretch; gap: 20px; }
  .alert-signup-text { flex: 0 0 auto; }
  .alert-signup-text h2 { font-size: 18px; }
  .alert-signup-form { flex-direction: column; flex: 0 0 auto; width: 100%; }
  .as-select, .as-input, .as-btn { width: 100%; flex: 0 0 auto; }
}
