/* Site da Bluestorm Software (bluestorm.com.br). Só tema escuro (decisão do usuário). */
@font-face {
  font-family: Inter;
  src: url(/fonts/InterVariable.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --brand: #00789f;
  --brand-2: #5ec9e2;
  --grad: linear-gradient(120deg, #1597c2 0%, #3dbbd8 55%, #7ad6ec 100%);
  --bg: #070b10;
  --bg-2: #0d131a;
  --fg: #e9eff4;
  --muted: #93a1b0;
  --line: rgba(233, 239, 244, .09);
  --card: rgba(19, 27, 36, .72);
  --card-solid: #111922;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  --glow: rgba(38, 171, 201, .16);
  --radius: 20px;
  --wrap: 1140px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.loading main, body.loading .nav-in > nav { opacity: 0; }
main, .nav-in > nav { transition: opacity .25s; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; margin: 0; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Barra do topo ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand .word { height: 32px; width: auto; }
.nav nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav nav a { color: var(--muted); transition: color .15s; }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--fg); }
.langs { display: flex; gap: 6px; }
.langs button {
  width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; overflow: hidden; cursor: pointer;
  opacity: .45; filter: saturate(.6); transition: opacity .15s, filter .15s, box-shadow .15s; background: none;
}
.langs button:hover { opacity: .85; filter: none; }
.langs button.on { opacity: 1; filter: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--brand-2); }
.langs svg { width: 100%; height: 100%; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px; white-space: nowrap;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 28px -10px rgba(0, 120, 159, .7); }
.btn-primary:hover { box-shadow: 0 14px 34px -10px rgba(0, 120, 159, .85); }
.btn-ghost { border: 1px solid var(--line); background: var(--card); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--brand-2) 55%, transparent); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Topo (hero) ---------- */
.hero { position: relative; padding: 96px 0 110px; overflow: hidden; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-2);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
.hero h1 { font-size: clamp(38px, 5vw, 58px); margin: 18px 0 22px; letter-spacing: -.035em; }
.hero .lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 33em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Fundo: brilhos e grade */
.bg-fx { position: absolute; inset: 0; pointer-events: none; }
.bg-fx .orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .9; }
.bg-fx .o1 { width: 560px; height: 560px; right: -120px; top: -160px; background: radial-gradient(circle, rgba(94, 201, 226, .38), transparent 65%); animation: float 16s ease-in-out infinite; }
.bg-fx .o2 { width: 480px; height: 480px; left: -180px; bottom: -220px; background: radial-gradient(circle, rgba(0, 120, 159, .28), transparent 65%); animation: float 20s ease-in-out infinite reverse; }
.bg-fx .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
}
@keyframes float { 50% { transform: translate(-30px, 30px) scale(1.06); } }

/* Ilustração do topo: janela de código */
.visual { position: relative; }
.visual .halo { position: absolute; inset: 8% 4%; background: var(--grad); filter: blur(60px); opacity: .28; border-radius: 40%; }
.window {
  position: relative; border-radius: 18px; overflow: hidden;
  background: #0b1219; color: #c9d6e2;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 40px 80px -30px rgba(0, 40, 60, .55), 0 0 0 1px rgba(0, 0, 0, .04);
  transform: perspective(1400px) rotateY(-9deg) rotateX(4deg);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.visual:hover .window { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.window .bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.window .bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a4552; }
.window .bar i:nth-child(1) { background: #ff6961; } .window .bar i:nth-child(2) { background: #f5c451; } .window .bar i:nth-child(3) { background: #58c77a; }
.window .bar span { margin-left: 10px; font-size: 12.5px; color: #7d8b99; }
.code { margin: 0; padding: 22px 24px 58px; font: 500 14px/1.75 ui-monospace, "Cascadia Code", Consolas, monospace; white-space: pre; overflow: hidden; }
.code .k { color: #5ec9e2; } .code .s { color: #9fe2a9; } .code .c { color: #5f6f7f; } .code .f { color: #f0c27b; } .code .n { color: #e9eff4; }
.code .line { opacity: 0; transform: translateY(4px); animation: type .4s forwards; }
@keyframes type { to { opacity: 1; transform: none; } }
.cursor { display: inline-block; width: 8px; height: 16px; vertical-align: -3px; background: #5ec9e2; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.badge-float {
  position: absolute; left: -26px; bottom: -22px; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 14px; font-weight: 600;
}
.badge-float .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(88, 199, 122, .14); color: #58c77a; }
.badge-float .dot svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.badge-float small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }

/* ---------- Seções ---------- */
section { position: relative; }
.sec { padding: 104px 0; }
.sec-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-head { max-width: 680px; margin-bottom: 54px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(32px, 3.6vw, 46px); margin: 14px 0 16px; }
.sec-head p { font-size: 18.5px; color: var(--muted); }

/* Serviços */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
/* Borda que acende e percorre a lateral ao passar o mouse.
   Sem máscara (que serrilhava os cantos): o próprio card pinta um gradiente cônico girando,
   ::after cobre o miolo deixando 1px de borda e ::before é o brilho desfocado por fora. */
@property --a { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --g1 { syntax: "<color>"; inherits: false; initial-value: rgba(233, 239, 244, .09); }
@property --g2 { syntax: "<color>"; inherits: false; initial-value: rgba(233, 239, 244, .09); }
@property --gl { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --g0 { syntax: "<color>"; inherits: false; initial-value: rgba(233, 239, 244, .09); }
.card, .app {
  position: relative; isolation: isolate; border-radius: var(--radius);
  background: conic-gradient(from var(--a), var(--g0) 0deg 285deg, var(--g1) 325deg, var(--g2) 352deg, var(--g0) 360deg);
  box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), --g0 .45s, --g1 .45s, --g2 .45s, --gl .45s;
}
.card::after, .app::after {
  content: ""; position: absolute; inset: 1px; z-index: -1;
  border-radius: calc(var(--radius) - 1px); background: var(--card-solid);
}
.card::before, .app::before {
  content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit;
  background: conic-gradient(from var(--a), transparent 0deg 300deg, rgba(94, 201, 226, .9) 345deg, transparent 360deg);
  filter: blur(8px); opacity: var(--gl);
}
.card { padding: 30px; }
.card:hover, a.app:hover {
  transform: translateY(-2px);
  --g0: rgba(94, 201, 226, .16); --g1: rgba(38, 171, 201, .7); --g2: #bdeffa; --gl: .45;
  animation: spin 4s linear infinite;
}
@keyframes spin { to { --a: 360deg; } }
.ico {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(140deg, rgba(0, 120, 159, .14), rgba(94, 201, 226, .2)); color: var(--brand-2);
}
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 20px; margin-bottom: 10px; letter-spacing: -.015em; }
.card p { color: var(--muted); font-size: 16px; }

/* Como trabalhamos */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding-top: 26px; }
.step::before {
  counter-increment: s; content: "0" counter(s);
  display: block; font-size: 15px; font-weight: 700; letter-spacing: .04em; margin-bottom: 18px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--line); }
.step:first-child::after { background: var(--grad); }
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 16px; }

/* Sobre + diferenciais */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.quote { font-size: clamp(26px, 2.8vw, 36px); font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }
.quote::before { content: "“"; display: block; font-size: 1.9em; line-height: .7; margin-bottom: 8px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about .txt { color: var(--muted); font-size: 17.5px; margin-top: 22px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: 16px; background: var(--card-solid); border: 1px solid var(--line); }
.ticks svg { flex: none; width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: var(--brand-2); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ticks b { display: block; font-weight: 600; margin-bottom: 2px; }
.ticks span { color: var(--muted); font-size: 15.5px; }

/* Faixa "nossos apps" na home */
.apps-band {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  padding: 52px; border-radius: 28px; background: #08141c; color: #e9eff4;
  border: 1px solid rgba(94, 201, 226, .16);
}
.apps-band::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(94, 201, 226, .32), transparent 65%); }
.apps-band > * { position: relative; }
.apps-band h2 { font-size: clamp(28px, 3vw, 38px); margin: 12px 0 14px; }
.apps-band p { color: #a6b5c3; }
.apps-band .eyebrow { color: var(--brand-2); }
.apps-band .btn-ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; }
.mini-apps { display: grid; gap: 12px; }
.mini-app { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); transition: background .2s, transform .2s; }
a.mini-app:hover { background: rgba(255, 255, 255, .09); transform: translateX(4px); }
.mini-app img { width: 46px; height: 46px; border-radius: 12px; }
.mini-app b { display: block; font-weight: 600; }
.mini-app span { color: #a6b5c3; font-size: 14.5px; }
.mini-app .go { margin-left: auto; width: 18px; height: 18px; fill: none; stroke: #5ec9e2; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Contato */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact .card { display: flex; flex-direction: column; }
.contact .card h3 { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: .02em; margin-bottom: 8px; }
.contact .val { font-size: 19px; font-weight: 600; letter-spacing: -.01em; line-height: 1.45; }
.contact .more { margin-top: auto; padding-top: 18px; font-size: 15px; font-weight: 600; color: var(--brand-2); display: inline-flex; gap: 6px; align-items: center; }
.contact .more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.contact a.card:hover .more svg { transform: translateX(3px); }

/* ---------- Página Apps ---------- */
.page-head { position: relative; padding: 88px 0 56px; overflow: hidden; }
.page-head h1 { font-size: clamp(38px, 5vw, 58px); margin: 16px 0 18px; letter-spacing: -.035em; }
.page-head p { font-size: 19px; color: var(--muted); max-width: 36em; }
.app-list { display: grid; gap: 24px; padding-bottom: 110px; }
.app {
  --radius: 24px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; padding: 34px 36px;
}
.app > img { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .45); }
.app h2 { font-size: 27px; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.app .tag { font-size: 16px; font-weight: 600; margin: 4px 0 10px; color: var(--brand-2); }
.app .desc { color: var(--muted); max-width: 40em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips span { font-size: 13px; font-weight: 500; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.soon { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(240, 180, 80, .16); color: #f0c27b; }
.app.is-soon > img { filter: saturate(.85); }

/* ---------- Rodapé ---------- */
footer { border-top: 1px solid var(--line); background: var(--bg-2); font-size: 15px; color: var(--muted); }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding: 64px 0 52px; }
.foot-brand .brand .word { height: 28px; }
.foot-brand p { margin-top: 16px; max-width: 22em; }
.foot-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.foot-col h4 { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg); }
.foot-col a { transition: color .15s; }
.foot-col a:hover { color: var(--fg); }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 22px 0 28px; border-top: 1px solid var(--line); font-size: 14px; }

/* ---------- Entrada suave ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }

/* ---------- Celular e tablet ---------- */
@media (max-width: 980px) {
  .hero-in, .about, .apps-band { grid-template-columns: 1fr; }
  .visual { max-width: 560px; margin-top: 8px; }
  .cards, .contact { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav nav { display: none; }
  .nav-in { gap: 12px; justify-content: space-between; }
  .nav .mob-apps { display: inline-flex; }
  .brand .word { height: 28px; }
  .hero { padding: 56px 0 84px; }
  .sec { padding: 76px 0; }
  .cards, .contact, .steps { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .window { transform: none; }
  .code { font-size: 12.5px; padding: 18px 18px 56px; }
  .badge-float { left: 12px; bottom: -26px; }
  .apps-band { padding: 32px 24px; border-radius: 22px; }
  .app { grid-template-columns: 1fr; gap: 18px; padding: 26px 22px; }
  .app > img { width: 72px; height: 72px; border-radius: 18px; }
  .app .btn { width: 100%; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 36px 24px; padding: 48px 0 40px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-bottom { flex-direction: column; }
}
.nav .mob-apps { display: none; font-size: 15px; font-weight: 600; color: var(--muted); margin-left: auto; }
@media (max-width: 760px) { .nav .mob-apps { display: inline-flex; } .langs { margin-left: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .code .line { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
