:root {
  --primary: #ff7eb3;
  --primary-dark: #ff5e9c;
  --text-dark: #2d3436;
  --text-muted: #636e72;
  --bg-glass: rgba(255, 255, 255, 0.75);
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  --radius: 32px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Outfit", "Noto Sans JP", sans-serif;
}

body {
  background: #ffffff;
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- UI Controls --- */
.controls {
  position: fixed;
  top: 2rem;
  right: 2rem;
  display: flex;
  gap: 1rem;
  z-index: 1000;
}

.btn-control {
  background: var(--bg-glass);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 18px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.btn-control:hover {
  transform: translateY(-2px);
  background: white;
}

select.btn-control {
  appearance: none;
  cursor: pointer;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("/assets/loft.png") center/cover no-repeat;
  opacity: 0.6;
  filter: blur(5px);
  transform: scale(1.1);
}

.hero-card {
  position: relative;
  background: var(--bg-glass);
  backdrop-filter: blur(30px);
  padding: 4rem;
  border-radius: var(--radius);
  max-width: 600px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.4);
  animation: fadeIn 1.2s ease-out;
  margin: 2rem;
}

.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(43, 203, 186, 0.15);
  color: #20bf6b;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.pulse {
  width: 8px;
  height: 8px;
  background: #20bf6b;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(32, 191, 107, 0.4);
  animation: pulse 2s infinite;
}

.avatar-wrap {
  width: 160px;
  height: 160px;
  margin: 0 auto 2rem;
  position: relative;
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid white;
  box-shadow: var(--shadow);
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  letter-spacing: -2px;
  line-height: 1.1;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* --- Sections --- */
.section {
  padding: 8rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 4rem;
}

/* --- Selfie Grid --- */
.moments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.moment-card {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
  box-shadow: var(--shadow);
  background: #eee;
}

.moment-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.moment-card.placeholder {
  background: #fdfdfd;
  border: 2px dashed #e1e1e1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: default;
  box-shadow: none;
  transition: all 0.3s;
}

.moment-card.placeholder:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fffafa;
}

.moment-card:hover img {
  transform: scale(1.08);
}

.moment-label {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  color: white;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s;
}

.moment-card:hover .moment-label {
  opacity: 1;
  transform: translateY(0);
}

/* --- Diary Section --- */
.diary-section {
  background: #fffafa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem;
}

.diary-container {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 6rem;
}

.diary-image img {
  width: 100%;
  max-width: 600px;
  border-radius: 40px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12);
}

.diary-content {
  text-align: left;
  min-width: 300px;
}

/* --- Pricing Grid --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.price-card {
  background: white;
  padding: 3rem 2rem;
  border-radius: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.price-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.05);
}

.btn-tele {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #0088cc;
  color: white;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: 0 10px 25px rgba(0, 136, 204, 0.2);
}

.btn-tele:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 136, 204, 0.3);
}

/* --- Footer --- */
footer {
  padding: 6rem 2rem;
  text-align: center;
  background: white;
  border-top: 1px solid #f1f1f1;
}

.footer-links a {
  margin: 0 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

/* --- Animations --- */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(32, 191, 107, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(32, 191, 107, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(32, 191, 107, 0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: white;
  opacity: 0.4;
  cursor: pointer;
  animation: bounce 3s infinite;
  z-index: 10;
  transition: opacity 0.3s;
}

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

.scroll-down span {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-6px);
  }
  60% {
    transform: translateX(-50%) translateY(-3px);
  }
}

/* --- Chat Showcase --- */
.chat-section {
  background: #fff;
  padding: 8rem 2rem;
  text-align: center;
}

.chat-container {
  max-width: 800px;
  margin: 0 auto;
  background: #f8f9fa;
  border-radius: 40px;
  padding: 3rem;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.chat-bubble {
  max-width: 80%;
  padding: 1.2rem 1.8rem;
  border-radius: 25px;
  font-size: 1.1rem;
  line-height: 1.5;
  position: relative;
  animation: bubbleFadeIn 0.8s ease-out both;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 5px;
}

.chat-bubble.aiko {
  align-self: flex-start;
  background: white;
  color: var(--text-dark);
  border-bottom-left-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

@keyframes bubbleFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .moments-grid,
  .pricing-grid,
  .diary-container {
    grid-template-columns: 1fr;
  }
  .diary-section {
    padding: 4rem 2rem;
  }
  .controls {
    top: 1rem;
    right: 1rem;
  }
  h1 {
    font-size: 2.5rem;
  }
}
