/* ============================================
   UNDANGAN DIGITAL STUDIO - Main Stylesheet
   Aesthetic: Luxury Editorial Boutique
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&display=swap');

:root {
  --cream: #F9F5F0;
  --cream-dark: #EDE8E0;
  --ivory: #FAF8F5;
  --obsidian: #1A1614;
  --charcoal: #2D2926;
  --warm-gray: #7A726A;
  --muted: #B5AFA8;
  --gold: #C8A96A;
  --gold-light: #E8D5A8;
  --rose: #D4A0A0;
  --white: #FFFFFF;
  
  --font-display: 'Playfair Display', Georgia, serif;
  --font-elegant: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  
  --radius: 4px;
  --radius-lg: 12px;
  --shadow-sm: 0 2px 8px rgba(26,22,20,0.06);
  --shadow-md: 0 8px 32px rgba(26,22,20,0.10);
  --shadow-lg: 0 24px 64px rgba(26,22,20,0.14);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--charcoal);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.2; color: var(--obsidian); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

.elegant { font-family: var(--font-elegant); }
.gold-text { color: var(--gold); }
.muted { color: var(--warm-gray); }

/* ============ NAVIGATION ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(249, 245, 240, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--cream-dark);
  transition: var(--transition);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 70px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 600;
  color: var(--obsidian); text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--warm-gray); text-decoration: none;
  font-size: 0.875rem; font-weight: 400; letter-spacing: 0.04em;
  transition: color 0.2s; text-transform: uppercase;
}
.nav-links a:hover, .nav-links a.active { color: var(--obsidian); }
.nav-cta {
  background: var(--obsidian); color: var(--cream) !important;
  padding: 0.5rem 1.25rem !important; border-radius: var(--radius);
  text-transform: none !important; letter-spacing: 0 !important;
  font-weight: 500 !important;
}
.nav-cta:hover { background: var(--charcoal); color: var(--cream) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--obsidian); margin: 5px 0; transition: var(--transition); }

/* ============ HERO ============ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: var(--cream);
  padding-top: 70px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(200,169,106,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(212,160,160,0.06) 0%, transparent 50%);
}
.hero-inner {
  max-width: 1280px; margin: 0 auto; padding: 4rem 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  position: relative; z-index: 1;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.5rem;
  font-weight: 500;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ''; flex: 1; height: 1px; background: var(--gold-light); width: 30px;
}
.hero-title {
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-size: 1.05rem; color: var(--warm-gray); margin-bottom: 2.5rem;
  line-height: 1.8; font-weight: 300;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2rem; margin-top: 3rem;
  padding-top: 2rem; border-top: 1px solid var(--cream-dark);
}
.stat-num {
  font-family: var(--font-display); font-size: 1.8rem;
  color: var(--obsidian); font-weight: 500;
}
.stat-label { font-size: 0.75rem; color: var(--warm-gray); text-transform: uppercase; letter-spacing: 0.1em; }
.hero-visual {
  position: relative; display: flex; justify-content: center; align-items: center;
}
.hero-phone-frame {
  width: 260px; height: 520px; background: var(--obsidian);
  border-radius: 36px; padding: 10px;
  box-shadow: 0 40px 80px rgba(26,22,20,0.3), 0 0 0 1px rgba(200,169,106,0.2);
  position: relative; z-index: 2;
}
.hero-phone-screen {
  width: 100%; height: 100%; background: var(--cream);
  border-radius: 28px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 1.5rem; text-align: center;
}
.hero-phone-screen .demo-title {
  font-family: var(--font-display); font-size: 1.1rem;
  color: var(--obsidian); margin-top: 0.5rem;
}
.hero-phone-screen .demo-sub { font-size: 0.7rem; color: var(--warm-gray); }
.hero-phone-screen .demo-date { font-size: 0.65rem; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.5rem; }
.demo-rings { font-size: 2rem; margin-bottom: 0.5rem; }
.hero-float-card {
  position: absolute; background: white; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 0.875rem 1.25rem;
  display: flex; align-items: center; gap: 0.75rem; font-size: 0.8rem;
  animation: float 3s ease-in-out infinite;
}
.hero-float-card.card-1 { top: 10%; right: -5%; }
.hero-float-card.card-2 { bottom: 20%; left: -10%; animation-delay: 1.5s; }
.float-icon { font-size: 1.5rem; }
.float-text strong { display: block; font-weight: 500; font-size: 0.875rem; }
.float-text span { color: var(--warm-gray); font-size: 0.75rem; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 500;
  text-decoration: none; cursor: pointer; border: none;
  transition: var(--transition); letter-spacing: 0.02em; white-space: nowrap;
}
.btn-primary { background: var(--obsidian); color: var(--cream); }
.btn-primary:hover { background: var(--charcoal); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(26,22,20,0.2); }
.btn-gold { background: var(--gold); color: var(--obsidian); }
.btn-gold:hover { background: #B8943A; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--obsidian); border: 1.5px solid var(--obsidian); }
.btn-outline:hover { background: var(--obsidian); color: var(--cream); }
.btn-wa { background: #25D366; color: white; }
.btn-wa:hover { background: #1fb855; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37,211,102,0.3); }
.btn-ghost { background: transparent; color: var(--warm-gray); border: 1.5px solid var(--cream-dark); }
.btn-ghost:hover { border-color: var(--obsidian); color: var(--obsidian); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ============ SECTIONS ============ */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-eyebrow {
  display: inline-block; font-size: 0.7rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 1rem;
}
.section-title { margin-bottom: 1rem; }
.section-sub { color: var(--warm-gray); font-size: 1.05rem; max-width: 560px; margin: 0 auto; font-weight: 300; }

/* ============ CATEGORIES ============ */
.cat-grid { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.cat-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  padding: 1.25rem 1.75rem; background: var(--cream);
  border-radius: var(--radius-lg); border: 1.5px solid var(--cream-dark);
  text-decoration: none; transition: var(--transition); cursor: pointer;
  color: var(--charcoal);
}
.cat-card:hover, .cat-card.active {
  border-color: var(--gold); background: white;
  box-shadow: var(--shadow-sm);
}
.cat-icon { font-size: 1.75rem; }
.cat-name { font-size: 0.8rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--charcoal); }
.cat-count { font-size: 0.7rem; color: var(--warm-gray); }

/* ============ TEMPLATE CARDS ============ */
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.template-card {
  background: white; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: var(--transition); border: 1px solid var(--cream-dark);
  display: flex; flex-direction: column;
}
.template-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
}
.card-image {
  position: relative; overflow: hidden;
  aspect-ratio: 9/14; background: var(--cream);
}
.card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.template-card:hover .card-image img { transform: scale(1.03); }
.card-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--muted); gap: 0.5rem;
}
.card-placeholder-icon { font-size: 2.5rem; opacity: 0.4; }
.card-overlay {
  position: absolute; inset: 0;
  background: rgba(26,22,20,0); transition: background 0.3s;
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
}
.template-card:hover .card-overlay { background: rgba(26,22,20,0.35); }
.card-overlay .btn { opacity: 0; transform: translateY(8px); transition: all 0.3s; }
.template-card:hover .card-overlay .btn { opacity: 1; transform: translateY(0); }
.card-badge {
  position: absolute; top: 1rem; left: 1rem;
  padding: 0.3rem 0.75rem; border-radius: 100px;
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
}
.badge-new { background: var(--obsidian); color: var(--cream); }
.badge-bestseller { background: var(--gold); color: var(--obsidian); }
.badge-promo { background: #E07070; color: white; }
.badge-featured { background: var(--rose); color: var(--obsidian); }

.card-body { padding: 0.875rem; flex: 1; display: flex; flex-direction: column; }
.card-code { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.25rem; }
.card-name { font-family: var(--font-display); font-size: 0.9rem; font-weight: 500; color: var(--obsidian); margin-bottom: 0.5rem; }
.card-category { font-size: 0.75rem; color: var(--warm-gray); margin-bottom: auto; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--cream-dark); }
.card-price { display: flex; flex-direction: column; }
.price-normal { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--obsidian); }
.price-promo { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: #E07070; }
.price-old { font-size: 0.75rem; color: var(--muted); text-decoration: line-through; }

/* ============ DETAIL PAGE ============ */
.detail-grid { display: grid; grid-template-columns: 1fr 420px; gap: 3rem; align-items: start; }
.detail-image-main {
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 9/14; background: var(--cream);
  box-shadow: var(--shadow-md);
}
.detail-image-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; }
.gallery-thumb {
  width: 72px; height: 72px; border-radius: 8px;
  overflow: hidden; cursor: pointer; border: 2px solid transparent;
  transition: var(--transition);
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--gold); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-sticky { position: sticky; top: 90px; }
.detail-code { font-size: 0.7rem; color: var(--gold); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.75rem; }
.detail-title { margin-bottom: 1rem; }
.detail-category { display: inline-block; background: var(--cream); color: var(--warm-gray); padding: 0.3rem 1rem; border-radius: 100px; font-size: 0.75rem; margin-bottom: 1.5rem; }
.detail-price-box { background: var(--cream); border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 1.5rem; }
.detail-price-label { font-size: 0.75rem; color: var(--warm-gray); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.25rem; }
.detail-price { font-family: var(--font-display); font-size: 2rem; font-weight: 500; color: var(--obsidian); }
.detail-price-promo { color: #E07070; }
.detail-price-original { font-size: 1rem; color: var(--muted); text-decoration: line-through; margin-left: 0.5rem; }
.detail-features { margin: 1.5rem 0; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.feature-list li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: var(--charcoal); }
.feature-list li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; }
.detail-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.sticky-bar-mobile {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: white; padding: 1rem 1.25rem;
  box-shadow: 0 -4px 24px rgba(26,22,20,0.12);
  border-top: 1px solid var(--cream-dark);
}

/* ============ FEATURES SECTION ============ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.feature-card {
  padding: 2rem; background: var(--cream);
  border-radius: var(--radius-lg); text-align: center;
  border: 1px solid var(--cream-dark);
  transition: var(--transition);
}
.feature-card:hover { background: white; box-shadow: var(--shadow-sm); }
.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-title { font-family: var(--font-display); font-size: 1rem; margin-bottom: 0.5rem; }
.feature-desc { font-size: 0.875rem; color: var(--warm-gray); line-height: 1.7; font-weight: 300; }

/* ============ PROCESS ============ */
.process-steps { display: flex; gap: 0; position: relative; }
.process-steps::before {
  content: ''; position: absolute; top: 24px; left: 0; right: 0; height: 1px;
  background: var(--cream-dark); z-index: 0;
}
.process-step { flex: 1; text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--cream); border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 500;
  color: var(--gold); margin: 0 auto 1rem; background: var(--ivory);
}
.step-title { font-size: 0.875rem; font-weight: 500; color: var(--obsidian); margin-bottom: 0.25rem; }
.step-desc { font-size: 0.78rem; color: var(--warm-gray); }

/* ============ TESTIMONIALS ============ */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testi-card {
  background: var(--cream); border-radius: var(--radius-lg);
  padding: 1.75rem; border: 1px solid var(--cream-dark);
  transition: var(--transition);
}
.testi-card:hover { background: white; box-shadow: var(--shadow-sm); }
.testi-stars { color: var(--gold); font-size: 0.875rem; margin-bottom: 1rem; letter-spacing: 0.1em; }
.testi-text { font-size: 0.9rem; color: var(--charcoal); line-height: 1.8; margin-bottom: 1.25rem; font-style: italic; font-family: var(--font-elegant); font-size: 1.05rem; font-weight: 300; }
.testi-author { display: flex; align-items: center; gap: 0.75rem; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold-light); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); color: var(--gold); font-size: 1rem;
}
.testi-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testi-name { font-size: 0.875rem; font-weight: 500; }
.testi-event { font-size: 0.75rem; color: var(--warm-gray); }

/* ============ FAQ ============ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--cream-dark); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 0; cursor: pointer; gap: 1rem;
  font-weight: 500; font-size: 0.95rem; color: var(--obsidian);
  transition: color 0.2s;
}
.faq-q:hover { color: var(--gold); }
.faq-icon { flex-shrink: 0; color: var(--gold); font-size: 1.25rem; transition: transform 0.3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s;
  font-size: 0.9rem; color: var(--warm-gray); line-height: 1.8;
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 1.25rem; }

/* ============ FOOTER ============ */
.footer {
  background: var(--obsidian); color: var(--muted);
  padding: 4rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer-brand-name { font-family: var(--font-display); font-size: 1.2rem; color: var(--cream); margin-bottom: 1rem; font-weight: 500; }
.footer-brand-name span { color: var(--gold); }
.footer-brand-desc { font-size: 0.85rem; line-height: 1.8; margin-bottom: 1.25rem; }
.footer-socials { display: flex; gap: 0.75rem; }
.footer-social {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); text-decoration: none; font-size: 0.85rem;
  transition: var(--transition);
}
.footer-social:hover { border-color: var(--gold); color: var(--gold); }
.footer-col-title { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--cream); margin-bottom: 1.25rem; font-weight: 500; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 0.8rem; }

/* ============ CTA BANNER ============ */
.cta-banner {
  background: var(--obsidian); border-radius: var(--radius-lg);
  padding: 4rem 3rem; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(200,169,106,0.15) 0%, transparent 70%);
}
.cta-banner-title { color: var(--cream); font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 1rem; position: relative; }
.cta-banner-sub { color: var(--muted); margin-bottom: 2rem; position: relative; font-weight: 300; }

/* ============ FILTERS ============ */
.catalog-filters {
  background: white; border-radius: var(--radius-lg);
  padding: 1.5rem; margin-bottom: 2rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--cream-dark);
}
.filters-row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end; }
.filter-group { display: flex; flex-direction: column; gap: 0.4rem; flex: 1; min-width: 140px; }
.filter-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--warm-gray); font-weight: 500; }
.filter-select, .filter-input {
  background: var(--cream); border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius); padding: 0.6rem 0.875rem;
  font-family: var(--font-body); font-size: 0.875rem; color: var(--charcoal);
  outline: none; transition: border-color 0.2s; width: 100%;
}
.filter-select:focus, .filter-input:focus { border-color: var(--gold); }

/* ============ FORMS ============ */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.8rem; font-weight: 500; color: var(--charcoal); margin-bottom: 0.4rem; letter-spacing: 0.02em; }
.form-label span { color: #E07070; }
.form-control {
  width: 100%; background: var(--cream); border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius); padding: 0.75rem 1rem;
  font-family: var(--font-body); font-size: 0.9rem; color: var(--charcoal);
  outline: none; transition: border-color 0.2s;
}
.form-control:focus { border-color: var(--gold); background: white; }
.form-textarea { min-height: 100px; resize: vertical; }
.form-hint { font-size: 0.75rem; color: var(--warm-gray); margin-top: 0.25rem; }

/* ============ MODAL ============ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(26,22,20,0.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
  padding: 1rem;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: white; border-radius: var(--radius-lg);
  padding: 2rem; max-width: 500px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(20px); transition: transform 0.3s;
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; }
.modal-title { font-family: var(--font-display); font-size: 1.3rem; }
.modal-close { background: none; border: none; cursor: pointer; color: var(--warm-gray); font-size: 1.5rem; padding: 0; line-height: 1; }
.modal-close:hover { color: var(--obsidian); }

/* ============ TOAST ============ */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 300; display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
  background: var(--obsidian); color: var(--cream);
  padding: 0.875rem 1.25rem; border-radius: var(--radius-lg);
  font-size: 0.875rem; box-shadow: var(--shadow-md);
  transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  max-width: 300px; display: flex; align-items: center; gap: 0.5rem;
}
.toast.show { transform: translateX(0); }
.toast.success { border-left: 3px solid #25D366; }
.toast.error { border-left: 3px solid #E07070; }

/* ============ BREADCRUMB ============ */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--warm-gray); margin-bottom: 2rem; }
.breadcrumb a { color: var(--warm-gray); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: var(--muted); }

/* ============ PAGINATION ============ */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; flex-wrap: wrap; }
.page-btn {
  min-width: 40px; height: 40px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: var(--cream); border: 1.5px solid var(--cream-dark);
  color: var(--charcoal); text-decoration: none; font-size: 0.875rem;
  transition: var(--transition); cursor: pointer;
}
.page-btn:hover, .page-btn.active { background: var(--obsidian); color: var(--cream); border-color: var(--obsidian); }
.page-btn.disabled { opacity: 0.4; pointer-events: none; }

/* ============ EMPTY STATE ============ */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-icon { font-size: 3rem; opacity: 0.3; margin-bottom: 1rem; }
.empty-title { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 0.75rem; }
.empty-desc { color: var(--warm-gray); font-size: 0.9rem; margin-bottom: 2rem; }

/* ============ LOADING ============ */
.skeleton { background: linear-gradient(90deg, var(--cream) 25%, var(--cream-dark) 50%, var(--cream) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============ WA FLOAT ============ */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  text-decoration: none; font-size: 1.5rem;
  transition: var(--transition); animation: wa-pulse 2s infinite;
}
.wa-float:hover { transform: scale(1.1); }
.has-sticky-bar .wa-float { display: none !important; }
@keyframes wa-pulse { 0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); } 50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6), 0 0 0 8px rgba(37,211,102,0.1); } }

/* ============ SECTION DIVIDER ============ */
.divider { height: 1px; background: var(--cream-dark); margin: 0 auto; max-width: 80px; }
.section-dark { background: var(--obsidian); color: var(--cream); }
.section-dark .section-title { color: var(--cream); }
.section-dark .section-sub { color: var(--muted); }
.section-cream { background: var(--cream); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .hero-visual { order: -1; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-phone-frame { width: 200px; height: 400px; }
  .hero-float-card { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-sticky { position: static; }
  .sticky-bar-mobile { display: block; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .nav-links { display: none; position: fixed; inset: 0; top: 70px; background: var(--ivory); flex-direction: column; justify-content: center; align-items: center; gap: 2rem; z-index: 99; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .template-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .features-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .process-steps { flex-direction: column; align-items: center; gap: 2rem; }
  .process-steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .catalog-filters .filters-row { flex-direction: column; }
  .hero-eyebrow::before, .hero-eyebrow::after { display: none; }
  .cta-banner { padding: 2.5rem 1.5rem; }
}

@media (max-width: 480px) {
  .template-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .container { padding: 0 1.25rem; }
  .hero-inner { padding: 3rem 1.25rem; }
}

/* ============ ANIMATIONS ============ */
.fade-in { opacity: 0; transform: translateY(20px); animation: fadeIn 0.6s ease forwards; }
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }
.stagger > * { opacity: 0; transform: translateY(16px); animation: fadeIn 0.5s ease forwards; }
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }
.stagger > *:nth-child(7) { animation-delay: 0.35s; }
.stagger > *:nth-child(8) { animation-delay: 0.4s; }

/* ============ MOBILE CARD COMPACT ============ */
@media (max-width: 480px) {
  .card-body { padding: 0.625rem; }
  .card-code { font-size: 0.62rem; }
  .card-name { font-size: 0.8rem; margin-bottom: 0.25rem; }
  .card-category { font-size: 0.68rem; }
  .card-footer { padding-top: 0.625rem; margin-top: 0.625rem; }
  .price-normal, .price-promo { font-size: 0.875rem; }
  .price-old { font-size: 0.68rem; }
  .card-footer .btn { padding: 0.35rem 0.6rem; font-size: 0.72rem; }
}

/* ============ TEMPLATE DETAIL - SIMILAR GRID MOBILE ============ */
.similar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 768px) {
  .similar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
  }
}
@media (max-width: 480px) {
  .similar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

/* Similar grid: 4 kolom di desktop, 2 kolom di tablet/mobile */
@media (min-width: 769px) {
  .similar-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}



/* ============ MOBILE - CARD OVERLAY VERTICAL + TOUCH ============ */

/* Overlay vertikal di layar kecil */
@media (max-width: 768px) {
  .card-overlay {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    align-items: center;
    justify-content: center;
  }
  .card-overlay .btn {
    width: 85%;
    justify-content: center;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }
  /* Trigger overlay saat card di-tap (class touched via JS) */
  .template-card.touched .card-overlay {
    background: rgba(26,22,20,0.5) !important;
  }
  .template-card.touched .card-overlay .btn {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
}
