:root {
  --accent: #38bdf8;
  --accent-deep: #0ea5e9;
  --accent-soft: rgba(56, 189, 248, 0.14);
  --plate: #070b12;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --font-display: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: #f4f7fb;
  line-height: 1.5;
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(56, 189, 248, 0.22), transparent 60%),
    radial-gradient(700px 480px at 92% 8%, rgba(14, 165, 233, 0.14), transparent 55%),
    linear-gradient(180deg, #f7fafc 0%, #e8eef5 48%, #f4f7fb 100%);
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(0, -12px, 0) scale(1.02); }
}

a {
  color: inherit;
}

.top {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.brand img {
  border-radius: 10px;
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--plate);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.2rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: var(--accent-deep);
  color: #fff;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(15, 23, 42, 0.14);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
}

.btn-ghost-light {
  background: transparent;
  border: 1px solid rgba(241, 245, 249, 0.28);
  color: #f1f5f9;
}

.btn-ghost-light:hover {
  background: rgba(241, 245, 249, 0.08);
  color: #fff;
}

.hero {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(48px, 10vh, 96px) 24px clamp(72px, 12vh, 120px);
  min-height: calc(100vh - 88px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-hero {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: var(--plate);
  animation: rise 0.8s ease both;
}

.hero h1 {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  animation: rise 0.8s ease 0.08s both;
}

.support {
  margin: 22px 0 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: 1.08rem;
  animation: rise 0.8s ease 0.16s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  animation: rise 0.8s ease 0.24s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.orbit {
  position: absolute;
  right: 4%;
  top: 18%;
  width: min(340px, 42vw);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: 0.9;
}

.ring {
  position: absolute;
  inset: 12%;
  border: 2px solid rgba(56, 189, 248, 0.35);
  border-radius: 50%;
}

.ring-a {
  animation: spin 22s linear infinite;
  border-top-color: var(--accent);
  border-left-color: transparent;
}

.ring-b {
  inset: 26%;
  border-color: rgba(56, 189, 248, 0.18);
  border-right-color: var(--accent-deep);
  animation: spin 14s linear infinite reverse;
}

.core {
  position: absolute;
  inset: 42%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #7dd3fc, var(--accent) 55%, #0284c7);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.35);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 24px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.eyebrow.light {
  color: var(--accent);
}

.section h2 {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lead {
  margin: 16px 0 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.lead.light {
  color: #94a3b8;
}

.phases {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.phases li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.phases .n {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-deep);
  letter-spacing: -0.02em;
}

.phases strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.phases p {
  margin: 0;
  color: var(--muted);
}

.caps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.caps li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  font-size: 1.05rem;
}

.partners {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.partners li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.partners strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.partners p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 640px) {
  .partners li {
    flex-direction: column;
    align-items: flex-start;
  }
}

.site-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.7fr);
  gap: 28px 40px;
  align-items: end;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(28px, 5vw, 48px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.site-cta::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -90px;
  bottom: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2), transparent 68%);
  pointer-events: none;
}

.site-cta > * {
  position: relative;
}

.site-cta h2 {
  max-width: 16ch;
}

.site-points {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-points li {
  position: relative;
  padding-left: 18px;
  font-weight: 500;
}

.site-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.site-cta-action {
  display: grid;
  gap: 12px;
  align-content: end;
  justify-items: start;
}

.site-cta-action p {
  margin: 0;
  max-width: 26ch;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 720px) {
  .site-cta {
    grid-template-columns: 1fr;
  }
}

.contact-panel {
  background: var(--plate);
  color: #f1f5f9;
  border-radius: 24px;
  padding: clamp(32px, 6vw, 56px);
  position: relative;
  overflow: hidden;
}

.contact-panel::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 65%);
  pointer-events: none;
}

.contact-panel > * {
  position: relative;
}

.contact-panel h2 {
  color: #f8fafc;
  max-width: 16ch;
}

.meta {
  margin: 28px 0 0;
  color: #94a3b8;
  font-size: 0.95rem;
}

.foot {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 24px 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.88rem;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.demo-grid .demo-card {
  grid-column: span 2;
}

/* 3 + 2: segunda fileira centralizada */
.demo-grid .demo-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.demo-grid .demo-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.demo-card {
  --demo-tint: #0ea5e9;
  --demo-tint-deep: #0284c7;
  --demo-ink: #fff;
  background: color-mix(in srgb, var(--demo-tint) 7%, #fff);
  border: 1px solid color-mix(in srgb, var(--demo-tint) 18%, var(--line));
  border-left: 4px solid var(--demo-tint);
  border-radius: 16px;
  padding: 22px 20px 0;
  display: grid;
  gap: 10px;
  align-content: start;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.demo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.demo-card-sky {
  --demo-tint: #0ea5e9;
  --demo-tint-deep: #0284c7;
  --demo-ink: #070b12;
}

.demo-card-rose {
  --demo-tint: #b86b75;
  --demo-tint-deep: #9a5560;
  --demo-ink: #fff;
}

.demo-card-amber {
  --demo-tint: #c98a2e;
  --demo-tint-deep: #a8711f;
  --demo-ink: #1a1400;
}

.demo-card-teal {
  --demo-tint: #0d9488;
  --demo-tint-deep: #0f766e;
  --demo-ink: #fff;
}

.demo-card-pink {
  --demo-tint: #db2777;
  --demo-tint-deep: #be185d;
  --demo-ink: #fff;
}

.demo-card h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.demo-card > p:not(.demo-label):not(.demo-login) {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.demo-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--demo-tint);
  margin: 0;
}

.demo-card .btn {
  justify-self: start;
  margin-top: 6px;
  margin-bottom: 4px;
  background: var(--demo-tint);
  color: var(--demo-ink);
}

.demo-card .btn:hover {
  background: var(--demo-tint-deep);
  color: #fff;
}

.demo-login {
  margin: 12px -20px 0 !important;
  padding: 12px 20px;
  border-top: 1px solid color-mix(in srgb, var(--demo-tint) 14%, var(--line));
  font-size: 0.75rem !important;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--muted) !important;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.foot div {
  display: grid;
  gap: 4px;
}

.foot strong {
  color: var(--text);
}

@media (max-width: 900px) and (min-width: 641px) {
  .demo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-grid .demo-card,
  .demo-grid .demo-card:nth-child(4),
  .demo-grid .demo-card:nth-child(5) {
    grid-column: auto;
  }

  /* 2+2+1: último card centralizado */
  .demo-grid .demo-card:nth-child(5) {
    grid-column: 1 / -1;
    max-width: calc(50% - 9px);
    justify-self: center;
    width: 100%;
  }
}

@media (max-width: 820px) {
  .nav {
    display: none;
  }

  .orbit {
    opacity: 0.35;
    right: -8%;
    top: 8%;
  }

  .hero {
    min-height: auto;
    padding-top: 40px;
    padding-bottom: 64px;
  }
}

@media (max-width: 640px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .demo-grid .demo-card,
  .demo-grid .demo-card:nth-child(4),
  .demo-grid .demo-card:nth-child(5) {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere,
  .ring-a,
  .ring-b,
  .brand-hero,
  .hero h1,
  .support,
  .cta-row,
  .demo-card {
    animation: none;
  }

  .demo-card {
    transition: none;
  }

  .demo-card:hover {
    transform: none;
  }
}
