/* Reset & Variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #6f0f11;
  --color-secondary: #e6be9a;
  --color-tertiary: #1d351d;
  --color-bg: #fafafa;
  --color-text: #1a1a1a;
  --color-text-muted: #666;
  --color-border: #e5e5e5;
  --color-white: #ffffff;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

/* Add styles for clickable logo link */
.logo-link {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.logo-link:hover {
  opacity: 0.8;
}

.logo-link .logo-container {
  cursor: pointer;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.logo-small {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

/* Hero Section */
.hero {
  padding: 5rem 1rem 8rem;
  background: linear-gradient(180deg, rgba(230, 190, 154, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
}

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

@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-text {
  text-align: left;
}

@media (max-width: 767px) {
  .hero-text {
    text-align: center;
  }
}

.text-center {
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--color-secondary);
  border-radius: 50px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
  font-weight: 500;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.highlight {
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.store-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .store-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  min-width: 200px;
  justify-content: center;
}

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

.btn-primary:hover {
  background-color: #8a1214;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(111, 15, 17, 0.2);
}

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

.btn-secondary:hover {
  border-color: var(--color-primary);
  background-color: rgba(111, 15, 17, 0.05);
  transform: translateY(-2px);
}

.icon {
  width: 24px;
  height: 24px;
}

.availability {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* Sticky Download Button */
.sticky-download-container {
  position: fixed;
  bottom: -100px;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--color-primary), #8a1214);
  color: var(--color-white);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 99;
  transition: bottom 0.3s ease;
}

.sticky-download-container.visible {
  bottom: 0;
}

.sticky-download-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sticky-download-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sticky-download-text strong {
  font-size: 1rem;
  font-weight: 700;
}

.sticky-download-text span {
  font-size: 0.8125rem;
  opacity: 0.9;
}

.sticky-download-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-sticky {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

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

.btn-sticky-primary:hover {
  background-color: var(--color-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.btn-sticky-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.icon-tiny {
  width: 16px;
  height: 16px;
}

/* Image Placeholders */
.image-placeholder {
  background: linear-gradient(135deg, rgba(111, 15, 17, 0.05), rgba(230, 190, 154, 0.1));
  border: 2px dashed var(--color-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--color-text-muted);
  transition: all 0.3s;
}

.image-placeholder:hover {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, rgba(111, 15, 17, 0.1), rgba(230, 190, 154, 0.15));
}

.image-placeholder svg {
  width: 64px;
  height: 64px;
  color: var(--color-text-muted);
  opacity: 0.5;
}

.image-placeholder span {
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  max-width: 400px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero-placeholder {
    aspect-ratio: 1/1;
  }
}

.step-image-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  margin-bottom: 1.5rem;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* Features Section */
.features {
  padding: 5rem 1rem 8rem;
  background-color: var(--color-white);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  transition: box-shadow 0.3s;
}

.feature-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-description {
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
  padding: 5rem 1rem 8rem;
  background-color: var(--color-bg);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  transition: all 0.3s;
}

.step-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.step-number {
  position: absolute;
  top: -1rem;
  left: 2rem;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--color-primary), #8a1214);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(111, 15, 17, 0.3);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.step-description {
  color: var(--color-text-muted);
  line-height: 1.6;
  font-size: 0.9375rem;
}

/* CTA Section */
.cta {
  padding: 5rem 1rem 8rem;
}

.cta-box {
  background: linear-gradient(135deg, rgba(111, 15, 17, 0.1), rgba(230, 190, 154, 0.2), rgba(29, 53, 29, 0.1));
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 4rem 2rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.cta-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.cta-note {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-top: 1.5rem;
  font-style: italic;
}

/* Footer */
.footer {
  background-color: rgba(230, 190, 154, 0.1);
  border-top: 1px solid var(--color-border);
  padding: 3rem 1rem;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-description {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

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

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

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

.footer-store-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background-color: transparent;
  color: var(--color-text);
  transition: all 0.2s;
}

.btn-footer:hover {
  border-color: var(--color-primary);
  background-color: rgba(111, 15, 17, 0.05);
}

.icon-small {
  width: 16px;
  height: 16px;
}

.footer-attribution {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  font-style: italic;
}

.footer-copyright {
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* Legal Pages */
.legal-header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.legal-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  background-color: transparent;
  color: var(--color-text);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-back:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.legal-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.legal-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.legal-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.legal-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.legal-section p {
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.legal-section ul {
  color: var(--color-text-muted);
  line-height: 1.6;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-section strong {
  color: var(--color-text);
  font-weight: 600;
}

.legal-section a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.legal-section a:hover {
  color: #8a1214;
  text-decoration: underline;
}

.legal-date {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  font-style: italic;
}

/* Responsive */
@media (min-width: 1024px) {
  .hero {
    padding: 8rem 1rem;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.375rem;
  }

  .section-title {
    font-size: 3rem;
  }

  .section-subtitle {
    font-size: 1.25rem;
  }

  .cta-title {
    font-size: 3rem;
  }

  .cta-box {
    padding: 4rem;
  }
}

/* Smooth animations */
@media (prefers-reduced-motion: no-preference) {
  .feature-card,
  .step-card,
  .btn,
  .image-placeholder {
    transition: all 0.3s ease;
  }
}

/* Mobile Navigation */
@media (min-width: 768px) and (max-width: 1023px) {
  .nav-links {
    gap: 0.75rem;
  }
}

@media (max-width: 640px) {
  .nav-links {
    gap: 0.5rem;
    font-size: 0.8125rem;
  }

  .hero-title {
    font-size: 2rem;
  }

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

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .cta-title {
    font-size: 1.75rem;
  }

  .cta-subtitle {
    font-size: 1rem;
  }

  .footer-grid {
    text-align: center;
  }

  .sticky-download-content {
    flex-direction: column;
    text-align: center;
  }

  .sticky-download-buttons {
    width: 100%;
    justify-content: center;
  }

  .btn-sticky {
    flex: 1;
    justify-content: center;
    min-width: 80px;
  }
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background-color: var(--color-bg);
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--color-border);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(111, 15, 17, 0.1);
}

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

.form-status {
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}

.form-status.success {
    color: #10B981;
}

.form-status.error {
    color: #EF4444;
}
