/* ===== Jini Studio — Design System ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

/* ---------- CSS Variables (Dark Mode Only) ---------- */
:root {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0f;
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --accent-start: #a855f7;
  --accent-end: #f0c040;
  --glow-color: rgba(168, 85, 247, 0.45);
  --smoke-color: rgba(0, 220, 220, 0.18);
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-y: auto;
  height: 100%;
}

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



/* ---------- Page Indicator ---------- */
.page-indicator {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.page-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-secondary);
  opacity: 0.3;
  transition: opacity 0.4s, transform 0.4s, background 0.4s;
  cursor: pointer;
  border: none;
  padding: 0;
}

.page-dot.active {
  opacity: 1;
  transform: scale(1.4);
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
}

/* ---------- Section Common ---------- */
section {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* ---------- Scroll Nav Arrows ---------- */
.scroll-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  z-index: 10;
  opacity: 0.5;
  transition: opacity 0.3s;
  border: none;
  background: none;
  color: var(--text-secondary);
}

.scroll-nav:hover {
  opacity: 1;
}

.scroll-nav.top {
  top: 24px;
}

.scroll-nav.bottom {
  bottom: 24px;
}

.scroll-nav span {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.nav-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
}

.nav-arrow.down {
  transform: rotate(45deg);
  animation: bounceDown 2s ease infinite;
}

.nav-arrow.up {
  transform: rotate(-135deg);
  animation: bounceUp 2s ease infinite;
}

/* ---------- Hero Section ---------- */
.hero {
  text-align: center;
  gap: 24px;
}

.hero-label {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-title {
  font-size: clamp(52px, 10vw, 96px);
  font-weight: 800;
  line-height: 1.05;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite, fadeUp 0.8s ease forwards 0.4s;
  opacity: 0;
}

.hero-subtitle {
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 600;
  color: var(--text-secondary);
  max-width: 560px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.7s;
}

/* ---------- Magic Lamp ---------- */
.lamp-container {
  position: relative;
  width: 320px;
  height: 380px;
  margin-top: 8px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1s;
}

.lamp-image {
  width: 280px;
  height: 280px;
  object-fit: cover;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 40px rgba(168, 85, 247, 0.4));
  animation: lampFloat 3s ease-in-out infinite;
  border-radius: 50%;
}

/* Magical smoke particles rising from lamp */
.smoke-wrapper {
  position: absolute;
  bottom: 180px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 200px;
  pointer-events: none;
}

.smoke {
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  filter: blur(14px);
  animation: smokeRise 3.5s ease-in-out infinite;
}

.smoke:nth-child(1) {
  left: 25%;
  width: 30px;
  height: 30px;
  background: rgba(168, 85, 247, 0.25);
  animation-delay: 0s;
}

.smoke:nth-child(2) {
  left: 50%;
  width: 22px;
  height: 22px;
  background: rgba(0, 200, 220, 0.20);
  animation-delay: 0.5s;
}

.smoke:nth-child(3) {
  left: 40%;
  width: 36px;
  height: 36px;
  background: rgba(168, 85, 247, 0.20);
  animation-delay: 1.0s;
}

.smoke:nth-child(4) {
  left: 60%;
  width: 18px;
  height: 18px;
  background: rgba(240, 192, 64, 0.18);
  animation-delay: 1.5s;
}

.smoke:nth-child(5) {
  left: 35%;
  width: 26px;
  height: 26px;
  background: rgba(0, 200, 220, 0.22);
  animation-delay: 2.0s;
}

.smoke:nth-child(6) {
  left: 55%;
  width: 32px;
  height: 32px;
  background: rgba(168, 85, 247, 0.18);
  animation-delay: 2.5s;
}

.smoke:nth-child(7) {
  left: 45%;
  width: 20px;
  height: 20px;
  background: rgba(240, 192, 64, 0.15);
  animation-delay: 3.0s;
}

/* Sparkle particles */
.sparkle-wrapper {
  position: absolute;
  bottom: 160px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 220px;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  animation: sparkleFloat 2.5s ease-in-out infinite;
}

.sparkle:nth-child(1) {
  left: 20%;
  bottom: 10%;
  animation-delay: 0s;
  background: var(--accent-start);
}

.sparkle:nth-child(2) {
  left: 70%;
  bottom: 20%;
  animation-delay: 0.4s;
  background: var(--accent-end);
}

.sparkle:nth-child(3) {
  left: 40%;
  bottom: 5%;
  animation-delay: 0.8s;
}

.sparkle:nth-child(4) {
  left: 60%;
  bottom: 15%;
  animation-delay: 1.2s;
  background: var(--accent-start);
}

.sparkle:nth-child(5) {
  left: 30%;
  bottom: 25%;
  animation-delay: 1.6s;
  background: var(--accent-end);
}

.sparkle:nth-child(6) {
  left: 50%;
  bottom: 0%;
  animation-delay: 2.0s;
}

/* ---------- Showcase Section ---------- */
.showcase {
  gap: 32px;
  overflow: hidden;
}

.showcase-heading {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  text-align: center;
  line-height: 1.15;
  flex-shrink: 0;
  padding-top: 32px;
}

.showcase-heading .gradient-text {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Horizontal scrolling card track */
.cards-viewport {
  width: 100%;
  max-width: 1100px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  display: flex;
  align-items: center;
}

.cards-viewport::-webkit-scrollbar {
  display: none;
}

.cards {
  display: flex;
  gap: 24px;
  padding: 20px 24px;
  width: max-content;
}

/* Portrait card */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 40px 32px 36px;
  text-align: center;
  width: 280px;
  min-height: 420px;
  flex-shrink: 0;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px var(--glow-color);
}

.card-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 16px;
  display: block;
  border-radius: 16px;
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-details {
  list-style: none;
  text-align: left;
  width: 100%;
  padding: 0 0 0 0;
  margin-top: auto;
}

.card-details li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 0;
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-details li::before {
  content: '✦';
  color: var(--accent-start);
  font-size: 10px;
  flex-shrink: 0;
}

/* Card scroll indicators */
.card-scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  margin-bottom: 50px;
}

.card-scroll-hint span {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.card-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-secondary);
  opacity: 0.25;
  transition: opacity 0.3s, background 0.3s, transform 0.3s;
}

.card-dot.active {
  opacity: 1;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  transform: scale(1.3);
}

/* ---------- CTA Section ---------- */
.cta {
  text-align: center;
  gap: 28px;
}

.cta-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.35));
  margin-bottom: 8px;
}

.cta-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
}

.cta-subtitle {
  font-size: clamp(16px, 2.5vw, 22px);
  color: var(--text-secondary);
  font-weight: 600;
  max-width: 700px;
  white-space: nowrap;
  margin-bottom: 150px;
}

.cta-button {
  position: relative;
  display: inline-block;
  padding: 16px 48px;
  font-size: 17px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  border: none;
  border-radius: 980px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}

.cta-button:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 40px var(--glow-color);
}

.cta-button::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 980px;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  z-index: -1;
  filter: blur(18px);
  opacity: 0.5;
  transition: opacity 0.3s;
}

.cta-button:hover::after {
  opacity: 0.8;
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 20px 24px;
  font-size: 13px;
  color: var(--text-secondary);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

/* ---------- Keyframes ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes smokeRise {
  0% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }

  25% {
    opacity: 0.6;
  }

  100% {
    opacity: 0;
    transform: translateY(-140px) scale(2.5) translateX(15px);
  }
}

@keyframes sparkleFloat {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }

  30% {
    opacity: 1;
    transform: scale(1.2);
  }

  100% {
    opacity: 0;
    transform: translateY(-120px) translateX(20px) scale(0.3);
  }
}

@keyframes lampFloat {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes bounceDown {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: rotate(45deg) translateY(0);
  }

  40% {
    transform: rotate(45deg) translateY(8px);
  }

  60% {
    transform: rotate(45deg) translateY(4px);
  }
}

@keyframes bounceUp {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: rotate(-135deg) translateY(0);
  }

  40% {
    transform: rotate(-135deg) translateY(-8px);
  }

  60% {
    transform: rotate(-135deg) translateY(-4px);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  section {
    padding: 60px 20px;
  }

  .lamp-container {
    width: 240px;
    height: 300px;
  }

  .lamp-image {
    width: 200px;
    height: 200px;
  }

  .page-indicator {
    right: 16px;
  }

  .cta-subtitle {
    white-space: normal;
  }

  /* Mobile: single card fills viewport */
  .cards {
    padding: 12px 16px;
    gap: 16px;
  }

  .card {
    width: 85vw;
    min-height: 380px;
    padding: 32px 24px 28px;
  }
}

@media (max-width: 480px) {
  .page-indicator {
    right: 10px;
    gap: 8px;
  }

  .page-dot {
    width: 8px;
    height: 8px;
  }

  .card {
    width: 88vw;
  }
}