:root {
  --bg-deep: #0b0914;
  /* Matched app background */
  --bg-card: #150e28;
  --purple: #814de5;
  --purple-glow: rgba(129, 77, 229, 0.4);
  --purple-light: #b084f5;
  --purple-bright: #d4a5ff;
  --green: #60ddb1;
  --green-glow: rgba(96, 221, 177, 0.4);
  --green-light: #c9f3df;
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --panel-bg: rgba(26, 18, 54, 0.85);
  --glass-bg: rgba(21, 14, 40, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Nunito', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Blobs */
.bg-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  animation: float 20s infinite ease-in-out alternate;
}

.shape-purple {
  width: 900px;
  height: 900px;
  background: var(--purple-glow);
  top: -200px;
  left: -200px;
}

.shape-green {
  width: 600px;
  height: 600px;
  background: var(--green-glow);
  bottom: -100px;
  right: -100px;
  animation-delay: -5s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(50px, 30px) scale(1.1);
  }
}

/* Shell & Glassmorphism */
.landing-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
}

/* Header */
.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  margin-bottom: 64px;
  border-radius: 100px;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 22px;
  text-decoration: none;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.gaia-logo {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--green), var(--purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-deep);
}

.gaia-leaf {
  width: 55%;
  height: 55%;
}

/* Buttons */
.button {
  text-decoration: none;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.pill-button {
  padding: 14px 28px;
  border-radius: 100px;
}

.button-primary {
  background: var(--green-light);
  color: var(--bg-deep);
}

.button-primary:hover {
  transform: scale(1.02);
  background: #ffffff;
}

.button-glow {
  box-shadow: 0 8px 32px rgba(201, 243, 223, 0.2);
}

/* Store Buttons */
.store-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  background: var(--text-main);
  color: var(--bg-deep);
  padding: 10px 20px;
  border-radius: 14px;
  text-decoration: none;
  gap: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 170px;
}

.store-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.15);
}

.store-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.store-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #4a4a5a;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.store-main {
  font-size: 18px;
  font-weight: 900;
  color: #0b0914;
  line-height: 1;
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  min-height: 60vh;
  margin-bottom: 80px;
}

.hero-title {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 24px;
  letter-spacing: -0.03em;
}

.text-gradient {
  background: linear-gradient(90deg, var(--purple-light), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 20px;
  color: #b8c4ea;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-subtitle strong {
  color: var(--text-main);
}

.hero-visual {
  position: relative;
  height: 640px;
  /* Increased for taller more realistic phone */
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-pedestal {
  position: absolute;
  bottom: 0px;
  width: 300px;
  height: 60px;
  background: radial-gradient(ellipse, var(--purple-glow) 0%, transparent 70%);
  filter: blur(25px);
}

/* --- SUPER DETAILED PHONE MOCKUP UI --- */
.phone-mockup {
  width: 320px;
  height: 640px;
  background: #0B081B;
  /* matches the deep dark background of the Explore screen */
  border-radius: 48px;
  border: 4px solid #333954;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.02);
  position: relative;
  z-index: 2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.floating {
  animation: float-phone 7s infinite ease-in-out;
}

.explore-ui {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-top: 50px;
  /* status bar & notch space */
  position: relative;
}

.explore-top {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.explore-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.explore-header {
  font-size: 28px;
  font-weight: 900;
  color: var(--purple-bright);
  /* Specific purple from screenshot */
  letter-spacing: -0.03em;
}

.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle.filter-icon::before {
  content: "⚲";
  /* Filter icon approximation */
  font-size: 20px;
  color: var(--text-muted);
  transform: rotate(90deg);
}

.explore-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.explore-tab {
  padding: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
}

.explore-tab.active {
  background: rgba(36, 68, 62, 0.4);
  /* Dark muted teal green from screenshot */
  border: 1px solid rgba(96, 221, 177, 0.3);
  border-radius: 12px;
  color: #fff;
  /* White text for active tab in screenshot */
}

.explore-pills {
  display: flex;
  gap: 8px;
  overflow: hidden;
}

.pill {
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pill.active {
  background: rgba(129, 77, 229, 0.2);
  border-color: rgba(129, 77, 229, 0.5);
  color: var(--purple-bright);
}

.explore-section-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 4px;
}

/* Grid Layout matching screenshot */
.explore-grid-flow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px;
  flex: 1;
  margin-top: 8px;
  padding-bottom: 20px;
}

.grid-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.explore-card {
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  background: #1c1535;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.explore-card.large {
  height: 180px;
}

.explore-card.small {
  height: 140px;
}

.explore-card-bg {
  position: absolute;
  inset: 0;
  opacity: 0.8;
  background-size: cover;
  background-position: center;
}

/* Simulated image backgrounds using high quality unsplash links resembling the aesthetic items */
.explore-card-bg.img-salon {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.2) 60%), url('https://images.unsplash.com/photo-1516035069371-29a1b244cc32?q=80&w=600&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
}

.explore-card-bg.img-book {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.2) 60%), url('https://images.unsplash.com/photo-1610701596007-11502861dcfa?q=80&w=600&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
}

.explore-card-bg.img-guitar {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.2) 60%), url('https://images.unsplash.com/photo-1510915361894-db8b60106cb1?q=80&w=600&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
}

.explore-card-bg.img-nature {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.2) 60%), url('https://images.unsplash.com/photo-1485955900006-10f4d324d411?q=80&w=600&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
}

.explore-card-content {
  position: relative;
  z-index: 2;
  padding: 12px;
}

.card-title {
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
}

.card-meta {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
  font-weight: 600;
}

.card-price {
  font-weight: 900;
  font-size: 15px;
  color: var(--green);
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.card-price.gift-text {
  color: var(--green);
}

.card-est {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.card-est.block {
  display: block;
}

.card-avatar {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: #aaa;
}

.outline-icon {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
}


/* Bottom Navigation Bar */
.explore-bottom-nav {
  height: 70px;
  background: var(--panel-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding-bottom: 15px;
  position: absolute;
  bottom: 0;
  width: 100%;
  border-bottom-left-radius: 44px;
  border-bottom-right-radius: 44px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  flex: 1;
}

.nav-item.active {
  color: var(--purple-bright);
}

.nav-icon {
  font-size: 18px;
}

.nav-item span {
  font-size: 9px;
  font-weight: 700;
}

.nav-fab {
  width: 54px;
  height: 54px;
  border-radius: 27px;
  background: linear-gradient(135deg, var(--purple-bright), var(--purple));
  color: #fff;
  font-size: 32px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-20px);
  box-shadow: 0 4px 16px rgba(176, 132, 245, 0.4);
  border: 4px solid var(--panel-bg);
  flex-shrink: 0;
}

/* --- END PHONE MOCKUP UI --- */

/* Section Intro */
.section-intro {
  text-align: center;
  margin-bottom: 48px;
}

.section-badge {
  display: inline-block;
  background: rgba(96, 221, 177, 0.12);
  border: 1px solid rgba(96, 221, 177, 0.3);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 100px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-heading {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 17px;
  margin: 0;
}

/* Core Loops - 2x2 */
.core-loops {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.loop-card {
  padding: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.loop-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 32px 32px 0 0;
  opacity: 0.7;
}

.card-swap::before { background: linear-gradient(90deg, var(--green), var(--green-light)); }
.card-gift::before { background: linear-gradient(90deg, var(--purple), var(--purple-light)); }
.card-buy::before  { background: linear-gradient(90deg, #f59e0b, #fcd34d); }
.card-msg::before  { background: linear-gradient(90deg, var(--purple-light), var(--green)); }

.card-swap:hover { box-shadow: 0 24px 60px rgba(96, 221, 177, 0.12); }
.card-gift:hover { box-shadow: 0 24px 60px rgba(129, 77, 229, 0.15); }
.card-buy:hover  { box-shadow: 0 24px 60px rgba(245, 158, 11, 0.12); }
.card-msg:hover  { box-shadow: 0 24px 60px rgba(176, 132, 245, 0.12); }

.card-num {
  position: absolute;
  top: 22px;
  right: 26px;
  font-size: 12px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.13);
  letter-spacing: 0.04em;
}

/* Swap card mini items */
.swap-item-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 16px !important;
}

.swap-item-icon {
  font-size: 20px;
  line-height: 1;
}

.swap-arrow {
  color: var(--green);
  font-size: 28px;
  font-weight: 900;
  flex-shrink: 0;
}

/* Feature icon wrapper for gift/buy cards */
.feature-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon {
  font-size: 36px;
  line-height: 1;
}

.gift-wrap {
  background: linear-gradient(135deg, rgba(129, 77, 229, 0.3), rgba(176, 132, 245, 0.2));
  border: 1px solid rgba(176, 132, 245, 0.25);
  box-shadow: 0 8px 32px rgba(129, 77, 229, 0.2);
}

.buy-wrap {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(252, 211, 77, 0.15));
  border: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.15);
}

.badge-new {
  background: var(--green);
  color: var(--bg-deep);
  font-size: 10px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 100px;
  vertical-align: middle;
  margin-left: 8px;
}

.hover-lift:hover {
  transform: translateY(-6px);
  background: rgba(30, 22, 56, 0.7);
}

.loop-visual {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.loop-card h2 {
  font-weight: 800;
  font-size: 24px;
  margin: 0 0 12px;
}

.loop-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 16px;
}

/* Mini UI Snippets */
.ui-snippet-mini {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ui-card.mini {
  background: rgba(255, 255, 255, 0.06);
  padding: 12px 16px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 14px;
}

.swap-icon {
  color: var(--green);
  font-size: 24px;
}

.gift-card {
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  font-size: 32px;
  width: 64px;
  height: 64px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.message-snippet {
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.chat-bubble {
  padding: 10px 16px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 600;
  max-width: 80%;
}

.chat-bubble.left {
  background: rgba(255, 255, 255, 0.1);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-bubble.right {
  background: var(--purple-light);
  color: var(--bg-deep);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* Trust Section */
.trust-section {
  padding: 64px;
  text-align: center;
  background: linear-gradient(180deg, rgba(21, 14, 40, 0.4), rgba(11, 9, 20, 0.6));
  margin-bottom: 80px;
}

.trust-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.trust-content h2 {
  font-size: 36px;
  font-weight: 900;
  margin: 0 0 16px;
}

.trust-content p {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 600px;
  margin-bottom: 32px;
}

.trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: row;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-list li {
  font-weight: 700;
  color: var(--green-light);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(96, 221, 177, 0.1);
  padding: 8px 16px;
  border-radius: 100px;
}

/* Footer */
.landing-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px;
  border-top: 1px solid var(--glass-border);
}

.footer-brand strong {
  display: block;
  font-size: 18px;
}

.footer-brand span {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 700;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-main);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin: 0 auto 40px;
  }

  .core-loops {
    grid-template-columns: 1fr;
  }

  .section-intro {
    margin-bottom: 36px;
  }

  .landing-header {
    flex-direction: column;
    gap: 16px;
    border-radius: 32px;
  }

  .landing-footer {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .trust-list {
    flex-direction: column;
    align-items: center;
  }
}

/* --- Language Toggle --- */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-main);
  border-radius: 100px;
  padding: 6px 14px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

/* --- Modals / Popups --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  width: 90%;
  max-width: 680px;
  max-height: 85vh;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  z-index: 101;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

.modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  color: var(--text-main);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #fff;
}

.modal-body {
  padding: 32px;
  overflow-y: auto;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.modal-body h3 {
  color: var(--text-main);
  font-size: 18px;
  font-weight: 800;
  margin: 24px 0 12px;
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body p {
  margin: 0 0 16px;
}

.modal-body ul {
  margin: 0 0 24px;
  padding-left: 20px;
}

.modal-body li {
  margin-bottom: 8px;
}

/* Hide scrollbar for cleaner look in modals */
.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}