@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;700&family=Playfair+Display:ital,wght@0,700;1,700&family=Cinzel:wght@700&family=Great+Vibes&display=swap');

:root {
  --bg-color: #030303;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover-border: rgba(255, 255, 255, 0.2);
  --color-primary: #a855f7;
  --color-cyan: #06b6d4;
  --color-pink: #ec4899;
  --color-gold: #fbbf24;
  --text-muted: #a3a3a3;
  --text-light: #f5f5f5;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  
  /* Live Simulator CSS variables */
  --text-x: 0px;
  --text-y: -10px;
  --text-size: 65px;
  --text-color: #06b6d4;
  --text-font: 'Space Grotesk', sans-serif;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  color: var(--text-light);
  font-family: var(--font-heading);
  overflow-x: hidden;
}

/* ================= BACKGROUND GLOWS ================= */
.glow-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
  mix-blend-mode: screen;
  animation: float 20s infinite alternate ease-in-out;
}

.glow-orb-1 {
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 80%);
  top: -150px;
  right: -100px;
}

.glow-orb-2 {
  background: radial-gradient(circle, var(--color-cyan) 0%, transparent 80%);
  top: 45%;
  left: -200px;
  animation-delay: -7s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 120px) scale(1.15); }
  100% { transform: translate(-40px, -60px) scale(0.9); }
}

/* ================= CONTAINER & UTILITIES ================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--color-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-cyan);
  margin-bottom: 12px;
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-head h2 {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-cyan) 0%, #0369a1 100%);
  color: #fff;
  border: none;
  box-shadow: 0 8px 24px -6px rgba(6, 182, 212, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(6, 182, 212, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--card-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ================= NAVBAR ================= */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 0;
  z-index: 99;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
}

.nav-link:hover {
  color: #fff;
}

.nav-cta {
  padding: 10px 20px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 100;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
}

/* ================= HERO SECTION ================= */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 80px;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--color-cyan);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 8vw, 4.4rem);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

/* ================= INTERACTIVE SANDBOX ================= */
.sandbox-wrapper {
  perspective: 1200px;
}

.sandbox-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 20px;
  backdrop-filter: blur(24px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s ease;
}

.preview-area {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.preview-fg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 3;
}

.preview-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% + var(--text-x)), calc(-50% + var(--text-y)));
  font-size: var(--text-size);
  color: var(--text-color);
  font-family: var(--text-font);
  font-weight: 800;
  letter-spacing: 0.05em;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
  text-shadow: 0 0 15px var(--text-color), 0 0 5px rgba(255, 255, 255, 0.5);
  user-select: none;
}

.controls-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.control-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sim-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: #fff;
  padding: 10px 14px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}

.sim-input:focus {
  border-color: var(--color-cyan);
}

.editor-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sim-range {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: var(--card-border);
  border-radius: 2px;
  outline: none;
}

.sim-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-cyan);
  cursor: pointer;
  transition: transform 0.1s;
}

.sim-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.selector-row {
  display: flex;
  gap: 8px;
}

.style-selector input[type="radio"] {
  display: none;
}

.style-selector label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.01);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.style-selector input[type="radio"]:checked + label {
  background: var(--color-cyan);
  border-color: var(--color-cyan);
  color: #000;
  box-shadow: 0 4px 10px rgba(6, 182, 212, 0.3);
}

.color-selector input[type="radio"] {
  display: none;
}

.color-swatch {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.color-selector input[type="radio"]:checked + .color-swatch {
  transform: scale(1.15);
  border-color: #fff;
}

.bg-cyan { background-color: var(--color-cyan); }
.bg-pink { background-color: var(--color-pink); }
.bg-gold { background-color: var(--color-gold); }

/* ================= FEATURES SECTION ================= */
.features-section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 40px 30px;
  backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--card-hover-border);
  box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.4);
}

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

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.card-icon.cyan { background: rgba(6, 182, 212, 0.1); color: var(--color-cyan); }
.card-icon.pink { background: rgba(236, 72, 153, 0.1); color: var(--color-pink); }
.card-icon.gold { background: rgba(251, 191, 36, 0.1); color: var(--color-gold); }
.card-icon.purple { background: rgba(168, 85, 247, 0.1); color: var(--color-primary); }

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ================= GALLERY SHOWCASE ================= */
.gallery-section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.gallery-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-card:hover {
  transform: translateY(-5px);
  border-color: var(--card-hover-border);
}

.img-wrapper {
  position: relative;
  aspect-ratio: 4/5;
  width: 100%;
  overflow: hidden;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.gallery-card:hover .img-wrapper img {
  transform: scale(1.03);
}

.gallery-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--color-cyan);
  text-shadow: 0 0 15px rgba(6, 182, 212, 0.6);
  z-index: 1;
}

.gallery-text.text-pink {
  color: var(--color-pink);
  text-shadow: 0 0 15px rgba(236, 72, 153, 0.6);
}

.gallery-text.text-gold {
  color: var(--color-gold);
  text-shadow: 0 0 15px rgba(251, 191, 36, 0.6);
}

/* Font helpers for demo texts */
.font-tech { font-family: 'Space Grotesk', sans-serif; text-transform: uppercase; }
.font-serif { font-family: 'Cinzel', serif; }
.font-script { font-family: 'Great Vibes', cursive; font-size: 4rem; font-weight: normal; }

/* Apply live on-hover clip-path masking to make the text appear Behind the portrait */
.img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: inherit;
  z-index: 2;
}

.gallery-info {
  padding: 24px;
}

.gallery-info h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.gallery-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ================= FAQ SECTION ================= */
.faq-section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
}

.faq-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.faq-trigger i {
  font-size: 1rem;
  color: var(--text-muted);
  transition: transform 0.3s;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 24px;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-card.active .faq-trigger i {
  transform: rotate(45deg);
  color: var(--color-cyan);
}

/* ================= FOOTER ================= */
.footer {
  background-color: #010102;
  border-top: 1px solid var(--card-border);
  padding: 80px 0 40px;
  position: relative;
  z-index: 2;
}

.footer-grid-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.brand-widget p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 16px;
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-email {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.footer-email a {
  color: var(--color-cyan);
  font-weight: 500;
}

.footer-widget h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s, padding-left 0.2s;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.copyright {
  border-top: 1px solid var(--card-border);
  padding-top: 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ================= RESPONSIVE ================= */
@media(max-width: 991px) {
  .navbar-inner {
    position: relative;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 24px;
    right: 24px;
    background: rgba(3, 3, 3, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 30px;
    gap: 20px;
    z-index: 100;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-content {
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  .footer-grid-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media(max-width: 576px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .editor-row {
    grid-template-columns: 1fr;
  }
  .section-head h2 {
    font-size: 2rem;
  }
  .gallery-text {
    font-size: 2.2rem;
  }
  .gallery-text.font-script {
    font-size: 3rem;
  }
}