/* ==========================================================================
   Broke Chat - Single Page Mobile App Landing Page Styles
   Theme: Pure Black (#000000) & Electric Burnt Orange (#FF3B1D)
   ========================================================================== */

:root {
  --bg-black: #000000;
  --bg-dark-1: #0A0A0C;
  --bg-dark-2: #121215;
  --bg-card: #16161A;
  --bg-card-hover: #1E1E24;
  
  --primary-orange: #FF3B1D;
  --primary-glow: rgba(255, 59, 29, 0.4);
  --primary-light: #FF5E45;
  --primary-dim: rgba(255, 59, 29, 0.12);
  
  --text-main: #FFFFFF;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-orange: rgba(255, 59, 29, 0.35);
  --border-orange-strong: #FF3B1D;

  --font-heading: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --max-width: 1200px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-black);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg-black);
  line-height: 1.6;
}

/* Typography Helpers */
h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.text-orange {
  color: var(--primary-orange);
}

.glow-text {
  text-shadow: 0 0 16px var(--primary-glow);
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 6rem 0;
  position: relative;
}

/* Header & Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
}

.logo-badge {
  background: var(--primary-orange);
  color: #000;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 0 12px var(--primary-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary-orange);
  color: #000;
  box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 59, 29, 0.6);
}

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

.btn-outline:hover {
  border-color: var(--primary-orange);
  background: var(--primary-dim);
  box-shadow: 0 0 15px var(--primary-glow);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding-top: 10rem;
  padding-bottom: 6rem;
  overflow: hidden;
  position: relative;
}

.hero-glow-bg {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 59, 29, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

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

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border-orange);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-orange);
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-orange);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary-orange);
  animation: pulsePing 1.8s infinite;
}

@keyframes pulsePing {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 59, 29, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 59, 29, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 59, 29, 0); }
}

.hero-title {
  font-size: 3.75rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-heading);
}

.stat-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Phone Mockup Frame */
.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-frame {
  position: relative;
  width: 340px;
  border-radius: 40px;
  padding: 12px;
  background: linear-gradient(145deg, #222, #050505);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9),
              0 0 40px var(--primary-dim),
              inset 0 0 2px rgba(255, 255, 255, 0.2);
  border: 2px solid var(--border-orange);
  transition: transform var(--transition-smooth);
}

.phone-frame:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.95),
              0 0 50px var(--primary-glow);
}

.phone-frame img {
  width: 100%;
  height: auto;
  border-radius: 30px;
  display: block;
}

/* Feature Showcase Cards */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem auto;
}

.section-tag {
  color: var(--primary-orange);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  border-color: var(--border-orange-strong);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px var(--primary-dim);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary-dim);
  border: 1px solid var(--border-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-orange);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.feature-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Interactive Chat Simulator Section */
.simulator-section {
  background: linear-gradient(180deg, var(--bg-black) 0%, var(--bg-dark-1) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.simulator-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.simulator-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.room-selector-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.room-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.room-tab:hover, .room-tab.active {
  border-color: var(--primary-orange);
  background: var(--bg-card-hover);
  box-shadow: 0 0 15px var(--primary-dim);
}

.room-tab-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}

.room-tab-meta {
  font-size: 0.85rem;
  color: var(--primary-orange);
  font-weight: 600;
}

/* Chat Mockup Window */
.chat-window {
  background: #050505;
  border: 2px solid var(--border-orange);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px var(--primary-dim);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 520px;
}

.chat-header {
  background: #0C0C0E;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-room-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-room-name {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary-orange);
  font-family: var(--font-heading);
}

.chat-member-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  border: 1px solid var(--border-subtle);
}

.chat-body {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 82%;
  animation: slideUpFade 0.3s ease-out;
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg.incoming {
  align-self: flex-start;
}

.chat-msg.outgoing {
  align-self: flex-end;
}

.msg-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
}

.msg-user {
  font-weight: 700;
  color: var(--primary-orange);
}

.msg-distance {
  color: var(--text-dim);
  background: var(--primary-dim);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
}

.msg-bubble {
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.incoming .msg-bubble {
  background: #18181C;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-top-left-radius: 4px;
}

.outgoing .msg-bubble {
  background: var(--primary-orange);
  color: #000;
  font-weight: 600;
  border-top-right-radius: 4px;
}

.chat-footer {
  padding: 0.85rem 1rem;
  background: #0C0C0E;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 0.5rem;
}

.chat-input {
  flex: 1;
  background: #16161A;
  border: 1px solid var(--border-orange);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  color: var(--primary-orange);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
}

.chat-input::placeholder {
  color: var(--text-dim);
}

.chat-send-btn {
  background: var(--primary-orange);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 0 1.25rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition-fast);
}

.chat-send-btn:hover {
  background: var(--primary-light);
}

/* Proximity Radar Graphic Section */
.radar-section {
  text-align: center;
  position: relative;
}

.radar-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 2rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-circle {
  position: absolute;
  border: 1px solid rgba(255, 59, 29, 0.25);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.radar-circle.c1 { width: 100px; height: 100px; }
.radar-circle.c2 { width: 200px; height: 200px; }
.radar-circle.c3 { width: 300px; height: 300px; }

.radar-sweep {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 59, 29, 0.4) 0deg, transparent 60deg);
  animation: radarRotate 4s linear infinite;
  pointer-events: none;
}

@keyframes radarRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-center-dot {
  width: 14px;
  height: 14px;
  background: var(--primary-orange);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--primary-orange);
  z-index: 2;
}

.radar-ping-node {
  position: absolute;
  background: var(--primary-orange);
  color: #000;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 0 12px var(--primary-glow);
  z-index: 3;
  animation: nodePulse 2s infinite alternate;
}

@keyframes nodePulse {
  from { transform: scale(0.95); opacity: 0.8; }
  to { transform: scale(1.08); opacity: 1; }
}

/* Privacy Section Cards */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.privacy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-orange);
  border-radius: 16px;
  padding: 2.25rem;
}

.privacy-card h3 {
  font-size: 1.35rem;
  color: var(--primary-orange);
  margin-bottom: 0.75rem;
}

.privacy-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item:hover, .faq-item.active {
  border-color: var(--border-orange);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  color: var(--primary-orange);
  font-size: 1.25rem;
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 1.25rem;
  transition: max-height 0.35s ease-in-out;
}

/* Modal for Download & QR Code */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border: 2px solid var(--border-orange);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 50px var(--primary-dim);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--primary-orange);
}

.qr-code-wrapper {
  background: #FFF;
  padding: 1rem;
  border-radius: 12px;
  display: inline-block;
  margin: 1.5rem 0;
}

.qr-code-wrapper svg, .qr-code-wrapper img {
  width: 180px;
  height: 180px;
  display: block;
}

/* Footer */
footer {
  background: #040405;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1.1rem;
  color: var(--primary-orange);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-orange);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-stats {
    justify-content: center;
  }
  .simulator-container {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .phone-frame {
    width: 290px;
  }
}
