/* ===== IKUN Fan Site — Design System ===== */
:root {
  --bg-deep: #f8f6fc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  --border: rgba(147, 51, 234, 0.1);
  --border-hover: rgba(168, 85, 247, 0.35);

  --purple-400: #9333ea;
  --purple-500: #7c3aed;
  --purple-600: #6d28d9;
  --pink-400: #db2777;
  --pink-500: #ec4899;
  --gold-400: #d97706;

  --text-primary: #1e1033;
  --text-secondary: rgba(30, 16, 51, 0.68);
  --text-muted: rgba(30, 16, 51, 0.45);

  --gradient-main: linear-gradient(135deg, var(--purple-500), var(--pink-500));
  --gradient-subtle: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(236, 72, 153, 0.06));

  --font-sans: 'Noto Sans SC', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-glow: 0 8px 40px rgba(168, 85, 247, 0.12);
  --shadow-card: 0 4px 24px rgba(30, 16, 51, 0.06);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --header-h: 72px;
  --container: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

code {
  font-size: 0.85em;
  padding: 2px 6px;
  background: rgba(147, 51, 234, 0.08);
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--purple-500);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.skip-link:focus {
  top: 16px;
}

/* Background orbs */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: #ddd6fe;
  top: -10%;
  right: -10%;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: #fbcfe8;
  bottom: 20%;
  left: -15%;
  animation-delay: -7s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: #c7d2fe;
  top: 50%;
  left: 50%;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.15em;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--gradient-main);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: white;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--purple-500);
  background: rgba(168, 85, 247, 0.1);
}

.nav-links a.active {
  color: var(--purple-600);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn:focus-visible {
  outline: 2px solid var(--purple-400);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 4px 24px rgba(168, 85, 247, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.45);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text-primary);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  background: rgba(168, 85, 247, 0.06);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: calc(var(--header-h) + 48px) 24px 80px;
  max-width: var(--container);
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--purple-400);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
}

.title-line {
  display: block;
}

.title-line.accent {
  font-family: var(--font-display);
  font-style: italic;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero visual — photo frame */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.hero-photo {
  position: relative;
  width: min(100%, 380px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-glow), var(--shadow-card);
  transform: rotate(-2deg);
}

.hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(30, 16, 51, 0.25) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.floating-badge {
  position: absolute;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
  white-space: nowrap;
  animation: bob 4s ease-in-out infinite;
}

.badge-1 { top: 10%; right: 0; animation-delay: 0s; }
.badge-2 { bottom: 25%; left: -5%; animation-delay: -1.5s; }
.badge-3 { bottom: 5%; right: 10%; animation-delay: -3s; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== Sections ===== */
.section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--purple-400);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Page hero (sub pages) */
.page-hero {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 64px) 0 48px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  margin: 12px 0 16px;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* ===== Bento Grid ===== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 20px;
}

.bento-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 200px;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.bento-large {
  grid-row: span 2;
}

.bento-wide {
  grid-column: span 2;
}

.bento-bg {
  position: absolute;
  inset: 0;
  background-color: #2d1b4e;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.bento-card:hover .bento-bg {
  transform: scale(1.05);
}

.bento-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 5, 30, 0.88) 0%,
    rgba(15, 5, 30, 0.45) 45%,
    rgba(15, 5, 30, 0.2) 100%
  );
  z-index: 0;
}

.bento-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), transparent 60%);
  z-index: 0;
}

.bento-content {
  position: relative;
  z-index: 1;
  padding: 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #f8f4ff;
}

.bento-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #e9d5ff;
  margin-bottom: 8px;
}

.bento-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.bento-content p {
  font-size: 0.9rem;
  color: rgba(248, 244, 255, 0.85);
  line-height: 1.7;
}

/* ===== Quote ===== */
.quote-section {
  padding: 60px 0;
}

.quote-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
}

.quote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.quote-footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quote-author {
  font-weight: 700;
  color: var(--purple-400);
}

.quote-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== CTA ===== */
.cta-card {
  text-align: center;
  padding: 64px 48px;
  background: var(--gradient-subtle);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.cta-card h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  margin-bottom: 12px;
}

.cta-card p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

/* ===== Profile ===== */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
}

.profile-main {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 32px;
}

.profile-avatar {
  position: relative;
  width: 160px;
  height: 160px;
  margin-bottom: 24px;
}

.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gradient-main);
  animation: spin 8s linear infinite;
}

.avatar-text,
.avatar-img {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  object-fit: cover;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
}

.avatar-text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: white;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
}

.profile-main h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.profile-alias {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.profile-tags li {
  padding: 6px 14px;
  background: rgba(168, 85, 247, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--purple-600);
  font-weight: 500;
}

.profile-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--purple-400);
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-row dt {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.info-row dd {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-swatch {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  vertical-align: middle;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-cloud span {
  padding: 8px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  transition: var(--transition);
}

.skill-cloud span:hover {
  border-color: var(--border-hover);
  background: rgba(168, 85, 247, 0.08);
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--purple-500), var(--pink-500), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gradient-main);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

.timeline-year {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--purple-400);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.timeline-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== Culture cards ===== */
.culture-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.culture-card {
  text-align: center;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.culture-img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.culture-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.culture-card:hover .culture-img img {
  transform: scale(1.06);
}

.culture-card h3,
.culture-card p {
  padding-left: 28px;
  padding-right: 28px;
}

.culture-card h3 {
  padding-top: 24px;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.culture-card p {
  padding-bottom: 32px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.culture-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* ===== Gallery ===== */
.gallery-filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--purple-600);
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--border-hover);
}

.gallery-grid {
  --gallery-gap: 20px;
  position: relative;
  width: 100%;
}

.gallery-item {
  position: absolute;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition:
    top 0.35s ease,
    left 0.35s ease,
    width 0.35s ease,
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}

.gallery-item.is-layout-ready {
  opacity: 1;
}

.gallery-item:not(.is-layout-ready) {
  opacity: 0;
}

.gallery-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.gallery-item.hidden {
  display: none;
}

.gallery-tall .gallery-visual {
  aspect-ratio: 3 / 5;
}

.gallery-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ede9fe;
}

.gallery-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-visual img {
  transform: scale(1.06);
}

.gallery-item figcaption {
  padding: 16px;
  background: var(--bg-surface);
}

.gallery-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--purple-400);
}

.gallery-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 4px 0;
}

.gallery-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.gallery-note {
  text-align: center;
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(30, 16, 51, 0.45);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.lightbox-close:hover {
  background: #ffffff;
}

.lightbox-content {
  max-width: 600px;
  width: 100%;
  padding: 48px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-glow);
}

/* ===== Messages ===== */
.messages-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 32px;
  align-items: start;
}

.message-form-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
}

.message-form-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple-400);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.char-count {
  display: block;
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.color-picker {
  display: flex;
  gap: 12px;
}

.color-option {
  cursor: pointer;
}

.color-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.color-dot {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: var(--transition);
}

.color-option input:checked + .color-dot {
  border-color: var(--text-primary);
  box-shadow: 0 0 12px rgba(147, 51, 234, 0.35);
  transform: scale(1.1);
}

.form-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.message-wall {
  min-height: 400px;
}

.wall-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.wall-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
}

.message-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.message-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.message-card {
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--card-accent, var(--purple-500));
  transition: var(--transition);
  animation: fadeIn 0.4s ease;
  box-shadow: var(--shadow-card);
}

.message-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.message-card[data-color="purple"] { --card-accent: #9333ea; }
.message-card[data-color="pink"] { --card-accent: #db2777; }
.message-card[data-color="gold"] { --card-accent: #d97706; }
.message-card[data-color="blue"] { --card-accent: #2563eb; }

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.message-nickname {
  font-weight: 700;
  font-size: 0.95rem;
}

.message-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.message-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  word-break: break-word;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 1rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Footer ===== */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.6);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.footer-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--purple-600);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: calc(var(--header-h) + 32px);
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    min-height: 300px;
  }

  .hero-photo {
    transform: none;
  }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bento-large {
    grid-row: span 1;
  }

  .bento-wide {
    grid-column: span 2;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-main {
    grid-row: span 1;
  }

  .culture-cards {
    grid-template-columns: 1fr;
  }

  .messages-layout {
    grid-template-columns: 1fr;
  }

  .message-form-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-wide {
    grid-column: span 1;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .quote-card {
    padding: 32px 24px;
  }

  .cta-card {
    padding: 40px 24px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
