/* ===== Imgy Landing Page — Styles ===== */
:root {
  --primary: #4A90D9;
  --primary-dark: #3A7BC4;
  --accent: #00D2D3;
  --bg: #FAFAFE;
  --bg-card: #FFFFFF;
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --shadow: 0 4px 24px rgba(74, 144, 217, 0.08);
  --shadow-hover: 0 12px 40px rgba(74, 144, 217, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

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

/* ===== Snap scroll container ===== */
.snap-wrapper {
  scroll-snap-type: y mandatory;
  -webkit-scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overflow-y: scroll;
  height: 100vh;
}

.snap-section {
  height: 100vh;
  scroll-snap-align: start;
  -webkit-scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 40px 0;
  box-sizing: border-box;
  overflow: hidden;
}

.section.snap-section {
  padding-top: 40px;
  padding-bottom: 40px;
}

.snap-section .section-header {
  margin-bottom: 24px;
}

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

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 254, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo-icon {
  font-size: 28px;
  line-height: 1;
}

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

.nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}
.nav a:hover { color: var(--primary); }

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--primary);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 144, 217, 0.3);
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: -50%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(108,92,231,0.06) 0%, transparent 70%);
  transform: translate(-50%, 0);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 span { color: #000; }

.hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero .cta-btn {
  font-size: 17px;
  padding: 14px 36px;
  background: var(--primary);
  border: none;
}
.hero .cta-btn:hover {
  background: var(--primary-dark);
}

/* ===== Section titles ===== */
.section {
  padding: 80px 0;
}

.hero .hero-scroll-hint {
  margin: 40px auto 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.3px;
}

.hero .hero-scroll-hint::after {
  content: '↓';
  display: block;
  margin-top: 8px;
  font-size: 16px;
  opacity: 0.6;
  animation: hint-bounce 2s ease-in-out infinite;
}

@keyframes hint-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

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

.section-header h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}

.section-header .badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(74, 144, 217, 0.1);
  color: var(--primary);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

/* ===== How it works ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.step-number {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.step-card h3 { font-size: 16px; margin-bottom: 6px; }
.step-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; padding: 0 4px; }

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.pricing-popular {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-popular .pricing-badge { background: var(--primary); color: #fff; }
.pricing-card:not(.pricing-popular) .pricing-badge { display: none; }

.pricing-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.pricing-gen-count { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.pricing-price { font-size: 32px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.pricing-per { font-size: 13px; color: var(--text-muted); }

@media (max-width: 480px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 300px; }
}

/* ===== Example gallery ===== */
/* ===== Examples section ===== */
/* Wrapper for tabs + showcase switching */
.examples-wrapper {
  position: relative;
}

.ex-tab-input { display: none; }

.ex-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 10;
  box-shadow: 0 2px 12px rgba(74, 144, 217, 0.1);
}

.ex-tab {
  display: inline-block;
  padding: 8px 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

#ex-tab-1:checked ~ .ex-tabs label[for="ex-tab-1"],
#ex-tab-2:checked ~ .ex-tabs label[for="ex-tab-2"] {
  background: var(--primary);
  color: #fff;
  border-radius: 50px;
}

#ex-tab-1:checked ~ .ex-showcase--2 { visibility: hidden; position: absolute; pointer-events: none; width: 100%; }
#ex-tab-2:checked ~ .ex-showcase--1 { visibility: hidden; position: absolute; pointer-events: none; width: 100%; }

/* ===== Desktop (≥769px): Swiper cards effect ===== */
@media (min-width: 769px) {
  .ex-carousel {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    height: 50vh;
    max-height: 480px;
  }

  .ex-slide {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: transparent;
    border: none;
  }

  /* Square photo: card + border */
  .ex-slide {
    background: var(--bg-card);
    border: none;
  }
  .ex-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    display: block;
    position: relative;
    z-index: 1;
  }

  /* Non-square photo: card + blur */
  .ex-slide[style*="--bg"] {
    background: var(--bg-card);
    border: none;
  }
  .ex-slide[style*="--bg"]::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: var(--bg, transparent) center / cover no-repeat;
    filter: blur(24px);
    transform: scale(1.1);
    z-index: 0;
    pointer-events: none;
  }
  .ex-slide[style*="--bg"] img {
    position: relative;
    z-index: 1;
    max-width: 92%;
    max-height: 92%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  }

  .ex-slide .ex-badge { z-index: 2; }
  .ex-slide .ex-label {
    z-index: 2;
    top: auto;
    bottom: 10px;
    left: 10px;
    right: auto;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 9px;
    font-weight: 600;
    background: rgba(0,0,0,0.55);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .ex-slide .ex-badge {
    top: auto;
    bottom: 10px;
    left: 10px;
    padding: 3px 10px;
    font-size: 9px;
  }
}

/* ===== Mobile (≤768px): Simple horizontal scroll ===== */
@media (max-width: 768px) {
  .header-inner { height: 56px; }
  .snap-section {
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .section-header { margin-bottom: 24px; }

  .nav a:not(.cta-btn) { display: none; }
  .nav .cta-btn { display: none; }
  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  
  /* Mobile: examples with tab switching */
  .ex-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    background: var(--bg-card);
    border: none;
    border-radius: 50px;
    overflow: hidden;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
  .ex-tab {
    display: inline-block;
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    user-select: none;
  }
  #ex-tab-1:checked ~ .ex-tabs label[for="ex-tab-1"],
  #ex-tab-2:checked ~ .ex-tabs label[for="ex-tab-2"] {
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
  }

  /* Show only active example on mobile */
  #ex-tab-1:checked ~ .ex-showcase--2 { display: none; }
  #ex-tab-2:checked ~ .ex-showcase--1 { display: none; }

  .ex-showcase + .ex-showcase { margin-top: 0; }

  .ex-carousel .swiper-button-prev,
  .ex-carousel .swiper-button-next {
    display: none;
  }

  /* Mobile: carousel with scroll-snap */
  .ex-carousel .swiper-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }

  .ex-carousel .swiper-wrapper::-webkit-scrollbar { display: none; }

  .ex-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    border: none;
    border-radius: 0;
  }

  /* Square photo: white card + border */
  .ex-slide {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: none;
  }
  .ex-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    z-index: 1;
    display: block;
  }

  /* Non-square photo: card with blurred background */
  .ex-slide[style*="--bg"] {
    filter: none;
    border-radius: var(--radius-sm);
  }
  .ex-slide[style*="--bg"]::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: var(--bg, transparent) center / cover no-repeat;
    filter: blur(24px);
    transform: scale(1.1);
    z-index: 0;
    pointer-events: none;
  }
  .ex-slide[style*="--bg"] img {
    position: relative;
    z-index: 1;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  }

  .ex-slide .ex-badge {
    z-index: 2;
    top: auto;
    bottom: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 9px;
    font-weight: 600;
  }
  .ex-slide .ex-label {
    z-index: 2;
    top: auto;
    bottom: 10px;
    left: 10px;
    right: auto;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 9px;
    font-weight: 600;
    background: rgba(0,0,0,0.55);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
}

/* ===== Shared ===== */
.badge-original { background: rgba(0,0,0,0.6); color: #fff; }

.ex-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ex-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  z-index: 2;
}/* Swiper pagination (dots) */
.ex-carousel .swiper-pagination {
  position: relative;
  bottom: auto;
  margin-top: 12px;
}

.ex-carousel .swiper-pagination-bullet {
  background: var(--border);
  opacity: 1;
  width: 10px;
  height: 10px;
  margin: 0 6px;
}

.ex-carousel .swiper-pagination-bullet-active {
  background: var(--primary);
}

/* Swiper navigation (arrows) */
.ex-carousel .swiper-button-prev,
.ex-carousel .swiper-button-next {
  color: var(--text);
  background: rgba(255,255,255,0.9);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.ex-carousel .swiper-button-prev::after,
.ex-carousel .swiper-button-next::after {
  font-size: 14px;
  font-weight: 700;
}

.ex-carousel .swiper-button-prev:hover,
.ex-carousel .swiper-button-next:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}


.ex-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== Style gallery ===== */
/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-card--no-icon {
  display: block;
  text-align: center;
}

.feature-emoji {
  display: block;
  font-size: 22px;
  margin-bottom: 4px;
}

.feature-emoji-img {
  display: inline-block;
  width: 22px;
  height: 22px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(74, 144, 217, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.feature-text h3 { font-size: 16px; margin-bottom: 4px; }
.feature-text p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* ===== CTA Banner ===== */
.cta-banner {
  text-align: center;
  padding: 40px 0;
}

.cta-banner h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.cta-banner p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .cta-btn {
  background: var(--primary);
  color: #fff;
  font-size: 17px;
  padding: 14px 36px;
}

.cta-banner .cta-btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(74, 144, 217, 0.3);
}

.cta-banner small {
  display: block;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header-inner { height: 56px; }
  .snap-section {
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .section-header { margin-bottom: 24px; }

  .nav a:not(.cta-btn) { display: none; }
  .nav .cta-btn { display: none; }
  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .cta-banner { padding: 40px 24px; }
}

@media (max-width: 640px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .step-card { padding: 20px 14px; }
  .step-number { width: 36px; height: 36px; font-size: 14px; margin-bottom: 10px; }
  .step-card h3 { font-size: 14px; }
  .step-card p { font-size: 12px; }
  .snap-section .section-header { margin-bottom: 16px; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .step-card { padding: 12px 8px; }
  .step-number { width: 28px; height: 28px; font-size: 12px; margin-bottom: 6px; }
  .step-card h3 { font-size: 13px; margin-bottom: 3px; }
  .step-card p { font-size: 11px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .feature-card { padding: 12px 10px; gap: 8px; }
  .feature-icon { width: 28px; min-width: 28px; height: 28px; font-size: 14px; border-radius: 8px; }
  .feature-text h3 { font-size: 12px; margin-bottom: 2px; }
  .feature-text p { font-size: 10px; line-height: 1.4; }
  .feature-emoji { font-size: 16px; margin-bottom: 2px; }
  .feature-emoji-img { width: 16px; height: 16px; }
  .section-header { margin-bottom: 12px; }
  .section-header h2 { margin-bottom: 4px; font-size: 22px; }
  .section-header .badge { font-size: 10px; padding: 2px 10px; margin-bottom: 6px; }

  /* Как это работает — сетка 2×2 на весь экран */
  #how.snap-section {
    padding-top: 72px;
    padding-bottom: 8px;
  }
  #how .container {
    display: flex;
    flex-direction: column;
  }
  #how .section-header {
    margin-bottom: 0;
  }
  #how .section-header h2 {
    margin-bottom: 25px;
  }
  #how .steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  #how .step-card {
    padding: 16px 8px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #how .step-number {
    width: 26px; height: 26px; font-size: 11px; margin-bottom: 4px;
  }
}
