/* ===================================
   bisbis Landing Page Styles
   =================================== */

:root {
  /* Brand Colors (from AppColors) */
  --primary-purple: #B49EE9;
  --primary-purple-light: #D1C4E9;
  --primary-purple-dark: #7C4DFF;
  --snackbar-purple: #2D1A5C;
  --background: #0A0A0A;
  --surface: #1A1A1A;
  --accent-amber: #FFC107;
  --text-primary: #FFFFFF;
  --text-secondary: #BDBDBD;
  --text-disabled: #757575;

  /* Typography */
  --font-main: 'Barlow', sans-serif;
  --font-condensed: 'Barlow Condensed', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
}

/* ===================================
   Buttons
   =================================== */

.btn {
  display: inline-block;
  padding: 16px 32px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--snackbar-purple);
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(45, 26, 92, 0.4);
}

.btn-primary:hover {
  background-color: var(--primary-purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(124, 77, 255, 0.5);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* ===================================
   Navigation
   =================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.nav-hidden {
  transform: translateY(-100%);
}

.nav-scrolled {
  background-color: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo img {
  height: 32px;
}

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

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

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

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

@media (max-width: 640px) {
  .nav-logo {
    display: none;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.8rem;
  }
}

/* ===================================
   Hero Section
   =================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background-color: #000;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-background .bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
}

.hero-content {
  position: relative;
  padding: 2rem;
  max-width: 600px;
  z-index: 3;
}

.hero .logo {
  width: 180px;
  margin-bottom: 1rem;
}

.hero .tagline-svg {
  width: 200px;
  margin-bottom: 2rem;
}

.hero-description {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-audience {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-audience .audience-silhouette {
  width: 100%;
  display: block;
}

/* ===================================
   Features Section
   =================================== */

.features {
  padding: 6rem 2rem;
  background: linear-gradient(180deg, var(--background) 0%, var(--surface) 100%);
  text-align: center;
}

.features h2 {
  font-family: var(--font-condensed);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 3rem;
  color: var(--primary-purple);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-5px);
  border-color: var(--primary-purple);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: var(--font-condensed);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-weight: 300;
}

/* ===================================
   App Preview Section
   =================================== */

.app-preview {
  padding: 6rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  background: linear-gradient(180deg, var(--snackbar-purple) 0%, #1a0a30 100%);
}

.app-preview>* {
  max-width: 500px;
}

.preview-content {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.preview-content h2 {
  font-family: var(--font-condensed);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.preview-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.8;
}

.preview-screenshot {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
}

.screenshot-placeholder {
  background: var(--surface);
  border: 2px dashed var(--text-disabled);
  border-radius: 24px;
  aspect-ratio: 9/16;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-disabled);
}

.screenshot-placeholder span {
  font-size: 2rem;
}

.screenshot-placeholder small {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

/* When you add a real screenshot, use this class */
.screenshot-image {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ===================================
   Hero Image Section
   =================================== */

.hero-image-section {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  position: relative;
}

.hero-image-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, transparent, var(--background));
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ===================================
   Screenshot Carousel
   =================================== */

.phone-frame {
  position: relative;
  background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.6),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  max-width: 280px;
  margin: 0 auto;
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #0a0a0a;
  border-radius: 12px;
  z-index: 10;
}

.phone-notch::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #1a3a5a;
  border-radius: 50%;
}

.phone-home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.screenshot-carousel {
  position: relative;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
}

.carousel-track {
  position: relative;
  aspect-ratio: 9/19.5;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: var(--primary-purple);
  border-color: var(--primary-purple);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dots .dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.carousel-dots .dot.active {
  background: var(--primary-purple);
  width: 24px;
  border-radius: 4px;
}

/* ===================================
   Beta Signup Section
   =================================== */

.signup {
  padding: 6rem 2rem;
  background: var(--background);
  text-align: center;
}

.signup-content {
  max-width: 500px;
  margin: 0 auto;
}

.signup h2 {
  font-family: var(--font-condensed);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.signup>.signup-content>p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 300;
}

.signup-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.signup-form input[type="email"] {
  flex: 1;
  min-width: 250px;
  padding: 16px 20px;
  font-family: var(--font-main);
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.3s ease;
}

.signup-form input[type="email"]::placeholder {
  color: var(--text-disabled);
}

.signup-form input[type="email"]:focus {
  border-color: var(--primary-purple);
}

.privacy-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-disabled);
}

/* ===================================
   Footer
   =================================== */

.footer {
  padding: 3rem 2rem;
  background: var(--background);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
  width: 80px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.footer p {
  color: var(--text-disabled);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

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

/* ===================================
   Responsive
   =================================== */

@media (max-width: 768px) {
  .hero .logo {
    width: 140px;
  }

  .hero .tagline-svg {
    width: 160px;
  }

  .hero-description {
    font-size: 1rem;
  }

  .features h2,
  .preview-content h2,
  .signup h2 {
    font-size: 2rem;
  }

  .app-preview {
    flex-direction: column-reverse;
    text-align: center;
  }

  .signup-form {
    flex-direction: column;
  }

  .signup-form input[type="email"] {
    width: 100%;
  }
}

/* ===================================
   Privacy Policy Page
   =================================== */

.privacy-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.privacy-container .back-link {
  display: inline-block;
  margin-bottom: 40px;
  color: var(--primary-purple);
  text-decoration: none;
  font-size: 14px;
}

.privacy-container .back-link:hover {
  text-decoration: underline;
}

.privacy-container h1 {
  font-family: var(--font-condensed);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.privacy-container .last-updated {
  color: var(--text-disabled);
  font-size: 14px;
  margin-bottom: 40px;
}

.privacy-container h2 {
  font-family: var(--font-condensed);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 36px;
  margin-bottom: 12px;
}

.privacy-container p,
.privacy-container li {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.privacy-container ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.privacy-container li {
  margin-bottom: 6px;
}

.privacy-container a {
  color: var(--primary-purple);
}

.privacy-highlight {
  background: rgba(155, 125, 212, 0.1);
  border-left: 3px solid var(--primary-purple);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}

.privacy-highlight p {
  margin-bottom: 0;
}