:root {
    --gekko-light: #faf8f4;
    --gekko-dark: #05070a;
    --gekko-surface: #0f172a;
    --gekko-primary: #00d1ff;
    --gekko-primary-ink: #007d99;
    --bg: var(--gekko-light);
    --surface: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --skeleton: #e2e8f0;
    --ink: var(--gekko-primary-ink);
  }

  @media (prefers-color-scheme: dark) {
    :root {
      --bg: var(--gekko-dark);
      --surface: var(--gekko-surface);
      --text: #f1f5f9;
      --text-muted: #94a3b8;
      --border: #1e293b;
      --skeleton: #1e293b;
      --ink: var(--gekko-primary);
    }
  }

  * {
    box-sizing: border-box;
  }

  html,
  body {
    height: 100%;
    margin: 0;
  }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  /* ---------- Topo ---------- */
  .top-bar {
    display: flex;
    justify-content: center;
    padding: 24px 16px 0;
  }

  .badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    background: var(--surface);
  }

  /* ---------- Skeleton de fundo (decorativo, sem interação) ---------- */
  .skeleton-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 90px 24px 0;
  }

  .skeleton-block {
    background: var(--skeleton);
    border-radius: 16px;
    animation: pulse 2.2s ease-in-out infinite;
  }

  .skeleton-nav {
    width: min(680px, 90vw);
    height: 14px;
    border-radius: 999px;
    margin-bottom: 56px;
  }

  .skeleton-hero {
    width: min(520px, 80vw);
    height: 28px;
    border-radius: 999px;
    margin-bottom: 16px;
  }

  .skeleton-hero.narrow {
    width: min(340px, 60vw);
    margin-bottom: 64px;
  }

  .skeleton-cards {
    display: flex;
    gap: 16px;
    width: min(680px, 90vw);
  }

  .skeleton-card {
    flex: 1;
    height: 120px;
  }

  @keyframes pulse {
    0%,
    100% {
      opacity: 0.55;
    }
    50% {
      opacity: 0.9;
    }
  }

  /* ---------- Centro: spinner + nome ---------- */
  .center-stage {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 24px;
  }

  .logo-spinner {
    width: 96px;
    height: 96px;
    overflow: visible;
  }

  .logo-spinner .diamond {
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.6;
    stroke-linejoin: round;
    stroke-dasharray: 56.5685;
    animation: draw-loop 2.8s ease-in-out infinite;
  }

  .logo-spinner .dot {
    fill: var(--ink);
    transform-origin: 16px 16px;
    animation: dot-loop 2.8s ease-in-out infinite;
  }

  @keyframes draw-loop {
    0% {
      stroke-dashoffset: 56.5685;
      opacity: 1;
    }
    58% {
      stroke-dashoffset: 0;
      opacity: 1;
    }
    88% {
      stroke-dashoffset: 0;
      opacity: 1;
    }
    97%,
    100% {
      stroke-dashoffset: 0;
      opacity: 0;
    }
  }

  @keyframes dot-loop {
    0%,
    58% {
      transform: scale(0);
      opacity: 0;
    }
    68% {
      transform: scale(1);
      opacity: 1;
    }
    88% {
      transform: scale(1);
      opacity: 1;
    }
    97%,
    100% {
      transform: scale(1);
      opacity: 0;
    }
  }

  .brand-name {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  /* ---------- Rodapé ---------- */
  .footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 24px 32px;
  }

  .footer p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    max-width: 420px;
    margin-inline: auto;
    line-height: 1.6;
  }

  @media (prefers-reduced-motion: reduce) {
    .logo-spinner .diamond,
    .logo-spinner .dot,
    .skeleton-block {
      animation: none;
    }
    .logo-spinner .diamond {
      stroke-dashoffset: 0;
    }
    .logo-spinner .dot {
      transform: scale(1);
      opacity: 1;
    }
  }
