/* =========================================================
   Growthify — custom styles on top of Tailwind
   ========================================================= */

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
::selection { background: #3b6bf6; color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f4f9; }
::-webkit-scrollbar-thumb { background: #c3cddf; border-radius: 20px; border: 2px solid #f1f4f9; }
::-webkit-scrollbar-thumb:hover { background: #93a3bd; }

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn-primary,
.btn-ghost,
.btn-dark,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.5rem;
  border-radius: .8rem;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background-color .25s, color .25s, border-color .25s;
  will-change: transform;
}
.btn-primary {
  background: linear-gradient(135deg, #3b6bf6, #06b6d4);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(59,107,246,.75);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -12px rgba(59,107,246,.85); }
.btn-ghost {
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); }
.btn-dark { background: #0b1020; color: #fff; }
.btn-dark:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -14px rgba(11,16,32,.6); }
.btn-outline { border: 1px solid rgba(11,16,32,.14); color: #0b1020; background: #fff; }
.btn-outline:hover { border-color: #3b6bf6; color: #2a53d8; transform: translateY(-3px); }

/* ---------------------------------------------------------
   Header / nav
   --------------------------------------------------------- */
#site-header.is-scrolled {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px -18px rgba(16,24,40,.45);
}
#site-header { color: #fff; }
#site-header.is-scrolled { color: #0b1020; }

.nav-link { position: relative; opacity: .82; transition: opacity .2s; }
.nav-link:hover, .nav-link.is-active { opacity: 1; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  height: 2px; width: 0; border-radius: 2px;
  background: linear-gradient(90deg,#3b6bf6,#06b6d4);
  transition: width .3s cubic-bezier(.2,.8,.2,1);
}
.nav-link:hover::after, .nav-link.is-active::after { width: 100%; }

.mobile-link {
  display: block; padding: .75rem .9rem; border-radius: .7rem;
  color: #0b1020; transition: background-color .2s, color .2s;
}
.mobile-link:hover { background: #eef4ff; color: #2a53d8; }

/* ---------------------------------------------------------
   Section typography
   --------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: #2a53d8;
}
.section-title {
  margin-top: .7rem;
  font-family: Sora, Inter, sans-serif;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  color: #0b1020;
}
.grad-text {
  background: linear-gradient(100deg,#8fb0ff 0%,#22d3ee 55%,#ffffff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
#hero-canvas { display: block; opacity: .95; }
.hero-veil {
  background:
    radial-gradient(900px 480px at 78% 18%, rgba(59,107,246,.30), transparent 65%),
    radial-gradient(700px 420px at 8% 85%, rgba(6,182,212,.20), transparent 65%),
    linear-gradient(to bottom, rgba(11,16,32,.55), rgba(11,16,32,.88));
  pointer-events: none;
}
.pulse-dot { box-shadow: 0 0 0 0 rgba(34,211,238,.7); animation: pulse 2s infinite; }
@keyframes pulse {
  70%  { box-shadow: 0 0 0 8px rgba(34,211,238,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); }
}

.glass-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.tilt { transform-style: preserve-3d; transition: transform .35s cubic-bezier(.2,.8,.2,1); }

.float-slow { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-14px); }
}

/* Mini bar chart */
#mini-chart .bar {
  flex: 1; height: 0; border-radius: 6px 6px 3px 3px;
  background: linear-gradient(to top,#3b6bf6,#22d3ee);
  opacity: .85;
  transition: height 1.1s cubic-bezier(.2,.8,.2,1);
}
#mini-chart.is-visible .bar { height: var(--h); }
#mini-chart .bar:last-child { opacity: 1; }

/* ---------------------------------------------------------
   Logo marquee
   --------------------------------------------------------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track {
  display: flex; gap: 3.5rem; width: max-content;
  animation: scroll-x 26s linear infinite;
}
.marquee-track li {
  font-family: Sora, Inter, sans-serif; font-weight: 700; font-size: 1.15rem;
  color: rgba(11,16,32,.30); white-space: nowrap; letter-spacing: -.01em;
  transition: color .25s;
}
.marquee-track li:hover { color: rgba(11,16,32,.6); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------
   Service cards
   --------------------------------------------------------- */
.service-card {
  position: relative; overflow: hidden;
  padding: 1.9rem 1.7rem;
  border: 1px solid rgba(11,16,32,.08);
  border-radius: 1.1rem;
  background: #fff;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
}
.service-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(59,107,246,.10), transparent 60%);
  opacity: 0; transition: opacity .35s;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 26px 50px -26px rgba(16,24,40,.35); border-color: rgba(59,107,246,.3); }
.service-card:hover::before { opacity: 1; }
.card-icon {
  position: relative; display: grid; place-items: center;
  height: 3rem; width: 3rem; border-radius: .9rem;
  background: #eef4ff; color: #2a53d8; font-size: 1.05rem;
  transition: transform .35s, background-color .35s, color .35s;
}
.service-card:hover .card-icon { transform: rotate(-8deg) scale(1.06); background: #3b6bf6; color: #fff; }
.service-card h3 {
  position: relative; margin-top: 1.15rem;
  font-family: Sora, Inter, sans-serif; font-weight: 700; font-size: 1.08rem; color: #0b1020;
}
.service-card p { position: relative; margin-top: .6rem; font-size: .93rem; line-height: 1.65; color: rgba(11,16,32,.6); }
.card-link {
  position: relative; display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1.15rem; font-size: .85rem; font-weight: 600; color: #2a53d8;
}
.card-link i { transition: transform .25s; }
.card-link:hover i { transform: translateX(4px); }

/* ---------------------------------------------------------
   About — CSS 3D cube
   --------------------------------------------------------- */
.cube-stage {
  display: grid; place-items: center;
  height: 22rem; perspective: 900px;
}
.cube {
  position: relative; height: 150px; width: 150px;
  transform-style: preserve-3d;
  animation: spin-cube 16s linear infinite;
}
.cube .face {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: Sora, Inter, sans-serif; font-weight: 800; font-size: 2.4rem; color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(59,107,246,.92), rgba(6,182,212,.85));
  box-shadow: inset 0 0 40px rgba(255,255,255,.12);
}
.cube .front  { transform: translateZ(75px); }
.cube .back   { transform: rotateY(180deg) translateZ(75px); }
.cube .right  { transform: rotateY(90deg) translateZ(75px); }
.cube .left   { transform: rotateY(-90deg) translateZ(75px); }
.cube .top    { transform: rotateX(90deg) translateZ(75px); }
.cube .bottom { transform: rotateX(-90deg) translateZ(75px); }
@keyframes spin-cube {
  0%   { transform: rotateX(-22deg) rotateY(0deg); }
  100% { transform: rotateX(-22deg) rotateY(360deg); }
}

.feature-item { display: flex; gap: .8rem; font-size: .95rem; line-height: 1.6; color: rgba(11,16,32,.7); }
.feature-item i { margin-top: .28rem; color: #2a53d8; }
.feature-item strong { color: #0b1020; }

/* ---------------------------------------------------------
   Process steps
   --------------------------------------------------------- */
.step-card {
  position: relative; padding: 1.9rem 1.6rem;
  border-radius: 1.1rem; background: #fff;
  border: 1px solid rgba(11,16,32,.08);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.step-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -26px rgba(16,24,40,.32); }
.step-num {
  font-family: Sora, Inter, sans-serif; font-weight: 800; font-size: 2rem;
  background: linear-gradient(135deg,#3b6bf6,#06b6d4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step-card h3 { margin-top: .5rem; font-family: Sora, Inter, sans-serif; font-weight: 700; font-size: 1.05rem; color: #0b1020; }
.step-card p { margin-top: .55rem; font-size: .92rem; line-height: 1.65; color: rgba(11,16,32,.6); }

/* ---------------------------------------------------------
   Work
   --------------------------------------------------------- */
.filter-btn {
  padding: .5rem 1.05rem; border-radius: 999px;
  font-size: .84rem; font-weight: 600; color: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.16);
  transition: all .25s;
}
.filter-btn:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.filter-btn.is-active { background: #fff; color: #0b1020; border-color: #fff; }

.work-card {
  padding: 1.8rem 1.6rem; border-radius: 1.1rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), background-color .35s, border-color .35s;
}
.work-card:hover { transform: translateY(-8px); background: rgba(255,255,255,.09); border-color: rgba(34,211,238,.4); }
.work-tag { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #22d3ee; font-weight: 600; }
.work-card h3 { margin-top: .75rem; font-family: Sora, Inter, sans-serif; font-weight: 700; font-size: 1.2rem; color: #fff; }
.work-desc { margin-top: .6rem; font-size: .92rem; line-height: 1.65; color: rgba(255,255,255,.6); }
.work-metric {
  margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,.1);
  font-family: Sora, Inter, sans-serif; font-weight: 800; font-size: 1.5rem; color: #fff;
}
.work-metric span { display: block; margin-top: .2rem; font-family: Inter, sans-serif; font-weight: 500; font-size: .78rem; color: rgba(255,255,255,.5); }
.work-card.is-hidden { display: none; }

/* ---------------------------------------------------------
   Testimonials
   --------------------------------------------------------- */
#testimonial-slider { position: relative; min-height: 15rem; }
.testimonial {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(16px) scale(.98);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.testimonial.is-active { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.quote-mark { font-size: 1.5rem; color: #d9e5ff; }
.testimonial p {
  margin-top: 1.1rem;
  font-family: Sora, Inter, sans-serif; font-weight: 400;
  font-size: clamp(1.05rem, 2vw, 1.45rem); line-height: 1.55; color: #0b1020;
}
.testimonial footer { margin-top: 1.6rem; }
.testimonial footer strong { display: block; font-size: .95rem; color: #0b1020; }
.testimonial footer span { font-size: .85rem; color: rgba(11,16,32,.55); }

.slider-arrow {
  display: grid; place-items: center; height: 2.6rem; width: 2.6rem;
  border-radius: 999px; border: 1px solid rgba(11,16,32,.12);
  color: #0b1020; background: #fff; transition: all .25s;
}
.slider-arrow:hover { background: #0b1020; color: #fff; border-color: #0b1020; }
.dot {
  height: .5rem; width: .5rem; border-radius: 999px;
  background: rgba(11,16,32,.2); transition: all .3s;
}
.dot.is-active { width: 1.6rem; background: linear-gradient(90deg,#3b6bf6,#06b6d4); }

/* ---------------------------------------------------------
   Pricing
   --------------------------------------------------------- */
.toggle-btn {
  padding: .55rem 1.2rem; border-radius: 999px;
  font-size: .85rem; font-weight: 600; color: rgba(11,16,32,.55);
  transition: all .25s;
}
.toggle-btn.is-active { background: #0b1020; color: #fff; }

.price-card {
  position: relative; padding: 2rem 1.8rem;
  border-radius: 1.2rem; background: #fff;
  border: 1px solid rgba(11,16,32,.08);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.price-card:hover { transform: translateY(-6px); box-shadow: 0 26px 54px -28px rgba(16,24,40,.32); }
.price-card.is-featured {
  background: #0b1020; color: #fff; border-color: transparent;
  box-shadow: 0 30px 60px -28px rgba(11,16,32,.55);
}
.price-card h3 { font-family: Sora, Inter, sans-serif; font-weight: 700; font-size: 1.15rem; }
.price-note { margin-top: .45rem; font-size: .88rem; color: rgba(11,16,32,.55); }
.price-card.is-featured .price-note { color: rgba(255,255,255,.6); }
.price { margin-top: 1.5rem; font-family: Sora, Inter, sans-serif; font-weight: 800; }
.price .currency { font-size: 1.2rem; vertical-align: super; }
.price .amount, .price .amount-text { font-size: 2.6rem; letter-spacing: -.02em; }
.price .period { font-family: Inter, sans-serif; font-weight: 500; font-size: .9rem; color: rgba(11,16,32,.5); }
.price-card.is-featured .price .period { color: rgba(255,255,255,.55); }
.price-card ul { margin: 1.6rem 0; display: grid; gap: .8rem; font-size: .92rem; }
.price-card li { display: flex; gap: .65rem; align-items: flex-start; color: rgba(11,16,32,.7); }
.price-card.is-featured li { color: rgba(255,255,255,.75); }
.price-card li i { margin-top: .25rem; font-size: .75rem; color: #2a53d8; }
.price-card.is-featured li i { color: #22d3ee; }
.badge {
  position: absolute; top: -.75rem; right: 1.5rem;
  padding: .3rem .8rem; border-radius: 999px;
  background: linear-gradient(135deg,#3b6bf6,#06b6d4);
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff;
}

/* ---------------------------------------------------------
   FAQ
   --------------------------------------------------------- */
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; padding: 1.35rem 0; text-align: left;
  font-family: Sora, Inter, sans-serif; font-weight: 600; font-size: 1.02rem; color: #0b1020;
  transition: color .25s;
}
.faq-q:hover { color: #2a53d8; }
.faq-q i { flex: none; font-size: .8rem; color: #2a53d8; transition: transform .3s; }
.faq-item.is-open .faq-q i { transform: rotate(45deg); }
.faq-a { display: none; padding-bottom: 1.4rem; }
.faq-a p { font-size: .95rem; line-height: 1.7; color: rgba(11,16,32,.62); max-width: 46rem; }

/* ---------------------------------------------------------
   Contact
   --------------------------------------------------------- */
.glow-orb {
  position: absolute; top: -8rem; right: -6rem;
  height: 26rem; width: 26rem; border-radius: 999px;
  background: radial-gradient(circle, rgba(59,107,246,.45), transparent 65%);
  filter: blur(30px); animation: floaty 9s ease-in-out infinite;
}
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item i {
  display: grid; place-items: center; flex: none;
  height: 2.6rem; width: 2.6rem; border-radius: .8rem;
  background: rgba(255,255,255,.07); color: #22d3ee;
}
.contact-item .label { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.45); }
.contact-item div p:last-child { color: #fff; line-height: 1.6; }

.field-label { display: block; margin-bottom: .45rem; font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.75); }
.field {
  width: 100%; padding: .8rem 1rem;
  border-radius: .8rem; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06); color: #fff; font-size: .93rem;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.field::placeholder { color: rgba(255,255,255,.35); }
.field:focus {
  outline: none; border-color: #22d3ee;
  background: rgba(255,255,255,.1);
  box-shadow: 0 0 0 4px rgba(34,211,238,.16);
}
.field option { color: #0b1020; }
.field.has-error { border-color: #f87171; box-shadow: 0 0 0 4px rgba(248,113,113,.14); }
.error-text { margin-top: .35rem; font-size: .78rem; color: #fca5a5; min-height: 1rem; }

/* ---------------------------------------------------------
   Footer / misc
   --------------------------------------------------------- */
.footer-head { font-family: Sora, Inter, sans-serif; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.footer-link { transition: color .2s, padding-left .2s; }
.footer-link:hover { color: #22d3ee; padding-left: 4px; }
.social {
  display: grid; place-items: center; height: 2.4rem; width: 2.4rem;
  border-radius: .7rem; background: rgba(255,255,255,.07); color: #fff;
  transition: transform .25s, background-color .25s;
}
.social:hover { transform: translateY(-3px); background: #3b6bf6; }

#back-to-top.is-visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { transform: translateY(-4px); }

/* ---------------------------------------------------------
   Responsive tweaks
   --------------------------------------------------------- */
@media (max-width: 640px) {
  .cube-stage { height: 16rem; }
  .cube { height: 110px; width: 110px; }
  .cube .face { font-size: 1.8rem; }
  .cube .front  { transform: translateZ(55px); }
  .cube .back   { transform: rotateY(180deg) translateZ(55px); }
  .cube .right  { transform: rotateY(90deg) translateZ(55px); }
  .cube .left   { transform: rotateY(-90deg) translateZ(55px); }
  .cube .top    { transform: rotateX(90deg) translateZ(55px); }
  .cube .bottom { transform: rotateX(-90deg) translateZ(55px); }
  #testimonial-slider { min-height: 19rem; }
  .price .amount, .price .amount-text { font-size: 2.2rem; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cube, .marquee-track, .float-slow, .glow-orb, .pulse-dot { animation: none !important; }
  * { transition-duration: .01ms !important; }
}
