/* Rejorunal - Pastel theme: #8C0808, #9E6969, #71717A, #FFFFFF */
:root {
  --primary: #8C0808;
  --primary-soft: rgba(140, 8, 8, 0.15);
  --primary-pastel: #c45a5a;
  --secondary: #9E6969;
  --secondary-pastel: #c9a8a8;
  --gray: #71717A;
  --gray-light: #a1a1aa;
  --gray-pastel: #e4e4e7;
  --white: #FFFFFF;
  --bg-cream: #fdf8f8;
  --bg-soft: #faf5f5;
  --shadow-soft: 0 4px 24px rgba(140, 8, 8, 0.06);
  --shadow-medium: 0 8px 40px rgba(113, 113, 122, 0.1);
  --radius: 20px;
  --radius-lg: 28px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray);
  background: var(--bg-cream);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(253, 248, 248, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(158, 105, 105, 0.1);
  transition: var(--transition);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav {
  display: none;
}

.nav a {
  color: var(--gray);
  text-decoration: none;
  font-weight: 500;
  margin-left: 2rem;
  transition: color var(--transition);
}

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

.menu-btn {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--gray);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80%;
  max-width: 320px;
  background: var(--white);
  z-index: 99;
  padding: 5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: -8px 0 32px rgba(0,0,0,0.08);
  transform: translateX(100%);
  transition: transform var(--transition);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav a {
  color: var(--gray);
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 500;
}

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

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

/* Language selector - in header */
.lang-selector {
  position: relative;
  z-index: 10;
}

.lang-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: 1px solid rgba(158, 105, 105, 0.2);
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray);
  transition: all var(--transition);
}

.lang-trigger:hover {
  border-color: var(--secondary-pastel);
  color: var(--primary);
}

.lang-globe {
  flex-shrink: 0;
  color: var(--secondary);
}

.lang-value {
  white-space: nowrap;
}

.lang-arrow {
  flex-shrink: 0;
  transition: transform var(--transition);
}

.lang-selector.open .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.35rem;
  background: var(--white);
  border: 1px solid rgba(158, 105, 105, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-medium);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  min-width: 140px;
}

.lang-selector.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  padding: 0.65rem 1rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--gray);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
}

.lang-option:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.lang-option[aria-selected="true"] {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 7rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: var(--secondary-pastel);
  top: -100px;
  right: -100px;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: var(--primary-soft);
  bottom: 10%;
  left: -80px;
}

.blob-3 {
  width: 250px;
  height: 250px;
  background: var(--secondary-pastel);
  bottom: 30%;
  right: 20%;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
  position: relative;
  z-index: 1;
}

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

.hero-badge {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--gray);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-title .accent {
  color: var(--primary);
  font-style: italic;
}

.hero-desc {
  font-size: 1rem;
  color: var(--gray-light);
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

.hero-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: var(--white) !important;
  padding: 1rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(140, 8, 8, 0.3);
}

.hero-cta .btn-primary:hover {
  background: var(--primary-pastel);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(140, 8, 8, 0.25);
}

.hero-cta-hint {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--gray-light);
}

.hero-visual {
  margin-top: 1rem;
}

.phone-mockup {
  width: 260px;
  height: 520px;
  background: linear-gradient(145deg, #e8e8ec 0%, #f5f5f7 100%);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-medium), 0 0 0 1px rgba(113,113,122,0.1);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: var(--white);
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gray-light), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Marquee */
.marquee-section {
  padding: 1.5rem 0;
  background: var(--bg-soft);
  overflow: hidden;
}

.marquee {
  display: flex;
  gap: 1.5rem;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
}

.marquee span {
  font-size: 0.95rem;
  color: var(--gray-light);
  font-weight: 500;
}

.marquee .dot {
  color: var(--secondary-pastel);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Section common */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--gray);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-desc {
  text-align: center;
  color: var(--gray-light);
  margin-bottom: 2.5rem;
}

/* Features */
.features {
  background: var(--white);
}

.features-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.feature-card {
  background: var(--bg-cream);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(158, 105, 105, 0.08);
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--secondary-pastel);
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.125rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--gray-light);
}

.cta-block {
  text-align: center;
  padding: 2rem;
}

.cta-slogan {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--primary);
  font-style: italic;
  margin-bottom: 1rem;
}

.btn-secondary {
  display: inline-block;
  background: var(--secondary);
  color: var(--white) !important;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}

.btn-secondary:hover {
  background: var(--secondary-pastel);
  color: var(--gray) !important;
  transform: translateY(-2px);
}

/* Gallery */
.gallery {
  background: var(--bg-soft);
}

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

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 9/16;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Download */
.download {
  background: linear-gradient(180deg, var(--primary-soft) 0%, var(--bg-cream) 100%);
  padding: 4rem 1.5rem;
}

.download-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

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

.download-desc {
  color: var(--gray);
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

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

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  color: var(--gray) !important;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(158, 105, 105, 0.12);
  transition: all var(--transition);
}

.store-btn:hover {
  border-color: var(--secondary-pastel);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

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

.download-phone {
  margin-top: 0.5rem;
}

.phone-frame {
  width: 200px;
  height: 400px;
  background: linear-gradient(145deg, #e8e8ec 0%, #f5f5f7 100%);
  border-radius: 28px;
  padding: 10px;
  box-shadow: var(--shadow-medium);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* Footer */
.footer {
  background: var(--gray);
  color: var(--white);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  display: block;
  margin-bottom: 0.75rem;
}

.footer-desc {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0.75rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.footer-company {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--white);
  text-decoration: underline;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  transition: opacity 0.2s ease;
}

.footer-company:hover {
  opacity: 1;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  color: var(--white);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--secondary-pastel);
  color: var(--white);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.85rem;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Page sections (contact, privacy, terms) */
.page-section {
  padding-top: 5rem;
  min-height: calc(100vh - 200px);
}

/* Legal content */
.legal-content {
  max-width: 720px;
}

.legal-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--gray);
  margin: 2rem 0 0.5rem;
}

.legal-content p {
  color: var(--gray-light);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
}

.legal-updated {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-light);
  margin-bottom: 2rem;
}

/* Contact form */
.contact-wrapper {
  max-width: 540px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(158, 105, 105, 0.2);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--gray);
  background: var(--white);
  transition: border-color var(--transition);
  resize: vertical;
}

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

.contact-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: var(--white);
  padding: 1rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(140, 8, 8, 0.3);
  align-self: flex-start;
}

.contact-submit:hover {
  background: var(--primary-pastel);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(140, 8, 8, 0.25);
}

.contact-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.contact-success {
  text-align: center;
  padding: 3rem 1rem;
}

.success-icon {
  margin-bottom: 1rem;
}

.contact-success h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.contact-success p {
  color: var(--gray-light);
  max-width: 400px;
  margin: 0 auto;
}

/* Lang selector - mobile */
@media (max-width: 767px) {
  .lang-trigger {
    padding: 0.5rem 0.65rem;
    font-size: 0.8rem;
  }

  .lang-value {
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Responsive - Tablet */
@media (min-width: 768px) {
  .menu-btn {
    display: none;
  }

  .nav {
    display: flex;
  }

  .hero-inner {
    flex-direction: row;
    text-align: left;
    gap: 3rem;
  }

  .hero-content {
    flex: 1;
    text-align: left;
  }

  .hero-desc {
    margin-left: 0;
  }

  .hero-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .hero-cta-hint {
    margin-top: 0;
  }

  .hero-visual {
    flex-shrink: 0;
    margin-top: 0;
  }

  .phone-mockup {
    width: 280px;
    height: 560px;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }

  .download-inner {
    flex-direction: row;
    text-align: left;
    gap: 3rem;
  }

  .download-content {
    flex: 1;
    text-align: left;
  }

  .download-desc {
    margin-left: 0;
  }

  .store-buttons {
    justify-content: flex-start;
  }

  .download-phone {
    margin-top: 0;
  }

  .phone-frame {
    width: 220px;
    height: 440px;
  }
}

/* Responsive - Desktop */
@media (min-width: 1024px) {
  .section-inner {
    padding: 5rem 2rem;
  }

  .header {
    padding: 1rem 2rem;
  }

  .phone-mockup {
    width: 300px;
    height: 600px;
  }
}
