/* Desenvolvido por Diego Mendes Rodrigues - https://www.linkedin.com/in/diegomendesrodrigues/ */
/* Site do Meu Editor de Arquivos: tema claro, roxo, com ondas e cartões (Poppins). */

:root {
  --purple: #6a35f2;
  --purple-dark: #5b2bea;
  --purple-light: #8b5cf6;
  --purple-soft: #f1ebff;
  --ink: #272b41;
  --text: #5f6480;
  --muted: #8a8fa8;
  --line: #ecebf3;
  --bg: #fbfbfe;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 20px 50px rgba(38, 30, 95, 0.1);
  --shadow-sm: 0 6px 18px rgba(38, 30, 95, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); }
h1, h2, h3 { color: var(--ink); line-height: 1.3; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 500; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
.container { width: min(1170px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.lead { font-size: 1.05rem; }
.icon { flex-shrink: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; }
:focus-visible { outline: 3px solid rgba(106, 53, 242, 0.45); outline-offset: 2px; }

/* ---- Botões ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 4px; border: 1px solid var(--purple);
  background: var(--purple); color: var(--white); font: 500 0.9rem/1.2 inherit; font-family: inherit;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 24px rgba(106, 53, 242, 0.28);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { background: var(--purple-dark); transform: translateY(-1px); }
.btn:disabled { opacity: 0.7; cursor: wait; transform: none; }
.btn-light { background: var(--white); color: var(--purple); border-color: var(--white); box-shadow: var(--shadow-sm); }
.btn-light:hover { background: var(--purple-soft); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.8); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-outline { background: transparent; color: var(--purple); box-shadow: none; }
.btn-outline:hover { background: var(--purple-soft); }
.link-underline { color: var(--ink); font-weight: 500; font-size: 0.9rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.actions.center { justify-content: center; }
.round-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-light), var(--purple-dark)); color: var(--white);
  box-shadow: 0 8px 20px rgba(106, 53, 242, 0.35);
}

/* ---- Cabeçalho ---- */
.site-header { position: absolute; inset: 0 0 auto; z-index: 20; padding: 18px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; text-decoration: none; font-size: 1.05rem; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: var(--ink); text-decoration: none; font-size: 0.9rem; font-weight: 500; padding: 4px 0; }
.nav ul a:hover, .nav ul a.active { color: var(--purple); }
.nav ul a.active { border-bottom: 2px solid var(--purple); }
.lang { display: grid; grid-template-columns: repeat(3, 34px); gap: 4px 4px; align-items: center; justify-items: center; flex: none; }
.nav ul, .nav .btn { flex: none; white-space: nowrap; }
.lang a { display: inline-flex; padding: 3px; border-radius: 4px; border: 1px solid transparent; opacity: 0.75; transition: opacity 0.15s, transform 0.15s; }
.lang a:hover { opacity: 1; transform: translateY(-1px); }
.lang a.on { opacity: 1; border-color: var(--purple); background: var(--white); }
.lang img { width: 26px; height: 13px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 6px; }

/* ---- Hero ---- */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero-wave { position: absolute; top: 0; right: 0; width: 58%; height: 100%; z-index: 0; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.15fr; gap: 50px; align-items: center; }
.hero-text .lead { margin-bottom: 34px; max-width: 470px; }
.hero-shot { margin: 0; }
.window { border-radius: 12px; background: var(--white); box-shadow: 0 35px 80px rgba(38, 30, 95, 0.25); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.6); }
.window-bar { display: flex; gap: 6px; padding: 10px 12px; background: #f1f0f7; }
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d9d6ea; }
.window-bar span:first-child { background: #ff7b72; }
.window-bar span:nth-child(2) { background: #ffc857; }
.window-bar span:nth-child(3) { background: #4fd18b; }

/* ---- Faixa de plataformas ---- */
.strip { padding: 10px 0 30px; }
.strip-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.strip span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; font-size: 0.92rem; }

/* ---- Seções ---- */
.section { padding: 90px 0; }
.section-title { text-align: center; max-width: 560px; margin: 0 auto 60px; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 50px 40px; }
.feature h3 { margin: 22px 0 10px; }
.feature p { font-size: 0.9rem; }
.blob {
  width: 56px; height: 52px; display: grid; place-items: center; color: var(--white);
  border-radius: 42% 58% 55% 45% / 50% 40% 60% 50%;
  box-shadow: 0 10px 22px rgba(38, 30, 95, 0.15);
}
.c-purple { background: linear-gradient(135deg, #a78bfa, #6a35f2); }
.c-green { background: linear-gradient(135deg, #8ee26c, #3cba54); }
.c-orange { background: linear-gradient(135deg, #ff9f7a, #f2552c); }
.c-blue { background: linear-gradient(135deg, #6ec3ff, #1f8bf0); }
.c-pink { background: linear-gradient(135deg, #ff9ac6, #e83e8c); }
.c-sky { background: linear-gradient(135deg, #7be0f0, #12a7c7); }
.c-amber { background: linear-gradient(135deg, #ffd36e, #f59e0b); }
.c-teal { background: linear-gradient(135deg, #6ee7c8, #0f9f84); }

/* ---- Faixa roxa com galeria ---- */
.band { display: grid; grid-template-columns: 1fr 1.05fr; width: min(1300px, 100%); margin: 0 0 0 auto; padding-left: max(16px, calc((100% - 1170px) / 2)); }
.band-purple {
  background: linear-gradient(135deg, var(--purple-light), var(--purple-dark));
  color: rgba(255, 255, 255, 0.9); padding: 70px 60px; margin: 14px 0;
}
.band-purple h2 { color: var(--white); font-weight: 600; }
.band-purple p { margin-bottom: 28px; }
.band-gallery { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.band-gallery figure { position: relative; margin: 0; overflow: hidden; background: #1f1d33; min-height: 200px; }
.band-gallery figure.tall { grid-row: span 2; }
.band-gallery img { width: 100%; height: 100%; object-fit: cover; object-position: left top; opacity: 0.55; }
.band-gallery figcaption { position: absolute; inset: auto 22px 22px; color: var(--white); font-weight: 600; font-size: 0.9rem; line-height: 1.5; }
.band-gallery figcaption::before { content: ''; display: block; width: 28px; height: 2px; background: var(--white); margin-bottom: 10px; }

/* ---- Passos numerados ---- */
.step { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 40px 0 40px 30px; }
.step::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 55%;
  border: 1px dashed #d8d3ee; border-right: 0; border-radius: 24px 0 0 24px; pointer-events: none;
}
.step.reverse::before { left: auto; right: 0; border-left: 0; border-right: 1px dashed #d8d3ee; border-radius: 0 24px 24px 0; }
.step.reverse .step-text { order: 2; }
.step-text { padding: 0 20px; }
.step-number { display: block; font-size: 3.4rem; font-weight: 600; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px #d8d3ee; margin-bottom: 14px; }
.step-text h3 { font-size: 1.3rem; font-weight: 500; }
.step-text p { font-size: 0.92rem; margin-bottom: 26px; }
.step-shot { margin: 0; }
.step-shot img { border-radius: 12px; box-shadow: var(--shadow); }

/* ---- Perguntas (carrossel) ---- */
.carousel { position: relative; display: flex; align-items: center; justify-content: center; gap: 40px; }
.carousel-track { position: relative; width: min(600px, 100%); background: var(--white); box-shadow: var(--shadow); padding: 46px 50px 36px; text-align: center; }
.carousel-track::before, .carousel-track::after { content: ''; position: absolute; top: 18px; bottom: 18px; width: 20px; background: var(--white); box-shadow: var(--shadow-sm); z-index: -1; }
.carousel-track::before { left: -18px; }
.carousel-track::after { right: -18px; }
.carousel-card img { margin: 0 auto 14px; }
.carousel-card h3 { font-size: 1.05rem; }
.carousel-card p { font-size: 0.92rem; min-height: 4.8em; }
.carousel-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.carousel-btn.next { background: var(--purple); color: var(--white); }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.dots span { width: 5px; height: 5px; border-radius: 50%; background: #cfcbe3; }
.dots span.on { width: 9px; height: 9px; margin-top: -2px; background: transparent; border: 1.5px solid var(--purple); }

/* ---- Chamada final ---- */
.cta { position: relative; margin-top: 60px; color: var(--white); }
.cta-wave { display: block; width: 100%; height: 200px; margin-bottom: -2px; }
.cta-body { background: var(--purple); padding: 10px 16px 90px; text-align: center; }
.cta-body h2 { color: var(--white); font-weight: 500; margin-bottom: 26px; }

/* ---- Rodapé ---- */
.site-footer { background: #f3f2fa; padding: 70px 0 24px; font-size: 0.88rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h2 { font-size: 0.95rem; font-weight: 600; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer ul a { color: var(--text); text-decoration: none; }
.site-footer ul a:hover { color: var(--purple); }
.footer-bottom { margin-top: 50px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; }

/* ---- Páginas de formulário ---- */
.page-hero { position: relative; padding: 150px 0 40px; text-align: center; background: radial-gradient(ellipse at top right, rgba(139, 92, 246, 0.22), transparent 60%); }
.form-section { padding-top: 20px; }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; }
.form { display: grid; gap: 20px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label { display: grid; gap: 6px; color: var(--ink); font-weight: 500; font-size: 0.9rem; }
/* Rótulo com o asterisco de obrigatório logo à direita do texto. */
.label-text { display: inline-flex; align-items: baseline; gap: 3px; color: var(--ink); font-weight: 500; font-size: 0.9rem; }
.form input[type=text], .form input[type=email], .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #dcdaea; border-radius: 6px; background: #fdfdff;
  font: 400 0.95rem/1.5 inherit; font-family: inherit; color: var(--ink);
}
.form textarea { resize: vertical; min-height: 180px; }
.form input:focus, .form textarea:focus, .rich-area:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(106, 53, 242, 0.15); }
.was-validated input:invalid, .was-validated textarea:invalid, .rich-area.invalid { border-color: #e5484d; }
.form .btn { justify-self: start; }
.req { color: #e5484d; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 6px; }
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 0.92rem; }
.alert-error { background: #fdecec; color: #a42a2e; border: 1px solid #f6c7c8; }

/* Editor rico */
.rich { border: 1px solid #dcdaea; border-radius: 6px; overflow: hidden; background: #fdfdff; }
.rich-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); background: #f6f5fc; }
.rich-toolbar button, .rich-toolbar select {
  min-width: 34px; height: 32px; border: 1px solid transparent; border-radius: 4px; background: transparent;
  font: inherit; font-size: 0.9rem; color: var(--ink); cursor: pointer;
}
.rich-toolbar button:hover, .rich-toolbar select:hover { background: var(--white); border-color: #dcdaea; }
.rich-toolbar select { padding: 0 6px; }
.rich-area { min-height: 220px; max-height: 520px; overflow-y: auto; padding: 12px 14px; color: var(--ink); border: 1px solid transparent; }
.rich-area:empty::before { content: attr(data-placeholder); color: var(--muted); }
.rich-area img { max-width: 100%; height: auto; border-radius: 4px; margin: 6px 0; }

/* Confirmação */
.success-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 50px 40px; text-align: center; }
.success-icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; color: var(--white); background: linear-gradient(135deg, #6ee7a8, #22a565); }
.success-card .actions { justify-content: center; margin-top: 24px; }
.code { font-size: 1.15em; letter-spacing: 3px; color: var(--purple); background: var(--purple-soft); padding: 2px 8px; border-radius: 4px; }

/* ---- Telas menores ---- */
@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .step, .band { grid-template-columns: 1fr; }
  .hero-wave { width: 100%; opacity: 0.5; }
  .step::before { display: none; }
  .step.reverse .step-text { order: 0; }
  .step { padding-left: 0; }
  /* No último passo, o botão vai para baixo da imagem */
  .step-text:has(> .btn) { display: contents; }
  .step-text:has(> .btn) > * { margin-left: 20px; margin-right: 20px; }
  .step-text:has(> .btn) > p { margin-bottom: 0; }
  .step-text > .btn { order: 3; justify-self: start; }
  .step:has(.step-text > .btn) { gap: 0; row-gap: 0; }
  .step:has(.step-text > .btn) .step-shot { margin: 30px 0; }
  .band { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 16px; right: 16px; flex-direction: column; align-items: flex-start; gap: 16px; background: var(--white); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 12px; }
  .feature-grid, .form .row, .footer-grid { grid-template-columns: 1fr; }
  .band-purple { padding: 44px 26px; }
  .band-gallery { grid-template-columns: 1fr; }
  .band-gallery figure.tall { grid-row: auto; }
  .carousel { gap: 10px; }
  .carousel-track { padding: 36px 22px 28px; }
  .card { padding: 26px 20px; }
}

/* Textos longos (política de privacidade) */
.prose h2 { font-size: 1.15rem; font-weight: 600; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }

/* ---- Botões de download: Microsoft Store (Windows) e GitHub (Debian, Ubuntu) ---- */
.downloads { display: flex; flex-wrap: wrap; gap: 18px 30px !important; }
.downloads > .btn { margin: 0; }
.actions.center .downloads { justify-content: center; }
.btn.btn-store, .band-purple .btn.btn-store, .cta .btn.btn-store { background: #1a6ee8; border-color: #1a6ee8; color: #fff; box-shadow: 0 10px 24px rgba(26, 110, 232, 0.3); }
.btn.btn-store:hover { background: #135bc4; }
.btn-store[aria-disabled='true'] { cursor: default; }
.btn.btn-store[aria-disabled='true']:hover { transform: none; background: #1a6ee8; }
.btn.btn-linux { color: #fff; background: var(--purple-light); border-color: var(--purple-light); }
.btn.btn-linux:hover { background: var(--purple); }
.btn-large { padding: 14px 26px; font-size: 1.05rem; border-radius: 6px; }
.btn-small { padding: 10px 18px; }
.band-purple .btn.btn-store, .cta .btn.btn-store, .band-purple .btn.btn-linux, .cta .btn.btn-linux { border-color: rgba(255, 255, 255, 0.7); }
