/* Nuvem Rápida — tema claro */

:root {
  --blue-050: #f4f8ff;
  --blue-100: #e9f2ff;
  --blue-200: #d3e3fb;
  --blue-300: #a9c9f7;
  --blue-500: #2f7bff;
  --blue-600: #0e63e9;
  --blue-700: #0a47d8;
  --navy-800: #0b2d5c;
  --navy-900: #071f42;
  --ink: #1c2b3a;
  --muted: #5b7191;
  --card: #ffffff;
  --grad: linear-gradient(135deg, #39a0ff 0%, #0b57d0 100%);
  --grad-soft: linear-gradient(180deg, #eaf3ff 0%, #ffffff 70%);
  --shadow-lg: 0 24px 60px -18px rgba(11, 87, 208, 0.25);
  --shadow-md: 0 10px 30px -12px rgba(11, 87, 208, 0.22);
  --shadow-sm: 0 4px 14px -6px rgba(11, 87, 208, 0.18);
  --radius: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--blue-050);
  min-height: 100vh;
  overflow-x: hidden;
}

/* nuvens decorativas de fundo */
body::before, body::after {
  content: '';
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
body::before {
  width: 560px; height: 560px;
  top: -220px; right: -160px;
  background: radial-gradient(circle, rgba(57, 160, 255, 0.16), transparent 65%);
}
body::after {
  width: 640px; height: 640px;
  bottom: -280px; left: -220px;
  background: radial-gradient(circle, rgba(11, 87, 208, 0.10), transparent 65%);
}

.container { width: min(1060px, 92vw); margin: 0 auto; }

/* ------------------------------------------------------------- splash */

#splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  background: linear-gradient(135deg, #0b3f91 0%, #0a56c2 55%, #0e6ff0 100%);
  overflow: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
#splash.done { opacity: 0; visibility: hidden; }
#splash.off { display: none; }

#splash-logo {
  width: min(560px, 78vw);
  height: auto;
  animation: logo-fly 1.35s cubic-bezier(0.2, 0.9, 0.3, 1.08) both,
             logo-float 3s ease-in-out 1.4s infinite;
  filter: drop-shadow(0 18px 42px rgba(0, 0, 0, 0.3));
}
@keyframes logo-fly {
  0%   { transform: translateX(-70vw) rotate(-5deg) scale(0.92); opacity: 0; filter: blur(7px); }
  55%  { opacity: 1; filter: blur(2px); }
  78%  { transform: translateX(2.5vw) rotate(0.8deg) scale(1.015); filter: blur(0); }
  100% { transform: translateX(0) rotate(0) scale(1); opacity: 1; filter: blur(0); }
}
@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

.splash-streaks { position: absolute; inset: 0; pointer-events: none; }
.splash-streaks span {
  position: absolute;
  left: -30%;
  height: 5px;
  width: 26%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85));
  animation: streak 1.1s cubic-bezier(0.2, 0.7, 0.4, 1) both;
  opacity: 0;
}
.splash-streaks span:nth-child(1) { top: 24%; animation-delay: 0.10s; width: 20%; }
.splash-streaks span:nth-child(2) { top: 37%; animation-delay: 0.24s; width: 30%; }
.splash-streaks span:nth-child(3) { top: 52%; animation-delay: 0.05s; width: 24%; }
.splash-streaks span:nth-child(4) { top: 66%; animation-delay: 0.30s; width: 18%; }
.splash-streaks span:nth-child(5) { top: 79%; animation-delay: 0.18s; width: 27%; }
@keyframes streak {
  0%   { transform: translateX(0); opacity: 0; }
  25%  { opacity: 0.9; }
  100% { transform: translateX(165vw); opacity: 0; }
}

.splash-tag {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.86rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  animation: tag-in 0.7s ease 1.1s both;
}
@keyframes tag-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  #splash-logo, .splash-streaks span, .splash-tag { animation: none !important; opacity: 1; }
  #splash { transition: none; }
  .reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* mobile: sem animação de entrada (o JS também pula o splash) */
@media (max-width: 720px) {
  #splash { display: none !important; }
}

/* revelação do conteúdo após o splash */
.reveal { opacity: 0; transform: translateY(22px); }
body.ready .reveal {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
body.ready .reveal:nth-of-type(1) { animation-delay: 0.05s; }
body.ready .reveal:nth-of-type(2) { animation-delay: 0.15s; }
body.ready .reveal:nth-of-type(3) { animation-delay: 0.25s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------- topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 248, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(211, 227, 251, 0.7);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon { width: 44px; height: 44px; animation: bob 3.4s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy-800);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-name em {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-name.small { font-size: 1.05rem; }

.secure-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-700);
  background: var(--blue-100);
  border: 1px solid var(--blue-200);
  padding: 8px 14px;
  border-radius: 999px;
}

/* --------------------------------------------------------------- hero */

.hero { text-align: center; padding: 54px 0 8px; }
.hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  font-weight: 800;
  line-height: 1.14;
  color: var(--navy-800);
  letter-spacing: -0.02em;
}
.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin: 18px auto 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

/* -------------------------------------------------------- code search */

.code-search { margin: 34px auto 26px; text-align: center; }
#code-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--blue-200);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  padding: 16px 22px;
  width: fit-content;
  margin: 0 auto;
  max-width: 94vw;
}
.code-inputs { display: flex; gap: 8px; }
.digit {
  width: 50px;
  height: 60px;
  text-align: center;
  font-family: 'Poppins', monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy-800);
  background: var(--blue-050);
  border: 1.6px solid var(--blue-200);
  border-radius: 13px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  caret-color: var(--blue-600);
}
.digit:focus {
  border-color: var(--blue-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 123, 255, 0.15);
}
.code-inputs.shake { animation: shake 0.4s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}
.code-hint { margin-top: 12px; color: var(--muted); font-size: 0.88rem; }

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(11, 87, 208, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(11, 87, 208, 0.6); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-ghost {
  background: var(--blue-100);
  color: var(--blue-700);
  border: 1px solid var(--blue-200);
}
.btn-ghost:hover { background: var(--blue-200); }
.btn-text {
  background: none;
  color: var(--muted);
  font-weight: 600;
  padding: 10px 16px;
}
.btn-text:hover { color: var(--blue-700); }

/* -------------------------------------------------------------- folder */

.folder {
  position: relative;
  margin: 26px auto 0;
  max-width: 860px;
  background: var(--grad-soft);
  border: 1.6px solid var(--blue-200);
  border-radius: 8px 22px 22px 22px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.folder::before { /* aba da pasta */
  content: '';
  position: absolute;
  top: -17px;
  left: -1.6px;
  width: 190px;
  height: 36px;
  background: linear-gradient(180deg, #dcebff, #eaf3ff);
  border: 1.6px solid var(--blue-200);
  border-bottom: none;
  border-radius: 12px 26px 0 0;
}
.folder::after { /* etiqueta na aba */
  content: 'MEUS ARQUIVOS';
  position: absolute;
  top: -12px;
  left: 22px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blue-600);
}
.folder:hover { transform: translateY(-3px); box-shadow: 0 30px 70px -20px rgba(11, 87, 208, 0.32); }
.folder:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; }

.folder-inner {
  margin: 20px;
  border: 2.2px dashed var(--blue-300);
  border-radius: 15px;
  padding: 58px 26px 46px;
  text-align: center;
  transition: background 0.2s, border-color 0.2s;
}
.folder:hover .folder-inner { background: rgba(233, 242, 255, 0.55); }
.folder.dragover { border-color: var(--blue-500); transform: scale(1.008); }
.folder.dragover .folder-inner {
  background: var(--blue-100);
  border-color: var(--blue-500);
  border-style: solid;
}

.plus-wrap { display: flex; justify-content: center; margin-bottom: 22px; }
.plus {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 6px;
  box-shadow: 0 14px 30px -8px rgba(11, 87, 208, 0.55);
  transition: transform 0.2s;
}
.folder:hover .plus { transform: scale(1.07) rotate(90deg); }
.plus::after { /* anel pulsante */
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2.5px solid rgba(47, 123, 255, 0.5);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(0.9); opacity: 0.9; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

.dz-title { font-size: 1.22rem; font-weight: 700; color: var(--navy-800); }
.dz-title span { color: var(--muted); font-weight: 500; }
.dz-note { margin-top: 10px; font-size: 0.85rem; color: var(--muted); }

.trust-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--blue-200);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
  box-shadow: var(--shadow-sm);
}
.chip-ico { font-size: 0.95rem; }

/* -------------------------------------------------------------- panels */

.panel { margin: 26px auto 0; max-width: 640px; text-align: center; }
.card {
  background: var(--card);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 40px 34px;
}
.panel h2 { color: var(--navy-800); font-size: 1.45rem; font-weight: 800; margin-bottom: 8px; }
.muted { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

.spinner {
  width: 46px;
  height: 46px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 4px solid var(--blue-100);
  border-top-color: var(--blue-600);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.bar {
  margin: 22px auto 8px;
  height: 12px;
  max-width: 420px;
  background: var(--blue-100);
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0%;
  background: var(--grad);
  border-radius: 999px;
  transition: width 0.25s ease;
}
.bar-label { font-weight: 700; color: var(--blue-700); margin-bottom: 16px; }

.ok-badge {
  display: inline-block;
  background: #e7f8ee;
  color: #157347;
  border: 1px solid #b8e6cd;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.big-code {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 24px 0 22px;
  user-select: all;
}
.big-code span {
  width: 58px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--navy-800);
  background: var(--blue-050);
  border: 1.6px solid var(--blue-200);
  border-radius: 14px;
  box-shadow: inset 0 -3px 0 rgba(11, 87, 208, 0.08);
}

.row-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.countdown {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  margin: 10px 0 14px;
}
.countdown::before { content: '⏱️ '; }

/* ---------------------------------------------------------- file list */

.file-list { list-style: none; margin: 20px 0; text-align: left; }
.file-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid var(--blue-200);
  border-radius: 14px;
  margin-bottom: 10px;
  background: var(--blue-050);
}
.file-ico {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.file-info { flex: 1; min-width: 0; }
.file-name {
  font-weight: 600;
  color: var(--navy-800);
  font-size: 0.93rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-size { font-size: 0.8rem; color: var(--muted); }
.file-btn {
  flex: none;
  border: none;
  background: var(--grad);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  min-width: 96px;
}
.file-btn:hover:not(:disabled) { transform: translateY(-1px); }
.file-btn:disabled { opacity: 0.65; cursor: default; }
.file-btn.done { background: #157347; }

/* ---------------------------------------------------------------- how */

.how { margin-top: 74px; text-align: center; }
.section-title { font-size: 1.6rem; font-weight: 800; color: var(--navy-800); margin-bottom: 26px; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.how-card {
  background: var(--card);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius);
  padding: 30px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.how-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.how-num {
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px -6px rgba(11, 87, 208, 0.5);
}
.how-card h3 { color: var(--navy-800); font-size: 1.02rem; margin-bottom: 8px; }
.how-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }

/* ------------------------------------------------------------ security */

.security {
  margin: 40px auto 0;
  max-width: 860px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  text-align: left;
  padding: 34px 36px;
}
.sec-icon {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--blue-100);
  color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
}
.security h2 { font-size: 1.25rem; font-weight: 800; color: var(--navy-800); margin-bottom: 8px; }
.security p { color: var(--muted); font-size: 0.93rem; line-height: 1.7; }

/* ----------------------------------------------------------------- faq */

.faq { margin: 74px auto 0; max-width: 760px; text-align: center; }
.faq-list { text-align: left; }
.faq-list details {
  background: var(--card);
  border: 1px solid var(--blue-200);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-list details[open] { box-shadow: var(--shadow-md); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 22px;
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--navy-800);
  position: relative;
  user-select: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '';
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2.4px solid var(--blue-600);
  border-bottom: 2.4px solid var(--blue-600);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s;
}
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-list details p {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* -------------------------------------------------------------- footer */

footer {
  margin-top: 80px;
  border-top: 1px solid var(--blue-200);
  background: #fff;
}
.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 26px 0;
}
.foot-note { color: var(--muted); font-size: 0.82rem; }

/* --------------------------------------------------------------- toast */

#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(24px);
  background: var(--navy-900);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 999px;
  box-shadow: 0 16px 40px -10px rgba(7, 31, 66, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 500;
  max-width: 88vw;
  text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------------------------------------------------- responsive */

@media (max-width: 720px) {
  .hero { padding-top: 36px; }
  .digit { width: 40px; height: 52px; font-size: 1.3rem; border-radius: 11px; }
  #code-form { padding: 13px 16px; gap: 12px; }
  .how-grid { grid-template-columns: 1fr; }
  .security { flex-direction: column; align-items: center; text-align: center; }
  .card { padding: 30px 20px; }
  .big-code span { width: 44px; height: 60px; font-size: 1.6rem; }
  .folder-inner { padding: 44px 16px 36px; }
  .secure-chip { display: none; }
  .foot-inner { justify-content: center; text-align: center; }
}
