:root {
  --primary: #0a2540;
  --primary-light: #153a5f;
  --accent: #00a884;
  --accent-hover: #008f73;
  --cta: #0fb6ff;
  --cta-hover: #0099e5;
  --bg-light: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --white: #ffffff;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --glass: rgba(255, 255, 255, 0.8);
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
  color: var(--primary);
  font-weight: 800;
  line-height: 1.2;
}

a {
  color: var(--cta);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--cta-hover);
}

/* Nav */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  contain: layout paint;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

.lang-toggle {
  background: var(--primary);
  color: white !important;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem !important;
}

/* Hero */
header {
  padding: 6rem 2rem 4rem;
  text-align: center;
  background: radial-gradient(circle at top right, #e0f2fe, transparent), 
              radial-gradient(circle at bottom left, #f0fdf4, transparent);
}

header h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  header h1 { font-size: 2.5rem; }
  .nav-links { display: none; }
}

header p {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.25rem;
  color: var(--text-muted);
}

.conversion-hero {
  padding-bottom: 3rem;
}

.eyebrow {
  color: var(--accent) !important;
  font-size: 0.85rem !important;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 0.75rem !important;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Section & Cards */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  border: 1px solid rgba(0,0,0,0.02);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

main > section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 520px;
}

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

.compact-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 1.5rem 0 0;
}

.answer-panel {
  background: #ecfdf5;
  border: 1px solid rgba(0, 168, 132, 0.2);
  border-left: 5px solid var(--accent);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.answer-panel p {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
}

.seo-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.seo-table th,
.seo-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 0.95rem;
  text-align: left;
  vertical-align: top;
}

.seo-table th {
  background: #f1f5f9;
  color: var(--primary);
  font-weight: 800;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.calculator-card input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.85rem;
  margin-top: 0.4rem;
  font: inherit;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.bmi-result {
  margin-top: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-weight: 800;
}

.cta-panel {
  text-align: center;
  border-top: 4px solid var(--accent);
}

.faq-card details {
  border-top: 1px solid #e2e8f0;
  padding: 1rem 0;
}

.faq-card summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 800;
}

.resource-link {
  display: block;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  color: var(--primary);
  font-weight: 800;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: white !important;
  box-shadow: 0 4px 14px 0 rgba(0, 168, 132, 0.39);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

.btn-secondary {
  background: var(--cta);
  color: white !important;
  box-shadow: 0 4px 14px 0 rgba(15, 182, 255, 0.39);
}

.btn-whatsapp {
  background: #25d366;
  color: white !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

/* WhatsApp Float */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  background: #25d366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
}

.wa-float:hover {
  transform: scale(1.1);
}

/* Footer */
footer {
  background: var(--primary);
  color: white;
  padding: 4rem 2rem;
  margin-top: 4rem;
  text-align: center;
}

footer a {
  color: var(--cta);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* Trust Bar */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 2rem 0;
  opacity: 0.7;
  filter: grayscale(1);
  flex-wrap: wrap;
}

.trust-item {
  font-weight: 700;
  color: var(--text-muted);
}
