:root {
  --paper: #f5f0e1;
  --paper-light: #faf7f0;
  --aged: #e8e0d0;
  --ink-black: #1a1a1a;
  --ink-gray: #4a4a4a;
  --ink-light: #6a6a6a;
  --editorial-red: #8b0000;
  --trust-blue: #1e3a5f;
  --success-green: #2e5d3a;
  --divider: #d4d0c8;
  --gold: #d4af37;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Source Serif 4", Georgia, serif;
  background-color: var(--paper);
  color: var(--ink-black);
  line-height: 1.6;
  min-height: 100vh;
}

/* Noise texture overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  z-index: 1000;
}

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

/* Header */
header {
  background: var(--ink-black);
  color: var(--paper);
  text-align: center;
  padding: 60px 20px 40px;
  border-bottom: 3px solid var(--ink-black);
  position: relative;
}

.date-line {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink-gray);
  margin-bottom: 20px;
}

.masthead {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(48px, 12vw, 80px);
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.tagline {
  font-style: italic;
  font-size: 16px;
  color: var(--ink-light);
  margin-bottom: 20px;
}

.edition-info {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-light);
  flex-wrap: wrap;
}

.lang-selector {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

.lang-selector a {
  color: var(--ink-light);
  text-decoration: none;
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.lang-selector a:hover {
  color: var(--paper);
  border-color: var(--ink-light);
}

.lang-selector a.active {
  color: var(--gold);
  border-color: var(--gold);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 50px 0;
  border-bottom: 1px solid var(--divider);
}

@media (max-width: 700px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-content h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content p {
  color: var(--ink-gray);
  margin-bottom: 25px;
  font-size: 15px;
}

.app-icon {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  margin-bottom: 20px;
  margin-inline: auto;
}

@media (max-width: 700px) {
  .app-icon {
    margin: 0 auto 20px;
  }
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink-black);
  color: var(--paper);
  padding: 14px 28px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  border: 2px solid var(--ink-black);
}

.download-btn:hover {
  background: transparent;
  color: var(--ink-black);
}

.download-btn svg {
  width: 24px;
  height: 24px;
}

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

.screenshot-container {
  position: relative;
  width: 220px;
}

.screenshot {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  border: 8px solid var(--ink-black);
}

.screenshot-placeholder {
  width: 100%;
  aspect-ratio: 9/16;
  background: linear-gradient(
    135deg,
    var(--aged) 0%,
    var(--paper-light) 100%
  );
  border-radius: 12px;
  border: 8px solid var(--ink-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  color: var(--ink-light);
}

/* Back link (for privacy pages) */
.back-link {
  margin-bottom: 30px;
  padding-top: 20px;
}

.back-link a {
  color: var(--ink-black);
  text-decoration: none;
  font-size: 16px;
  display: inline;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
}

.back-link a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.back-link a::before {
  content: "←";
  font-size: 20px;
  display: inline-block;
}

.back-link a:hover:before {
  text-decoration: none;
}

/* Features */
.features {
  padding: 50px 0;
}

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

.section-header h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 10px;
}

.section-header h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 32px;
  font-weight: 700;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--paper-light);
  border: 1px solid var(--divider);
  padding: 25px;
  position: relative;
}

.feature-card::before {
  content: attr(data-number);
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--ink-black);
  color: var(--paper);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
}

.feature-card h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  margin-top: 5px;
}

.feature-card p {
  font-size: 14px;
  color: var(--ink-gray);
  line-height: 1.5;
}

/* Screenshots Gallery */
.gallery {
  padding: 50px 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  background: var(--aged);
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}

.gallery-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.gallery-scroll::-webkit-scrollbar {
  height: 8px;
}

.gallery-scroll::-webkit-scrollbar-track {
  background: var(--divider);
}

.gallery-scroll::-webkit-scrollbar-thumb {
  background: var(--ink-gray);
}

.gallery-item {
  flex: 0 0 180px;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  border-radius: 12px;
  border: 4px solid var(--ink-black);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.gallery-placeholder {
  width: 100%;
  aspect-ratio: 9/16;
  background: var(--paper-light);
  border-radius: 8px;
  border: 4px solid var(--ink-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--ink-light);
  font-style: italic;
}

/* CTA Section */
.cta {
  text-align: center;
  padding: 60px 20px;
}

.cta h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
}

.cta p {
  color: var(--ink-gray);
  margin-bottom: 30px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer {
  background: var(--ink-black);
  color: var(--paper);
  padding: 40px 20px;
  text-align: center;
}

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

footer h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
}

footer p {
  font-size: 13px;
  color: var(--aged);
  margin-bottom: 10px;
}

footer a {
  color: var(--gold);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  flex-wrap: wrap;
}

/* Decorative elements */
.ornament {
  text-align: center;
  font-size: 20px;
  letter-spacing: 10px;
  color: var(--divider);
  margin: 30px 0;
}

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

.animate {
  animation: fadeInUp 0.6s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.2s;
}
.delay-3 {
  animation-delay: 0.3s;
}
.delay-4 {
  animation-delay: 0.4s;
}

/* Modal Carousel */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow: visible;
}

.modal-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
}

.modal-image {
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--paper);
  font-size: 32px;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 50%;
  z-index: 2001;
  backdrop-filter: blur(10px);
}

.modal-close:hover {
  transform: scale(1.2);
  background: rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 255, 255, 0.5);
}

.modal-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--paper);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 28px;
  font-weight: bold;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  z-index: 2001;
}

.modal-nav:hover {
  background: rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.modal-nav.prev {
  left: 20px;
  padding: 0.9rem 1rem 1rem 0.9rem;
}

.modal-nav.next {
  right: 20px;
  padding: 0.9rem 0.9rem 1rem 1rem;
}

@media (max-width: 768px) {
  .modal-content {
    padding: 50px 60px 80px;
  }

  .modal-nav {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .modal-nav.prev {
    left: 10px;
  }

  .modal-nav.next {
    right: 10px;
  }

  .modal-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 28px;
  }
}

.modal-dots {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2001;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.modal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-dot.active {
  background: var(--paper);
  transform: scale(1.2);
}

