/* Homepage header, copied verbatim from ../index.html so the onboarding page matches exactly.
   If the homepage nav or its buttons change, copy the changes here too. */

.container { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 64px; }

/* ── NAV ── */
nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: 30px;      /* breathing room above the header content */
  background: transparent;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-brand {
  display: flex; align-items: center;
  text-decoration: none;
}
.nav-brand-logo {
  height: 32px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  color: rgba(17, 17, 20, 0.7);
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
.nav-link:hover { background: rgba(17, 17, 20, 0.06); color: #111114; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 0;
  background: transparent; border: none; cursor: pointer;
  border-radius: 12px; transition: background 0.18s;
}
.nav-toggle:hover { background: rgba(17, 17, 20, 0.06); }
.nav-toggle span {
  display: block; width: 20px; height: 2px; margin: 0 auto;
  background: #111114; border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.18s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── FLOW BUTTON ──
   Vanilla CSS port of the React "FlowButton": outline pill that, on hover,
   slides an arrow in from the left, shifts the label, expands a filled
   circle to flood the button, sends the trailing arrow out the right, and
   rounds the corners from pill to 12px. Dark variant for light backgrounds;
   --invert variant (white) for the blue Contact card. */
.flow-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 100px;
  border: 1.5px solid rgba(17,17,20,0.4);
  background: transparent;
  padding: 14px 30px;
  font-size: 14px;
  font-weight: 600;
  color: #111114;
  text-decoration: none;
  cursor: pointer;
  transition: color 600ms cubic-bezier(0.23,1,0.32,1),
              border-color 600ms cubic-bezier(0.23,1,0.32,1),
              border-radius 600ms cubic-bezier(0.23,1,0.32,1),
              transform 200ms ease;
}
.flow-btn:hover { border-color: transparent; color: #fff; border-radius: 12px; }
.flow-btn:active { transform: scale(0.96); }

.flow-btn .flow-arrow {
  position: absolute;
  width: 15px; height: 15px;
  z-index: 9;
  color: #111114;                 /* path stroke uses currentColor */
  transition: left 800ms cubic-bezier(0.34,1.56,0.64,1),
              right 800ms cubic-bezier(0.34,1.56,0.64,1),
              color 800ms cubic-bezier(0.34,1.56,0.64,1);
}
.flow-btn .flow-arrow-l { left: -25%; }
.flow-btn:hover .flow-arrow-l { left: 18px; color: #fff; }
.flow-btn .flow-arrow-r { right: 18px; }
.flow-btn:hover .flow-arrow-r { right: -25%; color: #fff; }

.flow-btn .flow-label {
  position: relative;
  z-index: 1;
  transform: translateX(-10px);
  transition: transform 800ms ease;
}
.flow-btn:hover .flow-label { transform: translateX(10px); }

.flow-btn .flow-circle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 16px; height: 16px;
  background: #111114;
  border-radius: 50%;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: width 800ms cubic-bezier(0.19,1,0.22,1),
              height 800ms cubic-bezier(0.19,1,0.22,1),
              opacity 800ms cubic-bezier(0.19,1,0.22,1);
}
.flow-btn:hover .flow-circle { width: 260px; height: 260px; opacity: 1; }

/* small variant for the nav */
.flow-btn--sm { padding: 9px 32px; font-size: 13px; gap: 3px; }

/* magnetic wrapper — JS translates this toward the cursor (spring) */
.magnetic { display: inline-flex; will-change: transform; }

/* inverted variant for the blue Contact card:
   filled white by default, switches to outline-only (no fill) on hover */
.flow-btn--invert {
  background: #fff;
  border-color: #fff;
  color: #0b0b0e;
  transition: background 600ms cubic-bezier(0.23,1,0.32,1),
              color 600ms cubic-bezier(0.23,1,0.32,1),
              border-color 600ms cubic-bezier(0.23,1,0.32,1),
              border-radius 600ms cubic-bezier(0.23,1,0.32,1),
              transform 200ms ease;
}
.flow-btn--invert:hover {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.flow-btn--invert .flow-arrow { color: #0b0b0e; }
.flow-btn--invert:hover .flow-arrow-l,
.flow-btn--invert:hover .flow-arrow-r { color: #fff; }
/* the expanding circle is the default fill mechanism; not used for this switched variant */
.flow-btn--invert .flow-circle { display: none; }

@media (prefers-reduced-motion: reduce) {
  .flow-btn, .flow-btn .flow-arrow, .flow-btn .flow-label, .flow-btn .flow-circle {
    transition-duration: 1ms;
  }
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.is-open {
    display: flex; flex-direction: column;
    position: absolute; top: 90px; right: 24px;
    min-width: 200px;
    background: #fff; border: 1px solid rgba(17, 17, 20, 0.08);
    border-radius: 16px; box-shadow: 0 16px 44px rgba(17, 17, 20, 0.14);
    padding: 10px; gap: 2px; z-index: 60;
  }
  .nav-links.is-open .nav-link {
    width: 100%; padding: 13px 16px; font-size: 14px; border-radius: 10px;
  }
}

@media (max-width: 760px) {
  .container { padding: 0 24px; }
  .nav-right .flow-btn--sm { padding: 7px 26px 7px 18px; font-size: 11.5px; }
  .nav-right .flow-btn--sm .flow-arrow-r { right: 11px; }
}
