:root {
  --primary: #9c27b0;
  --accent: #f17e19;
  --nav-h: 72px;
}




.nav-logo {
  width: 40px; height: 40px; border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  outline: 3px solid rgba(156,39,176,.15);
}


/* Small screens: stack nav links under brand */
@media (max-width: 768px) {
  .top-nav { padding: 8px 12px; height: auto; }
  .nav-links {
    width: 100%;
    justify-content: center;
    gap: 14px;
    padding-top: 8px;
  }
}


body {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  color: #333;
  background: #fff;
  scroll-behavior: smooth;
  padding-top: var(--nav-h); /* prevent hero from sliding under fixed nav */
}

/* Navigation Bar */
.top-nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 5px rgba(0,0,0,.08);
  z-index: 1000;

  /* allow items to wrap when space is tight (prevents "Contact" truncation) */
  flex-wrap: wrap;
}


/* Brand styling */
.top-nav .brand {
  /* outline: 3px solid rgba(156,39,176,.15); */
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #580c76;
  padding: 6px 12px;
  border-radius: 9999px;
  /* background: linear-gradient(180deg, rgba(156,39,176,.10), rgba(156,39,176,.06)); */
  /* box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    0 2px 6px rgba(0,0,0,.06); */
  transition: transform .2s ease, box-shadow .2s ease;
}
.top-nav .brand:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.10); }

.top-nav .brand-name {
  font-weight: 600;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  letter-spacing: .3px;
  background: linear-gradient(90deg, #d0850e, #d19535);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;

  /* let the list grow and wrap instead of clipping the last item */
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 220px;
  flex-wrap: wrap;
}
.nav-links a {
  text-decoration: none;
  color: #333;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease;
  white-space: nowrap; /* keep words intact */
}
.nav-links a:hover { border-color: var(--accent); }


/* Hero Section */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: calc(100vh - 70px);
  background: linear-gradient(120deg, #f7f0e8, #ffffff);
  animation: fadeIn 2s ease-in-out;
}
.logo {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 5px solid var(--primary);
  animation: float 4s ease-in-out infinite;
}
.nav-logo {
  width: 50px;
  height: auto;
  border-radius: 50%;
}
.hero h1 {
  font-size: 3rem;
  margin: 10px 0;
}
.tagline {
  max-width: 420px;
  line-height: 1.5;
  color: #555;
  margin: 10px 0 20px;
}
.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 24px;
  background: var(--accent);
  color: #222;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 0 10px var(--accent);
  transition: transform 0.3s, box-shadow 0.3s;
}
.btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 20px var(--accent);
}

/* 
.features,
.faq {
  position: relative;
  padding: 80px 20px;
  background: url('background.png') center/cover no-repeat;
  color: #333;
}

.features::before,
.faq::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75); 
  backdrop-filter: blur(1px); 
  z-index: 0;
}

.features > *,
.faq > * {
  position: relative;
  z-index: 1; 
} 
*/

/* Wrap both sections in a parent for the shared background */
.features-faq-wrapper {
  position: relative;
  background: url('background.png') center/cover no-repeat fixed;
  /* aspect-ratio: 2 / 3; Maintain 2:3 ratio */
}

/* Overlay fade */
.features-faq-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(1px);
  z-index: 0;
}

/* Ensure both sections share the same stacking context */
.features,
.faq {
  position: relative;
  z-index: 1;
  padding: 80px 20px;
  background: none; /* no separate bg */
}


/* Features Section */
.features {
  padding: 80px 20px;
}
.features h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary);
}
/* Base: responsive cards while viewport is smaller */
/* Features grid — single source of truth */
.feature-grid{
  display: grid;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* default */
}

/* Large screens: exactly 4 columns and a wide, centered container */
@media (min-width: 1280px){
  .feature-grid{
    max-width: clamp(1100px, 92vw, 1500px);
    margin: 0 auto;
    grid-template-columns: repeat(4, minmax(0, 1fr)); /* lock to 4 */
  }
}

/* Premium stays full width inside same container */
.feature-card.premium{ grid-column: 1 / -1; }

.feature-card {
  background: #fff;
  border: 1px solid #eee;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.feature-card:hover {
  transform: translateY(0) scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.faq {
  padding: 80px 20px;
}
.faq h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary);
}
/* FAQ: readable white "glass" cards */
.faq {
  --faq-card-bg: rgba(255,255,255,0.88);
  --faq-card-border: rgba(0,0,0,0.06);
  --faq-card-shadow: 0 10px 30px rgba(0,0,0,0.10);
  --faq-card-shadow-hover: 0 16px 40px rgba(0,0,0,0.16);
}

/* remove the old underline separators */
.faq-item {
  border: none;
  margin: 0; /* we'll control spacing via gap below */
}

/* card styling */
.faq .faq-item {
  position: relative;
  z-index: 2; /* sit above the wrapper fade */
  background: linear-gradient(
      to bottom right,
      var(--faq-card-bg),
      rgba(255,255,255,0.82)
  );
  border: 1px solid var(--faq-card-border);
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: var(--faq-card-shadow);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .18s ease, box-shadow .18s ease;
}

/* subtle hover lift */
.faq .faq-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--faq-card-shadow-hover);
}

/* tidy header + spacing */
.faq .faq-item h3 {
  margin: 0 0 8px;
  font-weight: 800;
  color: #2b2b2b;
}

/* tighter body text for readability */
.faq .faq-item p {
  margin: 0;
  line-height: 1.55;
  color: #4a4a4a;
}

/* nice vertical rhythm for the list */
.faq {
  display: grid;
  gap: 16px;         /* space between cards */
  padding-top: 40px; /* leave room under the section title */
}

/* optional: a tiny accent bar on each card */
.faq .faq-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 18px 0 0 18px;
  background: linear-gradient(180deg, var(--primary), #b63dd0);
  opacity: .6;
}


/* Footer */
footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid #eee;
  background: #fff;
  color: #555;
  font-size: 0.875rem;
}
.social-links a {
  display: inline-block;
  margin: 0 8px;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  text-decoration: none;
}
.social-links a:hover {
  background: #7b1fa2;
}

/* Keyframe Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}


/* Team Section (shares the same background wrapper above, so no own bg) */
.team {
  position: relative;
  z-index: 1;               /* above the wrapper fade */
  padding: 80px 20px;
  scroll-margin-top: calc(var(--nav-h) + 8px);
}

.team h2 {
  text-align: center;
  margin-bottom: 36px;
  color: var(--primary);
}

/* Responsive grid: 5 cards, wraps nicely on small screens */
.team-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
}

/* Glass cards */
.team-card {
  background: linear-gradient(to bottom right, rgba(255,255,255,0.9), rgba(255,255,255,0.84));
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .18s ease, box-shadow .18s ease;
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.16);
}

/* Avatar with consistent ratio and soft ring */
.team-card .avatar {
  width: 100%;
  aspect-ratio: 1 / 1;               /* perfect square */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  outline: 4px solid rgba(156,39,176,0.12);
  margin-bottom: 14px;
}
.team-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;                 /* crop nicely */
}

/* Text styles */
.team-card .name {
  margin: 6px 0 2px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #2c2c2c;
}
.team-card .title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #7a7a7a;
}
.team-card .bio {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #444;
}

/* Social links */
.team-card .links {
  display: flex;
  gap: 10px;
}
.team-card .links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.team-card .links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(156,39,176,0.4);
  background: #7b1fa2;
}

/* Tighten spacing on smaller screens */
@media (max-width: 768px) {
  .team { padding: 60px 16px; }
}


/* Shared heading style for main sections */
section h2 {
  position: relative;
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
  font-family: 'Space Grotesk', sans-serif;
  color: #6a1b9a; /* bold purple tone */
  letter-spacing: 1px;
}

/* Decorative underline using a pseudo-element */
section h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  width: 340px;
  height: 4px;
  background: linear-gradient(90deg, #ff7eb3, #ff758c, #ff7eb3);
  border-radius: 2px;
}

/* Optional background accent behind text */
section h2::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-2deg);
  width: 260px;
  height: 60px;
  background: rgba(255, 215, 255, 0.3);
  filter: blur(20px);
  border-radius: 50%;
}

/* Add subtle entrance animation */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

section h2 {
  animation: fadeSlideUp 0.6s ease-out both;
}


/* Base look */
.section-title {
  position: relative;
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 40px;
  color: #6a1b9a;              /* rich purple */
  letter-spacing: .5px;

  /* hidden initial state for scroll reveal */
  opacity: 0;
  transform: translateY(14px);
  will-change: transform, opacity;
}

/* Subtle glow + gradient bar */
.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  width: 72px;
  height: 4px;
  background: linear-gradient(90deg, #ff7eb3, #ff758c, #ff7eb3);
  border-radius: 2px;
}
.section-title::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-2deg);
  width: 260px; height: 58px;
  background: rgba(255, 215, 255, 0.35);
  filter: blur(22px);
  border-radius: 50%;
}

/* Reveal animation */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.section-title.visible {
  animation: fadeSlideUp .6s cubic-bezier(.22,1,.36,1) forwards;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .section-title { opacity: 1; transform: none; }
  .section-title.visible { animation: none; }
}



/* 1) Smooth scroll on the document element (works cross-browser) */
html { scroll-behavior: smooth; }

/* 2) Offset anchors so they land below your fixed header */
.features, .faq, .team, footer#contact {
  scroll-margin-top: calc(var(--nav-h) + 10px);
}

/* 3) Animated underline for the active nav item */
.nav-links a { position: relative; }
.nav-links a::after{
  content:"";
  position:absolute; left:0; right:0; bottom:-6px; height:3px;
  background: var(--accent);
  transform: scaleX(0); transform-origin:left;
  transition: transform .25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }



.feature-card.premium { 
  grid-column: 1 / -1; 
  background: linear-gradient(180deg, rgba(156,39,176,.08), #fff);
  border: 1px solid rgba(156,39,176,.18);
  position: relative;
}




.feature-card .badge{
  position:absolute; top:14px; right:14px;
  background:#7c2aa6; color:#fff; font-weight:700;
  padding:6px 10px; border-radius:9999px; font-size:.8rem;
}

/* Hover gallery (for all feature cards) */
.feature-card { position: relative; overflow: visible; }
/* Replaces previous .gallery-popover rules */
/* ===== Hover Gallery (portal) ===== */
.gallery-popover{
  position: fixed;
  z-index: 99999;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* responsive full width */
  gap: 10px;

  /* size & containment */
  width: auto;                              /* JS may override to ~card width */
  max-width: min(95vw, 720px);              /* hard upper bound */
  max-height: 60vh;                         /* never too tall */
  overflow: auto;

  /* visuals */
  padding: 12px;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
  backdrop-filter: blur(6px);

  /* animation */
  opacity: 0;
  transform: translateY(8px) scale(.98);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.gallery-popover.show{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}



/* little pointer arrow */
.gallery-popover::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-10px;
  transform:translateX(-50%);
  border:10px solid transparent;
  border-top-color:#fff;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.08));
}

/* images: full, not cropped */
.gallery-popover img{
  width: 100%;
  height: auto;              /* keep natural aspect */
  max-height: 500px;         /* compact so it doesn't blanket the card */
  object-fit: contain;       /* show the whole screenshot */
  border-radius: 10px;
  background:#f6f6f6;        /* subtle letterbox fill */
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

/* helpers (used by JS if needed) */
.gallery-popover.single { grid-template-columns: 1fr; }
.gallery-popover.one-row { grid-template-columns: repeat(2, 1fr); }
/* force exact columns when you want perfectly even rows */
.gallery-popover.cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
.gallery-popover.cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
.gallery-popover.cols-4 { grid-template-columns: repeat(4, 1fr) !important; }

/* keep cards from creating odd stacking contexts */
.feature-card { isolation: isolate; }

/* small screens: arrow placement stays correct; no other changes needed */
@media (max-width: 640px){
  .gallery-popover{
    max-width: 96vw;
  }
}


/* --- premium popup: wider & bigger cells --- */
@media (min-width: 1024px) {
  .gallery-popover.premium-mode {
    max-width: min(98vw, 1400px);           /* was 720px */
    grid-template-columns: repeat(5, minmax(220px, 1fr));
    gap: 14px;
    padding: 14px;
  }
  .gallery-popover.premium-mode img {
    max-height: 640px;                      /* was 500px (or lower before) */
  }
}

/* Coming Soon interstitial */
.coming-soon{
  position: relative;
  padding: 64px 20px;
  background:
    radial-gradient(1200px 500px at 15% 0%, rgba(156,39,176,.08), transparent 60%),
    radial-gradient(1200px 500px at 85% 100%, rgba(241,126,25,.08), transparent 60%);
  z-index: 1;
}

/* Card layout */
.cs-card{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr; /* plenty of room for copy */
  gap: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), #fff);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(0,0,0,.12);
  padding: 26px;
  align-items: center;
  overflow: hidden;
}

/* Image wrapper: never crop */
.cs-art{
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  box-shadow: inset 0 0 0 4px rgba(156,39,176,.08), 0 10px 30px rgba(0,0,0,.10);
  padding: 14px;                 /* inner breathing room so the image doesn't touch the frame */
  aspect-ratio: 16/11;           /* controls overall height; tweak if you want taller/shorter */
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-art img{
  max-width: 100%;
  /* max-height: 100%; */
  object-fit: contain;           /* <-- no cropping */
  border-radius: 12px;
}

/* Right side */
.cs-copy{ padding: 6px 4px; }

.cs-title{
  position: relative;
  margin: 0 0 10px;
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #6a1b9a;
  line-height: 1.2;
}
/* .cs-title::after{
  content:"";
  position:absolute;
  left:0; bottom:-8px;
  width: 84px; height: 6px;
  background: linear-gradient(90deg, #ff7eb3, #ff758c, #ff7eb3);
  border-radius: 999px;
} */
.cs-title .dot{ opacity:.7; }
.pill{
  display:inline-block;
  font-size:.8rem;
  font-weight:800;
  color:#fff;
  background:#7c2aa6;
  padding:.25rem .6rem;
  border-radius:999px;
  margin-right:.5rem;
  vertical-align: middle;
}

.cs-lead{
  margin: 18px 0 12px;
  color:#4a4a4a;
  line-height:1.55;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
}

/* Bulleted points with icons */
.cs-points{
  list-style:none;
  margin: 0 0 16px;
  padding: 0;
  display:grid;
  gap:10px;
}
.cs-points li{
  position:relative;
  padding-left:28px;
  color:#3d3d3d;
}
.cs-points li::before{
  content:"\f00c"; /* Font Awesome check (since you're already loading FA) */
  font-family:"Font Awesome 6 Free";
  font-weight:900;
  position:absolute;
  left:0; top:0;
}

/* Actions */
.cs-actions{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.cs-btn{
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(241,126,25,.35);
}
.cs-note{ color:#777; }

/* Entrance like other sections */
.coming-soon .cs-card{
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.coming-soon.visible .cs-card{ opacity:1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1100px){
  .cs-card{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px){
  .cs-card{ grid-template-columns: 1fr; padding: 18px; }
  .cs-art{ aspect-ratio: 16/12; }
  .cs-title::after{ left:0; }
}
