/* =============================================================
   HOME — App Showcase Landing Page Styles
   Appdev section structure + Kicker typography/color system
   ============================================================= */

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */

.home-section {
  position: relative;
  overflow: hidden;
}

/* Shared inner wrapper */
.section-inner {
  max-width: var(--pc-page-width);
  margin: 0 auto;
  padding: 0 var(--pc-content-padding);
}

/* ---- Section Header (centered, above content) ---- */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5em;
}

.section-header--with-link {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  text-align: left;
  max-width: 100%;
  margin-bottom: 2.5em;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--pc-font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pc-color-accent);
  margin-bottom: 0.65em;
}

.section-eyebrow--light { color: rgba(255,255,255,0.7); }

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.6em;
}

.section-title--light { color: #ffffff; }

.section-subtitle {
  font-family: var(--pc-font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--pc-color-text);
  margin: 0;
}

.section-subtitle--light { color: rgba(255,255,255,0.75); }

.section-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--pc-font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pc-color-accent);
  white-space: nowrap;
  margin-bottom: 0.2em;
  transition: gap 0.2s ease;
}
.section-view-all:hover { gap: 0.7em; color: var(--pc-color-accent-hover); }
.section-view-all svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.section-view-all:hover svg { transform: translateX(3px); }

/* ---- Store Badge (shared hero + download) ---- */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  background: #111;
  color: #fff;
  border-radius: var(--pc-radius);
  padding: 0.7em 1.4em;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15);
  transition: background 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.store-badge:hover { background: #1a1a1a; transform: translateY(-2px); color: #fff; }

.store-badge--coming-soon {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.store-badge--coming-soon:hover { transform: none; }

.store-badge-icon svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.store-badge-sub {
  font-family: var(--pc-font-ui);
  font-size: 0.65rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.65);
}

.store-badge-name {
  font-family: var(--pc-font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.store-badge--large { padding: 0.85em 1.75em; }
.store-badge--large .store-badge-icon svg { width: 30px; height: 30px; }
.store-badge--large .store-badge-name { font-size: 1.1rem; }

/* ============================================================
   TRANSPARENT HEADER (home only)
   ============================================================ */
.site-header--transparent {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.site-header--transparent .site-title,
.site-header--transparent .nav-menu > li > a,
.site-header--transparent .mobile-menu-toggle .hamburger-bar {
  color: #fff;
}

.site-header--transparent .nav-menu > li > a:hover,
.site-header--transparent .nav-menu > li.current-menu-item > a {
  color: rgba(255,255,255,0.7);
}

/* Scrolled: becomes white */
.site-header--transparent.scrolled {
  background: var(--pc-color-bg);
  border-bottom-color: var(--pc-color-border);
  box-shadow: 0 2px 20px rgba(18,20,24,0.1);
}
.site-header--transparent.scrolled .site-title,
.site-header--transparent.scrolled .nav-menu > li > a {
  color: var(--pc-color-text-dark);
}
.site-header--transparent.scrolled .nav-menu > li > a:hover,
.site-header--transparent.scrolled .nav-menu > li.current-menu-item > a {
  color: var(--pc-color-accent);
}
.site-header--transparent.scrolled .hamburger-bar {
  background: var(--pc-color-text-dark);
}

/* Push main content below fixed header */
.home-page #page-wrapper { padding-top: 0; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #000000 0%, #121212 50%, #000000 100%);
  display: flex;
  flex-direction: column;
  padding: 0;
}

.hero-inner {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4em;
  max-width: var(--pc-page-width);
  margin: 0 auto;
  padding: 120px var(--pc-content-padding) 5em;
  width: 100%;
}

/* Left copy */
.hero-copy {
  flex: 1;
  max-width: 560px;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--pc-font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--pc-color-accent);
  background: rgba(0,185,126,0.12);
  border: 1px solid rgba(0,185,126,0.25);
  border-radius: 2em;
  padding: 0.35em 1em;
  margin-bottom: 1.25em;
}

.hero-headline {
  font-family: var(--pc-font-heading);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 1em;
}

.headline-accent {
  color: var(--pc-color-accent);
  position: relative;
}

.hero-subheadline {
  font-family: var(--pc-font-body);
  font-size: 1.1rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2.25em;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.25em;
  flex-wrap: wrap;
}

.hero-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--pc-font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}
.hero-learn-more:hover { color: #fff; gap: 0.75em; }
.hero-learn-more svg { width: 16px; height: 16px; }

/* Right: Phone mockup */
.hero-visual {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-mockup {
  position: relative;
  width: 260px;
}

.phone-mockup-frame {
  width: 260px;
  height: 540px;
  background: #1a1a1a;
  border-radius: 36px;
  border: 3px solid rgba(255,255,255,0.12);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 40px 80px rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  padding: 12px;
}

.phone-mockup-screen {
  flex: 1;
  background: #000000;
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-mockup-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(255,255,255,0.2);
  font-family: var(--pc-font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 1em;
}

/* Accent glow beneath phone */
.phone-mockup-glow {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 100px;
  background: radial-gradient(ellipse, rgba(0,185,126,0.35) 0%, transparent 70%);
  pointer-events: none;
}

/* Scroll indicator */
.hero-scroll-indicator {
  display: flex;
  justify-content: center;
  padding-bottom: 2.5em;
  text-decoration: none;
}
.scroll-dot {
  width: 6px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 3px;
  position: relative;
  display: block;
}
.scroll-dot::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 10px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  animation: scroll-bounce 1.6s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

/* Wave divider at bottom of hero */
.section-divider-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
  pointer-events: none;
}
.section-divider-wave svg { width: 100%; height: 80px; display: block; }

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features-section {
  padding: 6em 0;
  background: var(--pc-color-bg);
}

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

.feature-item {
  padding: 2em 1.75em;
  background: var(--pc-color-bg);
  border: 1px solid var(--pc-color-border);
  border-radius: var(--pc-radius);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.feature-item:hover {
  box-shadow: 0 8px 32px rgba(18,20,24,0.08);
  transform: translateY(-4px);
  border-color: var(--pc-color-accent);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(0,185,126,0.10);
  border-radius: var(--pc-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25em;
  transition: background 0.2s ease;
}
.feature-item:hover .feature-icon { background: rgba(0,185,126,0.18); }

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--pc-color-accent);
  stroke: var(--pc-color-accent);
}

.feature-title {
  font-size: var(--pc-h5-size);
  line-height: var(--pc-h5-line);
  margin-bottom: 0.6em;
  letter-spacing: -0.02em;
}

.feature-text {
  font-family: var(--pc-font-body);
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--pc-color-text);
  margin: 0;
}

/* ============================================================
   SCREENSHOTS SECTION
   ============================================================ */
.screenshots-section {
  padding: 6em 0 4em;
  background: linear-gradient(160deg, #000000 0%, #121212 100%);
}

/* Carousel container */
.screenshots-carousel-wrap {
  position: relative;
  margin-top: 3em;
  padding-bottom: 3.5em;
}

.screenshots-carousel {
  display: flex;
  gap: 2em;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 1em 5vw 1em;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screenshots-carousel::-webkit-scrollbar { display: none; }

.screenshot-slide {
  flex-shrink: 0;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-phone-frame {
  width: 200px;
  height: 420px;
  background: #1a1a1a;
  border-radius: 28px;
  border: 2.5px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  padding: 10px;
  display: flex;
  align-items: stretch;
  transition: transform 0.3s ease;
}

.screenshot-slide:hover .screenshot-phone-frame {
  transform: translateY(-6px) scale(1.02);
}

.screenshot-screen {
  flex: 1;
  background: #000000;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshot-placeholder {
  color: rgba(255,255,255,0.2);
  font-family: var(--pc-font-ui);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 1em;
}

/* Arrow buttons */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.2s ease;
  backdrop-filter: blur(4px);
}
.carousel-prev:hover,
.carousel-next:hover { background: var(--pc-color-accent); border-color: var(--pc-color-accent); }

.carousel-prev { left: 1em; }
.carousel-next { right: 1em; }

.carousel-prev svg,
.carousel-next svg { width: 18px; height: 18px; }

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5em;
  position: absolute;
  bottom: 0.5em;
  left: 0;
  right: 0;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
  padding: 0;
}
.carousel-dot.is-active {
  background: var(--pc-color-accent);
  width: 20px;
  border-radius: 4px;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works-section {
  padding: 6em 0;
  background: var(--pc-color-bg-alt);
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3em;
  position: relative;
}

/* Connecting dashed line between steps */
.steps-row::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(33.333% - 1px);
  right: calc(33.333% - 1px);
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--pc-color-border) 0,
    var(--pc-color-border) 8px,
    transparent 8px,
    transparent 16px
  );
  z-index: 0;
}

.step-item {
  position: relative;
  z-index: 1;
  text-align: center;
}

.step-number-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5em;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--pc-color-accent);
  color: #fff;
  font-family: var(--pc-font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,185,126,0.3);
}

.step-line { display: none; }

.step-title {
  font-size: var(--pc-h4-size);
  line-height: var(--pc-h4-line);
  margin-bottom: 0.6em;
  letter-spacing: -0.02em;
}

.step-text {
  font-family: var(--pc-font-body);
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--pc-color-text);
  margin: 0;
}

/* ============================================================
   DOWNLOAD CTA
   ============================================================ */
.download-section {
  padding: 6em var(--pc-content-padding);
  background: var(--pc-color-accent);
  position: relative;
  overflow: hidden;
}

.download-inner {
  max-width: var(--pc-page-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3em;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* Decorative circles */
.download-bg-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
  z-index: 0;
}
.download-bg-circle--1 {
  width: 400px;
  height: 400px;
  top: -150px;
  right: -80px;
}
.download-bg-circle--2 {
  width: 250px;
  height: 250px;
  bottom: -100px;
  left: 5%;
}

.download-copy {
  flex: 1;
  min-width: 260px;
}

.download-headline {
  font-family: var(--pc-font-heading);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 0.5em;
}

.download-sub {
  font-family: var(--pc-font-body);
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.75;
  margin: 0;
}

.download-badges {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
  align-items: center;
}

/* Override dark badge to be white/frosted on the accent background */
.download-section .store-badge {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
}
.download-section .store-badge:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* ============================================================
   BLOG PREVIEW (home)
   ============================================================ */
.blog-preview-section {
  padding: 6em 0;
  background: var(--pc-color-bg);
}

.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
}

/* ============================================================
   RESPONSIVE — Home
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { gap: 2.5em; }
  .phone-mockup-frame { width: 220px; height: 460px; }
  .phone-mockup { width: 220px; }
}

@media (max-width: 768px) {

  .hero-inner {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
    gap: 3em;
  }

  .hero-copy { max-width: 100%; }

  .hero-ctas { justify-content: center; }

  .hero-visual { order: -1; }
  .phone-mockup-frame { width: 180px; height: 380px; }
  .phone-mockup { width: 180px; }
  .phone-mockup-glow { display: none; }

  .features-grid { grid-template-columns: 1fr; }
  .blog-preview-grid { grid-template-columns: 1fr; }

  .steps-row {
    grid-template-columns: 1fr;
    gap: 2.5em;
  }
  .steps-row::before { display: none; }

  .download-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .download-badges { justify-content: center; }

  .section-header--with-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75em;
  }

  .screenshots-carousel-wrap .carousel-prev { left: 0.25em; }
  .screenshots-carousel-wrap .carousel-next { right: 0.25em; }
}

@media (max-width: 480px) {
  .hero-section { min-height: auto; padding-bottom: 1em; }
  .hero-headline { font-size: 2rem; }
  .features-section,
  .screenshots-section,
  .how-it-works-section,
  .download-section,
  .blog-preview-section { padding-top: 4em; padding-bottom: 4em; }
}
