@import url("https://fonts.googleapis.com/css2?family=SN+Pro:ital,wght@0,200..900;1,200..900&display=swap");

:root {
  --primary: #000000;
  --bg: #ffffff;
  --text: #000000;
  --text-dim: #999999;
  --card-bg: #f8f8f8;
  --border: #eeeeee;
  --red: #ff4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "SN Pro", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.4;
}

/* --- Navigation --- */

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 40px 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 1000;
  pointer-events: none;
}

nav * {
  pointer-events: auto;
}

.logo {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  height: 64px;
  display: block;
  width: auto;
}

.nav-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
  cursor: pointer;
}

.nav-links a:hover {
  opacity: 0.5;
}
.nav-links a.active {
  color: var(--text);
  border-bottom: 1px solid var(--text);
}

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

/* --- Sections --- */

section {
  min-height: 100vh;
  padding: 120px 0 60px 0;
  display: none;
}

section.visible {
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --- Home Section --- */

.hero-text {
  max-width: 900px;
  margin-bottom: 40px;
  padding: 0 40px;
}

.hero-text h1 {
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -3px;
  margin-bottom: 24px;
  opacity: 1;
}

.hero-text p {
  font-size: 18px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.6;
  opacity: 0.7;
  max-width: 540px;
  margin-bottom: 40px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text);
  color: white;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.2s;
}

.primary-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.primary-btn i {
  width: 16px;
  height: 16px;
}

.features-container {
  margin-top: 40px;
  width: 100%;
  overflow: hidden;
  padding-bottom: 80px;
  position: relative;
}

.background-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 45vw;
  font-weight: 900;
  color: var(--red);
  opacity: 0.03; /* Subtly tinted red to keep it premium */
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  letter-spacing: -3.5vw;
  line-height: 0.8;
  text-align: center;
}

.features-grid {
  display: flex;
  gap: 32px;
  width: max-content;
  padding: 0 40px;
  animation: marquee 60s linear infinite;
  position: relative;
  z-index: 1;
}

.features-grid:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 8px));
  }
}

.feature-card {
  width: 380px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
  background: white;
  padding: 4px;
}

/* Staggered Heights */
.h-sm {
  margin-top: 120px;
}
.h-md {
  margin-top: 60px;
}
.h-lg {
  margin-top: 0;
}

.feature-card .label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.feature-card .label {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.2px;
}

.feature-card .price {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
}

.feature-card .image-box {
  width: 100%;
  aspect-ratio: 4/5;
  background-color: var(--card-bg);
  display: flex;
  position: relative;
  overflow: hidden;
}

.card-top-left {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 5;
}

.palette-swatch {
  width: 8px;
  height: 12px;
}

.card-top-right {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  color: var(--text);
  opacity: 0.6;
}

.feature-card .image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover .image-box img {
  transform: scale(1.05);
}

.feature-card h4 {
  display: none; /* Editorial style uses labels, not headings */
}

/* --- Collapsible Tips --- */

.collapsible-tips {
  margin-top: 32px;
  max-width: 600px;
}

.center-tips {
  margin-left: auto;
  margin-right: auto;
  padding: 0 40px;
}

.tips-trigger {
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  width: 100%;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
}

.tips-trigger span {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tips-trigger i {
  width: 18px;
  height: 18px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tips-trigger.active i {
  transform: rotate(180deg);
}

.tips-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.tips-inner {
  padding: 32px 0 48px 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.tip-item h5 {
  font-size: 13px;
  font-weight: 800; /* Bold headings */
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  opacity: 1;
}

.tip-item p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 0;
  opacity: 0.7; /* Slightly dim body */
  font-weight: 500; /* Normal weight, not bold */
  letter-spacing: 0;
}

/* --- FAQ Section --- */

.faq-section {
  padding: 120px 40px;
  background-color: #ffffff;
  max-width: 900px;
  margin: 0 auto;
}

.faq-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 80px;
  letter-spacing: -0.5px;
}

.faq-container {
  border-top: 1px solid var(--border);
}

.faq-row {
  border-bottom: 1px solid var(--border);
}

.faq-trigger {
  width: 100%;
  padding: 32px 0;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: inherit;
}

.faq-trigger span {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.faq-trigger i {
  width: 20px;
  height: 20px;
  transition: transform 0.4s ease;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-inner {
  padding: 0 0 32px 0;
}

.faq-inner p {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.7;
  font-weight: 500;
  margin: 0;
}

/* --- Pinterest-Style Feature Showcase --- */

.feature-showcase {
  padding: 120px 40px;
  display: flex;
  flex-direction: column;
  gap: 160px;
  background-color: #fdfdfd;
}

.showcase-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.showcase-item.reverse {
  direction: rtl;
}

.showcase-item.reverse .showcase-text {
  direction: ltr;
}

.showcase-image-wrapper {
  background-color: #f1f1ee;
  border-radius: 40px;
  padding: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
}

.showcase-visual {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Specific Visuals */
.board-mockup {
  background: white;
  padding: 12px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  width: 80%;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
}

.board-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.board-mockup .main-img {
  grid-row: span 2;
  border-radius: 12px 4px 4px 12px;
}

.board-info {
  grid-column: span 2;
  margin-top: 12px;
}

.board-info h6 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}

.board-info p {
  font-size: 12px;
  opacity: 0.5;
  margin: 0;
}

.scanner-mockup {
  position: relative;
  width: 60%;
}

.scanner-mockup img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.tag-label {
  position: absolute;
  background: white;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
}

.tag-label i {
  width: 14px;
  height: 14px;
}

.tag-1 {
  top: 40%;
  left: -20%;
}
.tag-2 {
  top: 20%;
  right: -20%;
}
.tag-3 {
  bottom: 20%;
  left: 10%;
}

.filter-mockup {
  background: white;
  border-radius: 24px;
  padding: 24px;
  width: 85%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow: hidden;
}

.filter-pill {
  padding: 8px 16px;
  border-radius: 100px;
  background: #f0f0f0;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.filter-pill.active {
  background: var(--red);
  color: white;
}

.showcase-text h2 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.showcase-text p {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 32px;
  opacity: 0.8;
}

.secondary-btn {
  display: inline-block;
  background: var(--red);
  color: white;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.2s;
}

.secondary-btn:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .feature-showcase {
    padding: 60px 24px;
    gap: 80px;
  }
  .showcase-item {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .showcase-item.reverse {
    direction: ltr;
  }
  .showcase-text h2 {
    font-size: 32px;
  }
  .showcase-image-wrapper {
    padding: 30px;
  }
  .tag-label {
    padding: 5px 10px;
    font-size: 9px;
    gap: 4px;
  }
  .tag-1 {
    left: -12%;
    top: 35%;
  }
  .tag-2 {
    right: -12%;
    top: 15%;
  }
  .tag-3 {
    left: 20%;
    bottom: 8%;
  }
}

/* --- Spotlight Section --- */

.spotlight-section {
  padding: 160px 40px;
  background-color: #000000;
  color: #ffffff;
}

.spotlight-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.spotlight-text h6 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  opacity: 0.6;
}

#spotlight-title {
  transition: opacity 0.3s ease;
}

.spotlight-desc {
  font-size: 16px;
  opacity: 0.6;
  font-weight: 500;
  line-height: 1.6;
  max-width: 440px;
  margin-top: -32px;
  margin-bottom: 48px;
}

.spotlight-text h2 {
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -3px;
  margin-bottom: 48px;
}

.spotlight-visual {
  position: relative;
  aspect-ratio: 1.2/1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spotlight-cards {
  position: relative;
  width: 100%;
  height: 100%;
}

.spotlight-card {
  position: absolute;
  width: 200px;
  aspect-ratio: 4/5;
  background: #111;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.spotlight-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-card {
  position: absolute;
  width: 200px;
  aspect-ratio: 4/5;
  background: #111;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-1 {
  transform: translate(-30%, -10%) rotate(-8deg);
  z-index: 1;
  opacity: 0.5;
}
.card-2 {
  transform: translate(10%, 10%) rotate(4deg);
  z-index: 5;
  width: 220px;
  opacity: 1;
}
.card-3 {
  transform: translate(60%, -5%) rotate(-2deg);
  z-index: 1;
  opacity: 0.5;
}

/* States for Shuffling */
.step-0 .card-1 {
  transform: translate(-30%, -10%) rotate(-8deg);
  z-index: 1;
  opacity: 0.5;
}
.step-0 .card-2 {
  transform: translate(10%, 10%) rotate(4deg);
  z-index: 5;
  width: 220px;
  opacity: 1;
}
.step-0 .card-3 {
  transform: translate(60%, -5%) rotate(-2deg);
  z-index: 1;
  opacity: 0.5;
}

.step-1 .card-1 {
  transform: translate(60%, -5%) rotate(-2deg);
  z-index: 1;
  opacity: 0.5;
}
.step-1 .card-2 {
  transform: translate(-30%, -10%) rotate(-8deg);
  z-index: 1;
  opacity: 0.5;
}
.step-1 .card-3 {
  transform: translate(10%, 10%) rotate(4deg);
  z-index: 5;
  width: 220px;
  opacity: 1;
}

.step-2 .card-1 {
  transform: translate(10%, 10%) rotate(4deg);
  z-index: 5;
  width: 220px;
  opacity: 1;
}
.step-2 .card-2 {
  transform: translate(60%, -5%) rotate(-2deg);
  z-index: 1;
  opacity: 0.5;
}
.step-2 .card-3 {
  transform: translate(-30%, -10%) rotate(-8deg);
  z-index: 1;
  opacity: 0.5;
}

.spotlight-progress {
  display: flex;
  gap: 12px;
  margin-top: 80px;
}

.progress-bar {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.progress-bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: #ffffff;
}

.progress-bar.active::after {
  animation: progress 5s linear forwards;
}

.progress-bar.completed::after {
  width: 100%;
}

@keyframes progress {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .spotlight-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .spotlight-text h2 {
    font-size: 42px;
  }
  .spotlight-desc {
    margin: -24px auto 48px auto;
    font-size: 14px;
  }
  .spotlight-card {
    width: 150px;
  }
  .card-1 {
    transform: translate(-35%, -10%) rotate(-8deg);
    opacity: 0.4;
  }
  .card-2 {
    transform: translate(0%, 5%) rotate(4deg);
    width: 170px;
    z-index: 5;
    opacity: 1;
  }
  .card-3 {
    transform: translate(35%, -5%) rotate(-2deg);
    opacity: 0.4;
    display: block;
  }
}

/* --- Content Pages (Support, Privacy, Terms) --- */

.content-page {
  max-width: 850px;
  margin: 0 auto;
  padding: 0 40px;
}

.content-page h2 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 48px;
}

.content-page h3 {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
  margin-top: 40px;
  margin-bottom: 12px;
}

.content-page p {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 24px;
  opacity: 0.7;
}

/* --- Footer --- */

footer {
  padding: 60px 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
}

/* --- Scrollbar styling (Minimal) --- */
::-webkit-scrollbar {
  height: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #e0e0e0;
  border-radius: 10px;
}

@media (max-width: 768px) {
  nav {
    padding: 8px 20px;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    pointer-events: auto;
    display: flex;
    justify-content: space-between;
  }

  .logo img {
    height: 50px;
    flex-shrink: 0;
  }

  .nav-links {
    flex-direction: row !important;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
  }

  .nav-links a {
    font-size: 10px;
    letter-spacing: 0.5px;
    font-weight: 800;
    white-space: nowrap;
  }

  section {
    padding: 100px 0 60px 0;
  }

  .hero-text {
    margin-bottom: 40px;
    padding: 0 24px;
  }

  .hero-text h1 {
    font-size: 42px;
    margin-bottom: 16px;
    letter-spacing: -2px;
  }

  .hero-text p {
    font-size: 16px;
    margin-bottom: 32px;
    letter-spacing: 0;
    opacity: 0.7;
    font-weight: 500;
  }

  .primary-btn {
    padding: 14px 28px;
    font-size: 11px;
  }

  .background-text {
    font-size: 40vw;
    letter-spacing: -3vw;
    top: 55%;
  }

  /* Reduce staggered heights on mobile for better visibility */
  .feature-card {
    width: 280px;
  }

  .features-container {
    margin-top: 20px;
    padding-bottom: 60px;
  }

  .h-sm,
  .h-md,
  .h-lg {
    margin-top: 0;
  }

  .content-page {
    padding: 0 24px;
  }

  .content-page h2 {
    font-size: 32px;
    margin-bottom: 32px;
  }

  footer {
    padding: 40px 24px;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
  }
}
