/* ================================================================
   Research Whales — Design System
   ================================================================ */

:root {
  /* Brand */
  --rw-navy: #0F1A4A;
  --rw-navy-2: #1A2666;
  --rw-navy-3: #2A3680;
  --rw-pink: #E91E8B;
  --rw-pink-2: #C7148B;
  --rw-pink-soft: #FCE7F1;
  --rw-sky: #2BA9E0;
  --rw-sky-soft: #E6F4FB;

  /* Surfaces */
  --rw-bg: #FFFFFF;
  --rw-bg-alt: #F6F4F0;        /* slightly warmer near-white, more visible */
  --rw-bg-cool: #F5F7FB;       /* cool tint */
  --rw-bg-dark: #0A0F2E;       /* near-black navy for dramatic sections */
  --rw-border: #E8E6E0;
  --rw-border-2: #DEDBD3;

  /* Text */
  --rw-ink: #0F1A4A;
  --rw-ink-2: #2A3360;
  --rw-muted: #6B708C;
  --rw-muted-2: #8E93AC;

  /* Shadows */
  --rw-shadow-sm: 0 1px 2px rgba(15,26,74,.04);
  --rw-shadow: 0 1px 2px rgba(15,26,74,.04), 0 12px 32px rgba(15,26,74,.06);
  --rw-shadow-lg: 0 1px 2px rgba(15,26,74,.04), 0 24px 64px rgba(15,26,74,.10);
  --rw-shadow-pink: 0 12px 32px rgba(233,30,139,.20);

  /* Radius */
  --rw-r-sm: 10px;
  --rw-r: 16px;
  --rw-r-lg: 24px;
  --rw-r-xl: 32px;

  /* Spacing rhythm (density tweak overrides) */
  --rw-section-y: clamp(80px, 9vw, 140px);
  --rw-gap: 24px;
  --rw-container: 1240px;

  /* Type */
  --rw-font-serif: "Fraunces", "Source Serif Pro", Georgia, serif;
  --rw-font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --rw-headline-font: var(--rw-font-serif);

  /* Gradient signatures */
  --rw-grad-brand: linear-gradient(135deg, #E91E8B 0%, #7B3FB8 40%, #2BA9E0 100%);
  --rw-grad-pink: linear-gradient(135deg, #FF3FA8 0%, #C7148B 100%);
  --rw-grad-sky: linear-gradient(135deg, #6CC8F0 0%, #2BA9E0 100%);
  --rw-grad-navy: linear-gradient(135deg, #1A2666 0%, #0F1A4A 100%);
}

/* Density tweak */
[data-density="compact"] {
  --rw-section-y: clamp(56px, 6vw, 96px);
  --rw-gap: 18px;
}

/* Reset + base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--rw-font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--rw-ink-2);
  background: var(--rw-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Headlines */
h1, h2, h3, h4 {
  font-family: var(--rw-headline-font);
  color: var(--rw-ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(48px, 7.5vw, 96px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 500; }
h2 { font-size: clamp(40px, 5.5vw, 72px); line-height: 1.0; letter-spacing: -0.035em; font-weight: 500; }
h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -0.018em; }
h4 { font-size: 18px; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }

.serif { font-family: var(--rw-font-serif); }
.sans  { font-family: var(--rw-font-sans); }

/* Layout helpers */
.container {
  max-width: var(--rw-container);
  margin: 0 auto;
  padding: 0 32px;
}
.container--narrow { max-width: 880px; }
.container--wide { max-width: 1400px; }

.section {
  padding: var(--rw-section-y) 0;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--rw-font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rw-pink);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rw-pink); }

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--rw-muted);
  max-width: 60ch;
}

/* Gradient ink */
.gink {
  background: var(--rw-grad-pink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gink-brand {
  background: var(--rw-grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
  font-family: var(--rw-font-sans);
}
.btn--primary {
  background: var(--rw-grad-pink);
  color: white;
  box-shadow: var(--rw-shadow-pink);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(233,30,139,.30); }
.btn--ghost {
  background: transparent;
  color: var(--rw-ink);
  border-color: var(--rw-border-2);
}
.btn--ghost:hover { background: var(--rw-bg-alt); border-color: var(--rw-ink); }
.btn--dark {
  background: var(--rw-navy);
  color: white;
}
.btn--dark:hover { background: var(--rw-navy-2); transform: translateY(-2px); }
.btn--whatsapp {
  background: #25D366;
  color: white;
}
.btn--whatsapp:hover { background: #1DB855; transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: 13px; }
.btn--lg { padding: 18px 30px; font-size: 16px; }

/* Pills / chips */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: var(--rw-bg-alt);
  color: var(--rw-ink-2);
  border: 1px solid var(--rw-border);
}
.pill--pink { background: var(--rw-pink-soft); color: var(--rw-pink-2); border-color: transparent; }
.pill--sky  { background: var(--rw-sky-soft); color: #0E6FA0; border-color: transparent; }
.pill--navy { background: rgba(15,26,74,.06); color: var(--rw-navy); border-color: transparent; }

/* Cards */
.card {
  background: white;
  border: 1px solid var(--rw-border);
  border-radius: var(--rw-r);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rw-shadow);
  border-color: var(--rw-border-2);
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rw-border);
}
.nav__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex; align-items: center; gap: 18px;
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.nav__logo {
  width: 36px; height: 36px;
  object-fit: cover;
  border-radius: 8px;
}
.nav__wordmark { display: flex; flex-direction: column; line-height: 1; }
.nav__name { font-family: var(--rw-font-serif); font-size: 17px; font-weight: 600; color: var(--rw-ink); white-space: nowrap; }
.nav__tag  { font-size: 9px; letter-spacing: 0.18em; color: var(--rw-muted); text-transform: uppercase; margin-top: 3px; font-weight: 600; white-space: nowrap; }

.nav__links {
  display: flex; align-items: center; gap: 0;
  margin-left: auto;
}
.nav__link {
  position: relative;
  padding: 8px 11px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--rw-ink-2);
  border-radius: 8px;
  transition: color .2s ease;
  white-space: nowrap;
}
.nav__link:hover { color: var(--rw-pink); }
.nav__link--active { color: var(--rw-pink); }
.nav__link--active::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px;
  height: 2px; background: var(--rw-pink); border-radius: 2px;
}
.nav__link .ext {
  display: inline-block; margin-left: 3px;
  font-size: 9.5px; opacity: .7;
}
.nav__cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  background: var(--rw-grad-pink);
  color: white;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: var(--rw-shadow-pink);
  transition: transform .2s ease;
  margin-left: 8px;
  white-space: nowrap;
}
.nav__cta:hover { transform: translateY(-1px); }
.nav__cta svg { flex-shrink: 0; }

.nav__burger { display: none; }

/* Hide tag line below 1280 to free space */
@media (max-width: 1280px) {
  .nav__tag { display: none; }
}
/* Hide CTA text below 1100, keep icon-only */
@media (max-width: 1100px) {
  .nav__cta .cta-text { display: none; }
  .nav__cta { padding: 9px 12px; }
}
/* Below 820px collapse to burger */
@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border: 1px solid var(--rw-border-2);
    border-radius: 10px;
    background: white;
    margin-left: auto;
  }
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--rw-navy);
  color: rgba(255,255,255,.78);
  padding: 80px 0 32px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute; inset: auto -10% -40% -10%;
  height: 60%;
  background: radial-gradient(ellipse at 30% 0%, rgba(233,30,139,.22) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 30%, rgba(43,169,224,.16) 0%, transparent 60%);
  pointer-events: none;
}
.footer__inner { position: relative; max-width: 1400px; margin: 0 auto; padding: 0 32px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer__brand h4 { color: white; font-size: 22px; margin-bottom: 12px; }
.footer__brand p { color: rgba(255,255,255,.65); max-width: 32ch; font-size: 14px; line-height: 1.6; }
.footer__col h5 {
  color: white; font-family: var(--rw-font-sans); font-size: 13px;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 18px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 14px; color: rgba(255,255,255,.7); transition: color .2s ease; }
.footer__col a:hover { color: var(--rw-pink); }
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06);
  border-radius: 10px;
  transition: background .2s ease, transform .2s ease;
}
.footer__social a:hover { background: var(--rw-pink); transform: translateY(-2px); }
.footer__social svg { width: 16px; height: 16px; fill: white; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px; color: rgba(255,255,255,.5);
  flex-wrap: wrap; gap: 12px;
}
.footer__bottom .secp {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  font-size: 12px;
}
.footer__bottom .secp svg { width: 14px; height: 14px; }

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="100"] { transition-delay: .1s; }
.reveal[data-delay="200"] { transition-delay: .2s; }
.reveal[data-delay="300"] { transition-delay: .3s; }
.reveal[data-delay="400"] { transition-delay: .4s; }
.reveal[data-delay="500"] { transition-delay: .5s; }

[data-anim="off"] .reveal { opacity: 1; transform: none; transition: none; }
[data-anim="off"] .float, [data-anim="off"] .pulse, [data-anim="off"] .wave-anim, [data-anim="off"] .swim, [data-anim="off"] .bob { animation: none !important; }

/* Floating motion */
@keyframes float-1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(1.5deg); }
}
@keyframes float-2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-8px) rotate(-1deg); }
}
@keyframes float-3 {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes swim {
  0%   { transform: translateX(-20px) translateY(0); }
  50%  { transform: translateX(20px) translateY(-6px); }
  100% { transform: translateX(-20px) translateY(0); }
}
@keyframes wave {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes pulse-ring {
  0%   { transform: scale(.92); opacity: .6; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.float-1 { animation: float-1 7s ease-in-out infinite; }
.float-2 { animation: float-2 9s ease-in-out infinite; }
.float-3 { animation: float-3 6s ease-in-out infinite; }
.bob     { animation: bob 4s ease-in-out infinite; }

/* ================================================================
   TWEAKS PANEL
   ================================================================ */
.tweaks {
  position: fixed; right: 24px; bottom: 24px; z-index: 100;
  background: white;
  border: 1px solid var(--rw-border);
  border-radius: 18px;
  box-shadow: var(--rw-shadow-lg);
  padding: 18px;
  width: 280px;
  display: none;
  font-family: var(--rw-font-sans);
}
.tweaks.is-open { display: block; }
.tweaks__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.tweaks__head h4 { font-family: var(--rw-font-sans); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rw-ink); }
.tweaks__close {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--rw-border);
  background: white;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--rw-muted);
}
.tweaks__row { padding: 10px 0; border-top: 1px solid var(--rw-border); }
.tweaks__row:first-of-type { border-top: 0; padding-top: 0; }
.tweaks__label { font-size: 12px; font-weight: 600; color: var(--rw-muted); letter-spacing: 0.04em; margin-bottom: 8px; text-transform: uppercase; }
.tweaks__seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--rw-bg-alt);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.tweaks__seg button {
  border: 0; background: transparent; padding: 8px 10px;
  font-size: 12px; font-weight: 600; color: var(--rw-muted);
  border-radius: 8px;
  transition: background .2s ease, color .2s ease;
}
.tweaks__seg button.is-active { background: white; color: var(--rw-ink); box-shadow: var(--rw-shadow-sm); }

