/* ===== Landing Page ===== */

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  z-index: 200;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
}

.nav-logo:hover { opacity: 0.8; }

.nav-cta {
  padding: 0.5rem 1.2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 12px rgba(240,100,73,0.25);
}

/* Hide default header on landing */
.landing-page > header { display: none; }

.landing-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2.5rem 2rem;
}

/* ===== Hero ===== */
.hero {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 4rem 0 3rem;
}

.hero-content { flex: 1; }

.hero-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: var(--mint-light);
  color: #0a8967;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-desc {
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 1.8rem;
  max-width: 420px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-hero:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(240,100,73,0.3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.4rem;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text-soft);
  font-weight: 600;
}

.hero-visual {
  flex-shrink: 0;
  position: relative;
}

.bead-grid-demo {
  width: 240px;
  height: 240px;
  padding: 18px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.hero-visual-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,100,73,0.1) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.demo-bead {
  aspect-ratio: 1;
  border-radius: 50%;
  animation: beadPop 0.35s ease both;
}

@keyframes beadPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== Brands Strip ===== */
.brands-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
  overflow-x: auto;
}

.brands-strip p {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-soft);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.brands-list {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.brands-list span {
  padding: 0.3rem 0.7rem;
  background: var(--bg);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  border: 1px solid var(--border);
}

/* ===== Intro Section ===== */
.intro-section {
  text-align: center;
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
}

.intro-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}

.intro-section h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.intro-section p {
  color: var(--text-soft);
  line-height: 1.8;
  font-size: 0.95rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== Demo Compare Section ===== */
.demo-section {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
  text-align: center;
}

.demo-section h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.demo-compare {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.demo-card {
  position: relative;
  flex: 1;
  min-width: 0;
}

.demo-card > img {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-label {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0.25rem 0.65rem;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  z-index: 1;
  border: 1px solid var(--border);
}

.demo-arrow {
  flex-shrink: 0;
  opacity: 0.7;
}

/* ===== Steps Section ===== */
.steps-section {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
  text-align: center;
}

.steps-section h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.section-desc {
  color: var(--text-soft);
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  flex: 1;
  max-width: 160px;
  text-align: center;
  padding: 0 0.5rem;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.8rem;
}

.step-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.8rem;
  color: var(--text);
}

.step h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.step p {
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.step-arrow {
  display: flex;
  align-items: center;
  padding-top: 3.5rem;
  opacity: 0.35;
}

/* ===== Features Section ===== */
.features-section {
  margin-bottom: 2.5rem;
}

.features-section h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  color: var(--text);
  text-align: center;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
  cursor: default;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.feature-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.feature-card p {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.55;
}

/* ===== Needs Section ===== */
.needs-section {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
  text-align: center;
}

.needs-section h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.needs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.need-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.2rem 0.5rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.need-card span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.need-card small {
  font-size: 0.75rem;
  color: var(--text-soft);
}

/* ===== FAQ Section ===== */
.faq-section {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
}

.faq-section h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  color: var(--text);
  text-align: center;
}

.faq-list {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: var(--accent);
}

.faq-item summary {
  padding: 1rem 1.2rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  user-select: none;
  transition: background 0.2s;
}

.faq-item summary:hover {
  background: var(--bg);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding: 0 1.2rem 1rem;
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ===== Scroll Fade-in Animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Focus Styles ===== */
.nav-cta:focus-visible,
.btn-hero:focus-visible,
.btn-ghost:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ===== CTA Section ===== */
.cta-section {
  margin-bottom: 1rem;
}

.cta-card {
  text-align: center;
  padding: 3.5rem 2rem;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--purple-light) 50%, var(--mint-light) 100%);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.cta-card h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.cta-card p {
  color: var(--text-soft);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* ===== Footer link ===== */
.landing-page footer a {
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.landing-page footer a:hover {
  color: var(--accent);
}

/* ===== Responsive ===== */
@media (max-width: 700px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding: 2.5rem 0 2rem;
  }

  .hero h1 { font-size: 1.8rem; }
  .hero-desc { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }

  .bead-grid-demo {
    width: 200px;
    height: 200px;
    padding: 14px;
  }

  .hero-visual-glow {
    width: 240px;
    height: 240px;
  }

  .demo-compare {
    gap: 1rem;
  }

  .demo-arrow svg {
    width: 28px;
    height: 28px;
  }

  .steps {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .step-arrow { display: none; }

  .step {
    flex: 0 0 calc(50% - 0.5rem);
    max-width: none;
  }

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

  .needs-grid {
    grid-template-columns: 1fr 1fr;
  }

  .brands-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 1.5rem; }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-hero, .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .step {
    flex: 0 0 100%;
  }

  .needs-grid {
    grid-template-columns: 1fr;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .demo-bead { animation: none; }
  .fade-in { opacity: 1; transform: none; transition: none; }
}
