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

:root {
  --bg: #f3eff6;
  --fg: #1e1530;
  --card: #faf8fc;
  --card-fg: #1e1530;
  --primary: #7c3aed;
  --primary-fg: #faf8fc;
  --secondary: #f0e4f6;
  --secondary-fg: #3b1f6e;
  --muted: #ece6f2;
  --muted-fg: #6b5f7a;
  --accent: #d946a8;
  --border: #ddd0eb;
  --ring: #7c3aed;
  --radius: 0.75rem;
  --font-sans: "Quicksand", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Cinzel", ui-serif, Georgia, serif;
  --shadow-sm: 0 1px 3px rgba(124, 58, 237, 0.06);
  --shadow-md: 0 4px 16px rgba(124, 58, 237, 0.08);
  --shadow-xl: 0 12px 40px rgba(124, 58, 237, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 239, 246, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(221, 208, 235, 0.5);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg);
  transition: opacity 0.2s;
}

.logo:hover {
  opacity: 0.8;
}

.logo-icon {
  font-size: 1.5rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-fg);
  transition: all 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: rgba(124, 58, 237, 0.08);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 3rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(124, 58, 237, 0.04) 0%,
    rgba(217, 70, 168, 0.04) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.hero-orb-1 {
  position: absolute;
  top: 4rem;
  left: 20%;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.08);
  filter: blur(80px);
  pointer-events: none;
}

.hero-orb-2 {
  position: absolute;
  top: 8rem;
  right: 20%;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: rgba(217, 70, 168, 0.08);
  filter: blur(80px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  animation: fadeUp 0.6s ease-out;
}

.hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-wrap: balance;
}

.hero-title-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s ease-in-out infinite;
}

.hero-description {
  max-width: 640px;
  margin: 1.5rem auto 0;
  font-size: 1.125rem;
  color: var(--muted-fg);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  background: #6d28d9;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--muted-fg);
}

.btn-ghost:hover {
  background: var(--muted);
  color: var(--fg);
}

/* ===== Hero Image ===== */
.hero-image-wrapper {
  position: relative;
  margin-top: 3.5rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  animation: fadeScale 0.8s ease-out 0.3s both;
}

.hero-image-wrapper img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 21, 48, 0.6), transparent 50%);
  pointer-events: none;
}

.hero-image-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
}

.hero-image-caption h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-image-caption p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ===== Gallery ===== */
.gallery {
  padding: 5rem 0;
}

.gallery-header {
  text-align: center;
  margin-bottom: 3rem;
}

.gallery-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--fg);
}

.gallery-header p {
  margin-top: 0.75rem;
  font-size: 1.125rem;
  color: var(--muted-fg);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-grid {
  columns: 1;
  column-gap: 1.25rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    columns: 2;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    columns: 3;
  }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s, transform 0.4s;
  animation: fadeUp 0.5s ease-out both;
}

.gallery-item:nth-child(1) { animation-delay: 0s; }
.gallery-item:nth-child(2) { animation-delay: 0.06s; }
.gallery-item:nth-child(3) { animation-delay: 0.12s; }
.gallery-item:nth-child(4) { animation-delay: 0.18s; }
.gallery-item:nth-child(5) { animation-delay: 0.24s; }
.gallery-item:nth-child(6) { animation-delay: 0.30s; }
.gallery-item:nth-child(7) { animation-delay: 0.36s; }
.gallery-item:nth-child(8) { animation-delay: 0.42s; }

.gallery-item:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.7s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 21, 48, 0.75), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  transform: translateY(0.5rem);
  opacity: 0;
  transition: all 0.4s;
}

.gallery-item:hover .gallery-item-info {
  transform: translateY(0);
  opacity: 1;
}

.gallery-item-category {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.75rem;
  font-weight: 500;
  color: white;
  margin-bottom: 0.5rem;
}

.gallery-item-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
}

/* ===== Signup Section (CTA banner on main page) ===== */
.cta-section {
  padding: 4rem 0 5rem;
}

.cta-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), #9333ea, var(--accent));
  border-radius: 1.5rem;
  padding: 3.5rem 2rem;
  text-align: center;
  color: white;
}

.cta-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.cta-card::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.cta-card h2 {
  position: relative;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cta-card p {
  position: relative;
  font-size: 1.0625rem;
  opacity: 0.9;
  max-width: 480px;
  margin: 0 auto 2rem;
}

.btn-white {
  position: relative;
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
  background: #f8f5ff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ===== Signup Page ===== */
.signup-page {
  padding: 4rem 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.signup-page .container {
  max-width: 520px;
}

.signup-card {
  background: var(--card);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.signup-card h1 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
}

.signup-card .subtitle {
  text-align: center;
  color: var(--muted-fg);
  margin-bottom: 2rem;
  font-size: 0.9375rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--fg);
}

.form-group input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  background: var(--bg);
  color: var(--fg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input::placeholder {
  color: var(--muted-fg);
  opacity: 0.7;
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.form-note {
  font-size: 0.8125rem;
  color: var(--muted-fg);
  text-align: center;
  margin-top: 1.25rem;
}

.form-note a {
  color: var(--primary);
  text-decoration: underline;
}

.btn-full {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

/* ===== Privacy Page ===== */
.privacy-page {
  padding: 4rem 0 5rem;
}

.privacy-page .container {
  max-width: 720px;
}

.privacy-page h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.privacy-page .last-updated {
  color: var(--muted-fg);
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
}

.privacy-page h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--fg);
}

.privacy-page p,
.privacy-page li {
  color: var(--muted-fg);
  line-height: 1.8;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.privacy-page ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.privacy-page a {
  color: var(--primary);
  text-decoration: underline;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid rgba(221, 208, 235, 0.5);
  background: rgba(236, 230, 242, 0.3);
  padding: 2.5rem 0;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .footer .container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--muted-fg);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--fg);
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--muted-fg);
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeScale {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ===== Responsive ===== */
@media (max-width: 639px) {
  .hero {
    padding: 3rem 0 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .nav a {
    padding: 0.4rem 0.5rem;
    font-size: 0.8125rem;
  }

  .signup-card {
    padding: 1.75rem;
  }

  .cta-card {
    padding: 2.5rem 1.5rem;
  }
}
