/* index.css - page-specific styles only */

.text-primary { color: var(--teal); }

/* CONTACT SUCCESS MODAL */
.contact-success {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 68, 98, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: contactSuccessFade .35s var(--ease) both;
}
.contact-success[hidden] { display: none; }

.contact-success-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 44px 36px 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 30px 60px -16px rgba(5, 68, 98, 0.45);
  text-align: center;
  overflow: hidden;
  animation: contactSuccessPop .4s var(--ease) both;
}
.contact-success-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--lime), var(--teal));
}

.contact-success-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: var(--shadow-lime);
}
.contact-success.is-error .contact-success-icon {
  background: rgba(220, 60, 60, 0.12);
  color: #c0392b;
  box-shadow: none;
}

.contact-success-title {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  margin-bottom: 10px;
}

.contact-success-card p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 26px;
}
.contact-success-card p strong { color: var(--teal); }
.contact-success-card p a { color: var(--teal); font-weight: 600; border-bottom: 1px solid rgba(5, 68, 98, 0.25); }
.contact-success-card p a:hover { border-bottom-color: var(--teal); }

.contact-success-close { min-width: 180px; justify-content: center; }

@keyframes contactSuccessFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes contactSuccessPop {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

body.modal-lock { overflow: hidden; }

/* HERO */
  .hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    padding-bottom: 80px;
  }

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

.hero h1.heading {
    font-size: clamp(2.9rem, 6.2vw, 5.4rem);
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--ink);
  }

/* FLIP-WORD ANIMATION
   - Width is locked by JS to the widest word so the headline never reflows mid-flip.
   - Rotation accumulates (180deg per flip) so there is no "silent reset" reflow that
     could cause a stutter on lower-end devices. */
  .flip-word {
    display: inline-block;
    position: relative;
    perspective: 1200px;
    -webkit-perspective: 1200px;
    text-align: center;
    vertical-align: baseline;
    color: var(--teal);
    transition: width .35s cubic-bezier(.22, 1, .36, 1);
  }

.flip-word__inner {
    display: inline-block;
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transform: translateZ(0) rotateX(0deg);
    -webkit-transform: translateZ(0) rotateX(0deg);
    transition: transform 1s cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
  }

.flip-word__face {
    display: inline-block;
    width: 100%;
    text-align: center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0.01px); /* nudge each face onto its own GPU layer for crisp text */
  }

.flip-word__face--front {
    position: relative;
    transform: rotateX(0deg) translateZ(0.01px);
    -webkit-transform: rotateX(0deg) translateZ(0.01px);
  }

.flip-word__face--back {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transform: rotateX(180deg) translateZ(0.01px);
    -webkit-transform: rotateX(180deg) translateZ(0.01px);
  }

@media (prefers-reduced-motion: reduce) {
  .flip-word__inner { transition: none; }
  .flip-word { transition: none; }
}

.hero h1 .accent { color: var(--teal); }

.hero .excerpt p {
    font-size: 17px;
    color: var(--ink-soft);
    margin-bottom: 32px;
    max-width: 560px;
  }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 50px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
  }

.hero-stat-num {
    display: block;
    font-size: 30px;
    font-weight: 700;
    color: var(--teal);
    line-height: 1;
    margin-bottom: 6px;
  }

.hero-stat-label {
    font-size: 13px;
    color: var(--ink-mute);
    letter-spacing: 0.04em;
  }

/* HERO LOGO */
  .hero-video-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

.hero-video-wrap video,
  .hero-video-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #ffffff;
    display: block;
  }

/* FEATURE ROWS */
  .feature-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: center;
  }

.feature-row.flip { grid-template-columns: 1.4fr 1fr; }

.feature-row.flip .feature-text { order: 2; }

.feature-row.flip .feature-media { order: 1; }

.feature-text h3.heading {
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    margin-bottom: 22px;
  }

.feature-text p {
    color: var(--ink-soft);
    font-size: 16px;
    margin-bottom: 24px;
  }

.ul-check { margin-bottom: 28px; }

.ul-check li {
    position: relative;
    padding: 8px 0 8px 36px;
    font-size: 15px;
    color: var(--ink-soft);
  }

.ul-check li::before {
    content: "";
    position: absolute;
    left: 0; top: 12px;
    width: 22px; height: 22px;
    background: var(--lime);
    border-radius: 50%;
  }

.ul-check li::after {
    content: "";
    position: absolute;
    left: 6px; top: 16px;
    width: 10px; height: 5px;
    border-left: 2px solid var(--black);
    border-bottom: 2px solid var(--black);
    transform: rotate(-45deg);
  }

.feature-media {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
  }

.feature-media video, .feature-media img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    background: var(--bg-soft);
  }

/* SERVICES — lime line enters from left, exits to right */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
  }

.service-card {
    position: relative;
    padding: 32px 26px;
    background: var(--bg-soft);
    border-radius: var(--radius);
    transition: all .4s var(--ease);
    overflow: hidden;
  }

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: var(--lime);
    transform: translateX(-101%);
    transition: transform .4s var(--ease);
  }

.service-card:hover { transform: translateY(-6px); background: var(--white); box-shadow: var(--shadow-soft); }

.service-card:hover::before { transform: translateX(0); }

.service-card.leaving::before { transform: translateX(101%); }

.service-card.resetting::before {
    transform: translateX(-101%);
    transition: none;
  }

.service-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 22px;
    font-size: 22px;
    background: var(--lime);
    color: var(--black);
  }

.service-card h3 {
    font-size: 17px;
    margin-bottom: 12px;
    color: var(--ink);
  }

.service-card p {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.65;
  }

/* PRICING */
  .section-title { text-align: center; margin-bottom: 64px; }

.section-title p { color: var(--ink-soft); font-size: 17px; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
  }

.pricing-card {
    position: relative;
    padding: 40px 32px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    transition: all .4s var(--ease);
    text-align: center;
  }

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-soft);
  }

.pricing-card.featured {
    background: linear-gradient(160deg, rgba(191, 214, 63, 0.12), rgba(5, 68, 98, 0.05));
    border: 2px solid var(--teal);
    transform: translateY(-12px);
  }

.pricing-card.featured::before {
    content: "MOST POPULAR";
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    padding: 6px 14px;
    background: var(--teal);
    color: var(--white);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    border-radius: 999px;
    font-weight: 700;
  }

.pricing-card img { width: 90px; margin: 0 auto 20px; border-radius: 12px; }

.pricing-card .plan {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 14px;
    display: block;
  }

.pricing-card .price {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--ink);
    line-height: 1;
  }

.pricing-card .price sup {
    font-size: 24px;
    vertical-align: super;
    font-weight: 600;
    margin-right: 4px;
    color: var(--teal);
  }

.pricing-card ul { text-align: left; margin-bottom: 32px; }

/* ABOUT */
  .about-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 70px;
    align-items: center;
  }

.about-img {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
  }

.about-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--bg-soft); }

.about-text p {
    color: var(--ink-soft);
    font-size: 16px;
    margin-bottom: 18px;
  }

.count-numbers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
  }

.counter {
    font-size: 42px;
    font-weight: 800;
    color: var(--teal);
    line-height: 1;
    margin-bottom: 6px;
    display: block;
  }

.count-label {
    font-size: 13px;
    color: var(--ink-mute);
    letter-spacing: 0.04em;
  }

/* APK */
  .apk-card {
    max-width: 920px;
    margin: 0 auto;
    padding: 40px;
    background: linear-gradient(160deg, rgba(191, 214, 63, 0.15), rgba(5, 68, 98, 0.08));
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
  }

.apk-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }

.apk-head img { width: 64px; height: 64px; border-radius: 14px; }

.apk-head strong { font-size: 18px; display: block; color: var(--ink); }

.apk-head span { color: var(--ink-mute); font-size: 14px; }

.post-meta-2 {
    display: block;
    color: var(--teal);
    font-size: 13px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.12em;
    margin-bottom: 14px;
  }

.apk-card .news-contents { color: var(--ink-soft); margin-bottom: 24px; }

.apk-card .news-contents a { color: var(--ink-soft); }

/* CONTACT */
  .contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 70px;
    align-items: start;
  }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-group { margin-bottom: 22px; }

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--ink-mute);
    margin-bottom: 8px;
  }

.form-control {
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-strong);
    border-radius: 0;
    color: var(--ink);
    font-family: inherit;
    font-size: 16px;
    transition: border-color .25s var(--ease);
  }

.form-control:focus { border-bottom-color: var(--teal); }

textarea.form-control { resize: vertical; min-height: 110px; padding-top: 12px; }

.contact-info h3 {
    font-size: 22px;
    margin-bottom: 24px;
    color: var(--ink);
  }

.contact-list li { margin-bottom: 18px; }

.contact-list a {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--ink-soft);
    font-size: 15px;
    transition: color .25s var(--ease);
  }

.contact-list a:hover { color: var(--teal); }

.contact-list a i {
    color: var(--teal);
    font-size: 18px;
    width: 24px;
  }

.tmdb-hint {
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--ink-mute);
    margin-top: 14px;
    text-transform: uppercase;
  }

.tmdb-hint i { margin: 0 6px; color: var(--lime); }

/* RESPONSIVE */
  @media (max-width: 1024px) {
    .hero-grid, .feature-row, .feature-row.flip, .about-grid, .contact-grid {
      grid-template-columns: 1fr;
      gap: 50px;
    }
    .feature-row.flip .feature-text { order: 1; }
    .feature-row.flip .feature-media { order: 2; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 500px; }
    .pricing-card.featured { transform: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  }

@media (max-width: 768px) {
    section { padding: 80px 0; }
    .hero { padding-top: 110px; min-height: auto; }
    .nav-menu { display: none; }
    .burger { display: flex; }
    .hero h1.heading {
      font-size: clamp(2.7rem, 10vw, 3.8rem);
      font-weight: 800;
      line-height: 1.05;
      letter-spacing: -0.025em;
    }
    .hero .excerpt p { font-size: 16px; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .apk-card { padding: 26px; }
    .wa-float { bottom: 18px; right: 18px; width: 54px; height: 54px; font-size: 26px; }
    .tmdb-poster, .tmdb-skeleton { width: 120px; }
    .tmdb-title-overlay { font-size: 11px; padding: 24px 10px 10px; }
    .tmdb-strip { animation-duration: 45s; }
  }

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

.mb-0 { margin-bottom: 0 !important; }

/* CHANNEL GROUPS SHOWCASE */
  .groups { position: relative; }

.groups-head {
    text-align: center;
    margin-bottom: 56px;
  }

.groups-head .eyebrow { margin-bottom: 14px; }

.groups-head h2.heading {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    margin-bottom: 14px;
  }

.groups-head p {
    color: var(--ink-soft);
    font-size: 17px;
    max-width: 620px;
    margin: 0 auto;
  }

@media (max-width: 1024px) {
    .groups-grid { grid-template-columns: repeat(3, 1fr); }
  }

@media (max-width: 768px) {
    .groups-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .group-card { padding: 18px 16px; }
    .group-name { font-size: 14px; }
    .group-count { font-size: 12px; }
  }
