/* ===================================================
   Multilayer Photo – Shared Stylesheet
   =================================================== */

/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:      #1070e0;
  --primary-h:    #045cb4;
  --dark:         #1e293b;
  --body-text:    #334155;
  --light-bg:     #f9fafb;
  --white:        #ffffff;
  --border:       #e2e8f0;
  --footer-bg:    #002860;
  --max-w:        1200px;
}

html { font-size: 16px; scroll-behavior: smooth; }

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

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-h); }
h1,h2,h3,h4,h5,h6 { color: var(--dark); font-weight: 600; line-height: 1.3; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: disc; padding-left: 1.5em; }
strong { font-weight: 600; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-branding {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.site-branding img { width: 44px; height: 44px; border-radius: 8px; }
.site-branding .site-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: .25rem;
  font-size: .875rem;
  flex-shrink: 0;
}
.lang-switcher a {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .55rem;
  border-radius: 4px;
  color: var(--body-text);
  font-weight: 500;
  transition: background .15s;
  white-space: nowrap;
}
.lang-switcher a:hover { background: var(--light-bg); color: var(--body-text); }
.lang-switcher a.active { background: var(--primary); color: var(--white); }
.lang-switcher .flag { font-size: 1.15rem; line-height: 1; }

/* Desktop nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-nav a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--body-text);
  white-space: nowrap;
  transition: color .15s;
}
.site-nav a:hover { color: var(--primary); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  color: var(--dark);
  flex-shrink: 0;
}
.nav-toggle svg { width: 24px; height: 24px; fill: currentColor; }

@media (max-width: 768px) {
  .site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ===== SLIDESHOW ===== */
.slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: #111;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.slide.active { opacity: 1; }

/* Slide arrows */
.slide-arrows {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  z-index: 3;
  pointer-events: none;
}
.slide-arrow {
  pointer-events: all;
  background: rgba(255,255,255,.2);
  border: none;
  border-radius: 50%;
  width: 40px; height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  color: #fff;
  backdrop-filter: blur(2px);
}
.slide-arrow:hover { background: rgba(255,255,255,.4); }
.slide-arrow svg { width: 20px; height: 20px; fill: currentColor; }

/* Slide dots */
.slide-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 3;
}
.slide-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.slide-dot.active { background: #fff; transform: scale(1.2); }

/* ===== PARALLAX SECTIONS ===== */
.parallax-section {
  position: relative;
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 130px 1.5rem;
  text-align: center;
}
/* Disable fixed attachment on touch devices (causes layout issues) */
@media (max-width: 1024px) {
  .parallax-section { background-attachment: scroll; padding: 80px 1.5rem; }
}
@media (max-width: 480px) {
  .parallax-section { padding: 60px 1.5rem; }
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.parallax-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Parallax 1 – hero text ("Full Featured...") */
.parallax-hero { background-image: url('assets/multilayer_float.png'); background-size: 100% auto; background-color: #888; }
.parallax-hero .parallax-overlay { background: rgba(0,0,0,.66); }
.parallax-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.parallax-hero h1 .sub {
  display: block;
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  margin-top: .2em;
}

/* Parallax 2 – CTA ("Get it now on Google Play") */
.parallax-cta { background-image: url('assets/cover_picture.jpg'); }
.parallax-cta .parallax-overlay { background: rgba(0,0,0,.25); }
.parallax-cta h2 {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: .04em;
  margin-bottom: 1.8rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.btn-download {
  display: inline-block;
  background: #10B0FF;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: .9rem 3rem;
  border-radius: 4px;
  letter-spacing: .06em;
  transition: transform .15s, box-shadow .15s, background .15s;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
  text-shadow: none;
}
.btn-download:hover {
  background: #0090d0;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}

/* ===== GENERIC SECTION ===== */
section { padding: 3.5rem 1.5rem; }
.container { max-width: var(--max-w); margin: 0 auto; }
.section-title {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  margin-bottom: .75rem;
  color: var(--dark);
  letter-spacing: .03em;
}
.section-lead {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  color: var(--body-text);
}
hr.section-divider {
  border: none;
  border-top: 2px solid var(--border);
  margin: 0;
}

/* ===== FEATURES GRID ===== */
.features-section { background: var(--white); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.feature-card {
  text-align: center;
  padding: 1.75rem 1rem;
  border-radius: 10px;
  background: var(--light-bg);
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); transform: translateY(-3px); }
.feature-card img {
  width: 72px; height: 72px;
  margin: 0 auto 1rem;
  opacity: .75;
}
.feature-card h2 {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: .65rem;
  color: var(--dark);
  text-transform: uppercase;
}
.feature-card p { font-size: .9rem; color: var(--body-text); line-height: 1.5; }

/* ===== DESCRIPTION SECTION ===== */
.description-section { background: var(--light-bg); }
.description-inner {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 3rem;
  align-items: start;
}
.description-content h2 { font-size: 1.75rem; margin-bottom: 1.25rem; }
.description-content p { margin-bottom: 1rem; }
.description-content ul { margin-bottom: 1rem; }
.description-content li { margin-bottom: .45rem; }
.description-screenshot img {
  border-radius: 14px;
  box-shadow: 0 10px 36px rgba(0,0,0,.2);
  width: 100%;
}
@media (max-width: 860px) {
  .description-inner { grid-template-columns: 1fr; }
  .description-screenshot { order: -1; }
  .description-screenshot img { max-width: 200px; margin: 0 auto; }
}

/* ===== VIDEO SECTION ===== */
.video-section { background: var(--white); }
.video-wrapper { max-width: 820px; margin: 0 auto; }
.video-wrapper h2 { text-align: center; margin-bottom: 1.5rem; font-size: 1.75rem; }
.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 36px rgba(0,0,0,.15);
}
.video-responsive iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,.82);
  padding: 1.4rem 1.5rem;
  text-align: center;
  font-size: .875rem;
  line-height: 1.8;
}
.site-footer p { margin: 0; }
.site-footer p + p { margin-top: .25rem; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: underline; }
.site-footer a:hover { color: #fff; }

/* ===== PRIVACY POLICY PAGE ===== */
.policy-page { max-width: 860px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.policy-page .lang-nav {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
}
.policy-page .lang-nav a {
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.policy-section {
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
}
.policy-section:last-child { border-bottom: none; }
.policy-section > h1 {
  font-size: 2rem;
  margin-bottom: .4rem;
  color: var(--dark);
}
.policy-section .updated {
  font-size: .875rem;
  color: #64748b;
  margin-bottom: 2rem;
}
.policy-section h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: .75rem;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: .04em;
  border-left: 4px solid var(--primary);
  padding-left: .75rem;
}
.policy-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: .5rem;
  color: var(--dark);
}
.policy-section p { margin-bottom: .85rem; }
.policy-section ul { margin-bottom: .85rem; padding-left: 1.75em; }
.policy-section li { margin-bottom: .4rem; }
.policy-section ol { margin-bottom: .85rem; padding-left: 1.75em; }

/* Data processing table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: .875rem;
  overflow-x: auto;
  display: block;
}
.data-table th {
  background: var(--primary);
  color: #fff;
  padding: .6rem .75rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.data-table td {
  padding: .55rem .75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table tr:nth-child(even) td { background: var(--light-bg); }

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  section { padding: 2.5rem 1rem; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .feature-card { padding: 1.25rem .75rem; }
  .policy-page { padding: 2rem 1rem 3rem; }
}
