/*
 * Shared Landing Page Styles
 * Used by all app landing pages (Gillix, Shooting Log, etc.)
 *
 * Page-specific theming is done via CSS custom properties:
 *   --landing-accent       : primary accent color
 *   --landing-accent-dark  : darker accent for hover states
 *   --landing-hero-bg      : hero section gradient
 *   --landing-waitlist-bg  : waitlist section gradient
 *   --landing-screen-bg    : phone screen background
 *   --landing-icon-text    : icon text/fill color (defaults to #fff)
 */

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

.app-hero {
  padding: 8rem 0 6rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: var(--landing-hero-bg);
}

.app-hero .container {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.app-hero-content {
  flex: 1;
}

.app-hero-visual {
  flex: 0 0 300px;
  position: relative;
}

/* ===== Phone Mockup ===== */

.phone-mockup {
  width: 280px;
  height: 560px;
  background: #000;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--landing-screen-bg, #1a1a2e);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
}

/* ===== Badge & Titles ===== */

.app-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: var(--landing-accent);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.app-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.app-tagline {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

/* ===== Feature Grid ===== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .feature-card {
    transition: none;
  }
  .feature-card:hover {
    transform: none;
  }
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--landing-accent), var(--landing-accent-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon i,
.feature-icon svg {
  font-size: 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--landing-icon-text, #fff);
  fill: var(--landing-icon-text, #fff);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: #6c757d;
  margin: 0;
}

/* ===== Screenshots Section ===== */

.screenshots-section {
  background: #f8f9fa;
  padding: 5rem 0;
}

.screenshot-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 2rem 0;
  scroll-snap-type: x mandatory;
}

.screenshot-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.screenshot-phone {
  width: 220px;
  height: 440px;
  background: #000;
  border-radius: 32px;
  padding: 10px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.screenshot-phone .phone-screen {
  border-radius: 24px;
}

/* ===== Waitlist Section ===== */

.waitlist-section {
  background: var(--landing-waitlist-bg);
  padding: 5rem 0;
}

.waitlist-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 3rem;
  max-width: 500px;
  margin: 0 auto;
}

.waitlist-card h2 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.waitlist-card p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.waitlist-form .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: 10px;
}

.waitlist-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.waitlist-form .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--landing-accent);
  box-shadow: 0 0 0 0.2rem var(--landing-accent-shadow, rgba(255, 255, 255, 0.25));
  color: #fff;
}

.waitlist-form .btn {
  width: 100%;
  padding: 1rem;
  font-weight: 600;
}

/* ===== Privacy Note ===== */

.privacy-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 1rem;
}

.privacy-note a {
  color: var(--landing-accent);
}

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

@media (max-width: 991px) {
  .app-hero .container {
    flex-direction: column;
    text-align: center;
  }
  .app-hero-visual {
    order: -1;
  }
  .app-title {
    font-size: 2.5rem;
  }
}
