:root {
  --bg: #05070c;
  --bg-soft: #090d14;
  --surface: #0e141d;
  --surface-2: #151d27;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f7fa;
  --muted: #aab3bf;
  --blue: #3279f5;
  --blue-dark: #1f5dce;
  --cyan: #58d4e7;
  --green: #23d393;
  --gold: #f0c76a;
  --red: #ff7782;
  --ink: #111820;
  --max: 1180px;
  --radius: 8px;
  --nav-height: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
section[id], header[id] { scroll-margin-top: calc(var(--nav-height) + 16px); }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: "Manrope", sans-serif; font-size: 16px; letter-spacing: 0; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.section { padding: 100px 0; }
.section-line { border-top: 1px solid var(--line); }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--blue); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.eyebrow.green { color: var(--green); }
.eyebrow.gold { color: var(--gold); }
.eyebrow.red { color: var(--red); }
.section-title { max-width: 790px; margin: 0; font-size: 48px; line-height: 1.08; font-weight: 800; }
.section-copy { max-width: 700px; margin: 22px 0 0; color: var(--muted); font-size: 18px; line-height: 1.72; }

.site-nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-height); border-bottom: 1px solid transparent; background: rgba(5,7,12,.76); backdrop-filter: blur(18px); transition: border-color 180ms ease, background 180ms ease; }
.site-nav.scrolled { border-color: var(--line); background: rgba(5,7,12,.96); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; flex: 0 0 auto; }
.brand img { width: 164px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 22px; color: #c4ccd6; font-size: 13px; font-weight: 700; }
.nav-links a { transition: color 160ms ease; }
.nav-links a:hover { color: #fff; }
.nav-highlight { padding: 8px 10px; border: 1px solid rgba(88,212,231,.36); border-radius: 5px; background: rgba(88,212,231,.08); color: #bdeff6; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-link, .menu-button { width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.04); cursor: pointer; }
.icon-link:hover, .menu-button:hover { background: rgba(255,255,255,.1); border-color: var(--line-strong); }
.menu-button { display: none; }
.nav-cta, .button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; border: 1px solid transparent; border-radius: 6px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 800; cursor: pointer; transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.nav-cta:hover, .button:hover { transform: translateY(-2px); background: #4a8cff; box-shadow: 0 12px 32px rgba(50,121,245,.2); }
.button.secondary { border-color: var(--line-strong); background: rgba(255,255,255,.06); color: #fff; box-shadow: none; }
.button.secondary:hover { background: rgba(255,255,255,.11); }
.button.gold { background: var(--gold); color: #211805; }
.button.gold:hover { background: #ffdc87; }
.button.green { background: var(--green); color: #04140e; }
.mobile-panel { display: none; }

.hero { position: relative; height: calc(100svh - 40px); min-height: 630px; max-height: 820px; display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); background: url("assets/wifacil-hero.webp") center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,7,12,.92) 0%, rgba(5,7,12,.82) 52%, rgba(5,7,12,.22) 72%, rgba(5,7,12,0) 88%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 130px; background: linear-gradient(0deg, var(--bg), transparent); pointer-events: none; }
.hero-content { position: relative; z-index: 2; padding-top: var(--nav-height); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 25px; }
.tag { min-height: 31px; display: inline-flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid rgba(88,212,231,.32); border-radius: 999px; background: rgba(5,7,12,.68); color: #c1f2f8; font-size: 11px; font-weight: 800; backdrop-filter: blur(8px); }
.tag.gold { border-color: rgba(240,199,106,.38); color: #ffe2a0; }
.hero h1 { max-width: 760px; margin: 0; font-size: 68px; line-height: 1.02; font-weight: 800; }
.hero h1 span { color: #69a3ff; }
.hero-description { max-width: 670px; margin: 25px 0 0; color: #cbd2da; font-size: 19px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-proof { max-width: 720px; display: grid; grid-template-columns: repeat(4,1fr); margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); }
.proof-item { padding-right: 18px; }
.proof-item strong { display: block; color: #fff; font-size: 18px; }
.proof-item span { display: block; margin-top: 5px; color: #9ba6b2; font-size: 10px; line-height: 1.45; }

.capability-bar { position: relative; z-index: 3; background: #edf2f6; color: var(--ink); }
.capability-grid { min-height: 110px; display: grid; grid-template-columns: 1.25fr repeat(4,1fr); }
.capability-lead, .capability-item { display: flex; flex-direction: column; justify-content: center; padding: 20px 22px; border-right: 1px solid rgba(5,8,13,.11); }
.capability-lead { padding-left: 0; }
.capability-lead p { max-width: 220px; margin: 0; font-weight: 800; line-height: 1.35; }
.capability-item i { color: var(--blue); }
.capability-item strong { margin-top: 8px; font-size: 12px; }
.capability-item span { margin-top: 4px; color: #69737e; font-size: 10px; line-height: 1.4; }

.partner-band { background: var(--bg-soft); }
.partner-shell { display: grid; grid-template-columns: .92fr 1.08fr; gap: 70px; align-items: center; }
.partner-points { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 30px; border: 1px solid var(--line); background: var(--line); }
.partner-point { min-height: 126px; padding: 22px; background: var(--bg-soft); }
.partner-point i { color: var(--cyan); }
.partner-point strong { display: block; margin-top: 14px; font-size: 14px; }
.partner-point span { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.partner-visual { position: relative; min-height: 520px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.partner-visual img { width: 100%; height: 520px; object-fit: cover; object-position: center 26%; }
.partner-caption { position: absolute; inset: auto 0 0; padding: 22px; background: rgba(5,7,12,.92); border-top: 1px solid var(--line); }
.partner-caption strong { display: block; font-size: 15px; }
.partner-caption span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.partner-visual.dashboard-visual { min-height: 0; display: block; }
.partner-visual.dashboard-visual img { height: auto; object-fit: contain; object-position: center; }
.dashboard-visual .partner-caption { position: static; }

.light-section { background: #f2f5f7; color: var(--ink); }
.light-section .section-copy { color: #5f6973; }
.journey-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 68px; align-items: start; margin-top: 52px; }
.journey-steps { border-top: 1px solid rgba(5,8,13,.14); }
.journey-step { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 22px 0; border-bottom: 1px solid rgba(5,8,13,.12); }
.journey-step b { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-size: 11px; }
.journey-step strong { display: block; font-size: 15px; }
.journey-step span { display: block; margin-top: 5px; color: #69737e; font-size: 12px; line-height: 1.5; }
.screen-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.screen-card { min-width: 0; margin: 0; overflow: hidden; border: 1px solid rgba(5,8,13,.16); border-radius: var(--radius); background: #fff; box-shadow: 0 20px 44px rgba(32,45,57,.12); }
.screen-card button { width: 100%; display: block; padding: 0; border: 0; background: #0b1018; cursor: zoom-in; }
.screen-card img { width: 100%; height: 390px; object-fit: cover; object-position: top; transition: transform 180ms ease; }
.screen-card:hover img { transform: scale(1.015); }
.screen-card figcaption { min-height: 105px; padding: 15px; }
.screen-card strong { display: block; font-size: 12px; }
.screen-card span { display: block; margin-top: 6px; color: #69737e; font-size: 10px; line-height: 1.45; }

.feature-header { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 46px; }
.feature-card { min-height: 190px; padding: 25px; border: 1px solid var(--line); background: var(--surface); }
.feature-card i { color: var(--cyan); font-size: 18px; }
.feature-card h3 { margin: 24px 0 0; font-size: 16px; }
.feature-card p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.58; }

.segments { background: #eef3f6; color: var(--ink); }
.segments .section-copy { color: #5e6872; }
.segment-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 44px; }
.segment-card { min-height: 170px; padding: 22px; border: 1px solid rgba(5,8,13,.13); background: #fff; }
.segment-card i { color: var(--blue); }
.segment-card h3 { margin: 20px 0 0; font-size: 15px; }
.segment-card p { margin: 7px 0 0; color: #68737d; font-size: 11px; line-height: 1.55; }

.risk-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; align-items: start; }
.risk-list { border-top: 1px solid var(--line); }
.risk-item { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.risk-item i { color: var(--red); margin-top: 3px; }
.risk-item strong { display: block; font-size: 14px; }
.risk-item span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }

.hardware { background: #f4f7f9; color: var(--ink); }
.hardware .section-copy { color: #5f6973; }
.hardware-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 42px; }
.hardware-item { min-width: 0; padding: 30px; border: 1px solid rgba(5,8,13,.14); background: #fff; }
.hardware-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.hardware-heading > span { padding: 7px 9px; border: 1px solid #d4e2f2; border-radius: 5px; color: #53708e; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.hardware-icon { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 6px; background: #e5efff; color: var(--blue); }
.hardware-item h3 { margin: 24px 0 0; font-size: 22px; }
.hardware-fit { display: block; margin-top: 9px; color: var(--blue-dark); font-size: 12px; }
.hardware-item p { margin: 14px 0 0; color: #65707a; font-size: 12px; line-height: 1.65; }
.hardware-details { display: grid; gap: 10px; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(5,8,13,.12); list-style: none; }
.hardware-details li { display: flex; align-items: center; gap: 9px; color: #4f5d69; font-size: 11px; font-weight: 700; }
.hardware-details i { color: #13a875; }
.hardware-models { display: grid; gap: 1px; margin: 22px 0 0; background: rgba(5,8,13,.1); }
.hardware-models div { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px; background: #f7f9fb; }
.hardware-models dt { font-size: 11px; font-weight: 800; }
.hardware-models dd { margin: 0; color: #6b7781; font-size: 9px; font-weight: 700; text-align: right; text-transform: uppercase; }

.ecosystem { background: #090c12; }
.ecosystem-head { display: flex; align-items: end; justify-content: space-between; gap: 44px; }
.ecosystem-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 44px; }
.ecosystem-card { min-height: 280px; display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); background: var(--surface); transition: transform 160ms ease, border-color 160ms ease; }
.ecosystem-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.ecosystem-logo { height: 44px; display: flex; align-items: center; }
.ecosystem-logo img { max-width: 165px; max-height: 38px; width: auto; height: auto; }
.ecosystem-card h3 { margin: 28px 0 0; font-size: 19px; }
.ecosystem-card p { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.ecosystem-card span { display: inline-flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 24px; color: var(--cyan); font-size: 12px; font-weight: 800; }

.faq-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 72px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 23px 42px 23px 0; font-weight: 800; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 2px; top: 20px; color: var(--cyan); font-size: 23px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: -5px 0 23px; color: var(--muted); line-height: 1.65; }

.closing { padding: 88px 0; border-top: 1px solid var(--line); }
.closing-shell { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; padding: 54px; border: 1px solid rgba(50,121,245,.32); border-radius: var(--radius); background: var(--surface); }
.closing h2 { margin: 0; font-size: 45px; line-height: 1.08; }
.closing p { margin: 20px 0 0; color: var(--muted); line-height: 1.7; }
.closing-video { overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #000; }
.closing-video video { width: 100%; max-height: 360px; display: block; background: #000; }
.closing-proof { min-height: 300px; display: flex; flex-direction: column; justify-content: center; padding: 42px; border-left: 3px solid var(--cyan); background: #090d14; }
.closing-proof span { color: var(--cyan); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.closing-proof strong { display: block; margin-top: 15px; font-size: 28px; line-height: 1.15; }
.closing-proof p { margin-top: 15px; font-size: 13px; }

.subpage-hero { padding: 146px 0 74px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.subpage-hero-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: 60px; align-items: center; }
.subpage-hero h1 { margin: 0; font-size: 58px; line-height: 1.04; }
.subpage-hero h1 span { color: #69a3ff; }
.subpage-hero p { max-width: 690px; margin: 22px 0 0; color: #c4ccd5; font-size: 18px; line-height: 1.7; }
.subpage-visual { position: relative; min-height: 460px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.subpage-visual img { width: 100%; height: 460px; object-fit: cover; object-position: center 25%; }
.subpage-visual .visual-label { position: absolute; inset: auto 0 0; padding: 18px; border-top: 1px solid var(--line); background: rgba(5,7,12,.93); color: var(--muted); font-size: 11px; }
.subpage-visual.dashboard-header { min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.subpage-visual.dashboard-header img { height: auto; object-fit: contain; object-position: center; }
.subpage-visual.dashboard-header .visual-label { position: static; }
.content-intro { max-width: 780px; }
.video-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 44px; }
.video-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.video-card video { width: 100%; aspect-ratio: 9 / 16; max-height: 500px; display: block; background: #000; object-fit: contain; }
.video-card-content { padding: 20px; }
.video-card h2 { margin: 0; font-size: 17px; }
.video-card p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

.site-footer { padding: 48px 0; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; }
.footer-brand img { width: 154px; height: auto; }
.footer-brand p { margin: 13px 0 0; color: #7f8994; font-size: 11px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 20px; color: #9da6b0; font-size: 12px; }
.footer-links a:hover { color: #fff; }
.floating-whatsapp { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #06160f; font-size: 22px; box-shadow: 0 14px 36px rgba(0,0,0,.35); }
.image-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(2,4,7,.94); backdrop-filter: blur(16px); }
.image-modal.open { display: flex; }
.image-modal img { max-width: 95vw; max-height: 88vh; object-fit: contain; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #080c12; }
.modal-close { position: fixed; top: 18px; right: 18px; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(255,255,255,.08); cursor: pointer; }

@media (max-width: 1060px) {
  .nav-links { display: none; }
  .menu-button { display: inline-grid; }
  .mobile-panel { position: fixed; inset: var(--nav-height) 0 auto; z-index: 49; display: none; padding: 16px 24px 24px; border-bottom: 1px solid var(--line); background: rgba(5,7,12,.98); }
  .mobile-panel.open { display: grid; }
  .mobile-panel a { padding: 13px 0; border-bottom: 1px solid var(--line); color: #d3dae1; font-size: 14px; font-weight: 700; }
  .partner-shell, .journey-grid, .risk-layout, .faq-layout, .subpage-hero-layout { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .segment-grid { grid-template-columns: repeat(2,1fr); }
  .ecosystem-grid { grid-template-columns: 1fr 1fr; }
  .video-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 680px) {
  :root { --nav-height: 64px; }
  .container { width: min(100% - 32px, var(--max)); }
  .section { padding: 72px 0; }
  .section-title { font-size: 36px; }
  .section-copy { font-size: 16px; }
  .site-nav { height: var(--nav-height); }
  .brand img { width: 145px; }
  .nav-cta, .nav-actions .icon-link { display: none; }
  .menu-button { display: inline-grid; }
  .hero { height: calc(100svh - 34px); min-height: 720px; max-height: 820px; align-items: flex-start; background-position: 68% center; }
  .hero::before { content: ""; position: absolute; inset: 0; background: rgba(5,7,12,.68); }
  .hero-content { padding-top: 108px; }
  .hero-tags { margin-bottom: 20px; }
  .tag { font-size: 10px; }
  .hero h1 { font-size: 43px; line-height: 1.04; }
  .hero-description { margin-top: 19px; font-size: 16px; line-height: 1.55; }
  .hero-actions { margin-top: 25px; }
  .hero-actions .button { width: 100%; }
  .hero-proof { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; padding-top: 17px; }
  .capability-grid { grid-template-columns: 1fr 1fr; }
  .capability-lead { grid-column: 1 / -1; min-height: 86px; padding-left: 0; border-bottom: 1px solid rgba(5,8,13,.11); }
  .capability-item { min-height: 98px; padding: 16px 12px; }
  .partner-shell { gap: 40px; }
  .partner-points { grid-template-columns: 1fr; }
  .partner-visual, .partner-visual img { min-height: 430px; height: 430px; }
  .partner-visual.dashboard-visual, .partner-visual.dashboard-visual img { min-height: 0; height: auto; }
  .screen-grid { grid-template-columns: repeat(3,240px); overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
  .screen-card { scroll-snap-align: start; }
  .screen-card img { height: 390px; }
  .feature-header, .ecosystem-head { display: block; }
  .feature-grid, .segment-grid, .ecosystem-grid, .hardware-grid, .video-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 165px; }
  .closing-shell { grid-template-columns: 1fr; gap: 34px; padding: 28px 22px; }
  .closing h2 { font-size: 34px; }
  .subpage-hero { padding: 112px 0 62px; }
  .subpage-hero h1 { font-size: 42px; }
  .subpage-visual, .subpage-visual img { min-height: 410px; height: 410px; }
  .subpage-visual.dashboard-header, .subpage-visual.dashboard-header img { min-height: 0; height: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
