:root {
  --brand: #f86040;
  --brand-soft: rgba(248, 96, 64, 0.4);
  --bg: #020617;
  --bg-soft: #0b1120;
  --text: #f9fafb;
  --text-soft: #9ca3af;
  --border-soft: rgba(148, 163, 184, 0.35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 45%, #000 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated background blobs */
.bg-blur {
  position: fixed;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(248, 96, 64, 0.24), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(248, 96, 64, 0.16), transparent 60%);
  filter: blur(28px);
  opacity: 0.9;
  z-index: -2;
  animation: bgDrift 20s ease-in-out infinite alternate;
}

@keyframes bgDrift {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(30px,-26px) scale(1.07); }
}

/* layout */

.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: inherit;
  text-decoration: none;
}

/* header / nav */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(2, 6, 23, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.95);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-ring {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fff, var(--brand));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(248, 96, 64, 0.9);
}

.logo-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-block {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 0.7rem;
  color: var(--text-soft);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links {
  display: none;
  gap: 1.3rem;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.nav-links a {
  position: relative;
  padding-bottom: 0.2rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--brand);
  transition: width 0.22s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: none;
  font-size: 0.8rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 96, 64, 0.85);
  background: #020617;
  color: #fed7c2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(248, 96, 64, 0.8);
  background: #0b1120;
}

/* hero */

.hero {
  padding: 3.5rem 0 3.2rem;
}

.hero-grid {
  display: grid;
  gap: 2.4rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--brand);
  background: rgba(248, 96, 64, 0.15);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 12px var(--brand);
  animation: ping 1.4s infinite;
}

@keyframes ping {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-title span {
  background: linear-gradient(90deg, #ff845d, #f86040, #ff6d7a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 1.7rem;
  max-width: 520px;
}

.hero-sub strong {
  color: #fef3c7;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.7rem;
}

.btn-primary,
.btn-ghost {
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s,
    border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--brand);
  color: #111827;
  font-weight: 600;
  box-shadow: 0 16px 34px rgba(248, 96, 64, 0.7);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(248, 96, 64, 0.8);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-soft);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: #fed7c2;
}

/* what we do card */

.what-card {
  margin-top: 1.1rem;
  max-width: 450px;
  padding: 1.2rem 1.4rem;
  border-radius: 1rem;
  background: radial-gradient(circle at top left,
              rgba(248, 96, 64, 0.22),
              rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(248, 96, 64, 0.7);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.8);
}

.what-title {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fed7c2;
  margin-bottom: 0.9rem;
}

.what-list {
  list-style: none;
  margin: 0 0 1rem 0;
  padding: 0;
}

.what-list li {
  padding-left: 1.4rem;
  margin-bottom: 0.45rem;
  position: relative;
  font-size: 0.92rem;
  line-height: 1.55;
}

.what-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #fbbf24;
  font-size: 0.9rem;
}

.what-foot {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #fed7c2;
}

/* hero right box */

.hero-visual {
  border-radius: 1.5rem;
  padding: 1.3rem;
  border: 1px solid rgba(248, 96, 64, 0.55);
  background: radial-gradient(circle at top left,
              rgba(248, 96, 64, 0.16),
              rgba(15, 23, 42, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  position: relative;
  overflow: hidden;
}

.hero-visual img {
  border-radius: 1.1rem;
  width: 100%;
  object-fit: cover;
}

.hero-visual-note {
  font-size: 0.78rem;
  color: #fee2d5;
  margin-top: 0.5rem;
  opacity: 0.95;
}

/* hero meta */

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
  margin-top: 1.2rem;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.hero-meta strong {
  display: block;
  color: #e5e7eb;
  margin-bottom: 0.1rem;
}

/* sections */

section {
  padding: 3.1rem 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.section-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
}

.section-title {
  font-size: 1.7rem;
  margin-bottom: 0.3rem;
}

.section-title span {
  color: var(--brand);
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-soft);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

/* home services – 5 boxes */

.services-grid {
  display: grid;
  gap: 1.4rem;
  margin-top: 1.4rem;
}

.service-card {
  border-radius: 1.1rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-soft);
  padding: 1.3rem 1.2rem;
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.5rem;
  transform-origin: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease, background 0.18s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(248, 96, 64, 0.18), transparent 60%);
  right: -80px;
  top: -80px;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  transform: translateY(-6px) rotate3d(1, -1, 0, 6deg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
  border-color: rgba(248, 96, 64, 0.9);
  background: rgba(15, 23, 42, 0.98);
}

.service-card:hover::before {
  opacity: 1;
  transform: translate(-10px, 8px);
}

.service-label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.service-title-main {
  font-size: 1.05rem;
  font-weight: 600;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.service-actions {
  margin-top: 0.4rem;
}

.service-actions .btn-primary {
  padding-inline: 1.1rem;
  font-size: 0.86rem;
}

/* generic text blocks */

.text-block {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* work grid */

.work-grid {
  display: grid;
  gap: 1.3rem;
  margin-top: 1.5rem;
}

.work-card {
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--border-soft);
  padding: 1rem 1rem 0.9rem;
}

.work-type {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.2rem;
}

.work-title {
  font-size: 0.96rem;
  margin-bottom: 0.15rem;
}

.work-desc {
  font-size: 0.86rem;
  color: var(--text-soft);
  margin-bottom: 0.4rem;
}

.work-tags {
  font-size: 0.78rem;
  color: #fed7c2;
  margin-bottom: 0.4rem;
}

.work-bar {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--brand), rgba(248,96,64,0.05));
}

/* plans */

.plans-grid {
  display: grid;
  gap: 1.3rem;
  margin-top: 1.6rem;
}

.plan-card {
  border-radius: 1.1rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--border-soft);
  padding: 1.2rem 1.1rem;
  display: grid;
  gap: 0.5rem;
}

.plan-name {
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fed7c2;
}

.plan-price {
  font-size: 1.2rem;
  font-weight: 600;
}

.plan-tags {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.plan-list {
  font-size: 0.86rem;
  color: var(--text-soft);
  margin-left: 1rem;
}

.plan-list li {
  margin-bottom: 0.25rem;
}

/* contact mini section (reused) */

.contact-mini {
  margin-top: 2rem;
  padding: 1.2rem 1.1rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(248,96,64,0.6);
  background: radial-gradient(circle at top left,
              rgba(248,96,64,0.22),
              rgba(15,23,42,0.98));
  font-size: 0.9rem;
}

.contact-mini-phones {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(2,6,23,0.96);
  border: 1px solid rgba(248,96,64,0.85);
  font-size: 0.84rem;
  color: #fed7c2;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.phone-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(248,96,64,0.7);
  background: #020617;
}

/* footer */

footer {
  border-top: 1px solid rgba(15,23,42,0.95);
  padding: 1rem 0 1.6rem;
  margin-top: 2.4rem;
  font-size: 0.78rem;
  color: var(--text-soft);
  text-align: center;
}

footer span {
  color: var(--brand);
  font-weight: 500;
}

/* page title band (for inner pages) */

.page-hero {
  padding: 2.2rem 0 1.6rem;
}

.page-title-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(248,96,64,0.7);
  background: rgba(15,23,42,0.95);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fed7c2;
  margin-bottom: 0.7rem;
}

.page-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 12px var(--brand);
}

.page-title-main {
  font-size: 2rem;
  margin-bottom: 0.3rem;
}

.page-subtitle {
  font-size: 0.9rem;
  color: var(--text-soft);
  max-width: 560px;
  line-height: 1.7;
}

/* basic reveal animation (fallback) */
.reveal-up {
  opacity: 0;
  transform: translateY(12px);
  animation: revealUpBase 0.9s ease-out forwards;
}

.reveal-delay-1 { animation-delay: 0.12s; }
.reveal-delay-2 { animation-delay: 0.24s; }
.reveal-delay-3 { animation-delay: 0.36s; }

@keyframes revealUpBase {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* responsive layout */

@media (min-width: 720px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }

  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  .hero-title { font-size: 2.9rem; }

  .services-grid.home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .work-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }

  .plans-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }

  .process-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 1.6rem;
  }
}

/* === SCROLL PROGRESS BAR === */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, #f97316, #f86040, #fb7185);
  z-index: 40;
  pointer-events: none;
}

/* === JS-POWERED SCROLL REVEAL OVERRIDE === */
.reveal-up {
  opacity: 0;
  transform: translateY(16px);
}

.reveal-active {
  animation: revealUp 0.85s cubic-bezier(0.21, 0.61, 0.35, 1) forwards;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Extra pop for cards when revealed */
.card-pop {
  animation: cardPop 0.55s cubic-bezier(0.21, 0.61, 0.35, 1) forwards;
}

@keyframes cardPop {
  0% {
    transform: translateY(18px) scale(0.96);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.9);
  }
}

/* Make sure tilt animation looks smooth */
.service-card,
.work-card,
.plan-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease,
    background 0.18s ease;
  transform-style: preserve-3d;
}

/* ================================
   DIZIYUG GLOBAL UPDATE POPUP
   ================================ */

.dizi-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
  opacity: 1;
}

.dizi-popup-overlay.dizi-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Glow background inside popup */
.dizi-popup-glow {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(248, 96, 64, 0.28), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(248, 96, 64, 0.2), transparent 60%);
  filter: blur(30px);
  animation: diziPopupGlow 10s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes diziPopupGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(24px, -18px) scale(1.08); }
}

/* Popup box */
.dizi-popup-box {
  width: 90%;
  max-width: 520px;
  padding: 2rem 1.8rem;
  border-radius: 1.4rem;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(248, 96, 64, 0.6);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.85);
  position: relative;
  text-align: center;
  overflow: hidden;
  transform: scale(0.8) translateY(30px);
  opacity: 0;
  animation: diziPopupIn 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes diziPopupIn {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(24px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

/* floating light blobs */
.dizi-popup-box::before,
.dizi-popup-box::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(248, 96, 64, 0.2), transparent 70%);
  filter: blur(18px);
  animation: diziPopupBits 8s ease-in-out infinite alternate;
}

.dizi-popup-box::before { top: -30px; left: -30px; }
.dizi-popup-box::after { bottom: -30px; right: -30px; animation-delay: 1.2s; }

@keyframes diziPopupBits {
  0% { transform: translate(0,0); }
  100% { transform: translate(18px,-14px); }
}

/* Close button */
.dizi-popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(248, 96, 64, 0.8);
  background: rgba(248, 96, 64, 0.22);
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.dizi-popup-close:hover {
  transform: rotate(90deg) scale(1.1);
  background: rgba(248, 96, 64, 0.42);
  box-shadow: 0 10px 24px rgba(248, 96, 64, 0.7);
}

/* Text styles */
.dizi-popup-mini {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.45rem;
}

.dizi-popup-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.dizi-popup-title span {
  color: var(--brand);
}

.dizi-popup-text {
  font-size: 0.95rem;
  color: #e5e7eb;
  line-height: 1.7;
  margin-bottom: 0.7rem;
}

/* Mobile tweak */
@media (min-width: 640px) {
  .dizi-popup-box {
    padding: 2.3rem 2.2rem;
  }
}
