/* ==========================================================================
   THE ARTISAN OF GLIMMITH - ZEN SANCTUARY DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

:root {
  --color-bg: #F9F6EE;
  --color-bg-alt: #F5EFE6;
  --color-card: #FFFDF9;
  --color-card-border: rgba(140, 94, 60, 0.12);
  
  --color-text-main: #2C221E;
  --color-text-muted: #7A6558;
  --color-text-light: #9C887A;

  --color-accent-primary: #8C5E3C;
  --color-accent-secondary: #D4AF37;
  --color-glow: rgba(212, 175, 55, 0.35);
  
  --accent-pink: #F5B0C2;
  --accent-orange: #F39C59;
  --accent-teal: #7BAEB0;

  /* UI Tokens */
  --shadow-sm: 0 4px 14px rgba(44, 34, 30, 0.04);
  --shadow-md: 0 12px 32px rgba(44, 34, 30, 0.08);
  --shadow-lg: 0 20px 48px rgba(44, 34, 30, 0.14);
  
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-pill: 9999px;
  
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'SF Pro Rounded', 'Segoe UI', sans-serif;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Floating Golden Sparkles Container */
.sparkles-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.sparkle-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--color-accent-secondary);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--color-accent-secondary), 0 0 24px var(--color-accent-secondary);
  opacity: 0.6;
  animation: sparkleFloat 8s infinite ease-in-out alternate;
}

@keyframes sparkleFloat {
  0% { transform: translateY(0) scale(0.8); opacity: 0.2; }
  50% { opacity: 0.8; }
  100% { transform: translateY(-40px) scale(1.3); opacity: 0.3; }
}

/* Background Floating Screenshots Layer */
.bg-ambient-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-floating-card {
  position: absolute;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  opacity: 0.14;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: floatAnim 14s infinite ease-in-out alternate;
}

.bg-floating-card.card-1 {
  width: 320px;
  top: 5%;
  left: -40px;
  transform: rotate(-14deg) scale(1.1);
}

.bg-floating-card.card-2 {
  width: 340px;
  top: 25%;
  right: -50px;
  transform: rotate(12deg) scale(1.15);
  animation-delay: -4s;
}

.bg-floating-card.card-3 {
  width: 300px;
  bottom: 10%;
  left: 5%;
  transform: rotate(-8deg) scale(1);
  animation-delay: -8s;
}

.bg-floating-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

@keyframes floatAnim {
  0% { transform: translateY(0px) rotate(-14deg) scale(1.1); }
  100% { transform: translateY(-28px) rotate(-12deg) scale(1.12); }
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: var(--color-bg-alt);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-card-border);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text-main);
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--color-text-main);
}

/* Buttons */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--color-accent-primary), var(--color-text-main));
  color: #FFFFFF;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 8px 24px var(--color-glow);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.btn-cta:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 12px 36px var(--color-glow);
}

.btn-cta svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Hero Section */
.hero {
  padding-top: 140px;
  padding-bottom: 90px;
  position: relative;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-accent-secondary);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1.12;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-title span {
  position: relative;
  display: inline-block;
  color: var(--color-accent-primary);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  max-width: 540px;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--color-text-light);
}

/* Phone Frame Mockup */
.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  position: relative;
  width: 300px;
  border-radius: 44px;
  padding: 12px;
  background: #1E2538;
  box-shadow: 0 0 50px var(--color-glow), var(--shadow-lg);
  border: 4px solid var(--color-accent-primary);
  animation: auraPulse 4s infinite ease-in-out alternate;
}

@keyframes auraPulse {
  0% { box-shadow: 0 0 30px var(--color-glow); }
  100% { box-shadow: 0 0 60px var(--color-glow); }
}

.phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #1E2538;
  border-radius: 12px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  border-radius: 34px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  background: var(--color-bg);
  position: relative;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Floating Decorative Tile Cards */
.floating-tile {
  position: absolute;
  background: var(--color-card);
  border: 1.5px solid var(--color-card-border);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5;
  color: var(--color-text-main);
}

.floating-tile.tile-1 {
  top: 15%;
  left: -30px;
  background: var(--accent-pink);
  transform: rotate(-6deg);
}

.floating-tile.tile-2 {
  bottom: 20%;
  right: -30px;
  background: var(--color-accent-secondary);
  color: #1E2538;
  transform: rotate(8deg);
}

/* Section Common Styling */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px auto;
}

.section-tag {
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-accent-primary);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-text-main);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

/* Features Section */
.features {
  padding: 90px 0;
  position: relative;
}

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

.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent-primary);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--color-bg-alt);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
  border: 1px solid var(--color-card-border);
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.98rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* FAQ Accordion */
.faq {
  padding: 90px 0;
  background: var(--color-bg-alt);
}

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

.faq-item {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 24px 28px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease-out;
  padding: 0 28px;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 240px;
  padding-bottom: 24px;
}

/* Footer */
.footer {
  background: var(--color-text-main);
  color: var(--color-card);
  padding: 60px 0 30px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.footer-brand p {
  opacity: 0.75;
  max-width: 360px;
  font-size: 0.95rem;
}

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--color-accent-secondary);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 16px;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group, .hero-meta {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: 2.2rem;
  }
}
