@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/public-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/public-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --sky-700: #0369a1;
  --sky-600: #0284c7;
  --sky-500: #0ea5e9;
  --wa-green: #16a34a;
  --wa-green-dark: #15803d;
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-sans: 'Public Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-family: var(--font-sans); scroll-behavior: smooth; color: var(--slate-900); background: var(--bg); }
body { margin: 0; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
.tabular-nums { font-variant-numeric: tabular-nums; }
.font-mono { font-family: var(--font-mono); }

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

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--slate-200); }
.header-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; white-space: nowrap; color: var(--slate-900); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--slate-600); padding: 4px 0; border-bottom: 2px solid transparent; white-space: nowrap; transition: color 150ms, border-color 150ms; }
.nav-links a:hover, .nav-links a.active { color: var(--slate-900); border-bottom-color: var(--sky-700); }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; min-height: 42px; background: var(--slate-900); color: #fff; font-size: 0.875rem; font-weight: 600; border-radius: 6px; border: none; cursor: pointer; white-space: nowrap; transition: background 150ms; }
.btn-primary:hover { background: var(--sky-700); }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; min-height: 42px; background: #fff; color: var(--slate-900); border: 1px solid #cbd5e1; font-size: 0.875rem; font-weight: 500; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.btn-secondary:hover { border-color: var(--slate-700); }
.btn-accent { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; min-height: 46px; background: var(--sky-600); color: #fff; font-size: 0.875rem; font-weight: 600; border-radius: 6px; border: none; cursor: pointer; white-space: nowrap; transition: background 150ms; }
.btn-accent:hover { background: var(--sky-500); }
.btn-wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; min-height: 44px; background: var(--wa-green); color: #fff; font-size: 0.875rem; font-weight: 600; border-radius: 6px; border: none; cursor: pointer; white-space: nowrap; transition: background 150ms; }
.btn-wa:hover { background: var(--wa-green-dark); }
.btn-outline-light { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; min-height: 46px; border: 1px solid rgba(203,213,225,0.55); color: #fff; font-size: 0.875rem; font-weight: 500; border-radius: 6px; white-space: nowrap; }
.btn-outline-light:hover { border-color: #fff; }
.menu-toggle { display: none; background: transparent; border: 1px solid var(--slate-200); border-radius: 6px; min-width: 44px; min-height: 44px; font-size: 1.1rem; cursor: pointer; color: var(--slate-900); }
.mobile-nav { display: none; padding: 12px 24px 20px; border-top: 1px solid var(--slate-200); background: #fff; }
.mobile-nav.open { display: grid; gap: 8px; }
.mobile-nav a { padding: 10px 12px; border-radius: 6px; font-size: 0.9375rem; font-weight: 500; color: var(--slate-700); }
.mobile-nav a.active { background: var(--slate-100); color: var(--slate-900); font-weight: 600; }

/* Hero */
.hero { position: relative; background: var(--slate-950); color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,6,23,0.94) 0%, rgba(2,6,23,0.75) 55%, rgba(2,6,23,0.32) 100%); }
.hero-content { position: relative; padding: 96px 0; max-width: 740px; }
.hero-kicker { font-family: var(--font-mono); font-size: 0.8125rem; color: #38bdf8; margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.25rem, 4vw, 3.5rem); font-weight: 700; letter-spacing: -0.025em; margin-bottom: 20px; color: #fff; }
.hero-lead { font-size: 1.0625rem; color: #e2e8f0; max-width: 62ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* KPI Strip */
.kpi-strip { background: #fff; border-bottom: 1px solid var(--slate-200); padding: 32px 0; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.kpi-label { font-size: 0.75rem; color: var(--slate-500); }
.kpi-value { font-family: var(--font-mono); font-size: 1.55rem; font-weight: 600; color: var(--slate-900); margin-top: 4px; }

/* Sections & Cards */
.section { padding: 72px 0; }
.section-alt { background: #f1f5f9; border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); }
.section-white { background: #fff; border-top: 1px solid var(--slate-200); }
.section-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.eyebrow { font-size: 0.75rem; font-weight: 600; color: var(--sky-700); margin-bottom: 8px; }
.section-title { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700; color: var(--slate-900); letter-spacing: -0.02em; }
.section-sub { font-size: 0.9375rem; color: var(--slate-600); max-width: 65ch; margin-top: 10px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.col-span-2 { grid-column: span 2; }

.card { background: #fff; border: 1px solid var(--slate-200); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.card-featured { display: grid; grid-template-columns: 1fr 1fr; }
.card-media-43 { aspect-ratio: 4 / 3; overflow: hidden; }
.card-media-43 img, .card-featured img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; flex: 1; }
.card-meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--slate-500); margin-bottom: 8px; }
.card-title { font-size: 1.25rem; font-weight: 700; color: var(--slate-900); margin-bottom: 10px; }
.card-text { font-size: 0.9375rem; color: var(--slate-600); }
.app-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: 0.8125rem; color: var(--slate-700); }
.link-action { font-size: 0.875rem; font-weight: 600; color: var(--sky-700); }
.link-action:hover { color: var(--slate-900); }

.city-mini { background: #fff; border: 1px solid var(--slate-200); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 6px; transition: border-color 150ms; }
.city-mini:hover { border-color: var(--sky-700); }
.city-chip-link { display: inline-block; padding: 6px 12px; border: 1px solid var(--slate-200); border-radius: 6px; background: #fff; font-size: 0.8125rem; font-weight: 500; color: var(--slate-700); }
.city-chip-link:hover { border-color: var(--sky-700); color: var(--sky-700); }

/* Calculator */
.calc-box { background: #fff; border: 1px solid var(--slate-200); border-radius: 12px; overflow: hidden; }
.calc-head { padding: 24px 28px; border-bottom: 1px solid var(--slate-200); background: #f8fafc; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.tab-group { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: #e2e8f0; border-radius: 8px; }
.tab-btn { border: none; background: transparent; padding: 7px 12px; font-size: 0.75rem; font-weight: 600; color: var(--slate-600); border-radius: 6px; cursor: pointer; white-space: nowrap; }
.tab-btn.active { background: #fff; color: var(--slate-900); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.calc-body { display: grid; grid-template-columns: 7fr 5fr; }
.calc-inputs { padding: 28px; display: grid; gap: 18px; }
.calc-output { background: var(--slate-900); color: #fff; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.calc-total { font-family: var(--font-mono); font-size: 2.25rem; font-weight: 600; }
.calc-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; font-size: 0.875rem; }
.calc-dl dt { font-size: 0.75rem; color: #94a3b8; }
.calc-dl dd { margin: 4px 0 0; font-weight: 600; }

/* Forms & Inputs */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--slate-700); margin-bottom: 6px; }
.input, .select, .textarea { width: 100%; padding: 10px 12px; min-height: 42px; border: 1px solid #cbd5e1; border-radius: 6px; font-family: var(--font-sans); font-size: 0.875rem; color: var(--slate-900); background: #fff; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--sky-700); border-color: var(--sky-700); }
.alert-error { padding: 12px; border-radius: 6px; background: #fff1f2; border: 1px solid #fecdd3; color: #9f1239; font-size: 0.875rem; }
.alert-success { padding: 20px; border-radius: 8px; background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }

/* Table */
.table-wrap { overflow-x: auto; }
table.spec-table { width: 100%; border-collapse: collapse; text-align: left; }
.spec-table th { background: #f8fafc; font-size: 0.75rem; font-weight: 600; color: var(--slate-600); padding: 14px 20px; border-bottom: 1px solid var(--slate-200); white-space: nowrap; }
.spec-table td { padding: 16px 20px; border-bottom: 1px solid var(--slate-200); font-size: 0.875rem; color: var(--slate-700); }

/* FAQ */
.faq-list { border-top: 1px solid var(--slate-200); }
.faq-item { border-bottom: 1px solid var(--slate-200); padding: 16px 0; }
.faq-btn { width: 100%; background: none; border: none; padding: 0; text-align: left; font-size: 0.9375rem; font-weight: 600; color: var(--slate-900); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-answer { margin-top: 10px; font-size: 0.875rem; color: var(--slate-600); display: none; }
.faq-item.open .faq-answer { display: block; }

/* Footer */
.site-footer { background: var(--slate-950); color: #cbd5e1; border-top: 1px solid #1e293b; padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 5fr 3fr 4fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #1e293b; }
.footer-title { font-size: 0.75rem; font-weight: 600; color: #fff; margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 0.875rem; color: #94a3b8; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.75rem; color: #64748b; }

/* WhatsApp Floating Button */
.wa-float { position: fixed; bottom: 20px; right: 20px; z-index: 45; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; min-height: 44px; border-radius: 8px; background: var(--wa-green); color: #fff; font-size: 0.875rem; font-weight: 600; box-shadow: 0 10px 25px rgba(15,23,42,0.22); transition: transform 150ms, background 150ms; }
.wa-float:hover { background: var(--wa-green-dark); transform: translateY(-2px); }

@media (max-width: 960px) {
  .nav-links, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .bento-grid, .grid-3, .grid-4, .card-featured, .calc-body, .footer-grid { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .col-span-2 { grid-column: auto; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .grid-2, .grid-6, .form-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 64px 0; }
  .wa-label-desktop { display: none; }
}
