:root {
  --lavender: #B8A9E8;
  --lavender-dark: #9B8EC4;
  --lavender-deep: #7B6BA4;
  --pink: #F5C2D0;
  --pink-light: #FDE8EE;
  --white: #FFFFFF;
  --bg: #FAF7FF;
  --text: #3D3250;
  --text-light: #7B6E8E;
  --card-shadow: rgba(184, 169, 232, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #8B6FC0 0%, #D4789B 30%, #7B5EA7 60%, #A88BC7 100%);
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
}

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

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 20px 80px;
}

.hero-visual {
  margin-bottom: 24px;
}

.avatar-ring {
  display: inline-block;
  padding: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--white), var(--pink), var(--lavender));
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.15),
    0 0 80px rgba(245, 194, 208, 0.3);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-image {
  display: block;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  border: 4px solid var(--white);
}

/* Logo text with glitch hint */
.logo-text {
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(155, 142, 196, 0.4);
  margin-bottom: 8px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.logo-text .glitch {
  display: inline-block;
  position: relative;
  color: var(--white);
}

.logo-text .glitch::after {
  content: "err";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--pink);
  opacity: 0;
  animation: glitchFlash 6s ease-in-out infinite;
}

@keyframes glitchFlash {
  0%, 90%, 100% { opacity: 0; transform: translate(0); }
  92% { opacity: 0.8; transform: translate(2px, -1px); }
  94% { opacity: 0; transform: translate(-1px, 1px); }
  96% { opacity: 0.6; transform: translate(1px, 0); }
  98% { opacity: 0; }
}

.tagline {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.08em;
  font-weight: 400;
}

/* Wave divider */
.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
}

.wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* ===== Main content ===== */
main {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Sections ===== */
section {
  margin-bottom: 48px;
}

h2 {
  font-size: 1.15rem;
  color: var(--lavender-dark);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--pink-light);
  letter-spacing: 0.05em;
}

/* ===== About ===== */
.about {
  padding-top: 32px;
}

.about p {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

/* ===== Status ===== */
.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.status-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(184, 169, 232, 0.15);
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.status-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--card-shadow);
}

.status-icon {
  font-size: 1.6rem;
}

.status-label {
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--lavender-deep);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.status-note {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-light);
  text-align: center;
}

/* ===== Links ===== */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.02em;
}

.link-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--card-shadow);
}

.link-button.x {
  background: linear-gradient(135deg, #2D2D2D, #1a1a2e);
  color: var(--white);
}

.link-button.note {
  background: linear-gradient(135deg, var(--lavender), var(--lavender-dark));
  color: var(--white);
}

.link-button svg {
  flex-shrink: 0;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 32px 0 48px;
}

.footer-line {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--lavender));
  border-radius: 2px;
  margin: 0 auto 20px;
}

footer p {
  color: var(--text-light);
  font-size: 0.85rem;
}

.footer-sub {
  margin-top: 4px;
  font-size: 0.7rem;
  color: var(--lavender);
  letter-spacing: 0.1em;
  text-transform: lowercase;
}

/* ===== Scroll animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .hero {
    min-height: 440px;
  }

  .hero-content {
    padding: 40px 20px 70px;
  }

  .hero-image {
    width: 160px;
    height: 160px;
  }

  .logo-text {
    font-size: 2.4rem;
  }

  .status-grid {
    gap: 8px;
  }

  .status-card {
    padding: 14px 10px;
    border-radius: 12px;
  }

  .status-value {
    font-size: 1.2rem;
  }
}
