/* ───────────────────────────────────────────────────────────
   Hubii — Shared base styles
   Design tokens, reset, shared keyframes and scroll-reveal.
   Page-specific CSS still lives inline in each page's <style>.
   ─────────────────────────────────────────────────────────── */

/* ─── DESIGN TOKENS ─── */
:root {
  /* Brand */
  --color-brand: #6348e5;
  --color-brand-light: #ebebff;
  --color-brand-glow: rgba(99, 72, 229, 0.4);
  /* Brand glow scale (alpha-based, numeric suffix = alpha * 100) */
  --color-brand-glow-02: rgba(99, 72, 229, 0.02);
  --color-brand-glow-03: rgba(99, 72, 229, 0.03);
  --color-brand-glow-04: rgba(99, 72, 229, 0.04);
  --color-brand-glow-05: rgba(99, 72, 229, 0.05);
  --color-brand-glow-06: rgba(99, 72, 229, 0.06);
  --color-brand-glow-07: rgba(99, 72, 229, 0.07);
  --color-brand-glow-08: rgba(99, 72, 229, 0.08);
  --color-brand-glow-10: rgba(99, 72, 229, 0.10);
  --color-brand-glow-12: rgba(99, 72, 229, 0.12);
  --color-brand-glow-15: rgba(99, 72, 229, 0.15);
  --color-brand-glow-20: rgba(99, 72, 229, 0.20);
  --color-brand-glow-25: rgba(99, 72, 229, 0.25);
  --color-brand-glow-28: rgba(99, 72, 229, 0.28);
  --color-brand-glow-30: rgba(99, 72, 229, 0.30);
  --color-brand-glow-50: rgba(99, 72, 229, 0.50);

  /* Dark */
  --color-dark: #2d254d;
  --color-dark-mid: #343434;
  --color-dark-glow-06: rgba(45, 37, 77, 0.06);
  --color-dark-glow-08: rgba(45, 37, 77, 0.08);
  --color-dark-glow-10: rgba(45, 37, 77, 0.10);
  --color-dark-glow-12: rgba(45, 37, 77, 0.12);
  --color-dark-glow-50: rgba(45, 37, 77, 0.50);
  --color-dark-glow-90: rgba(45, 37, 77, 0.90);

  /* Green */
  --color-green: #48e06c;
  --color-green-light: #a1fbba;
  --color-green-lightest: #e1ffe7;
  --color-green-glow-50: rgba(72, 224, 108, 0.50);

  /* Neutrals */
  --color-mid: rgb(102, 102, 102);
  --color-muted: rgb(153, 153, 153);
  --color-surface: rgb(245, 245, 245);
  --color-white: #ffffff;
  --color-divider: #f1f1f2;
  --color-divider2: #e0e0e0;

  /* Alert */
  --color-alert: #f45656;

  /* Shape */
  --radius-card: 16px;
  --radius-md: 12px;
  --radius-pill: 50px;

  /* Typography */
  --font-display: "Onest", sans-serif;
  --font-body: "Onest", sans-serif;
  --font-mono: "panoptica-octagonal", sans-serif;
  --mono-size: 15px;
  --mono-spacing: 1.5px;

  /* Interaction */
  --mouse-x: 50%;
  --mouse-y: 50%;

  /* Spacing scale (base-4) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-25: 100px;
  --space-30: 120px;

  /* Semantic spacing */
  --space-hero-y: var(--space-30);
  --space-section-y: var(--space-25);
  --space-card: var(--space-8);
  --space-inline: var(--space-6);
  --space-inline-mobile: var(--space-5);
  --space-nav-x: var(--space-10);

  /* Typography scale */
  --font-size-hero-xl: clamp(48px, 8vw, 88px);
  --font-size-hero: clamp(36px, 5vw, 56px);
  --font-size-h2: clamp(32px, 4vw, 48px);
  --font-size-body: 14px;
  --font-size-body-lg: 18px;
  --font-size-eyebrow: var(--mono-size);
  --font-size-eyebrow-sm: 13px;
  --line-height-display: 1.05;
  --line-height-heading: 1.1;
  --line-height-body: 1.7;
  --line-height-tight: 1.2;

  /* Containers */
  --container-wide: 1280px;
  --container-default: 1100px;
  --container-narrow: 800px;
  --container-text: 680px;

  /* Z-index */
  --z-base: 1;
  --z-overlay: 10;
  --z-nav: 100;
  --z-modal: 999;
  --z-cursor: 99999;

  /* Transitions */
  --transition-fast: 0.2s;
  --transition-base: 0.3s;
  --transition-slow: 0.8s;
  --easing-standard: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── CONTAINER UTILITY (use em seções novas) ─── */
.container {
  width: 100%;
  max-width: var(--container-default);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-inline);
  padding-right: var(--space-inline);
}

@media (max-width: 768px) {
  .container {
    padding-left: var(--space-inline-mobile);
    padding-right: var(--space-inline-mobile);
  }
}

/* ─── RESET ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-white);
  color: var(--color-dark);
  font-size: 14px;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ─── SHARED KEYFRAMES ─── */
@keyframes ds-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes ds-fadeInUp-mobile {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  from {
    transform: translateX(-100%) skewX(-15deg);
  }

  to {
    transform: translateX(200%) skewX(-15deg);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 20px var(--color-brand-glow), 0 0 60px var(--color-brand-glow-10);
  }

  50% {
    box-shadow: 0 0 40px var(--color-brand-glow), 0 0 80px var(--color-brand-glow-20);
  }
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ─── SCROLL REVEAL ─── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(6px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.animate-on-scroll-perspective {
  opacity: 0;
  transform: translateY(30px) perspective(1200px) translateZ(-80px) rotateX(25deg);
  filter: blur(6px);
  transition: all 1.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.animate-on-scroll-perspective.in-view {
  opacity: 1;
  transform: translateY(0) perspective(1200px) translateZ(0) rotateX(0deg);
  filter: blur(0);
}

.stagger-1 {
  transition-delay: 0.15s;
}

.stagger-2 {
  transition-delay: 0.3s;
}

.stagger-3 {
  transition-delay: 0.45s;
}

.stagger-4 {
  transition-delay: 0.6s;
}

/* ─── NAV ─── */
.ds-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 40px;
  height: 56px;
}

.ds-nav .ds-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.ds-nav .ds-logo img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.ds-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ds-nav ul a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-mid);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.ds-nav ul a:hover {
  color: var(--color-brand);
}

.ds-nav ul a.is-active {
  color: var(--color-brand);
  font-weight: 600;
}

.ds-nav .ds-nav-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 12px;
}

.ds-nav .mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-dark);
}

.ds-nav .mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

/* ─── LANGUAGE SWITCHER ─── */
.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--color-divider2);
  cursor: pointer;
  transition: all 0.3s;
  overflow: hidden;
}

.lang-switcher-btn:hover {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 2px var(--color-brand-light);
}

.lang-switcher-btn svg {
  width: 20px;
  height: 20px;
  color: var(--color-muted);
  transition: color 0.3s;
  pointer-events: none;
}

.lang-switcher-btn:hover svg {
  color: var(--color-brand);
}

/* ─── MOBILE GET STARTED (inside hamburger menu) ─── */
.mobile-get-started {
  display: none;
}

/* ─── MOBILE LANGUAGE BUTTONS (inside hamburger menu) ─── */
.mobile-lang-switcher {
  display: none;
}

.mobile-lang-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.mobile-lang-buttons a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-divider2);
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-mid);
  text-decoration: none;
  transition: all 0.2s;
}

.mobile-lang-buttons a:hover,
.mobile-lang-buttons a.active {
  border-color: var(--color-brand);
  color: var(--color-brand);
  background: var(--color-brand-light);
}

.mobile-lang-buttons a img {
  width: 20px;
  height: auto;
  object-fit: contain;
}

/* ─── NAV DROPDOWN ─── */
.nav-dropdown-wrap {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 10;
}

.nav-dropdown a {
  background: var(--color-white);
}

.nav-dropdown-wrap:hover .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ─── SHARED BUTTONS (nav uses these) ─── */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  background: var(--color-dark);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-dark);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--color-divider2);
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.btn-outline:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
  background: var(--color-brand-light);
}

.btn-outline:disabled,
.btn-outline.disabled {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
  border-color: var(--color-divider2);
  color: var(--color-muted);
}

/* ─── CUSTOM CURSOR ─── */
.custom-cursor {
  display: none;
}

@media (hover: hover) and (pointer: fine) {

  body,
  a,
  button,
  input,
  [role="button"] {
    cursor: none !important;
  }

  .custom-cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    width: 10px;
    height: 10px;
    background-color: var(--color-green);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    transition:
      width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
      height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
      border-radius 0.3s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .custom-cursor.is-pointer {
    width: 10px;
    height: 10px;
    border-radius: 1px;
    transform: translate(-50%, -50%) rotate(45deg);
  }
}

/* ─── FOOTER ─── */
.site-footer {
  width: 100%;
  background: var(--color-white);
  border-top: 1px solid var(--color-divider);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  margin-bottom: 4px;
  align-self: flex-start;
}

.footer-col p {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-muted);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  letter-spacing: var(--mono-spacing);
  text-transform: uppercase;
  color: var(--color-mid);
  margin-bottom: 4px;
}

.footer-col a {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-mid);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.6;
}

.footer-col a:hover {
  color: var(--color-brand);
}

.footer-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-link-row img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  opacity: 0.5;
}

.footer-badge {
  height: 28px;
  width: auto;
  object-fit: contain;
  opacity: 0.6;
  margin-top: 4px;
  align-self: flex-start;
}

.footer-bottom {
  border-top: 1px solid var(--color-divider);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-muted);
}

/* ─── NAV + FOOTER RESPONSIVE ─── */
@media (max-width: 768px) {
  .ds-nav {
    padding: 0 20px;
    height: 56px;
    justify-content: space-between;
  }

  .ds-nav .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    order: 2;
  }

  .ds-nav .ds-logo {
    order: 0;
  }

  .ds-nav .ds-nav-actions {
    display: none;
  }

  .ds-nav ul {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    transform: none;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    padding: 32px 0;
    gap: 24px;
    border-bottom: 1px solid var(--color-divider);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .ds-nav.menu-open ul {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-get-started {
    display: list-item;
    list-style: none;
    width: 80%;
  }

  .mobile-get-started-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .mobile-get-started-buttons .btn-outline {
    width: 100%;
  }

  .mobile-lang-switcher {
    display: list-item;
    list-style: none;
    padding-top: 24px;
    border-top: 1px solid var(--color-divider);
    width: 80%;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-inner {
    padding: 48px 20px 32px;
  }
}

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