:root {
  --bg: #f8f9fc;
  --bg-dark: #0b1220;
  --bg-darker: #070c16;
  --primary: #4f46e5;
  --primary-soft: #eef2ff;
  --accent: #22d3ee;
  --accent-2: #6ee7b7;
  --donate: #ff4d6d;
  --text: #111827;
  --muted: #6b7280;
  --radius: 1.25rem;
  --shadow: 0 20px 50px rgba(17, 24, 39, .08);
}

* { -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.text-accent { color: var(--accent) !important; }

section { position: relative; }

/* ---------- Header / Navbar ---------- */
.site-header {
  padding: .75rem 0;
  background: rgba(11, 18, 32, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow .3s ease, background .3s ease;
  z-index: 1030;
}

.site-header.scrolled {
  background: rgba(7, 12, 22, .95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.navbar-brand .brand-logo {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 6px 16px rgba(79, 70, 229, .45);
}

.navbar-brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -.02em;
}

.navbar-brand .brand-sub {
  display: block;
  color: var(--accent);
  font-size: .66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, .85);
  font-size: .92rem;
  font-weight: 500;
  border-radius: 999px;
  padding: .5rem .9rem !important;
  transition: color .25s, background .25s;
}

.navbar-nav .nav-link:hover { color: var(--accent); }

.navbar-toggler { color: #fff; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Buttons ---------- */
.btn-accent {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 600;
  border: none;
  transition: transform .25s, box-shadow .25s, filter .25s;
}

.btn-accent:hover, .btn-accent:focus {
  color: #fff;
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(79, 70, 229, .4);
}

.btn-donate {
  background: linear-gradient(135deg, var(--donate), #ff8fa3);
  color: #fff;
  font-weight: 700;
  border: none;
  box-shadow: 0 12px 30px rgba(255, 77, 109, .4);
  transition: transform .25s, box-shadow .25s, filter .25s;
}

.btn-donate:hover, .btn-donate:focus {
  color: #fff;
  filter: brightness(1.06);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 38px rgba(255, 77, 109, .55);
}

/* ---------- Hero ---------- */
.hero { min-height: 100vh; }

.parallax { overflow: hidden; }

.parallax-bg {
  position: absolute;
  inset: -20% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hero-bg { background-image: url('../images/Hostioo-banner-image-julho.png'); }
.grow-bg { background-image: url('../images/grow-business-img.png'); }
.donate-bg { background-image: url('../images/Hostioo-banner-image-julho.png'); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 12, 22, .72), rgba(11, 18, 32, .86));
}

.badge-float {
  display: inline-block;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: .45rem 1.1rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
}

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }

.section-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .6rem;
}

/* ---------- Tool cards ---------- */
.card-tool {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, .06);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.card-tool:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(17, 24, 39, .14);
  border-color: rgba(79, 70, 229, .35);
}

.tool-icon {
  width: 62px;
  height: 62px;
  display: inline-grid;
  place-items: center;
  border-radius: 18px;
  font-size: 1.7rem;
}

.icon-accent { background: var(--primary-soft); color: var(--primary); }
.icon-bars { background: #ecfeff; color: #0891b2; }
.icon-pix { background: #ecfdf5; color: #059669; }

/* ---------- Feature / mini ---------- */
.feature-mini {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: .9rem 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  color: #fff;
}

.feature-mini i { color: var(--accent); font-size: 1.15rem; }

.grow-img {
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
  max-height: 420px;
  object-fit: cover;
}

/* ---------- Preview ---------- */
.bg-preview { background: linear-gradient(180deg, var(--bg) 0%, #eef1ff 100%); }

.preview-wrap {
  position: relative;
  border-radius: calc(var(--radius) + .6rem);
  padding: .8rem;
  background: #fff;
  box-shadow: 0 40px 90px rgba(17, 24, 39, .18);
  border: 1px solid rgba(17, 24, 39, .06);
}

.preview-img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

/* ---------- Donation ---------- */
.donation { min-height: 70vh; }

.badge-donate {
  display: inline-block;
  background: rgba(255, 77, 109, .18);
  border: 1px solid rgba(255, 77, 109, .45);
  color: #ffb3c1;
  padding: .45rem 1.1rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-darker);
  color: #fff;
  padding: 3.5rem 0 1.6rem;
}

.footer-link {
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  transition: color .25s;
}

.footer-link:hover { color: var(--accent); }

/* ---------- Back to top ---------- */
.btn-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50% !important;
  display: grid;
  place-items: center;
  padding: 0;
  z-index: 1020;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}

.btn-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- Scroll reveal (View Transitions) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .7s ease, transform .7s ease;
    transition-delay: var(--d, 0ms);
  }

  .reveal-left { transform: translateX(-42px); }
  .reveal-right { transform: translateX(42px); }

  .reveal-up.in-view, .reveal-left.in-view, .reveal-right.in-view {
    opacity: 1;
    transform: none;
  }
}

/* Document transition out */
::view-transition-old(root) {
  animation: vtOut .35s ease both;
}

::view-transition-new(root) {
  animation: vtIn .45s ease both;
}

@keyframes vtOut {
  to { opacity: 0; transform: translateY(-18px) scale(.98); }
}

@keyframes vtIn {
  from { opacity: 0; transform: translateY(26px) scale(.99); }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--bg-darker);
    border-radius: 18px;
    padding: 1rem;
    margin-top: .75rem;
  }
}

@media (max-width: 575.98px) {
  .section { padding: 3.8rem 0; }
  .display-3 { font-size: 2.4rem; }
  .display-6 { font-size: 1.7rem; }
}
