/**
 * Ruppi marketing site — custom styles only.
 * Utility classes come from the Tailwind Play CDN.
 */

:root {
  --bg-deep: #101013;
  --bg-panel: #18181d;
  --bg-elevated: #23232a;
  --line: #34343c;
  --text: #f5f6fa;
  --muted: #8c8f9a;
  --accent: #43eba5;
  --ink-50: #f5f6fa;
  --ink-100: #e0e2e7;
  --ink-300: #a1a4b0;
  --ink-400: #8c8f9a;
  --ink-500: #51515a;
  --ink-600: #34343c;
  --ink-700: #23232a;
  --ink-800: #18181d;
  --ink-900: #101013;
  --ink-950: #0b0b0e;
  --signal: #43eba5;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--ink-950);
  color: var(--ink-50);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(ellipse 90% 60% at 15% -10%, rgba(67, 235, 165, 0.07), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 1%, rgba(80, 84, 100, 0.13), transparent 50%),
    linear-gradient(160deg, #0b0b0e 0%, #18181d 40%, #23232a 100%);
  background-attachment: fixed;
}

::selection {
  background: rgba(67, 235, 165, 0.28);
}

.font-display {
  font-family: "Syne", "Segoe UI", sans-serif;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(52, 52, 60, 0.6);
  background-color: rgba(11, 11, 14, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-link {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--ink-300);
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--ink-50);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background-color: var(--signal);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-950);
  transition: filter 0.15s ease;
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid var(--ink-600);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-100);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.btn-ghost:hover {
  border-color: #c2c4cc;
  background-color: rgba(24, 24, 29, 0.6);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--signal);
}

.feature-shot {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(52, 52, 60, 0.8);
  background-color: var(--ink-900);
  box-shadow: 0 0 40px 0 rgba(67, 235, 165, 0.12);
}

.prose-legal h2 {
  margin-top: 2.5rem;
  font-family: "Syne", "Segoe UI", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink-50);
}

.prose-legal h2:first-child {
  margin-top: 0;
}

.prose-legal p,
.prose-legal li {
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--ink-300);
}

.prose-legal ul {
  margin-top: 0.75rem;
  list-style-type: disc;
  padding-left: 1.25rem;
}

.prose-legal ul > li + li {
  margin-top: 0.5rem;
}

.prose-legal a {
  color: var(--signal);
  text-underline-offset: 2px;
}

.prose-legal a:hover {
  text-decoration: underline;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-wordmark {
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  border-top: 1px solid rgba(35, 35, 42, 0.6);
}

.footer-wordmark span {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
  text-align: center;
  font-family: "Syne", "Segoe UI", sans-serif;
  font-size: clamp(4.5rem, 18vw, 11rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(245, 246, 250, 0.04);
}

.hero-orbits {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 9999px;
  opacity: 0.4;
  filter: blur(64px);
  will-change: transform;
  animation: hero-drift 22s ease-in-out infinite;
}

.hero-orb-a {
  height: 16rem;
  width: 16rem;
  background-color: rgba(67, 235, 165, 0.25);
  top: 8%;
  left: 6%;
  animation-duration: 26s;
}

.hero-orb-b {
  height: 20rem;
  width: 20rem;
  background-color: rgba(140, 143, 154, 0.2);
  top: 35%;
  right: -4%;
  animation-duration: 32s;
  animation-delay: -8s;
}

.hero-orb-c {
  height: 13rem;
  width: 13rem;
  background-color: rgba(67, 235, 165, 0.15);
  bottom: 18%;
  left: 38%;
  animation-duration: 28s;
  animation-delay: -14s;
}

.feature-card {
  display: flex;
  width: 100%;
  flex: 1 1 0%;
  flex-direction: column;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid rgba(52, 52, 60, 0.8);
  background-color: rgba(16, 16, 19, 0.4);
  padding: 0.625rem 0.875rem;
  text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  border-color: var(--ink-500);
  background-color: rgba(24, 24, 29, 0.5);
}

.feature-card.is-active {
  border-color: rgba(67, 235, 165, 0.5);
  background-color: rgba(24, 24, 29, 0.8);
  box-shadow: 0 0 40px 0 rgba(67, 235, 165, 0.12);
}

.feature-showcase {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .feature-showcase {
    flex-direction: row;
    align-items: stretch;
    gap: 2rem;
  }
}

.feature-tabs {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .feature-tabs {
    width: 17.5rem;
    flex-shrink: 0;
  }
}

.feature-stage {
  position: relative;
  min-width: 0;
  flex: 1 1 0%;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid rgba(52, 52, 60, 0.8);
  background-color: var(--ink-900);
  box-shadow: 0 0 40px 0 rgba(67, 235, 165, 0.12);
}

.feature-stage img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.feature-stage img.is-active {
  position: relative;
  inset: auto;
  height: auto;
  width: 100%;
  opacity: 1;
}

@keyframes hero-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  33% {
    transform: translate3d(4%, -6%, 0) scale(1.08);
  }
  66% {
    transform: translate3d(-5%, 4%, 0) scale(0.94);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orb {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .feature-stage img {
    transition: none;
  }
}
