/* ShareTrack Marketing Landing Page Styles */

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
  /* Colors - extracted from ShareTrack app design */
  --color-navy: #1e3a5f;
  --color-navy-light: #2d4a6f;
  --color-teal: #0ea5a9;
  --color-teal-dark: #0d8b8b;
  --color-teal-light: rgba(14, 165, 169, 0.1);
  --color-orange: #f5a623;
  --color-orange-dark: #e09520;
  --color-green: #22c55e;
  --color-green-light: rgba(34, 197, 94, 0.1);

  /* Backgrounds */
  --color-bg: #f8fafc;
  --color-bg-alt: #f1f5f9;
  --color-white: #ffffff;

  /* Text */
  --color-text: #374151;
  --color-text-light: #6b7280;
  --color-text-muted: #9ca3af;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Spacing */
  --section-padding: 60px;
  --container-max: 1200px;
  --border-radius: 12px;
  --border-radius-sm: 6px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
}

/* ============================================
   BASE STYLES
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-teal-dark);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-navy);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-padding) 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
  color: white;
  box-shadow: var(--shadow-md), 0 4px 14px rgba(14, 165, 169, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 6px 20px rgba(14, 165, 169, 0.4);
  color: white;
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
}

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

.btn-cta {
  background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-dark) 100%);
  color: white;
  box-shadow: var(--shadow-md), 0 4px 14px rgba(245, 166, 35, 0.3);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 6px 20px rgba(245, 166, 35, 0.4);
  color: white;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 10px 0;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-logo span {
  /* Hidden because logo PNG already contains text */
  display: none;
}

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

.nav-links a {
  color: var(--color-text);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--color-teal);
}

.nav-cta {
  display: flex;
  gap: 12px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  padding-top: 60px;
  padding-bottom: 10px;
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-bg) 100%);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--color-teal-light);
  color: var(--color-teal-dark);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.hero h1 {
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-xl);
  max-height: 340px;
  width: auto;
  object-fit: contain;
}

.hero-image::before {
  display: none;
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.problems {
  background: var(--color-white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.section-header .overline {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--color-text-light);
  font-size: 1.125rem;
  margin-top: 16px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.problem-card {
  background: var(--color-bg);
  border-radius: var(--border-radius);
  padding: 32px;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-teal-light);
}

.problem-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.problem-card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.problem-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
  background: var(--color-bg);
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 100px;
}

.feature-block:last-child {
  margin-bottom: 0;
}

.feature-block:nth-child(even) {
  direction: rtl;
}

.feature-block:nth-child(even)>* {
  direction: ltr;
}

.feature-content {
  max-width: 500px;
}

.feature-badge {
  display: inline-block;
  padding: 6px 12px;
  background: var(--color-teal-light);
  color: var(--color-teal-dark);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.feature-content h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.feature-content .benefit {
  font-size: 1.125rem;
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.7;
  font-style: italic;
}

.feature-content .detail {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.feature-visual {
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.feature-image-container {
  padding: 20px;
}

.feature-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-sm);
}

.feature-icon-large {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.feature-icon-large.genealogy {
  background: linear-gradient(135deg, var(--color-teal-light) 0%, rgba(14, 165, 169, 0.2) 100%);
}

.feature-icon-large.ai {
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
}

.feature-icon-large.sync {
  background: linear-gradient(135deg, var(--color-green-light) 0%, rgba(34, 197, 94, 0.2) 100%);
}

/* ============================================
   USE CASES SECTION
   ============================================ */
.use-cases {
  background: var(--color-white);
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.use-case-card {
  background: var(--color-bg);
  border-radius: var(--border-radius);
  padding: 40px 32px;
  text-align: center;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  cursor: pointer;
}

.use-case-card:hover {
  border-color: var(--color-teal);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.use-case-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
  color: white;
}

.use-case-card h3 {
  margin-bottom: 16px;
}

.use-case-card .description {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}

.pricing-card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: 20px 16px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
  border: 2px solid var(--color-teal);
  position: relative;
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-teal);
  color: white;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-tier {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.pricing-card h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.pricing-focus {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.pricing-price {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-bg-alt);
}

.pricing-price .amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-navy);
}

.pricing-price .period {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 20px;
  flex-grow: 1;
}

.pricing-features li {
  padding: 4px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--color-text);
}

.pricing-features li::before {
  content: '✓';
  color: var(--color-teal);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 40px;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo img {
  height: 40px;
  width: auto;
  /* Use original colors for colorful logo on dark background */
  filter: none;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 8px;
  border-radius: 6px;
}

.footer-logo span {
  /* Hidden because logo PNG already contains text */
  display: none;
}

.footer-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

.footer-tagline {
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

.footer-bottom {
  width: 100%;
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-image {
    max-width: 600px;
    margin: 0 auto;
  }

  .problem-grid,
  .use-case-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-block:nth-child(even) {
    direction: ltr;
  }

  .feature-content {
    max-width: 100%;
    text-align: center;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta .btn-secondary {
    display: none;
  }

  .hero {
    padding-top: 100px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .problem-grid,
  .use-case-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .problem-card,
  .use-case-card,
  .pricing-card {
    padding: 24px 20px;
  }

  .section-header {
    margin-bottom: 40px;
  }
}