:root {
  --primary: #e67ba4;
  --primary-dark: #d45988;
  --text-dark: #f9f5f7;
  --text-muted: #d4a5c2;
  --bg-glass: rgba(60, 30, 50, 0.8);
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  --radius: 32px;
  --bg-dark: #1a0f18;
  --bg-darker: #280f25;
  --accent-rose: #e89bb5;
  --accent-purple: #9b6f8e;
  --accent-brown: #d4a5c2;
}

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

body {
  background: linear-gradient(135deg, #1a0f18 0%, #280f25 50%, #1a0f20 100%);
  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);
  padding: 10px 18px;
  border: none;
  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);
  font-family: inherit;
}

button.btn-control {
  appearance: none;
  -webkit-appearance: none;
}

select.btn-control {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f1f0' stroke-width='2'%3e%3cpath d='M6 9l6 6 6-6'%3e%3c/path%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
}

.btn-control:hover {
  transform: translateY(-2px);
  background: rgba(212, 116, 159, 0.15);
}

/* --- 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: rgba(40, 15, 35, 0.65);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  padding: 4rem;
  border-radius: var(--radius);
  max-width: 600px;
  text-align: center;
  box-shadow: var(--shadow);
  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: rgba(60, 30, 50, 0.5);
  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: rgba(80, 40, 70, 0.6);
}

.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: linear-gradient(135deg, rgba(40, 15, 35, 0.5) 0%, rgba(60, 30, 50, 0.5) 100%);
  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: rgba(60, 30, 50, 0.7);
  padding: 3rem 2rem;
  border-radius: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
  position: relative;
}

.price-card.featured {
  background: rgba(80, 40, 70, 0.9);
  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: rgba(20, 10, 18, 0.9);
  border-top: 1px solid rgba(230, 123, 164, 0.2);
}

.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: linear-gradient(135deg, rgba(40, 15, 35, 0.7) 0%, rgba(60, 30, 50, 0.7) 100%);
  padding: 8rem 2rem;
  text-align: center;
}

.chat-container {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(40, 15, 35, 0.6);
  border-radius: 40px;
  padding: 3rem;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
  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: linear-gradient(135deg, #d4749f 0%, #c45d8f 100%);
  color: #f5f1f0;
  border-bottom-right-radius: 5px;
}

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

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

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

.video-section {
  background: linear-gradient(180deg, rgba(40, 15, 35, 0.6) 0%, rgba(60, 30, 50, 0.5) 100%);
}

.video-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.phone-frame {
  position: relative;
  width: 200px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow:
    0 0 0 10px #1a1a2e,
    0 30px 60px rgba(0, 0, 0, 0.35);
  background: #000;
}

.phone-frame video {
  width: 100%;
  display: block;
  border-radius: 28px;
}

.video-caption {
  display: flex;
  justify-content: center;
}

@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;
  }
}

/* --- Mobile Optimization (< 768px) --- */
@media (max-width: 768px) {
  .hero-card {
    padding: 3rem 2rem 4rem;
    max-width: 90vw;
    margin: 1rem auto;
  }

  h1 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }

  .hero-tagline {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .chat-bubble {
    max-width: 90%;
    padding: 0.9rem 1.2rem;
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .chat-container {
    padding: 1rem;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .moments-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 4rem;
    padding: 0 2rem;
  }

  .online-badge {
    font-size: 0.75rem;
  }

  .avatar-wrap {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
  }

  .btn-tele {
    padding: 12px 28px;
    font-size: 0.9rem;
  }

  .btn-control {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .moment-label {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .price-card {
    padding: 2rem 1.5rem;
  }

  footer {
    padding: 3rem 1.5rem;
  }
}

/* --- Extra Small Devices (< 480px) --- */
@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .section-subtitle {
    font-size: 0.85rem;
  }

  .chat-bubble {
    max-width: 95%;
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  .phone-frame {
    width: 250px;
  }

  .hero-card {
    padding: 5rem 1rem;
  }

  .avatar-wrap {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
  }

  .btn-tele {
    padding: 10px 24px;
    font-size: 0.85rem;
    gap: 8px;
  }

  .btn-tele svg {
    width: 18px;
    height: 18px;
  }
}
