/* ─── Reset & Base ────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #e4e4e7;
  background: #0a0a0a;
  overflow-x: hidden;
  line-height: 1.6;
}

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

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Nav ─────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  color: #0a0a0a;
  background: #fff;
  padding: 8px 20px;
  border-radius: 100px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-cta:hover {
  transform: scale(1.04);
}

.nav-cta:active {
  opacity: 0.85;
}

#nav-auth {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logout {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  transition: color 0.2s;
}

.nav-logout:hover {
  color: rgba(255, 255, 255, 0.8);
}

.nav-google-btn {
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
}

.nav-google-btn svg {
  flex-shrink: 0;
}

.btn-google-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.btn-google-hero svg {
  flex-shrink: 0;
}

/* ─── Buttons ─────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  border-radius: 100px;
  padding: 14px 32px;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  cursor: pointer;
}

.btn:active {
  opacity: 0.85;
}

.btn-primary {
  color: #0a0a0a;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,0);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,255,255,0.15);
}

.btn-ghost {
  color: rgba(255,255,255,0.7);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

.btn-lg {
  font-size: 18px;
  padding: 18px 44px;
}

/* ─── Hero ────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(120, 80, 200, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 70% 60%, rgba(200, 100, 50, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 30% 70%, rgba(50, 100, 200, 0.08) 0%, transparent 60%);
  will-change: transform;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,10,10,0.3) 0%, transparent 30%),
    linear-gradient(to top, #0a0a0a 0%, transparent 20%);
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 800px;
  will-change: transform, opacity;
}

.hero-eyebrow {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, #c084fc, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.4;
  transition: opacity 0.3s;
}

.hero-scroll-hint span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 12px;
  position: relative;
}

.hero-scroll-hint span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  animation: scrollDot 2s infinite;
}

@keyframes scrollDot {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  60% { opacity: 0; transform: translateX(-50%) translateY(12px); }
  61% { opacity: 0; transform: translateX(-50%) translateY(0); }
}

/* ─── Sections ────────────────────────────────────────── */

.section {
  padding: 120px 0;
  position: relative;
}

.section-dark {
  background: #111113;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #a78bfa;
  margin-bottom: 16px;
  text-align: center;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: #fff;
  text-align: center;
  letter-spacing: -0.5px;
  margin-bottom: 64px;
}

/* ─── Steps ───────────────────────────────────────────── */

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

.step {
  text-align: center;
  padding: 40px 24px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  transition: border-color 0.3s, background 0.3s;
}

.step:hover {
  border-color: rgba(167, 139, 250, 0.3);
  background: rgba(167, 139, 250, 0.04);
}

.step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: #a78bfa;
  color: #0a0a0a;
  font-weight: 700;
  font-size: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  width: 56px;
  height: 56px;
  margin: 12px auto 20px;
  color: rgba(255,255,255,0.4);
}

.step-icon svg {
  width: 100%;
  height: 100%;
}

.step h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.step p {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* ─── Gallery ─────────────────────────────────────────── */

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

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.gallery-img {
  width: 100%;
  height: 100%;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 16px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

/* ─── Features ────────────────────────────────────────── */

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

.feature {
  padding: 32px 28px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.3s, transform 0.3s;
}

.feature:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
  filter: grayscale(0.3);
}

.feature h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.feature p {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

/* ─── CTA ─────────────────────────────────────────────── */

.section-cta {
  padding: 140px 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(120, 80, 200, 0.12) 0%, transparent 70%);
}

.cta-content {
  text-align: center;
}

.cta-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 40px;
}

/* ─── Footer ──────────────────────────────────────────── */

.footer {
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

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

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
}

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

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: rgba(255,255,255,0.7);
}

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* ─── Reveal animation ────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: var(--delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ──────────────────────────────────────── */

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section {
    padding: 80px 0;
  }

  .section-title {
    margin-bottom: 48px;
  }

  .section-cta {
    padding: 100px 0;
  }

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

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .hero-scroll-hint {
    bottom: 20px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .gallery-item {
    border-radius: 10px;
  }

  .gallery-caption {
    font-size: 12px;
    padding: 16px 10px 10px;
  }
}
