/* ============================================================
   BUDDIES WEBSITE — Design System v2
   Poppins 900 · Inter 600 · #FF8F5C · #22C55E · #1A1A1A
   Matches app + presentation exactly
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700;800;900&family=Inter:wght@400;600;700&display=swap');

:root {
  --bg-darkest: #1A1A1A;
  --bg-dark: #252525;
  --bg-card: #2D2D2D;
  --accent-orange: #FF8F5C;
  --cta-green: #22C55E;
  --text-white: #FFFFFF;
  --text-secondary: #D1D5DB;
  --text-tertiary: #9CA3AF;
  --text-muted: #6B7280;
  --danger-red: #EF4444;
  --max-width: 1200px;
  --max-width-narrow: 720px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-darkest);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Noise texture */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1000;
}

a { color: var(--accent-orange); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text-white); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; font-weight: 800; line-height: 1.1; }

.container { max-width: var(--max-width); margin: 0 auto; width: 100%; padding: 0 24px; }
.container--narrow { max-width: var(--max-width-narrow); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-accent { color: var(--accent-orange); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Section label (mono uppercase) */
.section-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-orange);
  letter-spacing: 3px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}

.section-title { font-size: clamp(28px, 5vw, 44px); margin-bottom: 20px; }
.section-description { font-size: 18px; color: var(--text-secondary); max-width: 600px; margin: 0 auto 32px; }

section { padding: 96px 24px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 600;
  border-radius: 999px; text-decoration: none; border: none; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn--primary { background: var(--cta-green); color: white; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(34,197,94,0.3); color: white; }
.btn--secondary { background: var(--accent-orange); color: white; }
.btn--secondary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,143,92,0.3); color: white; }
.btn--ghost { background: transparent; color: var(--text-tertiary); border: 1px solid rgba(255,255,255,0.1); padding: 10px 20px; font-size: 14px; }
.btn--ghost:hover { border-color: var(--accent-orange); color: var(--accent-orange); }
.hero-buttons { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* Pill tags */
.pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pill {
  padding: 8px 16px; background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06); border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  transition: all 0.2s;
}
.pill:hover { border-color: rgba(255,255,255,0.15); }
.pill.green { border-color: rgba(34,197,94,0.3); color: var(--cta-green); }

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0;
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.nav__logo {
  font-family: 'Poppins', sans-serif; font-size: 24px; font-weight: 900;
  color: var(--accent-orange); letter-spacing: -1px; text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.nav__logo:hover { color: var(--accent-orange); }
.nav__logo-b { display: inline-block; transform: translateY(-3px); }
.nav__logo-fist { width: 24px; height: 24px; }
.nav__links { display: flex; align-items: center; gap: 24px; }
.nav__link { font-size: 14px; font-weight: 600; color: var(--text-tertiary); text-decoration: none; transition: color 0.2s; }
.nav__link:hover { color: var(--text-white); }
.nav__link--active { color: var(--accent-orange); }
.lang-switch { font-size: 13px; color: var(--text-muted); text-decoration: none; padding: 6px 12px; border: 1px solid rgba(255,255,255,0.08); border-radius: 999px; }
.lang-switch:hover { border-color: rgba(255,255,255,0.15); color: var(--text-tertiary); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; background: none; border: none; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--text-tertiary); border-radius: 2px; }

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
    z-index: 1001;
    position: relative;
  }

  .nav__links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 240px;
    background-color: #1A1A1A;
    padding-top: 80px;
    padding-right: 24px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
  }

  .nav__links.open {
    transform: translateX(0);
  }

  .nav__link {
    font-size: 18px;
    display: block;
  }
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 143, 92, 0.12) 0%, transparent 50%);
}
.hero-content { animation: fadeInUp 1s ease-out; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

.logo { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 48px; }
.logo-text {
  font-family: 'Poppins', sans-serif; font-size: clamp(64px, 12vw, 96px);
  font-weight: 900; color: var(--accent-orange); letter-spacing: -2px; line-height: 1;
}
.logo-b { display: inline-block; transform: translateY(-12px); animation: bBounce 5s ease-in-out infinite; }
@keyframes bBounce { 0%, 100% { transform: translateY(-12px); } 4% { transform: translateY(4px); } 8% { transform: translateY(-12px); } }
.logo-tagline { display: flex; align-items: center; gap: 12px; }
.logo-fist { width: 36px; height: 36px; animation: fistShake 6s ease-in-out infinite; }
@keyframes fistShake { 0%, 88%, 100% { transform: rotate(0); } 90%, 94% { transform: rotate(-6deg); } 92%, 96% { transform: rotate(6deg); } }
.logo-just-join { font-family: 'Inter', sans-serif; font-size: 22px; font-weight: 600; color: var(--text-tertiary); letter-spacing: 3px; text-transform: uppercase; }

.hero-title { font-size: clamp(28px, 5vw, 48px); margin-bottom: 24px; opacity: 0; animation: fadeInUp 1s ease-out 0.3s forwards; }
.hero-title span { color: var(--text-secondary); }
.hero-description { font-size: 18px; color: var(--text-secondary); max-width: 550px; margin: 0 auto 40px; opacity: 0; animation: fadeInUp 1s ease-out 0.5s forwards; }
.hero-buttons-wrap { opacity: 0; animation: fadeInUp 1s ease-out 0.7s forwards; margin-bottom: 40px; margin-top: 16px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; background: rgba(255,143,92,0.12); border: 1px solid rgba(255,143,92,0.25); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--accent-orange); opacity: 0; animation: fadeInUp 1s ease-out 0.9s forwards; }
.hero-pills { margin-top: 48px; opacity: 0; animation: fadeInUp 1s ease-out 1.1s forwards; }
.hero-location { margin-top: 32px; font-size: 14px; color: var(--text-muted); opacity: 0; animation: fadeInUp 1s ease-out 1.3s forwards; }

/* ===== PROBLEM ===== */
#problem { background: var(--bg-dark); }
.chat-demo { background: var(--bg-card); border-radius: 20px; padding: 24px; max-width: 400px; margin: 0 auto 48px; }
.chat-header { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 16px; }
.chat-avatar { width: 40px; height: 40px; background: var(--bg-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.chat-name { font-weight: 600; }
.chat-members { font-size: 12px; color: var(--text-muted); }
.chat-messages { display: flex; flex-direction: column; gap: 12px; }
.chat-bubble { background: var(--bg-dark); padding: 12px 16px; border-radius: 16px; border-bottom-left-radius: 4px; max-width: 85%; font-size: 14px; }
.chat-bubble.sent { background: #075E54; align-self: flex-end; border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }
.chat-bubble .time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.chat-silence { text-align: center; padding: 16px 0; color: var(--text-muted); font-size: 13px; font-weight: 600; letter-spacing: 1px; }
.problem-conclusion { max-width: 500px; margin: 0 auto; font-size: 18px; }
.problem-conclusion strong { color: var(--text-white); }

/* ===== SOLUTION ===== */
.solution-result {
  margin: 32px auto 0; padding: 24px; max-width: 480px;
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2);
  border-radius: 16px; text-align: center;
}
.solution-result h3 { color: var(--cta-green); font-size: 20px; margin-bottom: 4px; }
.solution-result p { color: var(--text-secondary); font-size: 15px; }

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  padding: 32px 24px; background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06); border-radius: 16px;
  transition: all 0.3s ease;
}
.feature-card:hover { border-color: rgba(255,143,92,0.3); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.feature-card__icon { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 { font-size: 20px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); }

/* ===== STATS ===== */
#stats { background: var(--bg-dark); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-card { text-align: center; padding: 24px; }
.stat-number { font-family: 'Poppins', sans-serif; font-size: clamp(32px, 5vw, 48px); font-weight: 900; color: var(--accent-orange); line-height: 1; margin-bottom: 8px; }
.stat-desc { font-size: 14px; color: var(--text-secondary); }
.stat-source { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.stats-footer { margin-top: 48px; text-align: center; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ===== STEPS ===== */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
@media (max-width: 768px) { .steps-grid { grid-template-columns: 1fr; } }
.step { text-align: center; padding: 24px; }
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,143,92,0.15); border: 2px solid var(--accent-orange);
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 20px;
  color: var(--accent-orange); margin-bottom: 16px;
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-secondary); }

/* ===== ACTIVITIES ===== */
#activities { background: var(--bg-dark); }
.activities-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 48px; }
.activity-tag {
  padding: 10px 20px; background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06); border-radius: 999px;
  font-size: 14px; color: var(--text-secondary); transition: all 0.2s;
}
.activity-tag:hover { border-color: var(--accent-orange); color: var(--accent-orange); }

/* ===== QUOTE ===== */
.quote-section { padding: 96px 24px; text-align: center; }
.quote-section blockquote {
  font-family: 'Poppins', sans-serif; font-size: clamp(20px, 3vw, 28px);
  font-weight: 700; font-style: italic; color: var(--text-white);
  max-width: 600px; margin: 0 auto; line-height: 1.4;
}
.quote-mark { font-size: 64px; color: var(--accent-orange); line-height: 1; display: block; margin-bottom: 16px; font-style: normal; }

/* ===== FINAL CTA ===== */
#final-cta {
  text-align: center; padding: 128px 24px;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 143, 92, 0.1) 0%, transparent 50%);
}
.final-fist { font-size: 48px; display: block; margin-bottom: 24px; }

/* ===== FOOTER ===== */
.site-footer { padding: 64px 0 32px; border-top: 1px solid rgba(255,255,255,0.06); background: var(--bg-dark); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand { font-family: 'Poppins', sans-serif; font-size: 20px; font-weight: 900; color: var(--accent-orange); margin-bottom: 8px; }
.footer-location { color: var(--text-muted); font-size: 14px; }
.footer-heading { font-size: 12px; font-weight: 700; color: var(--text-white); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 14px; color: var(--text-tertiary); }
.footer-links a:hover { color: var(--accent-orange); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 13px; color: var(--text-muted); }
@media (max-width: 768px) { .footer-bottom { flex-direction: column; gap: 8px; text-align: center; } }

/* ===== LEGAL / CONTENT PAGES ===== */
.page-content { padding-top: 100px; padding-bottom: 96px; min-height: 80vh; }
.page-content h1 { margin-bottom: 32px; }
.page-content h2 { font-size: clamp(18px, 2.5vw, 22px); margin-top: 40px; margin-bottom: 16px; color: var(--accent-orange); }
.page-content h3 { font-size: 16px; margin-top: 32px; margin-bottom: 8px; }
.page-content p { margin-bottom: 16px; font-size: 15px; color: var(--text-secondary); }
.page-content ul, .page-content ol { margin-bottom: 16px; padding-left: 24px; }
.page-content li { color: var(--text-secondary); font-size: 15px; margin-bottom: 6px; }
.page-content strong { color: var(--text-white); }
.page-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 13px; }
.page-content th { text-align: left; padding: 10px 12px; background: var(--bg-card); color: var(--text-white); font-weight: 600; }
.page-content td { padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,0.06); color: var(--text-secondary); }
.page-content a { color: var(--accent-orange); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,143,92,0.3); }
.page-content hr { border: none; border-top: 1px solid rgba(255,255,255,0.06); margin: 40px 0; }

/* Language toggle */
.lang-toggle { display: inline-flex; background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; margin-bottom: 32px; }
.lang-toggle__btn { padding: 8px 20px; font-size: 13px; font-weight: 600; color: var(--text-muted); background: none; border: none; cursor: pointer; transition: all 0.2s; }
.lang-toggle__btn.active { background: var(--accent-orange); color: white; }

/* FAQ Accordion */
.faq-section { margin-top: 8px; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.06); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 20px 0; font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 700; color: var(--text-white); text-align: left; background: none; border: none; cursor: pointer; transition: color 0.2s; }
.faq-question:hover { color: var(--accent-orange); }
.faq-question__icon { flex-shrink: 0; color: var(--text-muted); transition: transform 0.2s; font-size: 18px; }
.faq-item.open .faq-question__icon { transform: rotate(45deg); }
.faq-item.open .faq-question { color: var(--accent-orange); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer__inner { padding-bottom: 20px; }
.faq-answer__inner p { font-size: 14px; color: var(--text-secondary); }
.faq-answer__inner ul { margin-top: 8px; padding-left: 20px; }
.faq-answer__inner li { font-size: 14px; margin-bottom: 4px; color: var(--text-secondary); }

/* Tabs */
.page-tabs { display: flex; gap: 4px; margin-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.page-tab { padding: 16px 24px; font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 700; color: var(--text-muted); background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; transition: all 0.2s; }
.page-tab:hover { color: var(--text-tertiary); }
.page-tab.active { color: var(--accent-orange); border-bottom-color: var(--accent-orange); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* How it works steps */
.how-step { padding: 24px; background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; margin-bottom: 12px; }
.how-step h3 { color: var(--accent-orange); font-size: 18px; margin-bottom: 8px; }
.how-step p { font-size: 14px; color: var(--text-secondary); }


/* ===== WAITLIST ===== */
.waitlist { margin-top: 40px; opacity: 0; animation: fadeInUp 1s ease-out 0.9s forwards; }
.waitlist-form { display: flex; gap: 8px; max-width: 420px; margin: 0 auto; }
.waitlist-input {
  flex: 1; padding: 14px 20px; font-family: 'Inter', sans-serif; font-size: 15px;
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px; color: var(--text-white); outline: none;
  transition: border-color 0.2s;
}
.waitlist-input::placeholder { color: var(--text-muted); }
.waitlist-input:focus { border-color: var(--accent-orange); }
.waitlist-btn {
  padding: 14px 24px; background: var(--cta-green); color: white;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600;
  border: none; border-radius: 999px; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.waitlist-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(34,197,94,0.3); }
.waitlist-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.waitlist-consent { font-size: 12px; color: var(--text-muted); margin-top: 16px; margin-bottom: 16px; }
.waitlist-success { display: none; padding: 16px 24px; background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.25); border-radius: 999px; color: var(--cta-green); font-weight: 600; font-size: 15px; }
.waitlist-error { display: none; font-size: 13px; color: var(--danger-red); margin-top: 8px; }
@media (max-width: 480px) {
  .waitlist-form { flex-direction: column; }
  .waitlist-btn { width: 100%; }
}




/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in.d1 { transition-delay: 100ms; }
.fade-in.d2 { transition-delay: 200ms; }
.fade-in.d3 { transition-delay: 300ms; }
.fade-in.d4 { transition-delay: 400ms; }

/* Mobile hero: compact + buttons on one row */
@media (max-width: 640px) {
  #hero { padding: 100px 24px 60px; min-height: auto; }
  .logo { margin-bottom: 32px; }
  .logo-text { font-size: 56px; }
  .logo-fist { width: 28px; height: 28px; }
  .logo-just-join { font-size: 18px; }
  .hero-title { font-size: 26px; margin-bottom: 20px; }
  .hero-description { font-size: 16px; margin-bottom: 24px; }
  .hero-buttons { flex-direction: row !important; gap: 10px; }
  .hero-buttons .btn { padding: 12px 18px; font-size: 14px; }
  .waitlist { margin-top: 28px; }
  .hero-pills { margin-top: 32px; }
}
