:root {
  --bg: #060816;
  --surface: #0f1430;
  --surface-2: #121b3f;
  --text: #ecf1ff;
  --muted: #afbbdf;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #5f8cff;
  --accent-2: #7e5bff;
  --maxw: 1140px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", "Noto Sans TC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, rgba(95, 140, 255, 0.18), transparent 34%),
    radial-gradient(circle at 88% 5%, rgba(126, 91, 255, 0.2), transparent 25%),
    linear-gradient(170deg, #060816 0%, #04060f 46%, #070b1f 100%);
  line-height: 1.65;
}

html {
  scroll-behavior: smooth;
}

header[id],
section[id],
footer[id] {
  scroll-margin-top: 110px;
}

a {
  color: #b8ceff;
  text-decoration: none;
}

a:hover {
  color: #d8e4ff;
}

.container {
  width: min(100% - 2.8rem, var(--maxw));
  margin-inline: auto;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding-top: 5rem;
}

.hero-glow {
  position: absolute;
  filter: blur(48px);
  pointer-events: none;
}

.hero-glow-1 {
  width: 320px;
  height: 320px;
  background: rgba(95, 140, 255, 0.24);
  top: -120px;
  left: -80px;
}

.hero-glow-2 {
  width: 300px;
  height: 300px;
  background: rgba(126, 91, 255, 0.22);
  right: -90px;
  top: 8%;
}

.nav {
  padding: 0.85rem 1rem;
  margin-top: 0.7rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - 2.8rem, var(--maxw));
  z-index: 20;
  border: 1px solid rgba(186, 205, 255, 0.22);
  border-radius: 999px;
  background: rgba(7, 11, 27, 0.72);
  backdrop-filter: blur(10px);
}

.brand {
  font-weight: 800;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
}

.brand-dot {
  width: 0.82rem;
  height: 0.82rem;
  border-radius: 999px;
  background: linear-gradient(150deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 20px rgba(126, 91, 255, 0.8);
}

.brand a {
  color: var(--text);
}

.nav-menu {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-toggle {
  display: none;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
  border: 1px solid rgba(186, 205, 255, 0.3);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.38rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #e5efff;
  margin: 4px 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-link {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.4rem 0.84rem;
  font-size: 0.92rem;
  color: #d2defa;
  transition: border-color 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.nav-link:hover {
  border-color: rgba(186, 205, 255, 0.32);
  background: rgba(255, 255, 255, 0.03);
}

.nav-link.is-active {
  border-color: rgba(186, 205, 255, 0.45);
  background: rgba(95, 140, 255, 0.22);
  color: #eff5ff;
}

.nav-link-cta {
  border-color: rgba(186, 205, 255, 0.32);
  background: rgba(95, 140, 255, 0.14);
}

.hero-content {
  padding: 4.5rem 0 5.3rem;
  max-width: 860px;
}

.eyebrow {
  margin: 0;
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9db4eb;
}

h1 {
  margin: 0.95rem 0 1.25rem;
  font-size: clamp(2rem, 5vw, 3.9rem);
  line-height: 1.13;
  letter-spacing: -0.02em;
}

h1 span {
  display: block;
  margin-top: 0.65rem;
  font-size: clamp(1rem, 2.4vw, 1.52rem);
  font-weight: 500;
  color: #b8c7ef;
}

.lead {
  margin: 0;
  color: #d3ddf8;
  max-width: 740px;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.72rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.62rem 1.2rem;
  font-weight: 600;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, #5f8cff, #7e5bff);
  box-shadow: 0 10px 22px rgba(126, 91, 255, 0.28);
}

.btn-ghost {
  color: #d4e1ff;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: rgba(172, 196, 255, 0.4);
}

.hero-stats {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.hero-content .eyebrow,
.hero-content h1,
.hero-content .lead,
.hero-content .hero-actions,
.hero-content .hero-stats {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s ease forwards;
}

.hero-content h1 {
  animation-delay: 0.08s;
}

.hero-content .lead {
  animation-delay: 0.16s;
}

.hero-content .hero-actions {
  animation-delay: 0.24s;
}

.hero-content .hero-stats {
  animation-delay: 0.32s;
}

.stat {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(160deg, rgba(20, 30, 67, 0.58), rgba(8, 12, 30, 0.72));
  border-radius: 14px;
  padding: 0.82rem 0.9rem;
}

.stat h3 {
  margin: 0;
  font-size: 0.94rem;
}

.stat p {
  margin: 0.22rem 0 0;
  color: #b8c7ea;
  font-size: 0.86rem;
}

.section {
  padding: 4.2rem 0;
}

.section-title h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.48rem, 3vw, 2.2rem);
  line-height: 1.2;
}

.section-title p {
  margin: 0;
  color: var(--muted);
}

.about-grid {
  margin-top: 2.1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: linear-gradient(160deg, rgba(14, 22, 50, 0.95), rgba(9, 13, 32, 0.96));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem;
  transition: transform 0.22s ease, border-color 0.22s ease;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.62s ease forwards;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(175, 196, 255, 0.28);
}

.card h3,
.service-card h3,
.contact-item h3 {
  margin: 0 0 0.55rem;
  font-size: 1.12rem;
}

.card p,
.service-card p,
.contact-item p {
  margin: 0;
  color: #c9d4f1;
}

.services {
  background: linear-gradient(180deg, rgba(14, 20, 46, 0.48), rgba(8, 12, 28, 0.45));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-grid {
  margin-top: 2.1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  background: linear-gradient(155deg, rgba(19, 28, 64, 0.95), rgba(11, 16, 38, 0.98));
  border: 1px solid rgba(167, 191, 255, 0.18);
  border-radius: 16px;
  padding: 1.32rem;
  min-height: 210px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.62s ease forwards;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(175, 200, 255, 0.36);
  box-shadow: 0 12px 24px rgba(10, 16, 42, 0.42);
}

.icon-wrap {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(140deg, rgba(95, 140, 255, 0.25), rgba(126, 91, 255, 0.22));
  border: 1px solid rgba(179, 199, 255, 0.3);
  margin-bottom: 0.7rem;
}

.icon-wrap svg,
.contact-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: #d8e5ff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-grid .card:nth-child(1),
.service-grid .service-card:nth-child(1) {
  animation-delay: 0.06s;
}

.about-grid .card:nth-child(2),
.service-grid .service-card:nth-child(2) {
  animation-delay: 0.14s;
}

.about-grid .card:nth-child(3),
.service-grid .service-card:nth-child(3) {
  animation-delay: 0.22s;
}

.featured {
  position: relative;
}

.poster-grid {
  margin-top: 2.1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.poster-card {
  border: 1px solid rgba(177, 198, 255, 0.2);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(12, 18, 42, 0.78);
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.65s ease forwards;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.poster-card:hover {
  transform: translateY(-4px);
  border-color: rgba(189, 209, 255, 0.4);
  box-shadow: 0 14px 24px rgba(10, 16, 42, 0.38);
}

.poster-art {
  aspect-ratio: 3 / 4;
  width: 100%;
  object-fit: cover;
  display: block;
}

.trailer {
  background: linear-gradient(180deg, rgba(10, 17, 40, 0.42), rgba(10, 15, 35, 0.68));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trailer-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.2rem;
  align-items: stretch;
}

.trailer-card {
  border: 1px solid rgba(177, 198, 255, 0.24);
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(15, 24, 58, 0.95), rgba(11, 17, 40, 0.98));
  padding: 1.2rem;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.65s ease forwards;
  animation-delay: 0.12s;
}

.play-badge {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 999px;
  border: 1px solid rgba(186, 205, 255, 0.4);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: rgba(95, 140, 255, 0.2);
  margin-bottom: 0.7rem;
}

.play-badge svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: #e8f0ff;
}

.trailer-card h3 {
  margin: 0;
  font-size: 1.16rem;
}

.trailer-card p {
  margin: 0.4rem 0 0;
  color: #c9d7f5;
}

.trailer-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.poster-meta {
  padding: 0.82rem 0.9rem 0.95rem;
}

.poster-meta h3 {
  margin: 0;
  font-size: 1rem;
}

.poster-meta p {
  margin: 0.2rem 0 0;
  font-size: 0.86rem;
  color: #b8c6ea;
}

.poster-card:nth-child(1) {
  animation-delay: 0.08s;
}

.poster-card:nth-child(2) {
  animation-delay: 0.16s;
}

.poster-card:nth-child(3) {
  animation-delay: 0.24s;
}

.poster-card:nth-child(4) {
  animation-delay: 0.32s;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.contact-grid {
  display: grid;
  gap: 0.9rem;
}

.contact-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.05rem;
  background: rgba(12, 17, 39, 0.9);
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.72rem;
  row-gap: 0.14rem;
  align-items: center;
}

.contact-item h3,
.contact-item p {
  grid-column: 2;
}

.contact-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 9px;
  border: 1px solid rgba(189, 205, 255, 0.28);
  background: rgba(95, 140, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-column: 1;
  grid-row: 1 / span 2;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1000px) {
  .about-grid,
  .service-grid,
  .hero-stats,
  .poster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .trailer-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 1.5rem, var(--maxw));
  }

  .nav {
    width: min(100% - 1.5rem, var(--maxw));
    padding: 0.65rem 0.75rem;
    border-radius: 16px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 0.48rem);
    right: 0;
    width: min(82vw, 280px);
    display: grid;
    gap: 0.3rem;
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(186, 205, 255, 0.24);
    background: rgba(7, 11, 27, 0.96);
    box-shadow: 0 12px 24px rgba(5, 10, 26, 0.42);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav.is-open .nav-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero-content {
    padding: 3.6rem 0 4.2rem;
  }

  .about-grid,
  .service-grid,
  .hero-stats,
  .poster-grid {
    grid-template-columns: 1fr;
  }

  .nav-menu {
    gap: 0.26rem;
  }

  .brand a {
    font-size: 0.84rem;
  }

  .nav-link {
    font-size: 0.88rem;
    padding: 0.4rem 0.62rem;
    border-radius: 9px;
  }

  .contact-item {
    grid-template-columns: 1fr;
    padding: 0.95rem;
  }

  .contact-icon {
    grid-row: auto;
    margin-bottom: 0.2rem;
  }

  .contact-item h3,
  .contact-item p {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}
