:root {
  --bg: #f9fafb;
  --ink: #1f2937;
  --brand1: #9AE6B4;
  /* green-200 */
  --brand2: #90CDF4;
  /* blue-300 */
  --brand3: #FBD38D;
  /* orange-300 */
  --brand4: #FBB6CE;
  /* pink-300 */
  --brand5: #C4B5FD;
  /* violet-300 */
  --brand6: #2600ff;
  /* violet-300 */
  --brand7: #ee6464;
  /* violet-300 */
  --chip: linear-gradient(135deg, var(--brand2), var(--brand5));
  --grad: linear-gradient(110deg, var(--brand6), var(--brand7));
  --surface: rgba(255, 255, 255, .88);
  --ring: rgba(99, 102, 241, .12);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

/* body {
  font-family: 'Quicksand', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
}

.brand-font {
  font-family: 'Quicksand', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial;
} */

.brand-chip {
  background: var(--chip);
  box-shadow: 0 6px 18px rgba(99, 102, 241, .25);
}

.text-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-link {
  color: #374151;
  transition: color .2s ease;
}

.nav-link:hover {
  color: #4F46E5;
}

.btn-primary {
  @apply inline-flex items-center px-4 py-2.5 rounded-md text-sm font-semibold text-white;
  background: linear-gradient(90deg, #6366F1, #A78BFA);
  box-shadow: 0 8px 22px rgba(99, 102, 241, .35);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: saturate(1.05);
  box-shadow: 0 12px 26px rgba(99, 102, 241, .4);
}

.btn-secondary {
  @apply inline-flex items-center px-4 py-2.5 rounded-md text-sm font-medium border;
  background: white;
  border-color: #E5E7EB;
  color: #111827;
  transition: background .2s ease, transform .15s ease;
}

.btn-secondary:hover {
  background: #F9FAFB;
  transform: translateY(-1px);
}

.panel {
  background: var(--surface);
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(31, 41, 55, .08);
}

.card-surface {
  background: var(--surface);
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(31, 41, 55, .06);
}

.feature {
  font-weight: 700;
  margin-bottom: .25rem;
}

/* Ornaments */
.bg-ornaments {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  filter: blur(50px);
  opacity: .5;
  border-radius: 999px;
}

.blob--lt {
  width: 560px;
  height: 560px;
  top: -120px;
  left: -120px;
  background: #ccb2e7a3;
}

.blob--rb {
  width: 520px;
  height: 520px;
  bottom: -140px;
  right: -140px;
  background: #ffffff;
}

.blob--mid {
  width: 380px;
  height: 380px;
  top: 20%;
  left: 10%;
  background: #f5d554a4;
}

/* Soft divider */
.soft-divider {
  height: 16px;
  background: radial-gradient(120% 120% at 50% -40%, rgba(99, 102, 241, .18), transparent 60%);
  border-radius: 999px;
}

/* 3D Carousel */
.scene {
  height: min(60vh, 520px);
  display: grid;
  place-items: center;
  perspective: 1200px;
  background: transparent;
}

.carousel {
  position: relative;
  width: min(36%, 740px);
  height: min(36%, 420px);
  transform-style: preserve-3d;
  animation: spin 50s linear infinite;
  animation-direction: reverse;
  transition: transform .6s ease;
}

:root {
  --count: 3;
  --radius: 200px;
}

.card {
  --i: 0;
  --angle: calc((360deg / var(--count)) * var(--i));
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: rotateY(var(--angle)) translateZ(var(--radius));
  will-change: transform;
}

.card img {
  width: 72%;
  height: 72%;
  /* object-fit: cover; */
  object-fit: contain;
  border-radius: 16px;
  /* box-shadow: 0 16px 40px rgba(31, 41, 55, .12), 0 0 0 1px rgba(255, 255, 255, .4) inset; */
  box-shadow: 0 16px 40px rgba(31, 41, 55, .12);
  border: 0;
  background: none;
  outline: none;
  background: transparent;
  position: relative;
  z-index: 1;
}

.card:nth-child(1) {
  --i: 0;
}

.card:nth-child(2) {
  --i: 1;
}

.card:nth-child(3) {
  --i: 2;
}

.card:nth-child(4) {
  --i: 3;
}

.card:nth-child(5) {
  --i: 4;
}

figure.card {
  border: none !important;
  outline: none;
  background: none;
}

@keyframes spin {
  from {
    transform: rotateY(0deg);
  }

  to {
    transform: rotateY(-360deg);
  }
}

/* Marquee */
.marquee {
  overflow: hidden;
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: 4rem;
  padding: .5rem 0;
  animation: move 45s linear infinite;
  /* animation-direction: reverse; */
  align-items: center;
}

.marquee__track img {
  width: 140px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  opacity: .9;
  box-shadow: 0 6px 18px rgba(31, 41, 55, .08);
}

@keyframes move {
  from {
    transform: translateX(0);
  }

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

/* Gallery tilt */
.gallery-tilt img {
  transform: perspective(600px) rotateX(0) rotateY(0);
  transition: transform .25s ease, box-shadow .25s ease;
}

.gallery-tilt img:hover {
  transform: perspective(600px) rotateX(2deg) rotateY(-2deg) scale(1.03);
  box-shadow: 0 20px 40px rgba(31, 41, 55, .2);
}


/* Card hover effect (applies to the article that has class "benefits") */
.benefits{
  transition: transform .25s ease, box-shadow .25s ease;
  will-change: transform;
}
.benefits:hover{
  transform: perspective(600px) rotateX(2deg) rotateY(-2deg) scale(1.03);
  box-shadow: 0 20px 40px rgba(31, 41, 55, .2);
}

@media (prefers-reduced-motion: reduce){
  .benefits{ transition: none; }
  .benefits:hover{ transform: none; box-shadow: 0 12px 24px rgba(31,41,55,.10); }
}


/* Skewed section */
.skewed {
  background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .9)), radial-gradient(120% 120% at 50% -20%, rgba(167, 139, 250, .18), transparent 60%);
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
}

.pricing {
  background: var(--surface);
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 10px 26px rgba(31, 41, 55, .08);
  text-align: center;
}

.pricing h3 {
  font-weight: 700;
  font-size: 1.125rem;
}

.pricing .price {
  font-weight: 700;
  font-size: 2rem;
  margin: .5rem 0 1rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pricing ul {
  color: #374151;
  line-height: 1.9;
}

.pricing--featured {
  border-color: #C4B5FD;
  box-shadow: 0 20px 40px rgba(99, 102, 241, .18);
  transform: translateY(-2px);
}

.star-wrap img { width: 100px; height: 100px; }

/* Posts */
.post {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(31, 41, 55, .06);
}

.post img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.post__body {
  padding: 1rem;
}

.post__body h3 {
  font-weight: 700;
  margin-bottom: .25rem;
}

/* CTA */
.cta {
  position: relative;
  padding: 4rem 0;
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
  background: radial-gradient(120% 120% at 50% -20%, rgba(96, 165, 250, .18), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .95));
}

.input {
  @apply px-4 py-2.5 rounded-md border text-sm;
  border-color: #E5E7EB;
  background: white;
}

/* Responsive tweaks */
@media (max-width: 980px) {
  .scene {
    height: 380px;
  }

  :root {
    --radius: 300px;
  }
}

@media (max-width: 620px) {
  :root {
    --radius: 240px;
  }

  .scene {
    height: 320px;
  }

  .marquee__track {
    gap: 2rem;
  }

  .card img {
    width: 88%;
    height: 88%;
  }
}

/* Tablet-friendly carousel sizing */
@media (max-width: 1200px){
  .carousel{ width: 480px; height: 320px; }
  :root{ --radius: 240px; }
  /* .card img{width: 40%; height: 40%} */
}
@media (max-width: 1024px){
  .carousel{ width: 420px; height: 300px; }
  :root{ --radius: 220px; }
  /* add some spacing when it stacks */
  .scene{ margin-bottom: 1rem; }
}
@media (max-width: 912px){
  .carousel{ width: 360px; height: 260px; }
  :root{ --radius: 190px; }
   .card img{width: 40%; height: 40%}
}


/* ===== Modal (contact) ===== */
.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.65);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 1rem;
}
.modal-overlay.active{ display: flex; }
.modal-panel{
  width: min(92vw, 420px);
  background: var(--surface);
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(31,41,55,.14);
  text-align: center;
  padding: 1.25rem 1.25rem 1.5rem;
}
.star-wrap{
  display: grid; place-items: center;
  width: 100px; height: 100px; margin: 0 auto;
  border-radius: 16px;
  /* background: radial-gradient(120% 120% at 30% 20%, rgba(178,233,226,.45), rgba(196,176,255,.35) 60%, rgba(255,255,255,.8) 100%); */
  background: none;
  box-shadow: 0 6px 18px rgba(31,41,55,.10), 0 0 0 1px rgba(255,255,255,.7) inset;
}
.icons-row{
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  margin-top: .75rem;
}
.social{
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 9999px;
  color: #9859d6;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,1));
  border: 1px solid #E5E7EB;
  box-shadow: 0 8px 20px rgba(31,41,55,.10);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease;
}
.social:hover{ transform: translateY(-2px); box-shadow: 0 12px 26px rgba(31,41,55,.14); }
.hint{ font-size: .75rem; color: #6B7280; margin-top: .5rem; }

