:root {
  --bg: #060f1d;
  --bg-soft: #0a1830;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --fg: #e8f1ff;
  --muted: #9fb3cc;
  --accent: #1678ef;
  --accent-2: #35d8f5;
  --line: #1e3352;
  --ok: #43d6a0;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--fg);
  background:
    radial-gradient(1000px 500px at 10% -10%, rgba(53, 216, 245, 0.12), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(22, 120, 239, 0.18), transparent 55%),
    var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-2); }

.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(6, 15, 29, 0.75);
  border-bottom: 1px solid rgba(30, 51, 82, 0.7);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; }
.brand-logo { width: 32px; height: 32px; object-fit: contain; }
.brand-name { letter-spacing: 0.6px; font-size: 20px; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--fg); }
.nav .nav-cta {
  color: #fff; background: var(--accent); padding: 9px 14px; border-radius: 10px;
}
.menu-btn {
  display: none; background: var(--surface); color: var(--fg); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 12px; font-size: 20px; cursor: pointer;
}
.mobile-nav {
  display: none; flex-direction: column; gap: 6px; padding: 0 20px 16px;
  border-bottom: 1px solid rgba(30, 51, 82, 0.7);
}
.mobile-nav a { color: var(--fg); text-decoration: none; padding: 10px 4px; }
.mobile-nav.open { display: flex; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 130px; background: linear-gradient(180deg, transparent 40%, rgba(22, 120, 239, .10)); }
.hero > .container { position: relative; z-index: 1; }
/* Maré viva: duas ondas que se movem no pé do topo (mesma animação do app) */
.mare { position: absolute; left: 0; right: 0; bottom: 0; height: 110px; z-index: 0; pointer-events: none; }
.mare svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mare .tras { fill: #2f9fb0; opacity: .35; }
.mare .frente { fill: var(--bg); }
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: center;
}
.eyebrow { color: var(--accent-2); font-weight: 700; margin: 0 0 8px; letter-spacing: .3px; }
h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.1; margin: 0 0 14px; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 22px; max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero-badges {
  list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px;
}
.hero-badges li {
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted);
  background: rgba(255,255,255,0.02); font-size: 14px;
}
.hero-visual { position: relative; min-height: 320px; display: grid; place-items: center; }
.orb {
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(53,216,245,.35), rgba(22,120,239,.12) 45%, transparent 70%);
  filter: blur(2px);
}
.hero-logo { position: relative; width: min(220px, 56%); aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 0 28px rgba(53, 216, 245, .35)); }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: linear-gradient(180deg, rgba(10,24,48,0.35), rgba(10,24,48,0.1)); border-top: 1px solid rgba(30,51,82,.4); border-bottom: 1px solid rgba(30,51,82,.4); }
.section-head { margin-bottom: 22px; }
.section-head h2 { margin: 0 0 6px; font-size: clamp(26px, 3vw, 34px); }
.section-head p { margin: 0; color: var(--muted); max-width: 760px; }

.cards { display: grid; gap: 16px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px;
}
.feature-icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(53,216,245,0.12); color: var(--accent-2); font-size: 20px; margin-bottom: 10px;
}
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* Download */
.download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.download-card { display: flex; flex-direction: column; gap: 14px; }
.dl-badge {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  color: #041018; background: linear-gradient(135deg, var(--accent-2), #8fefff);
  padding: 5px 10px; border-radius: 999px; margin-bottom: 8px;
}
.dl-meta { list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 14px; }
.dl-meta li { margin: 4px 0; }
.dl-note { margin: 0; color: var(--muted); font-size: 13px; }
.btn-block { width: 100%; text-align: center; margin-top: auto; }

.notice-box {
  margin-top: 22px; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(53,216,245,0.05);
}
.notice-box h3 { margin: 0 0 8px; font-size: 18px; }
.notice-box ul { margin: 0; padding-left: 18px; color: var(--muted); }
.notice-box li { margin: 6px 0; }

/* Buttons */
/* Botões do app: pílula, brilho, toque que afunda e água que sobe no hover (igual aos filtros do Radar) */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; text-decoration: none; font-weight: 800;
  border: 1px solid var(--line);
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s ease, color .3s .1s, border-color .2s ease;
}
.btn::before {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: -14px; height: 0; z-index: -1;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10'%3E%3Cpath d='M0 5Q10 0 20 5T40 5V10H0Z' fill='%2335d8f5'/%3E%3C/svg%3E") 0 0 / 40px 10px repeat-x,
    linear-gradient(#35d8f5, #35d8f5) 0 9px / 100% 100% no-repeat;
  transition: height .7s cubic-bezier(.3,.7,.2,1), bottom .3s ease;
}
.btn:hover::before, .btn:focus-visible::before { height: 86%; bottom: 0; animation: onda-btn 1.3s linear infinite; }
.btn:hover, .btn:focus-visible { color: #04243a; border-color: transparent; }
.btn:active { transform: scale(.965); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@keyframes onda-btn { to { background-position: 40px 0, 0 9px; } }
.btn-primary { background: linear-gradient(100deg, #48e2ec, #2997f3); border-color: transparent; color: #04182c; box-shadow: 0 8px 22px rgba(24, 172, 226, .28); }
.btn-primary:hover { box-shadow: 0 10px 28px rgba(24, 172, 226, .4); }
.btn-primary::before { filter: brightness(1.25) saturate(.7); }
.btn-ghost { background: var(--surface); color: var(--fg); }
.nav-cta { transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s ease !important; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(24, 172, 226, .35); }
.nav-cta:active { transform: scale(.96); }

.info-strip {
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; align-items: start;
}
.info-strip h2 { margin: 0 0 8px; font-size: 28px; }
.info-strip p { margin: 0; color: var(--muted); }
.info-links { display: flex; flex-direction: column; gap: 10px; }
.info-links a { color: var(--fg); text-decoration: none; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }

/* Footer */
.site-footer { padding: 28px 0 36px; border-top: 1px solid rgba(30,51,82,.6); }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.footer-inner p { margin: 4px 0; color: var(--muted); }
.footer-brand { color: var(--fg) !important; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--fg); }

code { background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 6px; color: var(--fg); }

@media (max-width: 900px) {
  .hero-grid, .cards.two, .features, .download-grid, .info-strip { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-visual { min-height: 240px; order: -1; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .features { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .hero { padding-top: 40px; }
}

/* Content pages */
.page-hero { padding: 48px 0 24px; border-bottom: 1px solid rgba(30,51,82,.4); }
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 10px; }
.page-hero p { margin: 0; color: var(--muted); max-width: 820px; font-size: 17px; }
.breadcrumb { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--fg); }
.content { padding: 36px 0 56px; }
.prose { max-width: 860px; }
.prose h2 { margin: 34px 0 10px; font-size: 24px; }
.prose h3 { margin: 22px 0 8px; font-size: 18px; color: var(--fg); }
.prose p, .prose li { color: var(--muted); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--fg); }
.callout {
  margin: 18px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(22,120,239,0.08); color: var(--muted);
}
.callout.warn { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.28); }
.callout.danger { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.28); }
.toc {
  margin: 18px 0 26px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
.toc h2 { margin: 0 0 8px; font-size: 18px; }
.toc ul { margin: 0; padding-left: 18px; columns: 2; gap: 24px; }
.toc a { text-decoration: none; }
.page-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 14px; margin: 18px 0; }
@media (max-width: 720px) { .toc ul { columns: 1; } }

/* cartões sobem de leve ao passar o mouse */
.card, .feature { transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s ease, box-shadow .25s ease; }
.card:hover, .feature:hover { transform: translateY(-3px); border-color: rgba(53, 216, 245, .35); box-shadow: 0 14px 30px rgba(0, 0, 0, .3); }
@media (prefers-reduced-motion: reduce) {
  .btn::before, .btn:hover::before { animation: none; transition: none; }
  .card, .feature, .btn { transition: none; }
}
