/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --ink: #111110;
  --ink-2: #444440;
  --ink-3: #888884;
  --accent: #1a1a18;
  --gold: #c8a96e;
  --gold-light: #f0e6d3;
  --free-color: #2d7a3a;
  --free-bg: #e8f5ea;
  --premium-color: #8a5e00;
  --premium-bg: #fdf3e0;
  --border: rgba(0,0,0,0.08);
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: rgba(250,249,247,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--ink);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--ink) !important;
  color: var(--bg) !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 500 !important;
  transition: opacity 0.2s !important;
}

.nav-cta:hover { opacity: 0.8 !important; }

.nav-menu { display: none; background: none; border: none; font-size: 20px; cursor: pointer; }

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  height: 100%;
  gap: 3px;
}

.hg-img {
  background-size: cover;
  background-position: center;
  animation: slowZoom 20s ease-in-out infinite alternate;
}

.hg-img:nth-child(2) { animation-delay: -5s; }
.hg-img:nth-child(3) { animation-delay: -10s; }
.hg-img:nth-child(4) { animation-delay: -3s; }
.hg-img:nth-child(5) { animation-delay: -8s; }
.hg-img:nth-child(6) { animation-delay: -13s; }

@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,8,0.55) 0%,
    rgba(10,10,8,0.72) 50%,
    rgba(10,10,8,0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 700px;
  animation: fadeUp 1s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px, 8vw, 84px);
  font-weight: 300;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 36px;
  letter-spacing: -1px;
}

.hero-title em { font-style: italic; color: var(--gold); }

.search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 100px;
  padding: 6px 6px 6px 20px;
  gap: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  margin-bottom: 20px;
}

.search-bar svg { color: var(--ink-3); flex-shrink: 0; }

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
}

.search-bar input::placeholder { color: var(--ink-3); }

.search-bar button {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 10px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.search-bar button:hover { opacity: 0.8; }

.hero-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-tags span {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  transition: all 0.2s;
}

.hero-tags span:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.1);
}

/* ===== STATS ===== */
.stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 40px 40px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 48px;
}

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ===== GALLERY ===== */
.gallery-section {
  padding: 72px 40px;
  max-width: 1320px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-header.centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.1;
}

.section-header h2 em { font-style: italic; color: var(--gold); }

.see-all {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.see-all:hover { color: var(--ink); border-color: var(--ink); }

.masonry {
  columns: 3;
  column-gap: 16px;
}

.card {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.card-img {
  width: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.card:hover .card-img { transform: scale(1.04); }

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  gap: 10px;
}

.card:hover .card-overlay { opacity: 1; }

.card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-dl {
  flex: 1;
  background: #fff;
  color: var(--ink);
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-dl:hover { opacity: 0.9; }

.btn-dl.premium {
  background: var(--gold);
  color: #fff;
}

.btn-fav {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}

.btn-fav:hover { background: rgba(255,255,255,0.25); }

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}

.tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.tag.free { background: var(--free-bg); color: var(--free-color); }
.tag.premium { background: var(--premium-bg); color: var(--premium-color); }

/* ===== PRICING ===== */
.pricing-section {
  padding: 80px 40px;
  background: var(--ink);
}

.pricing-section .section-header h2 { color: #fff; }
.pricing-section .section-header h2 em { color: var(--gold); }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.pricing-sub {
  color: rgba(255,255,255,0.5);
  font-size: 16px;
  margin-top: 12px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto 32px;
}

.plan {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 36px 32px;
  position: relative;
  transition: transform 0.2s;
}

.plan:hover { transform: translateY(-4px); }

.plan.featured {
  background: var(--gold);
  border-color: var(--gold);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.plan-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}

.plan.featured .plan-label { color: rgba(0,0,0,0.6); }

.plan-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.plan.featured .plan-price { color: var(--ink); }

.plan-period {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 28px;
}

.plan.featured .plan-period { color: rgba(0,0,0,0.5); }

.plan-features {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-features li {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

.plan.featured .plan-features li { color: rgba(0,0,0,0.75); }

.plan-features li.muted { color: rgba(255,255,255,0.3); }

.plan-btn {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.plan-btn:hover { background: rgba(255,255,255,0.1); }

.plan-btn.featured-btn {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.plan-btn.featured-btn:hover { opacity: 0.85; }

.pricing-note {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--surface);
  padding: 64px 40px 32px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-3);
}

/* ===== MODAL ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-backdrop.active { opacity: 1; pointer-events: all; }

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.95);
  z-index: 300;
  background: var(--surface);
  border-radius: 20px;
  padding: 36px;
  width: min(480px, calc(100vw - 32px));
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--bg);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.modal-icon {
  width: 52px;
  height: 52px;
  background: var(--gold-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.modal-sub {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 2px;
}

.modal-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--ink-2);
}

.modal-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}

.pay-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
}

.pay-tab {
  flex: 1;
  padding: 8px;
  border: none;
  background: transparent;
  border-radius: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-3);
  cursor: pointer;
  transition: all 0.2s;
}

.pay-tab.active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.pay-panel { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.pay-panel.hidden { display: none; }

label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pay-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.pay-input:focus { border-color: var(--ink); }

.pay-select { cursor: pointer; }

.upi-apps {
  display: flex;
  gap: 10px;
}

.upi-app {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  cursor: pointer;
  font-size: 12px;
  color: var(--ink-2);
  transition: all 0.2s;
}

.upi-app:hover { border-color: var(--ink); background: var(--surface); }

.upi-app img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pay-btn {
  width: 100%;
  padding: 16px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-bottom: 12px;
}

.pay-btn:hover { opacity: 0.85; }
.pay-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.modal-secure {
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 16px 24px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s;
  z-index: 400;
  min-width: 300px;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-icon {
  width: 32px;
  height: 32px;
  background: #2d7a3a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.toast-title { font-size: 14px; font-weight: 500; }
.toast-sub { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 2px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .masonry { columns: 2; }
  .plans { grid-template-columns: 1fr; max-width: 420px; }
  .nav-links { display: none; }
  .nav-menu { display: block; }
  .stats { flex-wrap: wrap; gap: 24px; }
  .stat-divider { display: none; }
  .footer-top { flex-direction: column; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 580px) {
  .masonry { columns: 1; }
  .nav { padding: 0 20px; }
  .gallery-section, .pricing-section, .footer { padding-left: 20px; padding-right: 20px; }
  .stat { padding: 0 24px; }
  .hero-title { font-size: 42px; }
}
