/* ============================================================
   Aionis Solutions — Landing Page
   Marinho + ciano + teal. Sora (títulos) + Inter (texto).
   ============================================================ */

:root {
  --navy:      #0A0F2E;
  --navy-2:    #131A45;
  --cyan:      #00B8FD;
  --cyan-hov:  #33C7FE;
  --teal:      #007F92;
  --teal-text: #00697A;   /* teal para texto pequeno em fundo claro (AA) */
  --bg:        #FFFFFF;
  --bg-alt:    #F6F7FB;
  --ink:       #0E1430;
  --muted:     #4E566B;
  --line:      #DDE2EE;
  --on-dark:   rgba(255,255,255,.80);
  --focus:     #00697A;
  --warn:      #FFE66B;

  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 18px 40px -22px rgba(10,15,46,.35);
  --maxw:      1160px;
  --header-h:  68px;
  --ease:      cubic-bezier(.23, 1, .32, 1);

  --font-head: 'Sora', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  caret-color: var(--teal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--cyan); color: var(--navy); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; color: var(--navy); text-wrap: balance; }
p { text-wrap: pretty; }

.icon {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.num { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.section-dark :focus-visible, .hero :focus-visible, .site-footer :focus-visible, .wa-bar:focus-visible { outline-color: var(--cyan); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: var(--radius-sm);
  transition: top .15s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Marcadores de conteúdo pendente (só em dev: ?dev ou localhost) ---------- */
.todo { display: none !important; }
html.dev .todo {
  display: block !important;
  background: var(--warn); color: #3a2f00;
  outline: 2px dashed #b38f00; outline-offset: 2px;
  padding: 4px 8px; border-radius: 6px; font-size: .9rem;
}
html.dev span.todo { display: inline !important; }
html.dev details.todo { padding: 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; line-height: 1.25; text-align: center;
  border: 2px solid transparent; border-radius: 999px; cursor: pointer;
  transition: transform .12s var(--ease), background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:active, .wa-bar:active, .menu-toggle:active, .card-cta:active { transform: scale(.96); }
.btn-primary { background: var(--cyan); color: var(--navy); }
.btn-primary:hover { background: var(--cyan-hov); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.55); background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-header { min-height: 44px; padding: 8px 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand-logo { height: 44px; width: auto; }

.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: .95rem; font-weight: 500; color: var(--muted); border-radius: 999px;
  transition: color .15s ease, background-color .15s ease;
}
.nav-list a:hover { color: var(--navy); background: var(--bg-alt); }
.nav-list a.is-active, .mobile-nav a.is-active { color: var(--teal-text); font-weight: 600; background: #E6F4F7; }

.menu-toggle {
  display: none; width: 48px; height: 48px; align-items: center; justify-content: center;
  background: transparent; border: 0; border-radius: 12px; color: var(--navy); cursor: pointer;
  transition: transform .12s var(--ease);
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav { border-top: 1px solid var(--line); background: #fff; padding: 8px 24px 16px; }
.mobile-nav a {
  display: flex; align-items: center; min-height: 52px; padding: 0 12px;
  font-weight: 500; border-radius: var(--radius-sm); border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { border-bottom: 0; }

/* ---------- Seções ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: 44px; }
.section-title { font-size: clamp(1.65rem, 3.4vw, 2.4rem); font-weight: 700; letter-spacing: -.01em; }
.section-lead { margin-top: 16px; font-size: 1.1rem; color: var(--muted); }
.section-dark .section-lead { color: var(--on-dark); }

.icon-circle {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy); color: var(--cyan);
}
.icon-circle-sm { width: 44px; height: 44px; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #fff; padding: 72px 0 80px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-title { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -.02em; color: #fff; }
.hero-subtitle { margin-top: 20px; font-size: 1.2rem; color: var(--on-dark); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-support { margin-top: 22px; font-size: .95rem; color: var(--on-dark); font-variant-numeric: tabular-nums; }

.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.device {
  width: 100%; max-width: 400px; padding: 10px;
  background: #1B2354; border: 1px solid rgba(255,255,255,.18); border-radius: 24px;
  box-shadow: 0 40px 80px -30px rgba(0,184,253,.35), 0 30px 60px -30px rgba(0,0,0,.6);
}
.device img { border-radius: 16px; width: 100%; }
.hero-visual figcaption { font-size: .88rem; color: var(--on-dark); }

/* ---------- Problema ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pain { padding: 28px; background: var(--bg-alt); border-radius: var(--radius); }
.pain h3 { margin: 18px 0 8px; font-size: 1.15rem; }
.pain p { color: var(--muted); }
.pain-close {
  margin-top: 40px; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--teal-text);
}

/* ---------- Soluções ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.card h3 { font-size: 1.3rem; }
.card p { color: var(--muted); flex: 1; }
.card-featured { background: var(--cyan); border-color: var(--cyan); }
.card-featured h3, .card-featured p { color: var(--navy); }
.card-featured .icon-circle { background: var(--navy); color: var(--cyan); }
.card-cta {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 4px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--teal-text);
  border-bottom: 2px solid currentColor;
  transition: transform .12s var(--ease), color .15s ease;
}
.card-cta:hover { color: var(--navy); }
.card-featured .card-cta { color: var(--navy); }
.card-featured .card-cta .icon { width: 20px; height: 20px; }
.card-cta .icon { width: 20px; height: 20px; }

/* ---------- Clientes ---------- */
.client-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: start; }
.client {
  display: flex; flex-direction: column; gap: 16px; padding: 32px;
  background: var(--bg-alt); border-radius: var(--radius);
}
.client-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.client-head h3 { font-size: 1.35rem; }
.client-sub { font-size: .92rem; color: var(--muted); }
.client-head .badge { margin-left: auto; }
.client-quote { font-family: var(--font-head); font-weight: 600; color: var(--teal-text); }
.client-result { padding: 14px 16px; background: #fff; border-radius: var(--radius-sm); }
.check-list { display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.check-list .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--teal); }
.shot { max-width: 300px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }

.badge {
  display: inline-flex; align-items: center; min-height: 30px; padding: 4px 12px;
  font-size: .82rem; font-weight: 600; border-radius: 999px;
  background: var(--navy); color: #fff;
}
.badge-light { background: rgba(0,184,253,.16); color: var(--cyan); border: 1px solid rgba(0,184,253,.45); width: fit-content; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; width: fit-content;
  font-weight: 600; color: var(--teal-text); border-bottom: 2px solid transparent;
  transition: border-color .15s ease;
}
.text-link:hover { border-bottom-color: currentColor; }
.text-link .icon { width: 18px; height: 18px; }
.section-dark .text-link { color: var(--cyan); }

/* ---------- Projetos ---------- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.project {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 28px;
  background: var(--navy-2); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
}
.project h3 { font-size: 1.25rem; }
.project .shot { margin-top: 6px; border-color: rgba(255,255,255,.18); }
.project-note { font-size: .92rem; color: var(--on-dark); }
.project-foot { margin-top: 32px; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: #fff; }

/* ---------- Quem entrega ---------- */
.founder { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.founder-id h3 { font-size: 1.5rem; margin-top: 4px; }
.todo-photo { width: 140px; height: 140px; border-radius: 50%; margin-bottom: 14px; }
.edu-list { display: grid; gap: 14px; }
.edu-list li { display: flex; gap: 16px; align-items: center; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.edu-list strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1.02rem; line-height: 1.35; }
.edu-list span { color: var(--muted); }
.edu-list .icon-circle span { color: inherit; }

/* ---------- Acordeões ---------- */
.accordion { display: grid; gap: 12px; }
.accordion details { background: var(--bg-alt); border-radius: var(--radius-sm); border: 1px solid var(--line); }
.section-alt .accordion details { background: #fff; }
.accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 12px 20px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 600; color: var(--navy); border-radius: var(--radius-sm);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { transition: transform .2s var(--ease); color: var(--teal); }
.accordion details[open] summary .icon { transform: rotate(180deg); }
.acc-body { padding: 0 20px 18px; color: var(--muted); }

/* ---------- Linha do tempo ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; position: relative; }
.timeline li { position: relative; padding-top: 4px; }
.timeline li:not(:last-child)::after {
  content: ""; position: absolute; top: 26px; left: 64px; right: -12px; height: 2px; background: var(--line);
}
.step-num {
  display: flex; align-items: center; justify-content: center; position: relative; z-index: 1;
  width: 52px; height: 52px; margin-bottom: 18px; border-radius: 50%;
  background: var(--navy); color: var(--cyan);
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums;
}
.timeline h3 { font-size: 1.2rem; margin-bottom: 6px; }
.timeline p { color: var(--muted); }

/* ---------- Contato ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.contact-actions { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin-top: 32px; max-width: 420px; }
.contact-area { display: flex; gap: 12px; margin-top: 28px; color: var(--on-dark); }
.contact-area .icon { margin-top: 3px; color: var(--cyan); }

.contact-form { display: grid; gap: 16px; padding: 32px; background: #fff; color: var(--ink); border-radius: var(--radius); }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .field-check label { font-size: .92rem; font-weight: 600; color: var(--navy); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid #8A93AA; border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,127,146,.3);
}
.field [aria-invalid="true"] { border-color: #B3261E; }
.field-check { display: flex; gap: 12px; align-items: flex-start; }
.field-check input { width: 24px; height: 24px; margin-top: 2px; flex: none; accent-color: var(--teal); cursor: pointer; }
.field-check label { font-weight: 400; color: var(--muted); line-height: 1.5; cursor: pointer; padding: 2px 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { min-height: 1.4em; font-size: .95rem; }
.form-note.error { color: #B3261E; }
.form-note.success { color: #0B6B3A; font-weight: 600; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--navy); color: var(--on-dark); padding: 56px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.footer-logo-wrap { display: inline-block; padding: 10px 16px; background: #fff; border-radius: 12px; }
.footer-logo { height: 40px; width: auto; }
.footer-brand p { margin-top: 14px; }
.footer-title { font-family: var(--font-head); font-size: 1rem; color: #fff; margin-bottom: 8px; }
.footer-col li { padding: 2px 0; }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: .9rem; }

/* ---------- WhatsApp fixo (mobile) ---------- */
.wa-bar { display: none; }

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { align-items: flex-start; }
  .device { max-width: 340px; }
  .project-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .timeline li::after { display: none; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  .nav, .btn-header { display: none; }
  .menu-toggle { display: inline-flex; }
  .section { padding: 64px 0; }
  .pain-grid, .cards-grid, .client-grid { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }

  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .wa-bar {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
    min-height: 52px; padding: 12px 20px;
    font-family: var(--font-head); font-weight: 600; color: var(--navy);
    background: var(--cyan); border-radius: 999px;
    box-shadow: 0 10px 28px -8px rgba(10,15,46,.55);
    transition: transform .12s var(--ease);
  }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .hero { padding: 48px 0 56px; }
  .hero-actions .btn { width: 100%; }
  .card, .client, .project, .contact-form, .pain { padding: 24px; }
  .field-row { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .client-head .badge { margin-left: 0; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .contact-actions { max-width: none; }
  .contact-actions .btn { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .btn:active, .wa-bar:active, .menu-toggle:active, .card-cta:active { transform: none; }
}
