/* KittyConnect Landing — Rose theme */
:root {
  --primary: #D9468D;
  --primary-dark: #B83273;
  --primary-muted: #F3D0E2;
  --background: #FDF5F9;
  --surface: #FFFFFF;
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --border: #E8E8ED;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(217, 70, 141, 0.08);
  --shadow-lg: 0 12px 48px rgba(217, 70, 141, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 245, 249, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}

.logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.nav .logo img {
  height: 40px;
}

.nav-cta {
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  text-align: center;
}

.hero-title {
  margin: 0 0 0.5rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

.hero-title em {
  font-style: normal;
  color: var(--primary);
}

.hero-subtitle {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-desc {
  margin: 0 0 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Screenshots carousel — center highlight, smaller neighbors, auto-rotate */
.screenshots {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.section-desc {
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  text-align: center;
}

.carousel {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
}

.carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--primary);
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

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

.carousel-viewport {
  flex: 1 1 200px;
  overflow: hidden;
  min-width: 0;
}

.carousel-caption,
.carousel-dots {
  flex-basis: 100%;
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  transition: transform 0.4s ease-out;
}

.carousel-slide {
  flex: 0 0 300px;
  margin: 0;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.35s ease-out, opacity 0.35s, box-shadow 0.35s;
  transform-origin: center center;
}

/* Center slide — full size, highlighted */
.carousel-slide.carousel-active {
  flex: 0 0 320px;
  transform: scale(1);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  z-index: 2;
}

/* Adjacent slides — smaller */
.carousel-slide.carousel-prev,
.carousel-slide.carousel-next {
  transform: scale(0.72);
  opacity: 0.85;
  z-index: 1;
}

/* Far slides — smaller, faded */
.carousel-slide.carousel-far {
  transform: scale(0.55);
  opacity: 0.5;
  z-index: 0;
}

.phone-frame {
  position: relative;
  background: #1a1a2e;
  border-radius: 24px;
  padding: 8px;
  box-shadow:
    0 0 0 2px rgba(0,0,0,0.15),
    0 8px 24px rgba(0,0,0,0.15),
    inset 0 0 0 1px rgba(255,255,255,0.05);
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 5px;
  background: #2d2d3a;
  border-radius: 3px;
  z-index: 1;
}

.carousel-slide .phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 19;
  object-fit: cover;
  border-radius: 20px;
}

.carousel-caption {
  margin: 1.25rem 0 0.5rem;
  padding: 0 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  line-height: 1.5;
  min-height: 2.9em;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dots button:hover {
  background: var(--primary-muted);
}

.carousel-dots button[aria-selected="true"] {
  background: var(--primary);
  transform: scale(1.25);
}

@media (max-width: 640px) {
  .phone-frame {
    border-radius: 18px;
    padding: 5px;
  }
  .phone-frame::before {
    width: 45px;
    height: 4px;
    top: 4px;
  }
  .carousel-slide .phone-frame img {
    border-radius: 14px;
  }
  .carousel-caption {
    font-size: 0.85rem;
    margin: 0.75rem 0 0.5rem;
    min-height: 2.6em;
  }
  .screenshots {
    max-width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .carousel {
    gap: 0.5rem;
  }
  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }
  .carousel-slide {
    flex: 0 0 165px;
  }
  .carousel-slide.carousel-active {
    flex: 0 0 190px;
  }
  .carousel-slide.carousel-prev,
  .carousel-slide.carousel-next {
    transform: scale(0.65);
  }
  .carousel-slide.carousel-far {
    transform: scale(0.4);
    opacity: 0.3;
  }
  .carousel-slide figcaption {
    padding: 0.5rem 0.65rem;
    font-size: 0.75rem;
  }
  .carousel-slide.carousel-active figcaption {
    font-size: 0.8rem;
  }
}

@media (max-width: 400px) {
  .carousel-slide {
    flex: 0 0 145px;
  }
  .carousel-slide.carousel-active {
    flex: 0 0 168px;
  }
}

/* Feature blocks */
.features-blocks {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.section-title {
  margin: 0 0 2rem;
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  color: var(--text);
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Feature list grid */
.features-list {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  background: linear-gradient(180deg, rgba(217, 70, 141, 0.06) 0%, transparent 100%);
}

.feature-list-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--surface);
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feature-item-icon {
  font-size: 1.2rem;
}

/* CTA section */
.cta-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  text-align: center;
}

.cta-title {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}

.cta-desc {
  margin: 0 0 2rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer-logo {
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 28px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
