/**
 * Standalone landing styles — works without Next.js / Tailwind chunks.
 * Required for Facebook Messenger and other in-app browsers that block or delay _next CSS/JS.
 */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

html.in-app-browser body,
.landing-bg {
  background-color: #010101;
  color: #f8fafc;
}

.landing-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(ellipse 100% 70% at 50% 100%, rgba(0, 0, 0, 0.55), transparent 55%),
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(0, 0, 0, 0.45), transparent 50%);
}

.landing-bg-glow {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.85;
}

.landing-bg-glow--blue {
  left: 50%;
  top: 22%;
  width: min(92vw, 900px);
  height: min(42vh, 380px);
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse 70% 65% at 50% 50%, rgba(59, 130, 246, 0.28) 0%, rgba(37, 99, 235, 0.12) 35%, transparent 72%);
}

.landing-bg-glow--green {
  left: 50%;
  bottom: 14%;
  width: min(92vw, 900px);
  height: min(40vh, 360px);
  transform: translate(-50%, 0);
  background: radial-gradient(ellipse 70% 65% at 50% 50%, rgba(16, 185, 129, 0.26) 0%, rgba(5, 150, 105, 0.11) 35%, transparent 72%);
}

.landing-bg-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 85% 75% at 50% 45%, transparent 35%, rgba(0, 0, 0, 0.55) 100%);
}

.landing-bg > main,
.landing-bg > footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.landing-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  padding: 1.25rem max(1rem, 2.5vw) 1.5rem;
  opacity: 1 !important;
  transform: none !important;
}

.landing-header-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-bottom: 0.25rem;
  opacity: 1 !important;
  transform: none !important;
}

.landing-bg > nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
  opacity: 1 !important;
}

.landing-bg header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  opacity: 1 !important;
  transform: none !important;
}

.landing-bg header img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.landing-bg h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
}

.landing-bg header p {
  margin: 0.5rem 0 0;
  max-width: 28rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

.landing-module-card {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: inherit;
  min-height: 11rem;
  opacity: 1 !important;
  transform: none !important;
}

.landing-module-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--card-bg-image);
  background-size: cover;
  background-position: 72% center;
  background-repeat: no-repeat;
  filter: blur(2px) brightness(0.9);
  transform: scale(1.03);
}

a.landing-module-card[href="/map"] {
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 0 48px rgba(59, 130, 246, 0.35), 0 24px 60px rgba(0, 0, 0, 0.55);
}

a.landing-module-card[href="/finance"] {
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 0 48px rgba(16, 185, 129, 0.35), 0 24px 60px rgba(0, 0, 0, 0.55);
}

.landing-module-card > div:first-of-type {
  position: absolute;
  inset: 0;
  z-index: 1;
}

a.landing-module-card[href="/map"] > div:first-of-type {
  background: linear-gradient(to right, rgba(3, 12, 32, 0.88), rgba(3, 12, 32, 0.45) 50%, rgba(3, 12, 32, 0.08));
}

a.landing-module-card[href="/finance"] > div:first-of-type {
  background: linear-gradient(to right, rgba(3, 28, 22, 0.88), rgba(3, 28, 22, 0.45) 50%, rgba(3, 28, 22, 0.08));
}

.landing-module-card > div:last-of-type {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  min-height: 11rem;
  padding: 1.25rem 1.25rem;
  text-align: left;
}

.landing-module-card h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.landing-module-card p {
  margin: 0;
  max-width: 36rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.landing-module-card span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  width: fit-content;
}

a.landing-module-card[href="/map"] span:last-child {
  border: 1px solid rgba(96, 165, 250, 0.7);
  background: rgba(23, 37, 84, 0.25);
}

a.landing-module-card[href="/finance"] span:last-child {
  border: 1px solid rgba(52, 211, 153, 0.7);
  background: rgba(6, 44, 37, 0.25);
}

.landing-bg > footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 1rem 1.25rem;
  text-align: center;
  opacity: 0.6 !important;
  color: #fff;
}

.landing-bg > footer p {
  margin: 0;
}

html.in-app-browser .landing-main,
html.in-app-browser .landing-header-wrap,
html.in-app-browser .landing-bg > nav,
html.in-app-browser .landing-bg > footer,
html.in-app-browser .landing-module-card,
html.in-app-browser [style*="opacity:0"] {
  opacity: 1 !important;
  transform: none !important;
}

@media (min-width: 640px) {
  .landing-main { gap: 1.25rem; padding-top: 1.5rem; padding-bottom: 2rem; }
  .landing-bg header img { width: 4rem; height: 4rem; }
  .landing-bg h1 { font-size: 1.5rem; }
  .landing-bg header p { font-size: 0.875rem; }
  .landing-module-card > div:last-of-type { min-height: 12rem; padding: 1.5rem 2rem; }
  .landing-module-card h2 { font-size: 1.5rem; }
}

@media (min-width: 768px) {
  .landing-main { gap: 1.5rem; padding-top: 2rem; padding-bottom: 2.5rem; }
  .landing-module-card { border-radius: 1.5rem; }
  .landing-module-card > div:last-of-type {
    min-height: 13.5rem;
    max-width: 52%;
    padding: 2rem 2.5rem;
    gap: 0.75rem;
  }
  .landing-module-card h2 { font-size: 1.875rem; }
  .landing-module-card p { font-size: 1rem; }
}

@media (max-width: 767px) {
  .landing-module-card::before {
    background-position: center;
    filter: blur(3px) brightness(0.55);
  }
}
