/* ===== Design tokens (ported from src/index.css) ===== */
:root {
  --background: 210 40% 9%;
  --foreground: 210 30% 95%;
  --card: 210 40% 12%;
  --card-foreground: 210 30% 95%;
  --primary: 45 100% 51%;
  --primary-foreground: 210 40% 9%;
  --secondary: 210 40% 18%;
  --secondary-foreground: 45 100% 51%;
  --muted: 210 40% 18%;
  --muted-foreground: 210 30% 65%;
  --accent: 45 100% 51%;
  --accent-foreground: 210 40% 9%;
  --destructive: 0 72% 51%;
  --destructive-foreground: 210 30% 95%;
  --border: 210 40% 20%;
  --input: 210 40% 20%;
  --ring: 45 100% 51%;
  --radius: 0.5rem;
  --eco-green: 142 71% 45%;
  --eco-light: 142 71% 95%;
  --eco-dark: 142 71% 20%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', sans-serif;
  background-image:
    linear-gradient(45deg, hsla(var(--secondary), 0.07) 25%, transparent 25%, transparent 75%, hsla(var(--secondary), 0.07) 75%, hsla(var(--secondary), 0.07)),
    linear-gradient(-45deg, hsla(var(--secondary), 0.07) 25%, transparent 25%, transparent 75%, hsla(var(--secondary), 0.07) 75%, hsla(var(--secondary), 0.07));
  background-size: 60px 60px;
  background-position: 0 0, 30px 30px;
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.font-space, h1, h2, h3, h4, .btn { font-family: 'Space Grotesk', sans-serif; }
h1,h2,h3,h4 { font-weight: 700; line-height: 1.15; margin: 0 0 1rem; }
h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.4rem; }
p { line-height: 1.7; color: hsl(var(--muted-foreground)); margin: 0 0 1rem; }

.gradient-text {
  background: linear-gradient(135deg, hsl(var(--primary)), #FFD700, #B8860B);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.metallic-gold-text {
  background: linear-gradient(135deg, #F9D423 0%, #FFC300 50%, #DAA520 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-weight: 600;
}
.eco-gradient-text {
  background: linear-gradient(135deg, hsl(var(--eco-light)), hsl(var(--eco-green)));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.glass-effect { background: hsla(var(--card), 0.7); backdrop-filter: blur(12px) saturate(150%); border: 1px solid hsla(var(--border), 0.5); }
.glow-hover:hover { box-shadow: 0 0 25px hsla(var(--primary), 0.25); border-color: hsla(var(--primary), 0.5); }
.eco-glow-hover:hover { box-shadow: 0 0 25px hsla(var(--eco-green), 0.25); border-color: hsla(var(--eco-green), 0.5); }
.premium-shadow { box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5), 0 0 0 1px hsla(var(--border), 0.5); }
.hero-pattern-subtle {
  background-image:
    radial-gradient(circle at 15% 20%, hsla(var(--primary), 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, hsla(var(--primary), 0.03) 0%, transparent 40%);
}

.skip-link { position: absolute; left: -999px; top: 0; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); padding: 0.5rem 1rem; z-index: 1000; }
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; transition: all 0.25s ease; white-space: nowrap;
}
.btn-primary { background: linear-gradient(90deg, hsl(var(--primary)), #ca8a04); color: hsl(var(--primary-foreground)); }
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 0 20px hsla(var(--primary), 0.4); }
.btn-outline { border-color: hsl(var(--primary)); color: hsl(var(--primary)); background: transparent; }
.btn-outline:hover { background: hsla(var(--primary), 0.1); }
.btn-block { width: 100%; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* Navbar */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: all 0.3s ease; }
.navbar.scrolled { background: hsla(var(--background), 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid hsl(var(--border)); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 6rem; }
.navbar-logo img { width: 220px; height: auto; }
.navbar-toggle { display: none; background: none; border: none; color: hsl(var(--foreground)); font-size: 1.75rem; cursor: pointer; }
.navbar-menu { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.nav-link { font-size: 0.9rem; font-weight: 500; color: hsla(var(--foreground), 0.8); padding: 0.4rem 0; }
.nav-link:hover, .nav-link.active { color: hsl(var(--primary)); }
.nav-cta { margin-left: 0.5rem; }

@media (max-width: 1180px) {
  .navbar-toggle { display: block; }
  .navbar-menu {
    position: absolute; top: 100%; left: 1.5rem; right: 1.5rem;
    background: hsla(var(--background), 0.97); backdrop-filter: blur(10px);
    flex-direction: column; align-items: stretch; gap: 0.5rem;
    border: 1px solid hsl(var(--border)); border-radius: var(--radius);
    padding: 1rem; margin-top: 0.5rem; display: none;
  }
  .navbar-menu.open { display: flex; }
  .nav-cta { margin-left: 0; }
}

main { padding-top: 6rem; }

/* Sections / cards */
.section { padding: 5rem 0; }
.section-tight { padding: 3rem 0; }
.text-center { text-align: center; }
.section-header { max-width: 760px; margin: 0 auto 3rem; }
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  padding: 1.75rem; transition: all 0.3s ease;
}
.card h3 { color: hsl(var(--foreground)); margin-bottom: 0.5rem; }
.card-icon { width: 3rem; height: 3rem; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; background: hsla(var(--primary), 0.15); color: hsl(var(--primary)); margin-bottom: 1rem; font-size: 1.5rem; }

.hero { position: relative; padding: 8rem 0 5rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-badge { display: inline-block; background: hsla(var(--primary), 0.12); color: hsl(var(--primary)); padding: 0.4rem 1rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; margin-bottom: 1.25rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero img { border-radius: var(--radius); }

.stat-card { text-align: center; padding: 1.5rem; }
.stat-card .value { font-size: 2.25rem; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }

table.spec-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
table.spec-table th, table.spec-table td { border: 1px solid hsl(var(--border)); padding: 0.75rem 1rem; text-align: left; }
table.spec-table th { background: hsl(var(--secondary)); color: hsl(var(--foreground)); }
table.spec-table tr:nth-child(even) { background: hsla(var(--card), 0.4); }

/* Accordion (FAQ) */
.accordion-item { border: 1px solid hsl(var(--border)); border-radius: var(--radius); margin-bottom: 0.75rem; overflow: hidden; }
.accordion-trigger { width: 100%; text-align: left; background: hsl(var(--card)); border: none; padding: 1.1rem 1.4rem; color: hsl(var(--foreground)); font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 1rem; }
.accordion-trigger .chev { transition: transform 0.25s ease; }
.accordion-item.open .accordion-trigger .chev { transform: rotate(180deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 1.4rem; }
.accordion-item.open .accordion-panel { padding: 0 1.4rem 1.1rem; }

/* Tabs (calculators) */
.tabs-list { display: flex; gap: 0.5rem; border-bottom: 1px solid hsl(var(--border)); margin-bottom: 2rem; flex-wrap: wrap; }
.tabs-list button { background: none; border: none; padding: 0.75rem 1.25rem; color: hsl(var(--muted-foreground)); font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; }
.tabs-list button.active { color: hsl(var(--primary)); border-bottom-color: hsl(var(--primary)); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
@media (max-width: 640px) {
  .calculator-tabs-list { justify-content: center; }
  .calculator-tabs-list button { flex-grow: 1; min-width: 120px; font-size: 0.875rem; padding: 0.5rem 0.75rem; }
}

/* Forms */
label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem; }
input, select, textarea {
  width: 100%; padding: 0.65rem 0.9rem; border-radius: var(--radius); border: 1px solid hsl(var(--input));
  background: hsl(var(--secondary)); color: hsl(var(--foreground)); font-family: inherit; font-size: 0.95rem; margin-bottom: 1rem;
}
input:focus, select:focus, textarea:focus { outline: 2px solid hsl(var(--ring)); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-msg { padding: 0.9rem 1.1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.9rem; }
.form-msg.success { background: hsla(142,71%,45%,0.15); color: #4ade80; border: 1px solid hsla(142,71%,45%,0.3); }
.form-msg.error { background: hsla(0,72%,51%,0.15); color: #f87171; border: 1px solid hsla(0,72%,51%,0.3); }

/* Footer */
.site-footer { background: hsla(var(--secondary), 0.4); border-top: 1px solid hsla(var(--border), 0.5); padding: 3rem 0 2rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h5 { color: hsl(var(--foreground)); font-size: 1.05rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a:hover { color: hsl(var(--primary)); }
.footer-logo img { width: 176px; margin-bottom: 0.5rem; }
.footer-video-link { color: hsl(var(--primary)); display: inline-block; margin-top: 0.5rem; }
.footer-social { display: flex; gap: 0.6rem; }
.footer-social a { width: 2.4rem; height: 2.4rem; border-radius: 999px; background: hsla(var(--background), 0.5); color: hsl(var(--primary)); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; }
.footer-social a:hover { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.footer-bottom { text-align: center; font-size: 0.8rem; padding-top: 1.5rem; border-top: 1px solid hsla(var(--border), 0.3); }

.whatsapp-fab { position: fixed; bottom: 1.5rem; right: 1.5rem; width: 3.2rem; height: 3.2rem; border-radius: 999px; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; z-index: 90; box-shadow: 0 6px 18px rgba(0,0,0,0.35); }

/* Prose (blog content) */
.prose { color: hsl(var(--muted-foreground)); max-width: 720px; margin: 0 auto; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: hsl(var(--foreground)); }
.prose a { color: hsl(var(--primary)); text-decoration: underline; }
.prose img { border-radius: var(--radius); margin: 2em 0; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid hsl(var(--border)); padding: 0.5em 1em; }
.prose th { background: hsl(var(--secondary)); }

.tag-pill { display: inline-block; padding: 0.25rem 0.75rem; font-size: 0.75rem; background: hsla(var(--primary), 0.1); color: hsl(var(--primary)); border-radius: 999px; border: 1px solid hsla(var(--primary), 0.2); margin: 0.2rem; }
.blog-meta { display: flex; gap: 1.25rem; flex-wrap: wrap; color: hsl(var(--muted-foreground)); font-size: 0.85rem; margin-bottom: 1.5rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; z-index: 200; padding: 1rem; }
.modal-overlay.open { display: flex; }
.modal-box { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); width: 100%; max-width: 480px; max-height: 80vh; display: flex; flex-direction: column; }
.modal-header { padding: 1rem 1.25rem; border-bottom: 1px solid hsl(var(--border)); display: flex; justify-content: space-between; align-items: center; }
.modal-close { background: none; border: none; color: hsl(var(--muted-foreground)); font-size: 1.25rem; cursor: pointer; }
.modal-body { padding: 1.25rem; overflow-y: auto; flex: 1; }
.chat-msg { margin-bottom: 0.9rem; font-size: 0.9rem; line-height: 1.5; }
.chat-msg.user { text-align: right; color: hsl(var(--foreground)); }
.chat-msg.bot { color: hsl(var(--muted-foreground)); }
.modal-footer { padding: 0.9rem; border-top: 1px solid hsl(var(--border)); display: flex; gap: 0.5rem; }
.modal-footer input { margin-bottom: 0; }
