:root {
  --bg-color: #f5f5f7;
  --text-color: #1d1d1f;
  --text-secondary: #86868b;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --nav-border: rgba(0, 0, 0, 0.08);
  --card-bg: rgba(255, 255, 255, 0.6);
  --card-border: rgba(255, 255, 255, 0.8);
  --accent-color: #0066cc;
  --accent-hover: #0077ed;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
  --blob-1: #ffb8d2;
  --blob-2: #c5d2ff;
  
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #000000;
    --text-color: #f5f5f7;
    --text-secondary: #86868b;
    --nav-bg: rgba(29, 29, 31, 0.72);
    --nav-border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(29, 29, 31, 0.6);
    --card-border: rgba(255, 255, 255, 0.1);
    --accent-color: #2997ff;
    --accent-hover: #31a1ff;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 30px 60px rgba(0, 0, 0, 0.4);
    --blob-1: #5b283d;
    --blob-2: #1e2d5c;
  }
}

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

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

/* Background Gradients */
.background-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.6;
  animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
  top: -10%;
  left: 10%;
  width: 50vw;
  height: 50vw;
  background-color: var(--blob-1);
}

.blob-2 {
  bottom: -10%;
  right: 10%;
  width: 60vw;
  height: 60vw;
  background-color: var(--blob-2);
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(10%, 10%) scale(1.1); }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 52px;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--nav-border);
  z-index: 100;
  display: flex;
  justify-content: center;
}

.nav-content {
  width: 100%;
  max-width: 980px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 22px;
}

.brand-text {
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.01em;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #fff;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
}

.btn-secondary:hover {
  background-color: rgba(0, 102, 204, 0.05);
}

.btn-large {
  padding: 12px 24px;
  font-size: 17px;
}

/* Typography */
h1, h2, h3 {
  letter-spacing: -0.02em;
}

/* Hero Section */
.hero {
  padding-top: 140px;
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.hero-title {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--accent-color);
}

.hero-subtitle {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.3;
}

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

/* Hero Image */
.hero-image-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  perspective: 1000px;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--nav-border);
  transform: rotateX(5deg) scale(0.95);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-image:hover {
  transform: rotateX(0deg) scale(1);
}

/* Theme showcase */
.theme-showcase {
  width: min(1380px, calc(100% - 44px));
  margin: 40px auto 0;
  padding: 90px 0 70px;
}

.showcase-heading {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--accent-color);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.showcase-heading h2 {
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
}

.showcase-heading > p:last-child {
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1.45;
}

.theme-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
}

.theme-shot {
  grid-column: span 6;
  min-width: 0;
}

.theme-shot:first-child {
  grid-column: 2 / span 10;
}

.theme-shot-frame {
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 22px;
  background: var(--card-bg);
  box-shadow: 0 28px 70px rgba(22, 30, 38, 0.14);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 300ms ease;
}

.theme-shot:hover .theme-shot-frame {
  transform: translateY(-5px);
  box-shadow: 0 34px 80px rgba(22, 30, 38, 0.2);
}

.theme-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.theme-shot figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 4px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 650;
}

.theme-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f3a7c2, #a9bdf7);
  box-shadow: 0 0 0 4px rgba(115, 134, 201, 0.1);
}

.theme-shot-emerald .theme-dot {
  background: linear-gradient(135deg, #71ddb7, #7bc6db);
}

.theme-shot-twilight .theme-dot {
  background: linear-gradient(135deg, #9d70e8, #342060);
}

/* Features */
.features {
  max-width: 980px;
  margin: 0 auto;
  padding: 80px 22px;
}

.section-title {
  text-align: center;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  margin-bottom: 60px;
  line-height: 1.1;
}

.section-title span {
  color: var(--text-secondary);
}

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

.bento-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 40px;
  min-height: 300px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

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

.bento-content h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.bento-content p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.4;
}

/* Feature specific styling */
.feature-favorites {
  grid-column: span 2;
  min-height: 400px;
  background-image: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
}

@media (prefers-color-scheme: dark) {
  .feature-favorites {
    background-image: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
  }
}

/* Footer */
.footer {
  border-top: 1px solid var(--nav-border);
  padding: 40px 22px;
  margin-top: 40px;
}

.footer-content {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 20px;
}

.footer-links a:hover {
  color: var(--text-color);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .theme-showcase {
    width: min(100% - 28px, 680px);
    padding: 56px 0 30px;
  }
  .showcase-heading {
    margin-bottom: 30px;
  }
  .showcase-heading > p:last-child {
    font-size: 17px;
  }
  .theme-gallery {
    display: flex;
    flex-direction: column;
  }
  .theme-shot,
  .theme-shot:first-child {
    width: 100%;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .feature-favorites {
    grid-column: 1;
    min-height: 300px;
  }
  .hero-actions {
    flex-direction: column;
    padding: 0 20px;
  }
  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
