:root {
  --bg: #050510;
  --panel: #0a0a0f;
  --panel-soft: rgba(10, 10, 15, 0.82);
  --text: #fbfbff;
  --muted: #b9bfd0;
  --cyan: #00f0ff;
  --pink: #ff00aa;
  --line: rgba(255, 255, 255, 0.13);
  --radius: 8px;
  --container: 1400px;
  --border: linear-gradient(#0a0a0f, #0a0a0f) padding-box, linear-gradient(135deg, #00f0ff, #ff00aa) border-box;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: default;
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 80% 50%, rgba(255, 0, 150, 0.18), transparent 42%),
    radial-gradient(circle at 20% 20%, rgba(0, 200, 255, 0.14), transparent 42%),
    linear-gradient(rgba(5, 5, 16, 0.82), rgba(5, 5, 16, 0.9)),
    url("../images/bg.jpg") center / cover fixed no-repeat,
    #050510;
}

img,
video,
iframe,
object {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

button {
  font: inherit;
  cursor: pointer;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: #050510;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.loader span {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loader.hide {
  opacity: 0;
  visibility: hidden;
}

.section-shell,
.site-header {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
  padding: 20px;
  position: relative;
  z-index: 2;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 100;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(10, 10, 15, 0.9), rgba(10, 10, 15, 0.9)) padding-box,
    linear-gradient(135deg, rgba(0, 240, 255, 0.68), rgba(255, 0, 170, 0.56)) border-box;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.24);
}

.brand {
  width: clamp(130px, 13vw, 190px);
  flex: 0 0 auto;
}

.brand img {
  width: 100%;
  max-height: 52px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
  transition: color 0.18s ease, background 0.18s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--border);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
}

.hero {
  min-height: calc(100vh - 104px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: clamp(32px, 5vw, 82px);
  padding-top: clamp(58px, 8vh, 100px);
  padding-bottom: clamp(58px, 8vh, 100px);
}

.hero-copy {
  max-width: 760px;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 920px;
  font-size: clamp(3rem, 6.4vw, 6.9rem);
}

h2 {
  max-width: 920px;
  font-size: clamp(2rem, 4vw, 4rem);
}

h3 {
  font-size: clamp(1.24rem, 1.55vw, 1.55rem);
}

p {
  color: var(--muted);
  font-size: clamp(1rem, 1.12vw, 1.12rem);
  line-height: 1.68;
}

.hero-copy p,
.page-hero p {
  max-width: 700px;
  margin-top: 22px;
  font-size: clamp(1.04rem, 1.32vw, 1.24rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--cyan), #7f5cff, var(--pink));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.btn.ghost {
  background: var(--border);
}

.hero-object {
  min-height: clamp(420px, 54vh, 620px);
  position: relative;
  perspective: 1000px;
}

.main-3d-card {
  width: min(520px, 88%);
  min-height: 360px;
  margin: 42px auto 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(10, 10, 15, 0.94), rgba(20, 18, 34, 0.92)) padding-box,
    linear-gradient(135deg, #00f0ff, #ff00aa) border-box;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.3);
  transform: rotateX(8deg) rotateY(-12deg) translate3d(0, 0, 0);
  animation: floatSlow 7s ease-in-out infinite;
  will-change: transform;
}

.main-3d-card img {
  width: min(280px, 74%);
  margin-bottom: auto;
  object-fit: contain;
}

.main-3d-card p {
  max-width: 420px;
}

.meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.meter span {
  display: block;
  width: 76%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
}

.mini-tool {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--border);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  animation: floatSlow 8s ease-in-out infinite;
  will-change: transform;
}

.tool-cut {
  left: 5%;
  top: 15%;
}

.tool-caption {
  right: 2%;
  top: 26%;
  animation-delay: -2s;
}

.tool-color {
  left: 12%;
  bottom: 17%;
  animation-delay: -4s;
}

.tool-play {
  right: 14%;
  bottom: 10%;
  animation-delay: -6s;
}

.section-shell + .section-shell {
  padding-top: clamp(54px, 7vw, 90px);
  padding-bottom: clamp(54px, 7vw, 90px);
}

.section-heading {
  margin-bottom: 28px;
}

.service-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.premium-card,
.showcase-shell,
.video-card,
.wide-video-card,
.social-grid img,
.thumbnail-grid img,
.price-card,
.custom-plan,
.cta-band {
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--border);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

.premium-card,
.price-card,
.custom-plan {
  padding: 28px;
}

.premium-card h3,
.price-card h2,
.custom-plan h2 {
  margin-bottom: 14px;
}

.page-hero {
  min-height: 42vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(72px, 10vh, 126px);
}

.showcase-shell {
  overflow: hidden;
  padding: 12px;
}

.marquee {
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: slideRight 42s linear infinite;
  will-change: transform;
}

.marquee-track img {
  flex: 0 0 auto;
  width: clamp(220px, 18vw, 310px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--border);
}

.thumbnail-marquee .marquee-track img,
.thumbnail-grid img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.thumbnail-marquee .marquee-track img {
  width: clamp(300px, 31vw, 520px);
}

.social-grid,
.thumbnail-grid,
.youtube-video-grid,
.reel-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.social-grid {
  grid-template-columns: repeat(5, 1fr);
}

.social-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 7px;
}

.thumbnail-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.thumbnail-grid img {
  width: 100%;
  padding: 7px;
}

.reel-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.video-card,
.wide-video-card {
  overflow: hidden;
  padding: 7px;
}

.video-card video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius);
  background: #000;
}

.video-card span,
.wide-video-card span {
  display: block;
  padding: 12px 5px 4px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.youtube-video-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.wide-video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: var(--radius);
  background: #000;
}

.price-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.price-card strong {
  margin-top: auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 4vw, 4rem);
}

.custom-plan {
  display: grid;
  gap: 16px;
  justify-items: start;
  margin-top: 18px;
}

.cta-band {
  display: grid;
  gap: 18px;
  justify-items: start;
  padding: clamp(30px, 5vw, 58px);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 52px;
  padding-bottom: 60px;
}

.footer img {
  width: clamp(130px, 12vw, 180px);
}

.footer p {
  max-width: 620px;
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.42s ease, transform 0.42s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slideRight {
  from {
    transform: translate3d(-50%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes floatSlow {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotateX(8deg) rotateY(-12deg);
  }
  50% {
    transform: translate3d(0, -14px, 0) rotateX(8deg) rotateY(-12deg);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 1800px) {
  :root {
    --container: 1680px;
  }
}

@media (max-width: 1100px) {
  .hero,
  .service-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .social-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 820px) {
  body {
    background-attachment: scroll;
  }

  .section-shell,
  .site-header {
    width: min(100%, calc(100% - 28px));
    padding: 16px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    display: none;
    grid-template-columns: 1fr;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: var(--border);
  }

  .site-header.nav-open .site-nav {
    display: grid;
  }

  .hero {
    min-height: auto;
  }

  .hero-object {
    min-height: 450px;
  }

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

  .footer {
    display: grid;
  }

  .footer p {
    text-align: left;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

  h2 {
    font-size: clamp(1.9rem, 9vw, 3rem);
  }

  .button-row,
  .btn {
    width: 100%;
  }

  .main-3d-card {
    width: 100%;
    min-height: 330px;
  }

  .mini-tool {
    min-width: 72px;
    min-height: 38px;
    font-size: 0.8rem;
  }

  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .thumbnail-grid,
  .youtube-video-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
