/* ============================================================
   Aliadus — Agora é Sonhar Cloud
   Premium "we moved" announcement page
   ============================================================ */

:root {
  --violet-950: #120e2a;
  --violet-900: #1e1740;
  --violet-800: #2b2158;
  --violet-700: #3d2f7a;
  --violet-600: #667eea;
  --violet-500: #7c8ff2;
  --violet-400: #93a5f5;
  --violet-100: #eef0fd;
  --violet-50:  #f6f7ff;

  --magenta-600: #764ba2;
  --magenta-400: #c084fc;

  --green-500: #16a34a;
  --green-400: #22c55e;

  --ink-900: #14102b;
  --ink-700: #382f5c;
  --ink-500: #6a6290;
  --ink-300: #d7d3ec;
  --ink-100: #f1f0fb;

  --white: #ffffff;
  --bg: #f7f7fd;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(20, 16, 43, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 16, 43, 0.08);
  --shadow-lg: 0 20px 50px rgba(102, 126, 234, 0.22);
  --shadow-glow: 0 0 0 1px rgba(102,126,234,.14), 0 20px 60px rgba(102,126,234,.24);

  --ease: cubic-bezier(.22,1,.36,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }
.reveal-delay-5 { transition-delay: .40s; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--violet-600);
  background: var(--violet-50);
  border: 1px solid var(--violet-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-500);
  animation: pulse-dot 2s infinite;
}

.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.section-head p { color: var(--ink-500); font-size: 1.03rem; }
.section-head .accent {
  background: linear-gradient(135deg, var(--violet-600), var(--magenta-600));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

section { position: relative; padding: 88px 0; }
.section-alt { background: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .98rem;
  border: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--violet-600), var(--magenta-600));
  color: #fff;
  box-shadow: 0 10px 30px rgba(102,126,234,.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(102,126,234,.5); }
.btn-secondary {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.28);
}
.btn-secondary:hover { border-color: #fff; transform: translateY(-3px); }
.btn-light {
  background: var(--white);
  color: var(--violet-700);
  border: 1.5px solid var(--ink-300);
}
.btn-light:hover { border-color: var(--violet-500); color: var(--violet-600); transform: translateY(-3px); }
.btn-block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 18px 0;
  background: transparent;
  transition: box-shadow .35s var(--ease), padding .35s var(--ease), background .35s var(--ease);
}
.topbar.scrolled {
  background: rgba(18, 14, 42, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px rgba(0,0,0,.18);
  padding: 12px 0;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--violet-600), var(--magenta-600));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 1.3rem; letter-spacing: -.02em;
  box-shadow: 0 8px 22px rgba(102,126,234,.45);
}
.brand-word { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; color: #fff; line-height: 1.15; }
.brand-word small { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.55); }

.topbar-cta { display: flex; align-items: center; gap: 14px; }
.topbar-cta .btn { padding: 11px 22px; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 150px 0 110px;
  overflow: hidden;
  background: var(--violet-950);
}

.hero-canvas { position: absolute; inset: 0; z-index: 1; opacity: .9; }

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 12% 15%, rgba(102,126,234,.4), transparent 45%),
    radial-gradient(circle at 88% 20%, rgba(118,75,162,.38), transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(102,126,234,.25), transparent 55%),
    linear-gradient(180deg, rgba(18,14,42,.5) 0%, rgba(18,14,42,.9) 78%, var(--bg) 100%);
  z-index: 2;
}

.hero-inner {
  position: relative; z-index: 3;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 30px;
  backdrop-filter: blur(6px);
}
.hero-badge .badge-icon {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-400), var(--green-500));
  display: flex; align-items: center; justify-content: center; font-size: .8rem;
}

.hero-logo {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-bottom: 26px;
}
.hero-logo .brand-mark { width: 60px; height: 60px; border-radius: 16px; font-size: 1.9rem; }
.hero-logo .wordmark {
  font-size: 2rem; font-weight: 900; letter-spacing: -.01em; color: #fff;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: 22px;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--violet-400), var(--magenta-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  color: rgba(238,240,253,.82);
  font-size: 1.14rem;
  max-width: 620px;
  margin: 0 auto 38px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 54px; }

.hero-stats {
  display: flex; gap: 0; flex-wrap: wrap; justify-content: center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 8px;
  backdrop-filter: blur(10px);
  max-width: 720px;
  margin: 0 auto;
}
.hero-stats div {
  flex: 1 1 140px;
  padding: 18px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.1);
}
.hero-stats div:last-child { border-right: none; }
.hero-stats div strong { display: block; font-size: 1.5rem; font-weight: 800; color: #fff; }
.hero-stats div span { font-size: .78rem; color: rgba(238,240,253,.65); }

/* ---------- Marquee logos strip ---------- */
.strip {
  background: var(--white);
  border-top: 1px solid var(--ink-100);
  border-bottom: 1px solid var(--ink-100);
  padding: 24px 0;
}
.strip-inner { display: flex; align-items: center; justify-content: center; gap: 46px; flex-wrap: wrap; color: var(--ink-500); font-weight: 700; font-size: .88rem; }
.strip-inner span { display: flex; align-items: center; gap: 8px; }

/* ---------- What changed cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(102,126,234,.07), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--violet-100); }
.card:hover::before { opacity: 1; }

.card-icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: linear-gradient(135deg, var(--violet-600), var(--magenta-600));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.4rem; margin-bottom: 20px;
  box-shadow: 0 10px 24px rgba(102,126,234,.32);
}
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; color: var(--ink-900); }
.card p { color: var(--ink-500); font-size: .94rem; }

/* ---------- Systems / links grid ---------- */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.sys-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.sys-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--violet-100); }
.sys-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--violet-50);
  display: flex; align-items: center; justify-content: center; font-size: 1.35rem;
}
.sys-card h4 { font-size: 1rem; font-weight: 700; color: var(--ink-900); }
.sys-card p { font-size: .84rem; color: var(--ink-500); }
.sys-card .go { margin-top: auto; font-size: .82rem; font-weight: 700; color: var(--violet-600); display: flex; align-items: center; gap: 6px; }

.sys-card.featured {
  grid-column: span 2;
  background: linear-gradient(160deg, var(--violet-950), var(--violet-700));
  border: none;
  position: relative;
  overflow: hidden;
}
.sys-card.featured::after {
  content: '';
  position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
  top: -110px; right: -90px;
}
.sys-card.featured .sys-icon { background: rgba(255,255,255,.14); }
.sys-card.featured h4, .sys-card.featured .go { color: #fff; }
.sys-card.featured p { color: rgba(238,240,253,.78); }
.sys-card.featured .pill {
  position: relative; z-index: 1;
  align-self: flex-start;
  background: rgba(34,197,94,.18); color: var(--green-400);
  font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}

/* ---------- Migration CTA band ---------- */
.migrate {
  background: linear-gradient(135deg, var(--violet-950) 0%, var(--violet-800) 55%, var(--violet-600) 100%);
  border-radius: var(--radius-lg);
  padding: 64px;
  color: #fff;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.migrate::after {
  content: '';
  position: absolute; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,132,252,.3), transparent 70%);
  top: -180px; left: -140px;
}
.migrate h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 800; margin-bottom: 16px; letter-spacing: -.02em; position: relative; z-index: 1; }
.migrate p { color: rgba(238,240,253,.82); margin: 0 auto 30px; max-width: 560px; position: relative; z-index: 1; }
.migrate .hero-actions { margin-bottom: 0; position: relative; z-index: 1; }

/* ---------- Footer ---------- */
footer { background: var(--violet-950); color: rgba(238,240,253,.75); padding: 56px 0 26px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { width: 40px; height: 40px; border-radius: 11px; font-size: 1.15rem; }
.footer-brand strong { color: #fff; font-size: 1rem; display: block; }
.footer-brand span { font-size: .8rem; color: rgba(238,240,253,.55); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; }
.footer-bottom a { font-weight: 700; color: var(--violet-400); }
.footer-bottom a:hover { color: #fff; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: .86rem; transition: color .25s; }
.footer-links a:hover { color: #fff; }

/* ---------- Animations ---------- */
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); }
  70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .systems-grid { grid-template-columns: repeat(2, 1fr); }
  .sys-card.featured { grid-column: span 2; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .systems-grid { grid-template-columns: 1fr; }
  .sys-card.featured { grid-column: span 1; }
  .migrate { padding: 40px 26px; }
  .hero { padding-top: 120px; }
  .hero-logo .brand-mark { width: 48px; height: 48px; font-size: 1.5rem; }
  .hero-logo .wordmark { font-size: 1.6rem; }
  .hero-stats div { flex: 1 1 45%; border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .topbar-cta .btn span.full { display: none; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .hero-stats div { flex: 1 1 100%; }
}
