:root {
    --navy: #0A2F6E; --navy-deep: #051C48; --ice: #3FB6E8; --silver: #C9D0D9;
    --graphite: #3B4655; --mist: #F5F7FA; --white: #FFFFFF; --wa: #25D366;
    --ease-out: cubic-bezier(.23, 1, .32, 1);
    --ease-inout: cubic-bezier(.77, 0, .175, 1);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body { font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--graphite); background: var(--white); line-height: 1.5; -webkit-font-smoothing: antialiased; font-optical-sizing: auto; }
  h1, h2, h3, .brand { font-family: "Exo 2", system-ui, Arial, sans-serif; }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; }
  .wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

  /* Cabeçalho em vidro: flutua sobre o conteúdo */
  .glass-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(255, 255, 255, .72); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-bottom: 1px solid rgba(10, 47, 110, .08); color: var(--navy); transition: background 300ms var(--ease-out); }
  .glass-nav.scrolled { background: rgba(255, 255, 255, .9); box-shadow: 0 10px 30px -18px rgba(10, 47, 110, .35); }
  .glass-nav .pill { background: var(--navy); color: #fff; }
  .glass-nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; font-size: 13px; font-weight: 600; letter-spacing: .06em; }
  .glass-nav .brand { font-weight: 800; letter-spacing: .14em; font-size: 15px; margin-right: auto; }
  .glass-nav a.link { opacity: .86; transition: opacity 200ms ease, color 200ms ease; }
  .glass-nav a.link:hover { opacity: 1; color: #1F8FC4; }
  .pill { background: var(--ice); color: var(--navy-deep); padding: 9px 18px; border-radius: 999px; transition: transform 160ms var(--ease-out); }
  .pill:active { transform: scale(.97); }

  /* Botões */
  .btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 14px 26px; border-radius: 999px; transition: transform 160ms var(--ease-out), background 200ms ease; }
  .btn:active { transform: scale(.97); }
  .btn-primary { background: var(--navy); color: #fff; }
  .btn-primary:hover { background: #0D3A86; }
  .btn-ghost { color: var(--navy); }
  .btn-ghost::after { content: "›"; font-size: 18px; transition: transform 300ms var(--ease-out); }
  .btn-ghost:hover::after { transform: translateX(3px); }
  .btn-light { background: #fff; color: var(--navy); }
  .btn-wa { background: var(--wa); color: #fff; }

  /* Hero: diagrama de serviços */
  .hero { position: relative; min-height: 100vh; min-height: 100svh; background: radial-gradient(120% 80% at 50% 0%, #163D8A 0%, var(--navy) 35%, var(--navy-deep) 100%); color: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 120px 0 60px; }
  .hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(63, 182, 232, .18), transparent 55%); pointer-events: none; }
  .hero h1 { font-weight: 700; font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -.03em; text-align: center; }
  .hero h1 span { color: var(--ice); }
  .hero .sub { margin: 18px auto 0; max-width: 560px; text-align: center; font-size: clamp(16px, 1.6vw, 19px); color: #C9D6E8; letter-spacing: -.01em; }
  .hero .actions { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
  .diagram { position: relative; margin: 56px auto 0; width: 100%; max-width: 860px; aspect-ratio: 860 / 380; }
  .diagram svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .diagram svg.lines path { fill: none; stroke: rgba(63, 182, 232, .55); stroke-width: 1.5; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.2s var(--ease-out); }
  .js .diagram.in svg.lines path { stroke-dashoffset: 0; }
  .node { position: absolute; transform: translate(-50%, -50%) scale(.9); opacity: 0; transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: #E6EEF9; }
  .node .ico { width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(63, 182, 232, .6); background: rgba(255, 255, 255, .06); display: grid; place-items: center; backdrop-filter: blur(10px); }
  .node .ico svg { width: 26px; height: 26px; stroke: var(--ice); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .node.hot .ico { background: var(--ice); border-color: var(--ice); }
  .node.hot .ico svg { stroke: var(--navy-deep); }
  .js .diagram.in .node { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .diagram .core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 150px; height: 150px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 14px rgba(63, 182, 232, .12), 0 30px 60px rgba(0, 0, 0, .35); }
  .diagram .core img { width: 120px; }
  .node.n-com { left: 18.6%; top: 18.4%; }
  .node.n-res { left: 81.4%; top: 18.4%; }
  .node.n-ar { left: 13.9%; top: 65.8%; }
  .node.n-man { left: 86%; top: 65.8%; }

  /* Seções */
  section.block { padding: 110px 0; }
  .eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--ice); text-transform: uppercase; }
  h2 { color: var(--navy); font-weight: 700; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.06; letter-spacing: -.028em; margin-top: 12px; }
  .lead { font-size: clamp(16px, 1.5vw, 19px); margin-top: 16px; max-width: 580px; letter-spacing: -.01em; }
  .center { text-align: center; }
  .center .lead { margin-left: auto; margin-right: auto; }

  /* Abas de serviço */
  .tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 44px; position: relative; padding: 6px; background: var(--mist); border-radius: 999px; width: max-content; max-width: 100%; margin-left: auto; margin-right: auto; }
  .tab { position: relative; z-index: 1; border: 0; background: transparent; padding: 11px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--graphite); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: color 250ms ease; }
  .tab svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tab[aria-selected="true"] { color: #fff; }
  .tab:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
  .indicator { position: absolute; top: 6px; bottom: 6px; left: 0; border-radius: 999px; background: var(--navy); z-index: 0; will-change: transform, width; }
  .panel { display: none; margin-top: 48px; }
  .panel.active { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; animation: rise 500ms var(--ease-out) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  .panel h3 { color: var(--navy); font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
  .panel .desc { margin-top: 14px; font-size: 17px; letter-spacing: -.01em; }
  .panel .tagline { margin-top: 26px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
  .panel ul { list-style: none; margin-top: 14px; display: grid; gap: 10px; }
  .panel li { position: relative; padding-left: 26px; font-size: 16px; }
  .panel li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle, var(--ice) 40%, transparent 42%); }
  .panel .btn { margin-top: 28px; }
  .list-card { background: var(--mist); border-radius: 24px; padding: 36px; }
  .list-card .tile { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .list-card .tile span { background: #fff; border-radius: 14px; padding: 16px 14px; font-size: 14px; font-weight: 600; color: var(--navy); box-shadow: 0 1px 0 rgba(10, 47, 110, .06); }
  .list-card .tile span.hot { background: var(--navy); color: #fff; }
  .list-card .tile-title { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--graphite); margin-bottom: 14px; }

  /* Destaque comercial (escuro) */
  .dark { background: var(--navy-deep); color: #C9D6E8; overflow: hidden; }
  .dark h2 { color: #fff; }
  .dark .eyebrow { color: var(--ice); }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
  .stat { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 18px; }
  .stat strong { display: block; font-family: "Exo 2", sans-serif; font-size: 28px; color: #fff; letter-spacing: -.02em; }
  .stat span { font-size: 14px; }
  .dark-cta { margin-top: 44px; }
  .phone { margin: 0 auto; width: 300px; height: 560px; border-radius: 44px; background: #0B1B3A; padding: 14px; box-shadow: 0 40px 80px rgba(0, 0, 0, .45), inset 0 0 0 2px #1C2F57; position: relative; }
  .phone .screen { width: 100%; height: 100%; border-radius: 32px; background: linear-gradient(180deg, #F3F7FB, #E6EEF7); padding: 58px 16px 16px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
  .phone .chat-head { position: absolute; top: 22px; left: 0; right: 0; text-align: center; color: var(--navy); font-size: 13px; font-weight: 700; }
  .bubble { max-width: 82%; padding: 11px 14px; border-radius: 18px; font-size: 14px; line-height: 1.4; color: var(--graphite); background: #fff; box-shadow: 0 1px 2px rgba(10, 47, 110, .08); opacity: 0; transform: translateY(8px); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); }
  .bubble.me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 6px; }
  .bubble.bot { border-bottom-left-radius: 6px; }
  .phone.in .bubble { opacity: 1; transform: none; }
  .phone.in .bubble:nth-child(2) { transition-delay: 350ms; }
  .phone.in .bubble:nth-child(3) { transition-delay: 800ms; }
  .phone.in .bubble:nth-child(4) { transition-delay: 1250ms; }
  .phone.in .bubble:nth-child(5) { transition-delay: 1700ms; }
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); }
  .js .reveal.in { opacity: 1; transform: none; }

  /* Faixa de foto abaixo do hero */
  .photo-band { position: relative; height: 520px; overflow: hidden; background: var(--navy-deep); color: #fff; }
  .photo-band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
  .photo-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 28, 72, .92) 0%, rgba(5, 28, 72, .6) 45%, rgba(5, 28, 72, 0) 75%); }
  .photo-band-copy { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
  .photo-band-copy h2 { color: #fff; font-size: clamp(30px, 4vw, 48px); max-width: 520px; }
  .photo-band-copy p { margin-top: 14px; font-size: 17px; color: #C9D6E8; max-width: 440px; }
  .photo-band-copy .btn { margin-top: 28px; }

  /* Categorias com foto */
  .cats { padding-top: 90px; }
  .cats .center { margin-bottom: 44px; }
  .cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .cat-card { display: block; border-radius: 24px; overflow: hidden; background: var(--mist); box-shadow: 0 20px 40px -26px rgba(10, 47, 110, .35); transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out); }
  .cat-card img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
  .cat-body { padding: 24px 24px 28px; }
  .cat-body h3 { color: var(--navy); font-size: 21px; letter-spacing: -.015em; }
  .cat-body p { margin-top: 6px; font-size: 15px; }
  @media (hover: hover) { .cat-card:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -26px rgba(10, 47, 110, .45); } }

  /* Animação ao rolar: cada bloco entra quando aparece na tela */
  .js .cat-card.reveal { transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out), box-shadow 400ms var(--ease-out); }
  .js .cat-grid .cat-card:nth-child(2) { transition-delay: 120ms; }
  .js .cat-grid .cat-card:nth-child(3) { transition-delay: 240ms; }
  .js .photo-band-img { transform: scale(1.06); transition: transform 1600ms var(--ease-out); }
  .js .photo-band.in .photo-band-img { transform: scale(1); }
  .js .photo-band-copy.reveal { transition-delay: 200ms; }
  .js .list-card.reveal { transition-delay: 150ms; }

  /* Assinatura APSS Digital (pílula escura, como no Edu Kids) */
  .dev-credit { display: inline-flex; align-items: center; gap: 10px; background: #151C2E; border-radius: 999px; padding: 8px 16px 8px 14px; color: #8A93A8; font-size: 12px; transition: transform 200ms var(--ease-out), background 200ms ease; }
  .dev-credit img { height: 22px; width: auto; display: block; }
  .dev-credit:hover { transform: translateY(-1px); background: #1B2440; }
  .dev-credit:focus-visible { outline-color: var(--ice); }

  /* Botão flutuante do WhatsApp */
  .wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; background: var(--wa); color: #fff; font-weight: 700; font-size: 15px; padding: 14px 20px 14px 16px; border-radius: 999px; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .6), 0 4px 12px rgba(5, 28, 72, .25); transition: transform 200ms var(--ease-out), box-shadow 200ms ease; }
  .wa-float svg { width: 26px; height: 26px; flex-shrink: 0; }
  .wa-float:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(37, 211, 102, .7), 0 6px 16px rgba(5, 28, 72, .3); }
  .wa-float:active { transform: scale(.97); }
  .wa-float:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
  @media (max-width: 560px) {
    .wa-float { right: 14px; bottom: 14px; padding: 14px; width: 56px; height: 56px; justify-content: center; }
    .wa-float span { display: none; }
  }

  /* Passos */
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
  .step { background: #fff; border-radius: 24px; padding: 34px 28px; box-shadow: 0 1px 0 rgba(10, 47, 110, .06), 0 20px 40px -24px rgba(10, 47, 110, .25); transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out); }
  .step .n { font-family: "Exo 2", sans-serif; font-size: 14px; font-weight: 700; color: var(--ice); letter-spacing: .08em; }
  .step h3 { color: var(--navy); font-size: 22px; margin-top: 14px; letter-spacing: -.015em; }
  .step p { margin-top: 8px; font-size: 15px; }
  @media (hover: hover) { .step:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(10, 47, 110, .06), 0 30px 50px -24px rgba(10, 47, 110, .35); } }

  /* Faixa final */
  .closing { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; text-align: center; padding: 120px 0; }
  .closing h2 { color: #fff; }
  .closing p { color: #C9D6E8; margin: 16px auto 0; max-width: 520px; font-size: 18px; }
  .closing .btn { margin-top: 34px; }

  /* Rodapé */
  footer { background: #030F26; color: #8D9BB3; padding: 64px 0 30px; font-size: 14px; }
  footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
  footer h4 { color: #fff; font-size: 13px; letter-spacing: .08em; margin-bottom: 14px; font-weight: 600; text-transform: uppercase; }
  footer li { list-style: none; margin-bottom: 8px; }
  footer .fake { color: #56688A; font-style: italic; }
  footer .bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid #14264A; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; }


  .glass-nav .brand { margin-right: auto; display: inline-flex; }
  .logo-chip { height: 46px; width: auto; display: block; }
  .footer-logo { height: 56px; width: auto; display: block; background: #fff; border-radius: 14px; padding: 8px 14px; margin-bottom: 16px; }

  ::selection { background: var(--ice); color: var(--navy-deep); }
  :focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 6px; }
  a:focus-visible, button:focus-visible { outline-color: var(--navy); }

  /* Movimento reduzido e transparência reduzida */
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: opacity 200ms ease !important; }
    .js .reveal, .js .node, .bubble { transform: none !important; }
    .js .diagram svg.lines path { stroke-dashoffset: 0; transition: none; }
  }
  @media (prefers-reduced-transparency: reduce) {
    .glass-nav { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  }

  /* Responsivo */
  @media (max-width: 900px) {
    .panel.active, .split { grid-template-columns: 1fr; gap: 36px; }
    .steps { grid-template-columns: 1fr; }
    footer .cols { grid-template-columns: 1fr 1fr; }
    .glass-nav a.link { display: none; }
    .node { font-size: 11px; }
    .node .ico { width: 48px; height: 48px; }
    .node .ico svg { width: 20px; height: 20px; }
    .diagram .core { width: 110px; height: 110px; }
    .diagram .core img { width: 88px; }
    .tabs { width: 100%; border-radius: 22px; }
    .phone { width: 270px; height: 500px; }
  }
  @media (max-width: 900px) {
    .diagram { aspect-ratio: auto; max-width: 420px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; }
    .diagram svg.lines { display: none; }
    .diagram .core { position: static; transform: none; grid-column: 1 / -1; justify-self: center; margin-bottom: 8px; }
    .diagram .node, .js .diagram.in .node { position: static; transform: none; opacity: 1; }
  }
  .btn-outline { color: #fff; border: 1px solid rgba(255, 255, 255, .45); }
  .btn-outline:hover { background: rgba(255, 255, 255, .1); }
  @media (max-width: 900px) {
    .cat-grid { grid-template-columns: 1fr; }
    .cat-card img { aspect-ratio: 4 / 3; height: auto; }
    .photo-band { height: 440px; }
    .photo-band::after { background: linear-gradient(180deg, rgba(5, 28, 72, .55) 0%, rgba(5, 28, 72, .92) 100%); }
    .photo-band-img { object-position: 60% center; }
    .photo-band-copy { justify-content: flex-end; padding-bottom: 40px; }
  }
  @media (max-width: 560px) {
    .tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; border-radius: 22px; padding: 5px; gap: 4px; }
    .tab { justify-content: center; text-align: center; padding: 11px 4px; font-size: 13px; line-height: 1.2; }
    .tab svg { display: none; }
    footer .cols { grid-template-columns: 1fr; }
    .stat-row { grid-template-columns: 1fr 1fr; }
  }
