:root {
  /* Colors */
  --color-primary: #1D3AA1;
  /* Deep Royal Blue from logo */
  --color-secondary: #D4AF37;
  /* Soft Gold */
  --color-text-main: #1D1D1F;
  /* Apple-like nearly black */
  --color-text-light: #86868B;
  /* Soft gray for secondary text */
  --color-bg-white: #FFFFFF;
  --color-bg-off-white: #F5F5F7;
  --color-glass: rgba(255, 255, 255, 0.7);
  --color-glass-border: rgba(255, 255, 255, 0.5);

  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 600;

  /* Spacing */
  --spacing-container: 1200px;
  --spacing-section: 120px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg-white);
  color: var(--color-text-main);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

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

/* Typography Utilities */
h1,
h2,
h3 {
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(48px, 5vw, 64px);
  line-height: 1.1;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  margin-bottom: 16px;
}

h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

p {
  font-size: 18px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.verse-ref {
  font-size: 14px;
  font-style: italic;
  color: var(--color-text-light);
  margin-top: 8px;
  margin-left: 12px;
  margin-right: 12px;
  text-align: center;
}

/* Layout Utilities */
.container {
  max-width: var(--spacing-container);
  margin: 0 auto;
  padding: 0 24px;
}

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

.grid {
  display: grid;
  gap: 40px;
}

.flex {
  display: flex;
  align-items: center;
}

/* Buttons & Badges */
.app-store-badge {
  display: inline-block;
  height: 50px;
  transition: transform 0.2s ease;
}

.app-store-badge:hover {
  transform: scale(1.05);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--color-primary);
  color: white;
  border-radius: 999px;
  font-weight: var(--font-weight-medium);
  transition: all 0.3s ease;
}

.btn:hover {
  background: color-mix(in srgb, var(--color-primary), white 10%);
  transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.nav-logo {
  font-weight: var(--font-weight-bold);
  font-size: 23px;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
}

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

.nav-links a {
  font-size: 14px;
  color: var(--color-text-main);
}

/* Hero Section */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  overflow: hidden;
  /* Text alignment handled by grid items, defaulting to left in the container */
}

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

.hero-content {
  /* Removed max-width centering */
  text-align: left;
}

.hero-img {
  max-height: 700px;
  width: auto;
  width: auto;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.14));
  /* Fix for Safari drop-shadow glitch */
  will-change: transform;
  transform: translateZ(0);
  border-radius: 40px;
  justify-self: center;
  /* Center image in its column */
}

.hero-image-container {
  /* Removing previous margin adjustments */
  display: flex;
  justify-content: center;
}

/* Features Section */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 120px;
}

.feature-block.reversed {
  direction: rtl;
}

.feature-block.reversed .feature-text {
  direction: ltr;
  /* Reset text direction */
}

.feature-image img {
  border-radius: 24px;
  border-radius: 24px;
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.08));
  /* Fix for Safari drop-shadow glitch */
  will-change: transform;
  transform: translateZ(0);
}

/* Translation Section */
.translation-section {
  background: var(--color-bg-off-white);
  text-align: center;
}

.translation-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Gallery / Customization */
.customization-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

/* Footer */
footer {
  background: var(--color-bg-off-white);
  padding: 60px 0;
  font-size: 14px;
  color: var(--color-text-light);
}

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

/* Mobile Responsive */
@media (max-width: 900px) {
  h1 {
    font-size: 40px;
  }

  .nav-links {
    display: none;
  }

  .hero-layout,
  .feature-block,
  .customization-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    margin-left: 12px;
    margin-right: 12px;
  }

  .hero-content {
    text-align: center;
    margin-bottom: 40px;
  }

  .feature-block.reversed {
    direction: ltr;
  }

  .hero {
    padding-top: 120px;
  }
}