/* ================================================================
   RIO — landing page
   Editorial minimalism: paper whites, ink type, violet at ~5%.
   Display: Plus Jakarta Sans · Body: Inter
   ================================================================ */

:root {
  --paper:    #FAF9F6;
  --paper-2:  #F3F1EC;
  --paper-3:  #EAE7E0;
  --lavender: #F1EAF5;
  --ink:      #17151C;
  --ink-2:    #4F4C58;
  --ink-3:    #807D8A;
  --line:     #E6E3DC;
  --line-2:   #D9D5CC;
  /* sampled from the Rio logo */
  --violet:       #493989;
  --violet-deep:  #3A2D74;
  --violet-soft:  #A99FE0;
  --logo-letter:  #F4E9F2;

  --font-display: "Plus Jakarta Sans", "Inter", sans-serif;
  --font-body: "Inter", "Plus Jakarta Sans", sans-serif;

  --container: 1180px;
  --gutter: clamp(20px, 4vw, 36px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* faint paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--violet); color: #fff; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
svg { display: block; }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ================= shared bits ================= */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow-rule {
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--violet);
}
.eyebrow-center { justify-content: center; }

.section { padding-block: clamp(84px, 11vw, 150px); }

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-top: 22px;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 15px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out),
              background-color .25s, border-color .25s, color .25s;
}
.btn-primary {
  background: var(--violet);
  color: #fff;
}
.btn-primary:hover {
  background: var(--violet-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px rgba(70, 57, 139, .55);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.btn-sm { padding: 10px 18px; font-size: 13.5px; border-radius: 10px; }
.btn-arrow {
  width: 13px; height: 13px;
  transition: transform .25s var(--ease-out);
}
.btn:hover .btn-arrow { transform: translate(2px, -2px); }

.heart { color: var(--violet); }

/* ================= nav ================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

/* brand logo (nav + footer) — the actual Rio mark */
.brand-img {
  display: block;
  height: 40px;
  width: auto;
  border-radius: 9px;
  transition: transform .25s var(--ease-out);
}
.brand:hover .brand-img { transform: translateY(-1px) scale(1.02); }

.nav-links {
  display: flex;
  gap: clamp(20px, 3vw, 38px);
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1.5px;
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ================= hero ================= */

.hero {
  position: relative;
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(72px, 9vw, 120px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

/* the actual logo, framed as the hero visual */
.hero-logo { margin: 0; }
.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(18px, 2.4vw, 28px);
  box-shadow:
    0 40px 90px -42px rgba(73, 57, 137, .55),
    0 12px 30px -18px rgba(23, 21, 28, .25);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.hero-logo:hover img {
  transform: translateY(-6px);
  box-shadow:
    0 54px 110px -44px rgba(73, 57, 137, .6),
    0 16px 34px -18px rgba(23, 21, 28, .28);
}
.hero-logo figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--ink-3);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: 999px;
  padding: 7px 15px;
}
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--violet);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(70, 57, 139, .35); }
  50%      { box-shadow: 0 0 0 6px rgba(70, 57, 139, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.7rem, 4.9vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin-top: 30px;
  max-width: 14ch;
}
.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--violet);
}

.hero-copy {
  margin-top: 26px;
  max-width: 560px;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  line-height: 1.7;
  color: var(--ink-2);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 40px);
  margin-top: clamp(64px, 8vw, 104px);
}
.hero-stats div {
  border-top: 1px solid var(--line-2);
  padding-top: 16px;
}
.hero-stats dt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-stats dd {
  margin-top: 7px;
  font-size: 13px;
  color: var(--ink-3);
}

/* giant type texture (footer only — the real logo lives in the nav & hero) */
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(7.5rem, 29.5vw, 22rem);
  letter-spacing: -0.045em;
  line-height: .78;
  text-align: center;
  transform: translateY(.1em);
  user-select: none;
  white-space: nowrap;
}

/* ================= marquee ================= */

.marquee {
  border-block: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  padding-block: 19px;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: 44px;
  padding-right: 44px;
}
.marquee-group span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}
.paw {
  width: 13px; height: 13px;
  color: var(--violet);
  opacity: .55;
  flex: none;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ================= story ================= */

.story-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 5vw, 80px);
}
.story-aside { padding-top: 8px; }

.story-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.story-lede {
  margin-top: 30px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--ink);
  max-width: 30em;
}
.story-lede em {
  font-style: italic;
  color: var(--violet);
}
.story-text {
  margin-top: 24px;
  max-width: 58ch;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-2);
}

.memorial {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 44px;
  padding: 16px 26px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.memorial-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 13px;
  background: var(--lavender);
}
.memorial-icon svg {
  width: 26px; height: 26px;
  color: var(--violet);
}
.memorial p {
  display: grid;
  line-height: 1.35;
}
.memorial strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
}
.memorial span {
  font-size: 13px;
  color: var(--ink-3);
}

/* ================= ecosystem ================= */

.eco { background: var(--paper-2); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-note {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-3);
  text-align: right;
  padding-bottom: 6px;
}

.eco-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.eco-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 26px 24px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out),
              background-color .35s, border-color .35s;
}
.eco-card:hover {
  background: #fff;
  border-color: var(--line-2);
  transform: translateY(-5px);
  box-shadow: 0 24px 48px -28px rgba(23, 21, 28, .22);
}
.eco-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .12em;
  color: var(--ink-3);
  transition: color .3s;
}
.eco-card:hover .eco-index { color: var(--violet); }
.eco-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
  margin-top: 42px;
}
.eco-card p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.62;
  color: var(--ink-2);
  flex-grow: 1;
}
.eco-tag {
  align-self: flex-start;
  margin-top: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  transition: color .3s, border-color .3s;
}
.eco-card:hover .eco-tag {
  color: var(--violet);
  border-color: color-mix(in srgb, var(--violet) 35%, transparent);
}

/* accent tile */
.eco-card-accent {
  background: var(--lavender);
  border-color: transparent;
  justify-content: flex-end;
  overflow: hidden;
}
.eco-card-accent:hover { background: var(--lavender); }
.eco-paw {
  position: absolute;
  top: -10px;
  right: -16px;
  width: 130px; height: 130px;
  color: var(--violet);
  opacity: .12;
  transform: rotate(18deg);
  transition: opacity .35s, transform .45s var(--ease-out);
}
.eco-card-accent:hover .eco-paw {
  opacity: .2;
  transform: rotate(24deg) translateY(-4px);
}
.eco-accent-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  flex-grow: 0 !important;
}
.eco-accent-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--violet);
}
.eco-accent-link .btn-arrow { width: 11px; height: 11px; }
.eco-accent-link:hover .btn-arrow { transform: translate(2px, -2px); }

/* ================= why ================= */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(36px, 5vw, 56px);
}
.why-col {
  border-top: 1px solid var(--line-2);
  padding-top: 22px;
}
.why-col h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.why-col p {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* ================= waitlist ================= */

.waitlist {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(48% 64% at 50% 110%, rgba(70, 57, 139, .065), transparent 70%),
    var(--paper);
}
.waitlist-inner {
  max-width: 660px;
  text-align: center;
}
.waitlist-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-top: 24px;
}
.waitlist-copy {
  margin-top: 18px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.waitlist-form {
  position: relative;
  display: flex;
  gap: 10px;
  margin-top: 44px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  text-align: left;
  transition: border-color .25s, box-shadow .25s;
}
.waitlist-form:focus-within {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(70, 57, 139, .1);
}
/* paw print stamped above the form */
.form-paw {
  position: absolute;
  top: -30px;
  right: 28px;
  width: 24px; height: 24px;
  color: var(--violet);
  transform: rotate(14deg);
}
.waitlist-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--ink);
  padding: 12px 14px;
}
.waitlist-form input::placeholder { color: var(--ink-3); }
.waitlist-form input:focus { outline: none; }

.waitlist-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.waitlist-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 44px;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--violet) 30%, transparent);
  background: var(--lavender);
  border-radius: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16.5px;
  color: var(--violet-deep);
  animation: rise-in .6s var(--ease-out) both;
}
.waitlist-success svg {
  width: 20px; height: 20px;
  color: var(--violet);
  flex: none;
}

/* ================= footer ================= */

.footer {
  background: var(--ink);
  color: #C9C6D1;
  padding-top: clamp(64px, 8vw, 100px);
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(48px, 6vw, 72px);
}

.footer-brand .brand-img { height: 36px; }
.footer-brand p {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.7;
  max-width: 30ch;
  color: #918EA0;
}
.footer-mail {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--paper);
  border-bottom: 1px solid rgba(250, 249, 246, .25);
  padding-bottom: 2px;
  transition: border-color .25s, color .25s;
}
.footer-mail:hover { border-color: var(--violet-soft); color: #fff; }

.footer-col { display: grid; gap: 11px; align-content: start; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #6E6B7C;
  margin-bottom: 7px;
}
.footer-col a {
  font-size: 14px;
  color: #B4B1BF;
  width: fit-content;
  transition: color .2s, transform .25s var(--ease-out);
}
.footer-col a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 26px;
  border-top: 1px solid rgba(250, 249, 246, .09);
  font-size: 13px;
  color: #6E6B7C;
}
.footer-memory .heart { color: var(--violet-soft); }

.footer-wordmark {
  line-height: 0;
  margin-top: clamp(16px, 3vw, 40px);
}
.footer-wordmark .wordmark {
  color: rgba(250, 249, 246, .045);
  transform: translateY(.16em);
}

/* ================= motion ================= */

@keyframes rise-in {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* page-load stagger (hero) */
.rise {
  animation: rise-in .85s var(--ease-out) both;
  animation-delay: var(--d, 0s);
}

/* scroll reveals — only hidden when JS is present */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--rd, 0s);
}
.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}
/* gentle stagger inside grids */
.eco-grid .reveal:nth-child(4n+2) { --rd: .08s; }
.eco-grid .reveal:nth-child(4n+3) { --rd: .16s; }
.eco-grid .reveal:nth-child(4n+4) { --rd: .24s; }
.why-grid .reveal:nth-child(2) { --rd: .1s; }
.why-grid .reveal:nth-child(3) { --rd: .2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .waitlist-success { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .pulse-dot { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ================= responsive ================= */

@media (max-width: 1080px) {
  .eco-grid { grid-template-columns: repeat(2, 1fr); }
  .eco-card { min-height: 220px; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-logo { max-width: 440px; }
  .story-grid { grid-template-columns: 1fr; gap: 20px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section-note { text-align: left; }
  .why-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero-title { font-size: clamp(2.4rem, 11.4vw, 3.1rem); }
  .hero-title br { display: none; }
  .section-title { font-size: clamp(1.6rem, 7.1vw, 2rem); }
  .story-title { font-size: clamp(1.7rem, 7.6vw, 2.1rem); }
  .waitlist-title { font-size: clamp(1.9rem, 8.4vw, 2.3rem); }
  .eco-grid { grid-template-columns: 1fr; }
  .eco-card { min-height: 0; }
  .eco-card h3 { margin-top: 28px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .hero-stats dd { font-size: 11.5px; }
  .waitlist-form { flex-direction: column; padding: 10px; }
  .waitlist-form .btn { width: 100%; }
  .form-paw { top: -29px; right: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
