:root {
  --bg-primary: #f5f5f7;
  --bg-dark: #000000;
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --text-light: #f5f5f7;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --radius: 28px;
  --radius-sm: 18px;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 52px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.3s ease;
}

.nav-content {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-primary) 100%);
  position: relative;
}

.hero-content {
  max-width: 900px;
  animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.eyebrow {
  font-size: 21px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.hero-title {
  font-size: clamp(64px, 12vw, 144px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin-bottom: 32px;
  background: linear-gradient(135deg, #1d1d1f 0%, #434344 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(19px, 2.5vw, 28px);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.4;
}

.cta-button {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: white;
  font-size: 17px;
  font-weight: 500;
  border-radius: 980px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.25);
}

.cta-button:hover {
  background: var(--accent-hover);
  transform: scale(1.04);
  box-shadow: 0 6px 24px rgba(0, 113, 227, 0.35);
}

.cta-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid rgba(29, 29, 31, 0.2);
  box-shadow: none;
}

.cta-outline:hover {
  background: var(--text-primary);
  color: white;
  border-color: var(--text-primary);
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.6;
  animation: bounce 2s infinite;
}

.scroll-hint span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-primary), transparent);
}

/* Sections */
.section {
  padding: 140px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: 80vh;
}

.feature-dark {
  background: var(--bg-dark);
  color: var(--text-light);
  margin: 0 -24px;
  padding: 140px 24px;
  max-width: none;
  border-radius: 0;
}

.feature-title {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 28px;
}

.feature-desc {
  font-size: clamp(18px, 1.8vw, 24px);
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 480px;
}

.feature-dark .feature-desc {
  color: #a1a1a6;
}

.feature-media {
  width: 100%;
}

.feature-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.12);
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-img:hover {
  transform: translateY(-8px);
}

/* Gallery */
.gallery-section {
  max-width: 1400px;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 21px;
  color: var(--text-secondary);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  grid-auto-rows: 300px;
  grid-auto-flow: dense;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #e8e8ed;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  color: white;
  font-size: 17px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.4s ease;
}

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

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

/* Memory section */
.memory-section {
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.memory-title {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.memory-desc {
  font-size: 21px;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

/* Footer */
.footer {
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--text-secondary);
  font-size: 13px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(10px);
  }
  60% {
    transform: translateY(5px);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .feature-media {
    order: -1;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
    gap: 16px;
  }

  .gallery-item.wide {
    grid-column: span 2;
  }

  .gallery-item.tall {
    grid-row: span 2;
  }
}

@media (max-width: 600px) {
  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .hero {
    padding-top: 100px;
  }

  .section {
    padding: 100px 20px;
  }

  .feature-dark {
    padding: 100px 20px;
    margin: 0 -20px;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 280px;
  }

  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .feature-img {
    aspect-ratio: 3 / 4;
  }
}
.feature-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.12);
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-img:hover {
  transform: translateY(-8px);
}
.feature-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.12);
}
.scroll-hint {
  position: absolute;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.6;
  animation: bounce 2s infinite;
}
.scroll-hint {
  position: absolute;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.6;
  animation: bounce 2s infinite;
}
