/* ========================================
   LIVESTOCK TRACKER LANDING PAGE CSS
   ======================================== */

/* THEME VARIABLES */
:root {
  --brand: #2d5016;
  --brand-dark: #1a3009;
  --accent: #7cb342;
  --text: #1f2937;
  --muted: #6b7280;
  --bg: #ffffff;
  --card: #f4f7f0;
  --bg-alt: #f9fafb;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
}

/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 { 
  line-height: 1.2; 
  font-weight: 700; 
  color: var(--text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 3rem;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--brand);
  color: white;
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: white;
  color: var(--brand);
  border-color: var(--brand);
}

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

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-block {
  display: block;
  width: 100%;
  justify-content: center;
}

/* SECTIONS */
.section {
  padding: 4rem 0;
}

.bg-alt {
  background: var(--bg-alt);
}

.bg-brand {
  background: var(--brand);
  color: white;
}

.bg-brand h2,
.bg-brand p {
  color: white;
}

/* ====== HEADER ====== */
.header {
  background: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brand);
}

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

.nav a {
  font-weight: 500;
  transition: color 0.2s;
}

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

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

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  width: 24px;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ====== INTRO BANNER ====== */
.intro-banner {
  padding: 2rem 0 1rem;
  background: var(--bg);
}

.intro-banner-card {
  background: linear-gradient(135deg, #2d5016 0%, #3e6a22 100%);
  color: white;
  border-radius: 14px;
  padding: 2rem 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.intro-banner-kicker {
  display: inline-block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #d3eab8;
  margin-bottom: 0.75rem;
}

.intro-banner-card h1 {
  color: white;
  font-size: 2.2rem;
  margin-bottom: 0.85rem;
}

.intro-banner-message {
  max-width: 900px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
}

/* ====== HERO SECTION ====== */
.hero {
  background: linear-gradient(135deg, #f4f7f0 0%, #e8f5e9 100%);
  padding: 5rem 0;
}

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

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--brand-dark);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

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

.trust-badges {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge > div {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.badge strong {
  font-size: 0.9rem;
  color: var(--brand);
}

.badge span {
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 300px;
  height: 600px;
  background: var(--text);
  border-radius: 30px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  background: var(--text);
  border-radius: 10px;
  z-index: 1;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--brand) 0%, var(--accent) 100%);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.phone-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ====== FEATURES GRID ====== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.coming-soon-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: #fff3cd;
  color: #8a6d3b;
  border: 1px solid #f5d27a;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  line-height: 1.2;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.6;
}

/* ====== ABOUT FOUNDER SECTION ====== */
.about-founder {
  background: var(--bg);
}

.about-founder-content {
  max-width: 820px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid #e5e7eb;
  padding: 2rem;
}

.about-founder-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.about-founder-content h2 {
  color: var(--brand-dark);
  margin-bottom: 1rem;
}

.about-founder-content p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.about-founder-content p:last-child {
  margin-bottom: 0;
}

/* ====== SCREENSHOTS CAROUSEL ====== */
.screenshots-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.screenshot-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.screenshot-image {
  width: 100%;
  max-width: 240px;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  border: 2px solid var(--accent);
  background: #fff;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.screenshot-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ====== TUTORIALS GRID ====== */
.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tutorial-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

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

.tutorial-thumbnail {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.play-button {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.play-button:hover {
  transform: scale(1.1);
}

.play-button svg {
  width: 24px;
  height: 24px;
  fill: var(--brand);
  margin-left: 4px;
}

.tutorial-content {
  padding: 1.5rem;
}

.tutorial-content h3 {
  margin-bottom: 0.5rem;
  color: var(--brand);
}

.tutorial-content p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.tutorial-duration {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

/* ====== DOWNLOAD SECTION ====== */
.download-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.download-content h2 {
  margin-bottom: 1rem;
}

.download-content > p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.store-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.store-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: white;
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 180px;
}

.store-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.store-button svg {
  flex-shrink: 0;
}

.store-button div {
  text-align: left;
}

.store-button small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.store-button strong {
  display: block;
  font-size: 1.1rem;
}

.download-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
}

/* ====== FAQ SECTION ====== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--brand);
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--card);
}

.faq-toggle {
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-content {
  padding: 0 1.5rem 1.5rem;
  color: var(--muted);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* ====== PRIVACY SECTION ====== */
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
}

.privacy-content h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.privacy-section {
  margin-bottom: 2.5rem;
}

.privacy-section h3 {
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.privacy-section p {
  color: var(--muted);
  line-height: 1.7;
}

.privacy-section a {
  color: var(--accent);
  text-decoration: underline;
}

.privacy-updated {
  text-align: center;
  font-style: italic;
  color: var(--muted);
  margin-top: 3rem;
  font-size: 0.9rem;
}

/* ====== CONTACT SECTION ====== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-card svg {
  margin: 0 auto 1rem;
}

.contact-card h3 {
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.contact-card a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}

.contact-form-container {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--brand);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--card);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
}

/* ====== FOOTER ====== */
.footer {
  background: var(--text);
  color: white;
  padding: 3rem 0 1.5rem;
}

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

.footer-brand {
  max-width: 300px;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-column a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin-bottom: 0.25rem;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .nav,
  .header-actions {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
  }

  .intro-banner {
    padding-top: 1.5rem;
  }

  .intro-banner-card {
    padding: 1.5rem;
  }

  .intro-banner-card h1 {
    font-size: 1.75rem;
  }

  .intro-banner-message {
    font-size: 1rem;
  }

  .about-founder-content {
    padding: 1.5rem;
  }
  
  .hero-image {
    order: -1;
  }
  
  .phone-mockup {
    width: 250px;
    height: 500px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .trust-badges {
    flex-direction: column;
    gap: 1rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
  
  .store-buttons {
    flex-direction: column;
    align-items: center;
  }

  .screenshots-carousel {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .screenshot-image {
    max-width: 220px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 0;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .hero-content h1 {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
}
