/* =========================================
   1. DESIGN TOKENS (The "Human" Palette)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;700;800&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

:root {
  /* Brand Colors - Earthier & Warmer */
  --primary: #2D9D8B;
  --primary-dark: #237a6d;
  --secondary: #264653;
  --secondary-rgb: 38, 70, 83;
  --accent: #E9C46A;
  --accent-pop: #F4A261;

  /* Backgrounds */
  --bg-cream: #FFFBF5;
  /* Warm paper tone */
  --bg-white: #FFFFFF;
  --bg-glass: rgba(255, 251, 245, 0.85);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --text-main: #1F2937;
  --text-muted: #64748B;

  /* Spacing & Layout */
  --radius-blob: 60% 40% 30% 70% / 60% 30% 70% 40%;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container-max: 1200px;
  --header-h: 90px;
}

/* =========================================
   2. RESET & BASE
   ========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-cream);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--accent);
  color: var(--secondary);
}

/* =========================================
   3. TYPOGRAPHY
   ========================================= */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--secondary);
  line-height: 1.1;
}

h1 {
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 60ch;
}

.highlight {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 30%;
  background: var(--accent);
  z-index: -1;
  opacity: 0.6;
  transform: skewX(-10deg);
  border-radius: 4px;
}

/* =========================================
   4. NAVIGATION (Floating Pill)
   ========================================= */
.nav-wrapper {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  max-width: 100%;
}

.navbar:hover {
  transform: translateY(2px);
  box-shadow: 0 5px 20px -5px rgba(0, 0, 0, 0.06);
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--secondary);
  letter-spacing: -0.5px;
  margin-right: 1rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
}

.btn-nav {
  background: var(--secondary);
  color: white;
  padding: 0.6rem 1.25rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s;
}

.btn-nav:hover {
  transform: scale(1.05);
}

/* Mobile Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--secondary);
  margin-left: auto;
}

/* =========================================
   5. HERO SECTION (Organic & Big)
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* Doodles/Scribbles */
.doodle {
  position: absolute;
  z-index: 1;
  opacity: 0.8;
  pointer-events: none;
}

.doodle-1 {
  top: 15%;
  left: 5%;
  width: 120px;
  transform: rotate(-10deg);
}

.doodle-2 {
  bottom: 10%;
  right: 5%;
  width: 150px;
  transform: rotate(15deg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-xl {
  padding: 1rem 2.5rem;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--secondary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary);
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 0 10px 25px -5px rgba(45, 157, 139, 0.4);
}

.btn-outline {
  background: transparent;
  border-color: var(--secondary);
  color: var(--secondary);
}

.btn-outline:hover {
  background: rgba(38, 70, 83, 0.05);
  transform: translateY(-4px) rotate(1deg);
}

/* Abstract Image Collage */
.collage {
  position: relative;
  height: 500px;
  width: 100%;
}

.collage-card {
  position: absolute;
  background: white;
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: float 6s ease-in-out infinite;
}

.cc-1 {
  top: 20%;
  right: 10%;
  z-index: 2;
  transform: rotate(3deg);
  animation-delay: 0s;
}

.cc-2 {
  bottom: 25%;
  left: 5%;
  z-index: 3;
  transform: rotate(-3deg);
  animation-delay: 1.5s;
}

.cc-3 {
  top: 50%;
  left: 40%;
  padding: 2rem;
  z-index: 1;
  background: #E0F2FE;
  opacity: 0.8;
  filter: blur(2px);
  transform: translate(-50%, -50%) scale(0.9);
  animation: none;
  /* Background blob */
  width: 300px;
  height: 300px;
  border-radius: 50%;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ddd;
  object-fit: cover;
}

/* =========================================
   6. MARQUEE (Infinite Scroll)
   ========================================= */
.marquee-wrapper {
  background: var(--primary);
  color: white;
  padding: 1.5rem 0;
  overflow: hidden;
  transform: rotate(-1deg) scale(1.02);
  margin: 2rem 0 4rem;
}

.marquee-content {
  display: flex;
  gap: 3rem;
  animation: scroll 20s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.marquee-item::after {
  content: '✦';
  color: var(--accent);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* =========================================
   7. FEATURES: INTERACTIVE BENTO GARDEN
   ========================================= */
.bento-section {
  padding: 6rem 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, minmax(300px, auto));
  gap: 1.5rem;
  margin-top: 3rem;
}

/* Common Card Styles */
.bento-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.bc-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--secondary);
  position: relative;
  z-index: 2;
}

.bc-desc {
  font-size: 1rem;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
  max-width: 90%;
}

/* --- CARD 1: ACCESSIBILITY (Large Left) --- */
.card-access {
  grid-column: span 7;
  grid-row: span 2;
  background: linear-gradient(135deg, #FFFFFF 0%, #F0FDF4 100%);
}

.access-visual {
  margin-top: 2rem;
  background: white;
  border-radius: 16px;
  height: 100%;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Simulated Interface */
.access-ui {
  width: 80%;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.5s ease;
}

.access-text-sample {
  font-size: 1.25rem;
  font-weight: 500;
  color: #94A3B8;
  /* Low contrast initially */
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
}

.toggle-btn {
  width: 60px;
  height: 34px;
  background: #E2E8F0;
  border-radius: 34px;
  position: relative;
  margin: 0 auto;
  transition: background 0.3s ease;
}

.toggle-btn::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 30px;
  height: 30px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Hover Interaction */
.card-access:hover .access-text-sample {
  color: #000000;
  font-weight: 800;
  transform: scale(1.1);
}

.card-access:hover .toggle-btn {
  background: var(--primary);
}

.card-access:hover .toggle-btn::after {
  transform: translateX(26px);
}

/* --- CARD 2: COMMUNITY (Top Right) --- */
.card-community {
  grid-column: span 5;
  background: #FDF4FF;
  /* Soft Purple tint */
}

.bubbles-container {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.bubble {
  position: absolute;
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 20px 20px 20px 0;
  font-size: 0.8rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.b1 {
  bottom: 20px;
  right: 20px;
  transition-delay: 0s;
}

.b2 {
  bottom: 60px;
  right: 60px;
  transition-delay: 0.1s;
  border-radius: 20px 20px 0 20px;
  background: var(--secondary);
  color: white;
}

.b3 {
  bottom: 110px;
  right: 30px;
  transition-delay: 0.2s;
}

.card-community:hover .bubble {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* --- CARD 3: EVENTS (Bottom Right) --- */
.card-events {
  grid-column: span 5;
  background: #FFFBEB;
  /* Soft Yellow */
}

.event-ticket {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: white;
  padding: 1rem;
  border-radius: 12px;
  width: 180px;
  transform: rotate(-10deg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  border: 1px dashed #E5E7EB;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.event-date {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
}

.card-events:hover .event-ticket {
  transform: rotate(0deg) translateY(-10px) scale(1.05);
}

/* Mobile Responsive Adjustments for Bento */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .card-access,
  .card-community,
  .card-events {
    grid-column: span 1;
    grid-row: auto;
    min-height: 250px;
  }
}

/* =========================================
   8. COMMUNITY (Chat Heads)
   ========================================= */
.community-section {
  padding: 6rem 0;
  text-align: center;
}

.chat-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.chat-bubble {
  background: white;
  padding: 1.5rem 2rem;
  border-radius: 20px 20px 20px 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  max-width: 300px;
  text-align: left;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.chat-bubble:hover {
  transform: scale(1.05) translateY(-5px);
  z-index: 10;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.chat-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
}

/* =========================================
   9. FOOTER
   ========================================= */
.footer {
  background: var(--secondary);
  color: rgba(255, 255, 255, 0.8);
  padding: 5rem 0 2rem;
  margin-top: 4rem;
  border-radius: 40px 40px 0 0;
}

.footer h3 {
  color: white;
  margin-bottom: 1.5rem;
}

.footer a:hover {
  color: var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

/* =========================================
   10. ANIMATION UTILS (Framer Style)
   ========================================= */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

/* Mobile Responsive */
@media (max-width: 900px) {
  h1 {
    font-size: 3rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .collage {
    height: 350px;
    width: 100%;
    margin-top: 2rem;
  }

  .nav-links {
    display: none;
  }

  /* Simplified mobile nav for demo */
  .hamburger {
    display: block;
  }

  /* Accordion becomes Stack on Mobile */
  .feature-accordion {
    flex-direction: column;
    height: auto;
    gap: 1rem;
  }

  .feature-panel {
    height: 120px;
    flex: none;
    width: 100%;
  }

  .feature-panel:hover {
    height: 300px;
    flex: none;
  }

  .fp-title {
    transform: none;
    position: relative;
    bottom: 0;
    left: 0;
    margin-bottom: 0.5rem;
  }

  .fp-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
}

/* =========================================
   11. LEGAL PAGE STYLES (New)
   ========================================= */
.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.legal-header {
  text-align: center;
  margin-bottom: 4rem;
}

.legal-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.legal-content h1 {
  font-size: 2rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--bg-cream);
  padding-bottom: 0.5rem;
}

.legal-content p,
.legal-content li {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}