/* Rodan Data Stack hub - guides.rodan.io */

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 10px 14px;
  border: 2px solid var(--rodan-lavender);
  border-radius: var(--radius-2);
  background: var(--rodan-navy);
  color: var(--rodan-white);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 52, 0.35);
  transform: translateY(calc(-100% - 24px));
}

.skip-link:focus-visible {
  outline: 2px solid var(--rodan-white);
  outline-offset: 2px;
  transform: translateY(0);
}

.hub-nav.nav {
  padding: 0 clamp(20px, 4vw, 32px);
}

.hub-nav .nav-inner {
  max-width: 1160px;
  width: 100%;
  padding: 12px 18px;
  gap: 16px;
  flex-wrap: nowrap;
}

.hub-nav .logo {
  flex-shrink: 0;
}

.hub-nav .btn.sm {
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

.hub-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 32px);
}

.hub-hero {
  padding: clamp(24px, 4vw, 40px) 0 clamp(22px, 3vw, 32px);
}

.hub-hero .eyebrow {
  margin-bottom: 20px;
  color: rgba(220, 220, 242, 0.65);
}

.hub-hero h1 {
  font-size: clamp(40px, 8vw, 64px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 24px;
  max-width: 14ch;
}

.hub-hero .pull {
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  max-width: 52ch;
  margin: 0 0 20px;
}

.hub-hero .sub {
  font-size: 16px;
  line-height: 26px;
  color: rgba(255, 255, 255, 0.62);
  max-width: 58ch;
  margin: 0 0 28px;
}

.hub-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding-top: 8px;
}

.hub-trust-pill {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 62ch;
  padding: 12px 16px;
  border-radius: var(--radius-2);
  border: 1px solid rgba(220, 220, 242, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(220, 220, 242, 0.04) 100%);
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: rgba(220, 220, 242, 0.72);
  box-shadow: 0 8px 24px rgba(0, 0, 52, 0.12);
}

.hub-trust-pill svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  color: var(--rodan-lavender);
  opacity: 0.85;
}

.hub-trust span:not(.hub-trust-pill) {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: rgba(220, 220, 242, 0.55);
  max-width: 62ch;
}

.hub-rule {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.hub-stack {
  padding: clamp(40px, 5vw, 56px) 0;
}

.hub-stack-head {
  margin-bottom: 36px;
}

.hub-stack-head h2 {
  font-size: 40px;
  line-height: 44px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0 0 12px;
}

.hub-stack-head p {
  font-size: 16px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 52ch;
  margin: 0;
}

.hub-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hub-cards--two {
  grid-template-columns: repeat(2, 1fr);
}

.hub-card {
  display: flex;
  flex-direction: column;
  background: var(--rodan-navy-elev);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-2);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition:
    border-color var(--dur-base) var(--ease-standard),
    background var(--dur-base) var(--ease-standard),
    transform var(--dur-base) var(--ease-emphasized),
    box-shadow var(--dur-base) var(--ease-standard);
}

.hub-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rodan-lavender), transparent);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-standard);
}

.hub-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(220, 220, 242, 0.08) 0%, transparent 65%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-standard);
}

@media (prefers-reduced-motion: no-preference) {
  .hub-card:hover {
    border-color: rgba(220, 220, 242, 0.45);
    background: rgba(220, 220, 242, 0.06);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 52, 0.35);
  }

  .hub-card:hover::before,
  .hub-card:hover::after {
    opacity: 1;
  }
}

.hub-card:focus-visible {
  outline: 2px solid var(--rodan-lavender);
  outline-offset: 3px;
}

.hub-card .hc-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.hub-card .hc-index {
  color: rgba(220, 220, 242, 0.5);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.hub-card .hc-badge {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rodan-navy);
  background: var(--rodan-lavender);
  border-radius: 999px;
  padding: 4px 10px;
  flex-shrink: 0;
}

.hub-card .hc-layer {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rodan-lavender);
  margin-bottom: 0;
}

.hub-card h3 {
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.hub-card .hc-q {
  font-size: 14px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 16px;
  flex: 1;
}

.hub-card .hc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hub-card .hc-time {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  font-variant-numeric: tabular-nums;
}

.hub-card .hc-link {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hub-card .hc-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--dur-base) var(--ease-standard);
}

@media (prefers-reduced-motion: no-preference) {

  .hub-card:hover .hc-link svg {
    transform: translateX(4px);
  }
}

.hub-ladder {
  padding: 88px 0;
  background: var(--rodan-navy-quiet);
}

.hub-ladder-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hub-ladder h2 {
  font-size: 36px;
  line-height: 40px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 16px;
  letter-spacing: -0.015em;
}

.hub-ladder p {
  font-size: 16px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.hub-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 14px;
}

.hub-steps::before {
  content: "";
  position: absolute;
  left: 33px;
  top: 36px;
  bottom: 36px;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(220, 220, 242, 0.45) 0%,
    rgba(220, 220, 242, 0.12) 55%,
    rgba(220, 220, 242, 0.45) 100%
  );
  pointer-events: none;
}

.hub-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: inherit;
  transition:
    border-color var(--dur-base) var(--ease-standard),
    background var(--dur-base),
    transform var(--dur-fast) var(--ease-standard);
}

@media (prefers-reduced-motion: no-preference) {
  .hub-step:hover {
    border-color: rgba(220, 220, 242, 0.35);
    background: rgba(220, 220, 242, 0.06);
    transform: translateY(-2px);
  }
}

.hub-step:focus-visible {
  outline: 2px solid var(--rodan-lavender);
  outline-offset: 2px;
}

.hub-step .hs-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--rodan-lavender);
  font-variant-numeric: tabular-nums;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(220, 220, 242, 0.35);
  background: rgba(220, 220, 242, 0.06);
  flex-shrink: 0;
}

.hub-step .hs-name {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  flex: 1;
}

.hub-step .hs-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.hs-down {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 0;
  color: rgba(220, 220, 242, 0.45);
}

.hs-down svg {
  width: 18px;
  height: 18px;
}

.hub-close {
  padding: 88px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hub-close::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(90vw, 720px);
  height: 280px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(151, 153, 214, 0.14) 0%, transparent 72%);
  pointer-events: none;
}

.hub-close .hub-wrap {
  position: relative;
  z-index: 1;
}

.hub-close h2 {
  font-size: 40px;
  line-height: 44px;
  font-weight: 500;
  color: #fff;
  margin: 0 auto 16px;
  max-width: 28ch;
  letter-spacing: -0.015em;
}

.hub-close .eyebrow {
  margin-bottom: 16px;
  color: rgba(220, 220, 242, 0.65);
}

.hub-close p {
  font-size: 16px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 48ch;
  margin: 0 auto 32px;
}

.hub-close .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

@media (max-width: 960px) {
  .hub-cards:not(.hub-cards--two) {
    grid-template-columns: 1fr;
  }

  .hub-ladder-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hub-stack-head h2,
  .hub-close h2 {
    font-size: clamp(28px, 6vw, 40px);
    line-height: 1.1;
  }

  .hub-ladder h2 {
    font-size: clamp(26px, 5vw, 36px);
    line-height: 1.1;
  }

  .hub-ladder,
  .hub-close {
    padding: clamp(56px, 10vw, 88px) 0;
  }

  .hub-steps::before {
    display: none;
  }

  .hub-steps {
    padding-left: 0;
  }
}
