@import url('https://fonts.googleapis.com/css2?family=Righteous&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --dark: #0f1419;
  --dark-soft: #1a232e;
  --dark-card: #222d3a;
  --border: #3d4f5c;
  --accent: #14b8a6;
  --accent-soft: #5eead4;
  --accent-glow: rgba(20, 184, 166, 0.35);
  --text: #f0f4f8;
  --text-muted: #94a3b8;
  --green: #4ade80;
  --blue: #60a5fa;
  --purple: #a78bfa;
  --teal: #2dd4bf;
  --radius: 14px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", -apple-system, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.site-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
}

.site-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(10, 15, 20, 0.25) 50%,
    rgba(15, 20, 25, 0.55) 100%
  );
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.9rem 2rem;
  transition: all 0.35s var(--ease);
}

.site-nav {
  max-width: 950px;
  margin: 0 auto;
  padding: 0.7rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(34, 45, 58, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255,255,255,0.04) inset;
  transition: all 0.35s var(--ease);
}

.site-nav:hover {
  border-color: rgba(20, 184, 166, 0.25);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25), 0 0 20px rgba(20, 184, 166, 0.06);
}

.site-header.scrolled .site-nav {
  background: rgba(34, 45, 58, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.site-logo {
  font-family: "Righteous", cursive;
  font-size: 1.2rem;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: color 0.2s, text-shadow 0.2s;
}

.site-header.scrolled .site-logo {
  color: var(--text);
  text-shadow: none;
}

.site-logo:hover {
  color: var(--accent-soft);
}

.site-nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.site-nav-list a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  transition: color 0.2s;
}

.site-header.scrolled .site-nav-list a {
  color: var(--text-muted);
  text-shadow: none;
}

.site-nav-list a:hover {
  color: var(--accent-soft);
}

.lang-wrap select {
  appearance: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 0.45rem 1.75rem 0.45rem 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23fff' d='M5 7L2 4h6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
}

.site-header.scrolled .lang-wrap select {
  background: var(--dark-card);
  color: var(--text);
  border-color: var(--border);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%2394a3b8' d='M5 7L2 4h6z'/%3E%3C/svg%3E");
}

.lang-wrap select:focus {
  outline: none;
  border-color: var(--accent);
}

.hero-cinema {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.hero-bg-shade,
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.15) 70%, rgba(15, 20, 25, 0.95) 100%);
}

.hero-content { position: relative; z-index: 1; text-align: center; max-width: 620px; padding: 0 1rem; }

.hero-content-center .hero-text {
  margin-left: auto;
  margin-right: auto;
}

.hero-headline {
  font-family: "Righteous", cursive;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 400;
  line-height: 1.02;
  margin-bottom: 1.25rem;
  color: #fff;
  text-shadow:
    0 0 20px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(0, 0, 0, 0.5),
    2px 2px 4px rgba(0, 0, 0, 0.9),
    0 2px 8px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.02em;
}

.hero-text {
  max-width: 480px;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.7;
  text-shadow:
    0 0 12px rgba(0, 0, 0, 0.9),
    0 1px 3px rgba(0, 0, 0, 0.9),
    0 2px 6px rgba(0, 0, 0, 0.7);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--dark);
  background: rgba(255, 255, 255, 0.96);
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  transition: all 0.3s var(--ease);
}

.hero-cta:hover {
  background: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 #fff;
}

.hero-cta::before {
  content: '';
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1419' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E") center/contain no-repeat;
}

.block {
  padding: 5rem 2rem;
  background: rgba(15, 20, 25, 0.5);
  backdrop-filter: blur(3px);
}

.block-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.block-inner-narrow {
  max-width: 880px;
}

.block-title {
  font-family: "Righteous", cursive;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text);
}

.block-title-light {
  color: var(--text);
}

.block-title-accent {
  position: relative;
  display: inline-block;
}

.block-title-accent::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 2px;
}

.block-title-inline {
  text-align: left;
  margin-bottom: 0.5rem;
}

.block-desc {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 3rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.block-desc-wide {
  max-width: 640px;
}

.block-features {
  background: linear-gradient(180deg, rgba(20, 28, 38, 0.48) 0%, rgba(25, 35, 48, 0.55) 50%, rgba(15, 20, 25, 0.58) 100%);
  border-top: 1px solid rgba(61, 79, 92, 0.5);
  position: relative;
}

.features-showcase {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.feature-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: rgba(34, 45, 58, 0.4);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s var(--ease);
}

.feature-card:hover {
  border-color: var(--accent);
  transform: scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 50px var(--accent-glow);
}

.feature-card-right .feature-visual {
  order: 2;
}

.feature-card-right .feature-body {
  order: 1;
}

.feature-visual {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.feature-card:hover .feature-visual img {
  transform: scale(1.08);
}

.feature-body {
  padding: 2.5rem;
}

.feature-ribbon {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-family: "Righteous", cursive;
  font-size: 1.25rem;
  color: #fff;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
  transform: skewX(-4deg);
  transition: transform 0.2s var(--ease);
}

.feature-card:nth-of-type(1) .feature-ribbon {
  background: linear-gradient(135deg, var(--green) 0%, #22a34a 100%);
}

.feature-card:nth-of-type(2) .feature-ribbon {
  background: linear-gradient(135deg, var(--purple) 0%, #8b5cf6 100%);
}

.feature-card:nth-of-type(3) .feature-ribbon {
  background: linear-gradient(135deg, var(--teal) 0%, #14b8a6 100%);
}

.feature-body p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.block-gallery {
  background: linear-gradient(180deg, rgba(15, 20, 25, 0.7) 0%, rgba(26, 35, 46, 0.72) 50%, rgba(15, 20, 25, 0.75) 100%);
  padding: 4rem 1rem 5rem;
}

.gallery-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 140px;
  gap: 0.75rem;
  max-width: 1000px;
  margin: 2rem auto 0;
}

.bento-item {
  overflow: hidden;
  display: block;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  transition: all 0.4s var(--ease);
  position: relative;
}

.bento-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.bento-item:hover {
  border-color: var(--accent);
  transform: scale(1.03);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.bento-item:hover::after {
  opacity: 1;
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.bento-item:hover img {
  transform: scale(1.06);
}

.bento-item {
  grid-column: span 1;
  grid-row: span 2;
}

.bento-wide {
  grid-column: span 2;
}

.bento-tall {
  grid-row: span 3;
}

.bento-highlight {
  grid-column: span 2;
  grid-row: span 3;
}

.block-specs {
  background: linear-gradient(180deg, rgba(15, 20, 25, 0.6) 0%, rgba(20, 28, 38, 0.65) 50%, rgba(15, 20, 25, 0.7) 100%);
  border-top: 1px solid rgba(20, 184, 166, 0.15);
  position: relative;
}

.specs-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 880px;
  margin: 2.5rem auto 0;
}

.specs-card {
  background: rgba(45, 52, 54, 0.9);
  backdrop-filter: blur(12px);
  border-radius: 28px;
  padding: 2rem;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(20, 184, 166, 0.06), 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.35s var(--ease);
}

.specs-card:hover {
  border-color: rgba(20, 184, 166, 0.3);
  box-shadow: 0 0 30px rgba(20, 184, 166, 0.12), 0 12px 40px rgba(0, 0, 0, 0.25);
}

.specs-card-rec {
  border-color: rgba(20, 184, 166, 0.2);
}

.specs-card-rec:hover {
  border-color: rgba(20, 184, 166, 0.4);
  box-shadow: 0 0 35px var(--accent-glow), 0 12px 40px rgba(0, 0, 0, 0.25);
}

.specs-badge {
  display: inline-block;
  padding: 0.5rem 1.35rem;
  font-family: "Righteous", cursive;
  font-size: 1.15rem;
  color: #fff;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
  transform: skewX(-3deg);
  transition: transform 0.2s var(--ease);
}

.specs-badge-min {
  background: linear-gradient(135deg, var(--purple) 0%, #8b5cf6 100%);
}

.specs-badge-rec {
  background: linear-gradient(135deg, var(--teal) 0%, #14b8a6 100%);
}

.specs-list {
  list-style: none;
  padding: 0;
}

.specs-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(61, 79, 92, 0.4);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.specs-list li:last-child {
  border-bottom: none;
}

.specs-list .specs-label {
  color: var(--text-muted);
  font-weight: 500;
}

.specs-list .specs-val {
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

.specs-card-rec .specs-list .specs-val {
  color: var(--accent-soft);
  font-weight: 600;
}

.block-download {
  background: linear-gradient(180deg, var(--dark-soft) 0%, var(--dark) 50%, var(--dark-soft) 100%);
  padding: 5rem 2rem;
  position: relative;
  text-align: center;
}

.block-download::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(20, 184, 166, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.btn-dl-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.btn-dl {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.5rem 3.5rem;
  margin: 2rem 0 1rem;
  background: transparent;
  color: var(--accent-soft);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  border-radius: 50px;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 1px rgba(20, 184, 166, 0.2), 0 0 40px rgba(20, 184, 166, 0.15);
  transition: all 0.35s var(--ease);
}

.btn-dl:hover {
  background: var(--accent);
  color: var(--dark);
  transform: scale(1.05);
  box-shadow: 0 0 0 0 transparent, 0 0 60px var(--accent-glow);
}

.btn-dl.downloading {
  pointer-events: none;
  animation: btnPulse 0.6s ease infinite;
}

@keyframes btnPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.btn-dl-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.btn-dl-platform {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.9;
}

.download-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.download-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(2rem);
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--dark);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease);
  z-index: 1000;
}

.download-toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 95%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.lightbox-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--dark);
}

.site-footer {
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .hero-cinema {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 5rem;
  }

  .hero-cover {
    order: -1;
    max-width: 560px;
    margin: 0 auto;
  }

  .hero-content { position: relative; z-index: 1; text-align: center; max-width: 620px; padding: 0 1rem; }

  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-bg-shade {
    background: linear-gradient(
      180deg,
      rgba(13, 17, 23, 0.5) 0%,
      rgba(13, 17, 23, 0.75) 50%,
      rgba(13, 17, 23, 0.95) 100%
    );
  }

  .hero-cta {
    margin: 0 auto;
  }

  .feature-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .feature-card-right .feature-visual,
  .feature-card-right .feature-body {
    order: unset;
  }

  .gallery-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 120px;
  }

  .bento-highlight {
    grid-column: span 2;
    grid-row: span 2;
  }

  .specs-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-nav-list {
    gap: 1rem;
  }

  .hero-cinema {
    min-height: auto;
    padding: 5rem 1rem 3rem;
  }

  .hero-headline {
    font-size: 2.5rem;
  }

  .block {
    padding: 3.5rem 1rem;
  }

  .gallery-bento {
    grid-template-columns: 1fr;
    grid-auto-rows: 160px;
  }

  .bento-wide,
  .bento-highlight {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .hero-cta::before {
    display: none;
  }
}
