/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #3F51B5;
  --primary-light: #5C6BC0;
  --accent: #FF4081;
  --gold: #fbc749;
  --bg: #111118;
  --bg-card: #1a1a24;
  --bg-card-hover: #22222e;
  --text: #f0f0f5;
  --text-secondary: #a0a0b0;
  --radius: 12px;
  --max-width: 960px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Background Pattern ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-rule='evenodd'%3E%3Cpath d='M40 10 L44 20 L40 18 L36 20 Z' /%3E%3Ccircle cx='40' cy='55' r='8' fill='none' stroke='%23ffffff' stroke-width='1'/%3E%3Ccircle cx='40' cy='55' r='3'/%3E%3Cpath d='M10 70 Q20 50 30 70' fill='none' stroke='%23ffffff' stroke-width='1'/%3E%3Cpath d='M50 70 Q60 50 70 70' fill='none' stroke='%23ffffff' stroke-width='1'/%3E%3Cpath d='M25 70 Q30 58 35 70' fill='none' stroke='%23ffffff' stroke-width='0.8'/%3E%3Cpath d='M45 70 Q50 58 55 70' fill='none' stroke='%23ffffff' stroke-width='0.8'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

/* ── Shared ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 64px 0; }

a { color: var(--primary-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 100px 0 48px;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Stats Bar ── */
.stats { padding: 32px 0; }

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.stat {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 20px 28px;
  text-align: center;
  flex: 1;
  min-width: 140px;
  max-width: 200px;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.app-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}

.app-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.app-link:hover { color: var(--text); }
.app-link svg { width: 18px; height: 18px; fill: currentColor; }

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 32px;
  transition: background 0.2s, transform 0.2s;
}

.card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.card .card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ── Section headings ── */
.section-heading {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 48px;
}

/* ── Before / After Strip ── */
.before-after-strip {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.before-after-pair {
  display: flex;
  align-items: center;
  gap: 8px;
}

.before-after-pair img {
  width: 90px;
  height: 90px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.08);
}

.before-after-arrow {
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 700;
}

.before-after-pair .ba-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  text-align: center;
  display: block;
  margin-top: 4px;
}

.ba-img-wrap { text-align: center; }

/* ── Video Carousel ── */
.videos { padding: 48px 0; }

.videos h2 {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.video-strip {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  width: 260px;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.video-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  color: var(--text);
}

.video-thumb {
  position: relative;
  width: 100%;
  height: 146px;
  background: #0d0d14;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn svg { width: 20px; height: 20px; fill: #fff; margin-left: 2px; }

.video-card-body { padding: 12px 16px; }

.video-card-body .video-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.video-card-body .video-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ── CTA ── */
.cta {
  text-align: center;
  padding: 64px 0 48px;
}

.cta h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 1rem;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 40px;
  border-radius: 30px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(63,81,181,0.3);
  color: #fff;
}

/* ── Navigation ── */
.nav-back {
  position: fixed;
  top: 24px;
  left: 24px;
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  z-index: 100;
  transition: color 0.2s;
  cursor: pointer;
}

.nav-back:hover { color: var(--text); }
.nav-back svg { width: 16px; height: 16px; fill: currentColor; }

/* ── Hero images row ── */
.hero-images {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.hero-images img {
  width: 140px;
  height: 140px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.08);
}

/* ── Steps (numbered cards) ── */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 16px;
}

/* ── Benefits list ── */
.benefits-list {
  list-style: none;
  max-width: 520px;
  margin: 0 auto;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.benefits-list li + li {
  border-top: 1px solid rgba(255,255,255,0.04);
}

.benefit-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  margin-top: 1px;
}

/* ── Responsive ── */
@media (min-width: 700px) {
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 699px) {
  .stat { min-width: 120px; padding: 16px 16px; }
  .stat-number { font-size: 1.2rem; }
  .video-card { width: 100%; }
  .before-after-pair img { width: 72px; height: 72px; }
  .hero { padding: 72px 0 36px; }
  section { padding: 48px 0; }
  .hero-images img { width: 100px; height: 100px; }
  .nav-back { position: static; padding: 16px 24px; }
}

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 32px 24px 40px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

.site-footer a {
  color: rgba(255,255,255,0.35);
  margin: 0 8px;
}

.site-footer a:hover { color: var(--text-secondary); }

/* ── Image Modal ── */
.img-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.img-modal.open { display: flex; }

.img-modal img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  cursor: default;
}

.img-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.img-modal-close:hover { background: rgba(255,255,255,0.2); }

/* ── Join Page ── */
.join-outfit-img {
  max-width: min(400px, 100%);
  height: auto;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,0.08);
}

.before-after-pair img { cursor: pointer; }

/* ── Also Card ── */
.also-heading {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.also-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.also-card-screenshot {
  width: 64px;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.08);
}

.also-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.also-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ── Outfit Showcase (detail page) ── */
.outfit-showcase {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}

.outfit-pair {
  display: flex;
  align-items: center;
  gap: 16px;
}

.outfit-pair .outfit-img-wrap:first-child img {
  width: 160px;
  height: 160px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.08);
  cursor: pointer;
}

.outfit-pair .outfit-img-wrap:last-child img {
  width: auto;
  height: 160px;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,0.08);
  cursor: pointer;
}

.outfit-arrow {
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 700;
}

.outfit-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  text-align: center;
  display: block;
  margin-top: 8px;
}

.outfit-img-wrap { text-align: center; }

@media (max-width: 699px) {
  .outfit-pair .outfit-img-wrap:first-child img { width: 120px; height: 120px; }
  .outfit-pair .outfit-img-wrap:last-child img { height: 120px; }
  .outfit-showcase { gap: 32px; }
}

/* ── Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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