/* Premium motion, imagery, and UX layer */

:root {
  --sora: "Sora", "Plus Jakarta Sans", system-ui, sans-serif;
}

h1, h2, .brand-name {
  font-family: var(--sora);
}

::selection {
  background: rgba(59, 138, 255, 0.28);
  color: var(--ink);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: #1d6fea;
  border-radius: 99px;
  border: 2px solid #07111f;
}

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: #07111f;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-mark {
  width: auto;
  height: 148px;
  background: #fff;
  border-radius: 18px;
  padding: 10px;
  animation: pulseLogo 1.4s ease-in-out infinite;
}

@keyframes pulseLogo {
  50% { transform: scale(1.08); filter: drop-shadow(0 0 18px rgba(59, 138, 255, 0.55)); }
}

/* Cursor */
.cursor,
.cursor-dot {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .cursor,
  .cursor-dot {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 180;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }

  .cursor {
    width: 38px;
    height: 38px;
    border: 1.5px solid rgba(59, 138, 255, 0.7);
    transition: width 0.2s, height 0.2s, background 0.2s, border-color 0.2s;
  }

  .cursor.is-hover {
    width: 64px;
    height: 64px;
    background: rgba(59, 138, 255, 0.12);
    border-color: #3b8aff;
  }

  .cursor-dot {
    width: 6px;
    height: 6px;
    background: #3b8aff;
  }
}

/* Grain + mesh */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.045;
  background: url("../assets/vectors/grain.svg");
  mix-blend-mode: overlay;
}

.hero {
  isolation: isolate;
}

.hero-mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 20%, rgba(59, 138, 255, 0.28), transparent 42%),
    radial-gradient(circle at 80% 30%, rgba(29, 111, 234, 0.22), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(80, 170, 255, 0.16), transparent 45%);
  animation: meshShift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes meshShift {
  to { transform: translate3d(-4%, 3%, 0) scale(1.08); }
}

.hero-photo-wrap {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform-style: preserve-3d;
}

.hero-photo-wrap img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  transform: scale(1.04);
  animation: ken 18s ease-in-out infinite alternate;
}

@keyframes ken {
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

.hero-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(7, 17, 31, 0.45));
  pointer-events: none;
}

.orbit {
  position: absolute;
  width: 128%;
  height: 128%;
  left: -14%;
  top: -14%;
  background: url("../assets/vectors/orbit.svg") center / contain no-repeat;
  animation: spin 28s linear infinite;
  pointer-events: none;
  opacity: 0.9;
}

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

.float-icon {
  position: absolute;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(7, 17, 31, 0.72);
  border: 1px solid rgba(91, 168, 255, 0.35);
  backdrop-filter: blur(10px);
  color: #d6e7ff;
  animation: float 5.5s ease-in-out infinite;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.float-icon svg {
  width: 26px;
  height: 26px;
}

.fi-1 { top: 8%; left: -18px; animation-delay: 0.2s; }
.fi-2 { top: 18%; right: -16px; animation-delay: 0.9s; }
.fi-3 { bottom: 22%; left: -12px; animation-delay: 1.4s; }
.fi-4 { bottom: 8%; right: 8px; animation-delay: 0.5s; }

/* Button shine */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 32%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
  animation: shine 3.8s ease-in-out infinite;
}

@keyframes shine {
  0%, 55% { left: -40%; }
  100% { left: 130%; }
}

/* Marquee */
.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  margin-top: 72px;
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  padding: 16px 0;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  color: #9db0c7;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  white-space: nowrap;
}

.marquee-track span::before {
  content: "✦";
  color: #3b8aff;
  margin-right: 48px;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* About visual */
.about-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 220px;
  box-shadow: var(--shadow-lg);
  transform-style: preserve-3d;
}

.about-visual img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.about-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 138, 255, 0.12), transparent 55%);
  pointer-events: none;
}

.about-grid {
  align-items: start;
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

/* Hero stagger */
.hero-stagger {
  opacity: 0;
  transform: translateY(22px);
}

.hero-stagger.hero-in {
  animation: heroIn 0.85s var(--ease) forwards;
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Nav underline */
.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

/* Industry icons */
.industry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s, background 0.35s;
}

.industry-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 138, 255, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
}

.industry-card:hover::before {
  opacity: 1;
}

.industry-card svg {
  width: 28px;
  height: 28px;
  color: var(--blue);
  transition: transform 0.35s var(--ease);
}

.industry-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(29, 111, 234, 0.12);
}

.industry-card:hover svg {
  transform: translateY(-2px) scale(1.1);
}

/* Work photos */
.work-photo {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #0d1b30;
}

.work-photo-tall {
  height: 280px;
}

.work-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7, 17, 31, 0.55));
  opacity: 0;
  transition: opacity 0.4s;
}

.work-card:hover .work-photo::after {
  opacity: 1;
}

.work-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.work-card:hover .work-photo img {
  transform: scale(1.08);
}

.work-card {
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.work-card:hover {
  box-shadow: 0 24px 50px rgba(7, 17, 31, 0.14);
}

/* Service card glass */
.service-card {
  background: linear-gradient(180deg, #fff 0%, #fafcff 100%);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(29, 111, 234, 0.14);
}

/* Price card glow */
.price-card.featured {
  background: linear-gradient(180deg, #fff 0%, #f0f6ff 100%);
}

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(29, 111, 234, 0.12);
}

/* Process step pulse */
.process-track li {
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.process-track li:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(29, 111, 234, 0.1);
}

body.nav-open {
  overflow: hidden;
}

/* Back to top */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 96px;
  z-index: 45;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(7, 17, 31, 0.25);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s var(--ease), background 0.25s;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-top:hover {
  background: var(--blue);
}

.back-top svg {
  width: 18px;
  height: 18px;
}

/* Hero pills */
.hero-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding: 0;
}

.hero-pills li {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c5d3e4;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  padding: 7px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

/* Section decor */
.section-decor {
  position: relative;
  overflow: hidden;
}

.section-blob {
  position: absolute;
  width: 420px;
  height: 420px;
  background: url("../assets/vectors/blob.svg") center / contain no-repeat;
  pointer-events: none;
  opacity: 0.55;
  animation: blobFloat 12s ease-in-out infinite alternate;
}

.sb-left {
  left: -120px;
  top: -80px;
}

.sb-right {
  right: -100px;
  top: 20%;
}

.section-grid-dots {
  position: absolute;
  inset: 0;
  background: url("../assets/vectors/grid-dots.svg") center / 400px repeat;
  opacity: 0.35;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}

@keyframes blobFloat {
  to { transform: translate3d(0, -18px, 0) scale(1.05); }
}

/* FAQ smooth */
.faq details {
  border-radius: 14px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.faq details[open] {
  border-color: #c9dbf7;
  box-shadow: 0 12px 30px rgba(29, 111, 234, 0.08);
}

.faq summary {
  padding: 16px 18px;
}

.faq details p {
  padding: 0 18px 16px;
  margin: 0;
}

.faq details[open] summary {
  color: var(--blue-deep);
}

/* Process line fill */
.process-track {
  --line-fill: 0%;
}

.process-track::before {
  background: linear-gradient(90deg, var(--blue) var(--line-fill), rgba(29, 111, 234, 0.15) var(--line-fill));
}

/* Hero shimmer - in premium, override styles.css */
.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #7eb6ff, #3b8aff, #5aa6ff, #3b8aff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textShimmer 4s linear infinite;
}

@keyframes textShimmer {
  to { background-position: 200% center; }
}

/* Hero checklist */
.hero-checklist {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.hero-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #c5d3e4;
  font-size: 0.95rem;
}

.hero-checklist li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(59, 138, 255, 0.2);
  border: 1.5px solid #3b8aff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6l2.5 2.5 4.5-5' stroke='%233B8AFF' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  animation: checkPop 0.5s var(--ease) both;
}

.hero-checklist li:nth-child(2)::before { animation-delay: 0.15s; }
.hero-checklist li:nth-child(3)::before { animation-delay: 0.3s; }

@keyframes checkPop {
  from { transform: scale(0.5); opacity: 0; }
}

/* Hero badges on image */
.hero-badges {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.hero-badge {
  position: absolute;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e8f1ff;
  background: rgba(7, 17, 31, 0.75);
  border: 1px solid rgba(91, 168, 255, 0.4);
  padding: 7px 12px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  animation: badgeFloat 4s ease-in-out infinite;
}

.hero-badge:nth-child(1) { top: 12%; left: 8%; animation-delay: 0s; }
.hero-badge:nth-child(2) { top: 22%; right: 6%; animation-delay: 0.6s; }
.hero-badge:nth-child(3) { bottom: 14%; left: 14%; animation-delay: 1.2s; }

@keyframes badgeFloat {
  50% { transform: translateY(-8px); }
}

/* Clarity strip */
.clarity-strip {
  background: #fff;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.clarity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.clarity-card {
  padding: 22px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f8fbff);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}

.clarity-card:hover {
  transform: translateY(-6px);
  border-color: #c9dbf7;
  box-shadow: 0 20px 45px rgba(29, 111, 234, 0.1);
}

.clarity-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 14px;
  transition: transform 0.35s var(--ease);
}

.clarity-card:hover .clarity-icon {
  transform: scale(1.1) rotate(-6deg);
}

.clarity-icon svg {
  width: 22px;
  height: 22px;
}

.clarity-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.clarity-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* About details */
.about-details {
  list-style: none;
  margin: 20px 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.about-details li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--off);
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.about-details li:hover {
  border-color: #c9dbf7;
  transform: translateX(4px);
}

.about-details strong {
  color: var(--blue-deep);
  font-size: 0.88rem;
}

.about-details span {
  color: #334155;
  font-size: 0.92rem;
}

/* Service detail labels */
.service-for {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 6px !important;
}

.service-deliver {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--off);
  padding: 8px 12px;
  border-radius: 8px;
  margin: 12px 0 14px !important;
  letter-spacing: 0.02em;
}

/* Step tags */
.step-tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.growth-path li {
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}

.growth-path li.is-active {
  border-color: var(--blue);
  box-shadow: 0 12px 30px rgba(29, 111, 234, 0.12);
  transform: translateX(6px);
}

.growth-path li.is-active .gp-num {
  background: var(--blue);
  color: #fff;
  animation: numPulse 1.2s ease infinite;
}

@keyframes numPulse {
  50% { box-shadow: 0 0 0 6px rgba(59, 138, 255, 0.2); }
}

.process-track li.is-active .step-num {
  background: var(--blue);
  animation: numPulse 1.2s ease infinite;
}

/* Week outcome */
.week-outcome {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-deep);
  background: var(--blue-soft);
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px !important;
}

/* Title animated underline */
.title-line {
  position: relative;
  display: inline-block;
}

.title-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue-2), var(--blue));
  transition: width 0.9s var(--ease);
}

.title-line.line-in::after {
  width: 72px;
}

/* Contact expect */
.contact-expect {
  background: var(--off);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 12px;
}

.contact-expect h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.contact-expect ol {
  margin: 0;
  padding-left: 18px;
  color: #334155;
  font-size: 0.92rem;
}

.contact-expect li + li {
  margin-top: 8px;
}

/* FAQ slide */
.faq details .faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.faq details[open] .faq-body {
  grid-template-rows: 1fr;
}

.faq details .faq-body > p {
  overflow: hidden;
}

/* Parallax hero */
.hero-visual {
  transition: transform 0.1s linear;
}

@media (max-width: 980px) {
  .clarity-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-details li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 700px) {
  .clarity-grid {
    grid-template-columns: 1fr;
  }

  .hero-badge {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy h1 em,
  .hero-checklist li::before,
  .hero-badge,
  .growth-path li.is-active .gp-num,
  .process-track li.is-active .step-num {
    animation: none !important;
  }
}

.section-wave {
  height: 72px;
  margin-top: -1px;
  background: url("../assets/vectors/wave.svg") center bottom / cover no-repeat;
  pointer-events: none;
}

/* CTA with image */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.55), rgba(7, 17, 31, 0.78)),
    url("../assets/img/cta-glow.jpg") center / cover;
  transform: scale(1.04);
  animation: ken 20s ease-in-out infinite alternate;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

/* Reveal */
.will-reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease);
}

.will-reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}

.service-card,
.price-card,
.work-card,
.why-card,
.week-card {
  will-change: transform;
}

.service-card:hover .service-icon {
  transform: rotate(-8deg) scale(1.08);
  transition: transform 0.35s var(--ease);
}

.service-icon {
  transition: transform 0.35s var(--ease);
}

/* Process glow */
.process-track li {
  overflow: hidden;
}

.process-track li::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(59, 138, 255, 0.18), transparent 70%);
  pointer-events: none;
}

/* Form focus lift */
.contact-form {
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.contact-form:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(29, 111, 234, 0.14);
}

@media (max-width: 980px) {
  .hero-photo-wrap img {
    height: 340px;
  }

  .orbit,
  .float-icon {
    display: none;
  }
}

@media (max-width: 700px) {
  .hero-photo-wrap img {
    height: 240px;
  }

  .back-top {
    right: 14px;
    bottom: 88px;
  }

  .cursor,
  .cursor-dot {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mesh,
  .orbit,
  .float-icon,
  .marquee-track,
  .hero-photo-wrap img,
  .cta-band::before,
  .btn-primary::after,
  .loader-mark {
    animation: none !important;
  }
}
