:root {
  --bg-color: #ECEAF2;
  --text-main: #4A3B52;
  --text-muted: #78687F;
  --pink-pad: #F9CEE0;
  --pink-deep: #E08DA6;
  --cream-tray: #FCF8E8;
  --purple-tray: #DCD1EB;
  --mint: #C5E6D6;
  --lavender: #D0C2E8;
  --butter: #FCE68A;
  --blue: #C3DCF5;
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  background-color: rgba(236, 234, 242, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  padding: 12px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 1.2rem;
}
.brand img {
  height: 32px;
  width: auto;
  border-radius: 8px;
}
.nav-scroll {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.nav-scroll::-webkit-scrollbar {
  display: none;
}
.nav-scroll a {
  white-space: nowrap;
  background: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  transition: all 0.2s;
}
.nav-scroll a:hover {
  background: var(--pink-pad);
  color: var(--text-main);
}

/* Hero Section */
.hero {
  padding: 40px 0 60px;
}
.hero-pad {
  background: var(--pink-pad);
  border-radius: 40px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
@media (min-width: 768px) {
  .hero-pad {
    flex-direction: row;
    padding: 60px;
    justify-content: space-between;
  }
}
.hero-text {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 500px;
}
.hero-text h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--text-main);
}
.hero-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 24px;
  font-weight: bold;
  font-size: 1rem;
  transition: transform 0.2s;
  cursor: pointer;
  border: none;
}
.btn:active {
  transform: scale(0.96);
}
.btn-android {
  background: var(--text-main);
  color: #fff;
}
.btn-ios {
  background: #fff;
  color: var(--text-main);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.hero-visuals {
  position: relative;
  width: 100%;
  max-width: 300px;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.blob {
  position: absolute;
  border-radius: 50%;
  box-shadow: inset -10px -10px 20px rgba(0,0,0,0.05), inset 10px 10px 20px rgba(255,255,255,0.5);
}
.blob-1 {
  width: 140px;
  height: 140px;
  background: var(--butter);
  top: 10%;
  left: 10%;
  z-index: 1;
}
.blob-2 {
  width: 180px;
  height: 180px;
  background: var(--lavender);
  bottom: 10%;
  right: 10%;
  z-index: 2;
}
.blob-3 {
  width: 120px;
  height: 120px;
  background: var(--mint);
  top: 40%;
  left: 30%;
  z-index: 3;
}
.blob-img {
  position: absolute;
  width: 100px;
  height: 140px;
  border-radius: 20px;
  border: 4px solid #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  z-index: 4;
  object-fit: cover;
}
.blob-img-1 { top: 0; right: 20%; transform: rotate(8deg); }
.blob-img-2 { bottom: 0; left: 20%; transform: rotate(-8deg); }

/* Sections Base */
section {
  padding: 40px 0;
}
.section-title {
  font-size: 1.6rem;
  margin-bottom: 8px;
  text-align: center;
}
.section-desc {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

/* Cream Tray */
.tray-cream {
  background: var(--cream-tray);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.grid-main-small {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 768px) {
  .grid-main-small {
    display: grid;
    grid-template-columns: 2fr 1fr;
  }
}
.main-story {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: #fff;
}
.main-story img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
@media (min-width: 768px) {
  .main-story img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 400px;
  }
}
.story-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
}
.story-info h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.story-info p {
  font-size: 0.85rem;
  opacity: 0.9;
}
.small-stories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.small-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.small-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.small-card .card-title {
  padding: 8px 10px;
  font-size: 0.85rem;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Editor Shelf */
.editor-shelf {
  margin-top: 24px;
}
.shelf-title {
  font-size: 1.1rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.shelf-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 20px;
  background: var(--pink-deep);
  border-radius: 4px;
}
.compact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.compact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 10px;
  border-radius: var(--radius-sm);
}
.compact-item img {
  width: 50px;
  height: 65px;
  border-radius: 8px;
}
.compact-item .item-text h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.compact-item .item-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Purple Tray */
.tray-purple {
  background: var(--purple-tray);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.compare-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}
@media (min-width: 768px) {
  .compare-row {
    flex-direction: row;
  }
}
.compare-card {
  flex: 1;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.compare-card img {
  width: 80px;
  height: 110px;
  border-radius: 8px;
  object-fit: cover;
}
.compare-text h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.compare-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.fold-item {
  background: rgba(255,255,255,0.5);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.fold-header {
  padding: 16px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: #fff;
}
.fold-header::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform 0.3s;
}
.fold-item.open .fold-header::after {
  transform: rotate(45deg);
}
.fold-content {
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: #fff;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.fold-item.open .fold-content {
  max-height: 200px;
  padding: 0 16px 16px;
}

/* Grid Galleries */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  background: #fff;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.3s;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255,255,255,0.9);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--pink-deep);
}

/* Tutorial & FAQ */
.tutorial-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  padding: 24px;
  border-radius: var(--radius-md);
}
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.step-num {
  width: 28px;
  height: 28px;
  background: var(--pink-pad);
  color: var(--text-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.step-text h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}
.step-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Comments Marquee */
.marquee-container {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  padding: 10px 0;
}
.marquee-content {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scroll 30s linear infinite;
}
.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.comment-card {
  background: #fff;
  padding: 16px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  width: 260px;
  flex-shrink: 0;
}
.comment-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.comment-avatar {
  width: 32px;
  height: 32px;
  background: var(--lavender);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  color: #fff;
}
.comment-name {
  font-size: 0.85rem;
  font-weight: bold;
}
.comment-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
footer {
  background: var(--cream-tray);
  padding: 40px 0 20px;
  margin-top: 40px;
  border-radius: 40px 40px 0 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--text-main);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}
.modal-box {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}
.modal-box p {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--text-main);
}
.copy-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  text-align: center;
  background: var(--bg-color);
}
.copy-btn {
  background: var(--text-main);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }
  .hero-pad {
    padding: 30px 20px;
  }
  .nav-scroll a {
    font-size: 0.8rem;
    padding: 4px 12px;
  }
  .section-title {
    font-size: 1.4rem;
  }
  .tray-cream, .tray-purple {
    padding: 20px;
  }
}