/* ══════════════════════════════════════════════════════════
   NEARBY — Landing page
   Tokens alineados con lib/core/theme/app_theme.dart
   ══════════════════════════════════════════════════════════ */

:root {
  --primary: #FF5F6D;
  --secondary: #7B61FF;
  --background: #0A1426;
  --surface: #101D37;
  --surface-hi: #162644;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-hint: rgba(255, 255, 255, 0.48);
  --divider: rgba(255, 255, 255, 0.08);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --gradient: linear-gradient(135deg, #FF5F6D 0%, #7B61FF 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--background);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
}

/* ─── Background: gradient mesh + orbs ─────────────────── */

.bg-gradient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 95, 109, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(123, 97, 255, 0.18) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  animation: float 16s ease-in-out infinite;
}
.orb--1 { width: 320px; height: 320px; background: var(--primary); top: -80px; left: -80px; animation-delay: 0s; }
.orb--2 { width: 260px; height: 260px; background: var(--secondary); bottom: -60px; right: -60px; animation-delay: -6s; }
.orb--3 { width: 180px; height: 180px; background: #4ECDC4; top: 40%; right: 10%; opacity: 0.22; animation-delay: -10s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.08); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

/* ─── Layout ────────────────────────────────────────────── */

.container {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Brand ─────────────────────────────────────────────── */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
}
.brand__logo {
  width: 40px;
  height: 40px;
  background: var(--gradient);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: 0 6px 20px rgba(255, 95, 109, 0.35);
}
.brand__name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

/* ─── Inviter card ──────────────────────────────────────── */

.inviter {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 18px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.6s ease 0.1s both;
}
.inviter__avatar,
.inviter__avatar-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--surface-hi);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-secondary);
  object-fit: cover;
  border: 2px solid transparent;
  background-image: linear-gradient(var(--surface), var(--surface)),
                    var(--gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.inviter__avatar--placeholder {
  background-image: var(--gradient);
  color: #fff;
}
.inviter__text {
  flex: 1;
  min-width: 0;
}
.inviter__line {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 3px;
  line-height: 1.3;
}
.inviter__line strong {
  color: var(--text-primary);
  font-weight: 700;
}
.inviter__sublabel {
  font-size: 13px;
  color: var(--text-hint);
}
.skeleton {
  background: linear-gradient(90deg, var(--surface-hi) 0%, #1d2e52 50%, var(--surface-hi) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  border-radius: 6px;
  height: 14px;
  width: 60%;
  margin-bottom: 6px;
}
.inviter__sublabel.skeleton {
  width: 40%;
  height: 11px;
}
@keyframes shimmer {
  0% { background-position: -150% 0; }
  100% { background-position: 150% 0; }
}

/* ─── Hero ──────────────────────────────────────────────── */

.hero {
  animation: fadeUp 0.6s ease 0.15s both;
}
.hero__title {
  font-size: clamp(40px, 9vw, 58px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.6px;
  margin-bottom: 16px;
}
.highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__subtitle {
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 460px;
}

/* ─── CTA ───────────────────────────────────────────────── */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 28px;
  background: var(--gradient);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(255, 95, 109, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(255, 95, 109, 0.45);
}
.cta:active {
  transform: translateY(0);
}
.cta__arrow {
  transition: transform 0.25s ease;
  font-size: 18px;
}
.cta:hover .cta__arrow {
  transform: translateX(4px);
}
.cta__note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-hint);
}

/* ─── Features ─────────────────────────────────────────── */

.features {
  margin-top: 64px;
  display: grid;
  gap: 16px;
  animation: fadeUp 0.6s ease 0.25s both;
}
@media (min-width: 520px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}
.feature {
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 95, 109, 0.28);
}
.feature__icon {
  font-size: 26px;
  margin-bottom: 12px;
}
.feature__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.feature__body {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ─── Footer ───────────────────────────────────────────── */

.footer {
  margin-top: auto;
  padding-top: 56px;
  font-size: 13px;
  color: var(--text-hint);
  text-align: center;
}
.footer a {
  color: var(--text-hint);
  text-decoration: none;
  border-bottom: 1px solid var(--divider);
  padding-bottom: 1px;
  transition: color 0.2s ease;
}
.footer a:hover { color: var(--text-secondary); }

/* ─── Animations ───────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
