:root {
  --rinads-primary: #9f4bc7;
  --rinads-primary-hi: #c97dff;
  --rinads-primary-dark: #7a35a0;
  --rinads-primary-darkest: #1a0a2e;
  --rinads-glow: rgba(159, 75, 199, 0.4);
  --rinads-line: rgba(159, 75, 199, 0.24);
  --bg: #06060e;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.55);
  --nav-text: rgba(255, 255, 255, 0.72);
  --pill-dark: rgba(26, 10, 46, 0.92);
  --sign-in-text: rgba(255, 255, 255, 0.88);
  --nav-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --trust-bg: rgba(26, 10, 46, 0.88);
  --trust-border: var(--rinads-line);
  --trust-text: rgba(255, 255, 255, 0.78);
  --font-sans: "Figtree", "Segoe UI", system-ui, sans-serif;
  --trust-size: clamp(36px, 4.5vw, 42px);
}

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

html,
body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
  overflow: hidden;
  z-index: 0;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

.bg-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(159, 75, 199, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(6, 6, 14, 0.35) 0%, rgba(6, 6, 14, 0.12) 45%, rgba(6, 6, 14, 0.82) 100%);
}

.page {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding: clamp(16px, 2.4vh, 28px) clamp(14px, 3vw, 32px);
}

.header {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  z-index: 2;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 24px);
  max-width: 860px;
  margin: 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo-link img {
  height: clamp(28px, 5vw, 40px);
  width: auto;
  display: block;
}

.logo-link:hover {
  transform: scale(1.03);
  opacity: 0.92;
}

.nav-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  max-width: 430px;
  height: clamp(44px, 5.2vw, 48px);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(26, 10, 46, 0.85);
  border: 1px solid var(--rinads-line);
  backdrop-filter: blur(12px);
  box-shadow: var(--nav-shadow);
  gap: 4px;
}

.nav-link {
  position: relative;
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: -0.01em;
  color: var(--nav-text);
  opacity: 0.55;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  opacity: 0.85;
  color: #fff;
}

.nav-link.active {
  opacity: 1;
  color: #fff;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--rinads-primary);
  transform: translateX(-50%);
  box-shadow: -5px 0 0 var(--rinads-primary), 5px 0 0 var(--rinads-primary);
}

.sign-in {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(44px, 5.2vw, 48px);
  padding: 0 18px;
  border-radius: 999px;
  background: var(--pill-dark);
  border: 1px solid var(--rinads-line);
  color: var(--sign-in-text);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(13px, 1.4vw, 15px);
  box-shadow: var(--nav-shadow);
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.sign-in:hover {
  background: var(--rinads-primary-dark);
  border-color: var(--rinads-primary);
  color: #fff;
  transform: translateY(-1px);
}

.burger {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--rinads-line);
  border-radius: 50%;
  background: var(--pill-dark);
  box-shadow: var(--nav-shadow);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
}

.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.28s ease, background 0.28s ease;
}

.burger[aria-expanded="true"] {
  background: var(--rinads-primary);
  border-color: var(--rinads-primary-hi);
}

.burger[aria-expanded="true"] span {
  background: #fff;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  z-index: 2;
  min-height: 0;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.kicker {
  font-size: clamp(10px, 1.2vw, 12px);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rinads-primary-hi);
  margin-bottom: clamp(10px, 1.8vh, 16px);
}

.trust {
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(14px, 2.2vh, 22px);
}

.trust-avatars {
  display: flex;
  align-items: center;
}

.trust-avatar {
  position: relative;
  width: var(--trust-size);
  height: var(--trust-size);
  border-radius: 50%;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  padding: 5px;
  display: grid;
  place-items: center;
  transition: transform 0.35s ease;
  box-shadow: 0 0 16px rgba(159, 75, 199, 0.12);
}

.trust-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: grid;
  place-items: center;
}

.trust-inner i {
  font-size: calc(var(--trust-size) * 0.34);
  color: var(--rinads-primary-dark);
}

.trust-avatar.a1 {
  z-index: 1;
}

.trust-avatar.a2 {
  z-index: 2;
  margin-left: calc(var(--trust-size) * -0.42);
}

.trust-avatar.a3 {
  z-index: 4;
  margin-left: calc(var(--trust-size) * -0.42);
}

.trust:hover .a1 {
  transform: translateY(-2px);
}

.trust:hover .a2 {
  transform: translateY(-4px);
}

.trust:hover .a3 {
  transform: translateY(-2px);
}

.trust-pill {
  height: var(--trust-size);
  display: flex;
  align-items: center;
  margin-left: calc(var(--trust-size) * -0.42);
  padding-left: calc(var(--trust-size) * 0.58);
  padding-right: 16px;
  border-radius: 999px;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(12px, 1.4vw, 13.5px);
  color: var(--trust-text);
  white-space: nowrap;
  z-index: 3;
  box-shadow: 0 0 20px rgba(159, 75, 199, 0.1);
}

.headline {
  font-family: var(--font-sans);
  font-weight: 900;
  color: #fff;
  font-size: clamp(28px, 6.2vw, 80px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: clamp(14px, 2vh, 22px);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.headline-line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
}

.headline.anim .line1 {
  animation: headlineFade 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.headline.anim .line2 {
  animation: headlineFade 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.subhead {
  max-width: min(560px, 92%);
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
  font-weight: 400;
  margin-bottom: clamp(18px, 2.8vh, 28px);
}

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

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.cta-primary {
  background: var(--rinads-primary);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(159, 75, 199, 0.35),
    0 0 22px var(--rinads-glow),
    0 4px 16px rgba(0, 0, 0, 0.25);
}

.cta-primary:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--rinads-primary-dark);
  box-shadow:
    0 0 0 1px rgba(201, 125, 255, 0.45),
    0 0 32px rgba(159, 75, 199, 0.55),
    0 6px 20px rgba(0, 0, 0, 0.3);
}

.cta-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid var(--rinads-line);
  box-shadow: none;
}

.cta-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--rinads-primary);
  color: var(--rinads-primary-hi);
  box-shadow: 0 0 20px rgba(159, 75, 199, 0.2);
}

.stats {
  position: relative;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 24px);
  width: 100%;
  max-width: 920px;
  z-index: 2;
  padding-bottom: clamp(4px, 1vh, 8px);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.stat-icon {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 33px);
  color: var(--rinads-primary-hi);
  line-height: 1;
  text-shadow: 0 0 20px rgba(201, 125, 255, 0.35);
}

.stat-value {
  font-family: var(--font-sans);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.stat-label {
  font-size: clamp(11px, 1.2vw, 12.5px);
  color: var(--muted);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 14, 0.72);
  backdrop-filter: blur(8px);
  z-index: 90;
  animation: overlayIn 0.28s ease both;
}

.menu-overlay[hidden] {
  display: none;
}

.mobile-menu {
  position: fixed;
  top: calc(clamp(16px, 2.4vh, 28px) + 48px + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 28px), 360px);
  background: rgba(26, 10, 46, 0.96);
  border: 1px solid var(--rinads-line);
  border-radius: 28px;
  padding: 22px 18px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(159, 75, 199, 0.12);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: menuIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-link {
  position: relative;
  padding: 14px 12px;
  font-weight: 500;
  font-size: 16px;
  color: var(--nav-text);
  opacity: 0;
  animation: linkIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mobile-link:nth-child(1) { animation-delay: 0.05s; }
.mobile-link:nth-child(2) { animation-delay: 0.1s; }
.mobile-link:nth-child(3) { animation-delay: 0.15s; }
.mobile-link:nth-child(4) { animation-delay: 0.2s; }

.mobile-link.active {
  font-weight: 700;
  color: #fff;
}

.mobile-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--rinads-primary);
  transform: translateX(-50%);
  box-shadow: -5px 0 0 var(--rinads-primary), 5px 0 0 var(--rinads-primary);
}

.mobile-sign-in {
  margin-top: 8px;
  padding: 14px;
  border-radius: 999px;
  background: var(--rinads-primary);
  color: #fff;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  animation: linkIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes revealPulse {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(6px);
  }
  60% {
    opacity: 1;
    transform: translateY(0) scale(1.03);
    filter: blur(0);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

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

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

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

.header.anim {
  animation: slideDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--d, 0s);
}

.anim:not(.headline):not(.cta-row) {
  opacity: 0;
  animation: reveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}

.cta-row.anim {
  opacity: 0;
  animation: revealPulse 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0.4s);
}

.stat.anim {
  opacity: 0;
  animation: reveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0.5s);
}

@media (max-width: 720px) {
  :root {
    --trust-size: 34px;
  }

  .header-inner {
    justify-content: space-between;
    max-width: none;
  }

  .nav-pill,
  .sign-in {
    display: none;
  }

  .burger {
    display: flex;
  }

  .headline {
    letter-spacing: -0.08em;
    line-height: 1.05;
  }

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

  .trust-pill {
    font-size: 12px;
  }

  .cta-row {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }

  .cta {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .headline {
    letter-spacing: -0.09em;
    line-height: 1.04;
  }

  .kicker {
    letter-spacing: 0.2em;
  }
}

@media (max-height: 700px) {
  .trust {
    margin-bottom: clamp(10px, 1.8vh, 16px);
  }

  .subhead {
    margin-bottom: clamp(12px, 2vh, 18px);
  }

  .hero-inner {
    transform: scale(0.96);
    transform-origin: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .anim,
  .headline-line,
  .cta-row,
  .stat {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .headline,
  .headline-line {
    color: #fff;
  }
}
