/* ============================================================
   Mirror Inside Parenting — Instagram Warm Pastel Design System
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --primary: #FF6B6B;
  --primary-dim: rgba(255, 107, 107, 0.12);
  --primary-glow: rgba(255, 107, 107, 0.3);
  --secondary: #B8A9C9;
  --secondary-dim: rgba(184, 169, 201, 0.15);
  --accent: #A8E6CF;
  --accent-dim: rgba(168, 230, 207, 0.15);
  --peach: #FFDAC1;
  --baby-blue: #B5D5E8;
  --soft-yellow: #FFF3CD;

  --bg-main: #FFF8F3;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFF0E8;
  --bg-section: #FFF5EF;

  --glass: #FFFFFF;
  --glass-strong: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-border-hover: rgba(255, 107, 107, 0.25);

  --text-main: #2D2D2D;
  --text-body: #6B7280;
  --text-dim: #9CA3AF;

  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-soft: 0 2px 16px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 8px 40px rgba(255, 107, 107, 0.1);
  --shadow-float: 0 12px 48px rgba(0, 0, 0, 0.08);

  --transition-fast: 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-base: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-smooth: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100vw;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* --- Layout --- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow { max-width: 720px; }
.container--wide { max-width: 1280px; }

/* --- Typography --- */
.font-display { font-family: 'Nunito', 'Pretendard', sans-serif; }

h1, h2, h3, h4 {
  font-family: 'Nunito', 'Pretendard', sans-serif;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

h1 { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 800; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 700; }

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #FF9A8B 50%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-body { color: var(--text-body); }
.text-dim { color: var(--text-dim); }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition-smooth);
  background: rgba(255, 248, 243, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav.scrolled {
  background: var(--glass-strong);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 0;
  box-shadow: var(--shadow-soft);
}

.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  font-family: 'Nunito', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.nav__logo-sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav__link {
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  position: relative;
}

.nav__link:hover { color: var(--primary); }

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: var(--transition-smooth);
}

.nav__link:hover::after { width: 100%; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 100px;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 12px rgba(255, 107, 107, 0.25);
}

.nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 107, 107, 0.35);
}

/* Mobile Nav */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
}

.nav__burger span {
  display: block;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--glass-strong);
    backdrop-filter: blur(20px);
    padding: 24px;
    border-bottom: 1px solid var(--glass-border);
    gap: 20px;
    box-shadow: var(--shadow-card);
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 36px;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 100px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, #FF9A8B 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.25);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 107, 107, 0.35);
}

.btn--primary:active { transform: translateY(-1px); }

.btn--secondary {
  background: #fff;
  color: var(--text-main);
  border: 2px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}

.btn--secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-card);
}

.btn--large {
  padding: 18px 48px;
  font-size: 1.1rem;
}

.btn--glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--primary), var(--peach), var(--primary));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: var(--transition-smooth);
  filter: blur(12px);
}

.btn--glow:hover::after { opacity: 0.4; }

/* --- Soft Card (replacing Glass Card) --- */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-card);
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-card-hover);
}

.glass-card--interactive:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-float);
}

/* --- Section Tag --- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
  padding: 6px 16px;
  background: var(--primary-dim);
  border-radius: 100px;
}

/* --- Grid Layouts --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* --- Progress Bar --- */
.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--peach));
  border-radius: 6px;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.02); }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.3); }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes radarDraw {
  from { opacity: 0; transform: scale(0.3); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.3); }
  28% { transform: scale(1); }
  42% { transform: scale(1.15); }
  70% { transform: scale(1); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}

.animate-fade-up {
  animation: fadeInUp 0.6s ease both;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease both;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease both;
}

.animate-bounce-in {
  animation: bounceIn 0.8s ease both;
}

/* Stagger delays */
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }
.delay-5 { animation-delay: 0.4s; }
.delay-6 { animation-delay: 0.48s; }

/* --- Floating Pastel Blobs --- */
.glow-orb-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -2;
  pointer-events: none;
}
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
}
.glow-orb--1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--peach) 0%, transparent 70%);
  top: -5%;
  left: -5%;
  animation: floatOrb 25s ease-in-out infinite alternate;
}
.glow-orb--2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--baby-blue) 0%, transparent 70%);
  bottom: -5%;
  right: -5%;
  animation: floatOrb 30s ease-in-out infinite alternate;
  animation-delay: -5s;
}
.glow-orb--3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--secondary-dim) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: floatOrb 35s ease-in-out infinite alternate;
  animation-delay: -10s;
}
@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(-40px, -50px) scale(0.9); }
}

/* --- Particles --- */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  animation: float 6s ease-in-out infinite;
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 48px 24px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 80px;
  background: var(--bg-section);
}

.footer a {
  color: var(--text-body);
  transition: var(--transition-smooth);
}

.footer a:hover { color: var(--primary); }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.2); }

/* --- Selection --- */
::selection {
  background: var(--primary-dim);
  color: var(--text-main);
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mt-6 { margin-top: 64px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
.gap-sm { gap: 12px; }
.gap-md { gap: 24px; }

/* ============================================================
   PAGE: Landing / Index
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 24px 60px;
  position: relative;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--primary-dim);
  border: 1px solid rgba(255, 107, 107, 0.15);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 28px;
  animation: fadeInUp 0.5s ease both;
}

.hero__title {
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease both;
  animation-delay: 0.1s;
}

.hero__desc {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-body);
  max-width: 560px;
  margin: 0 auto 40px;
  font-weight: 500;
  word-break: keep-all;
  animation: fadeInUp 0.6s ease both;
  animation-delay: 0.2s;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.6s ease both;
  animation-delay: 0.3s;
}

.hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  animation: fadeInUp 0.6s ease both;
  animation-delay: 0.4s;
}

.hero__stat-num {
  font-family: 'Nunito', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
}

.hero__stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Radar Demo Preview */
.hero__radar-demo {
  margin-top: 60px;
  width: 280px;
  height: 280px;
  position: relative;
  animation: scaleIn 0.8s ease both;
  animation-delay: 0.5s;
}

/* --- Dimension Cards (Landing) --- */
.dimension-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.dimension-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--card-color, var(--primary)), var(--peach));
  opacity: 0;
  transition: var(--transition-smooth);
}

.dimension-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-card-hover);
}

.dimension-card:hover::before { opacity: 1; }

.dimension-card__icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: block;
}

.dimension-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-main);
}

.dimension-card__sub {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.dimension-card__desc {
  font-size: 0.9rem;
  color: var(--text-body);
  word-break: keep-all;
}

.dimension-card__types {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dimension-card__type-tag {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--primary-dim);
  color: var(--primary);
  font-weight: 600;
  transition: var(--transition-smooth);
}

.dimension-card:hover .dimension-card__type-tag {
  background: var(--primary);
  color: #fff;
}

/* ============================================================
   PAGE: Test
   ============================================================ */
.test-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 80px;
}

.test-header {
  padding: 24px;
  text-align: center;
}

.test-header__category {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.test-header__progress-text {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-top: 12px;
}

.test-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}

.test-question {
  animation: fadeInUp 0.4s ease both;
}

.test-question__text {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  word-break: keep-all;
  margin-bottom: 36px;
  line-height: 1.6;
}

.test-question__scenario {
  font-size: 0.95rem;
  color: var(--text-body);
  text-align: center;
  margin-bottom: 28px;
  word-break: keep-all;
  padding: 18px 24px;
  background: var(--bg-section);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.test-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.test-option {
  width: 100%;
  text-align: left;
  padding: 18px 24px;
  background: var(--bg-card);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-body);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  cursor: pointer;
  word-break: keep-all;
  line-height: 1.6;
  box-shadow: var(--shadow-soft);
}

.test-option:hover {
  background: var(--primary-dim);
  border-color: var(--primary);
  color: var(--text-main);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.test-option.selected {
  background: var(--primary-dim);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

/* ============================================================
   PAGE: Results
   ============================================================ */
.result-page {
  padding-top: 100px;
  padding-bottom: 60px;
}

.result-hero {
  text-align: center;
  margin-bottom: 60px;
}

.result-hero__persona-name {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: 16px;
  animation: fadeInUp 0.6s ease both;
  color: var(--text-main);
}

.result-hero__persona-desc {
  font-size: 1.1rem;
  color: var(--text-body);
  max-width: 560px;
  margin: 0 auto;
  word-break: keep-all;
  animation: fadeInUp 0.6s ease both;
  animation-delay: 0.15s;
}

/* Radar Chart Container */
.radar-container {
  display: flex;
  justify-content: center;
  margin: 48px auto;
  animation: bounceIn 0.8s ease both;
  animation-delay: 0.3s;
}

.radar-canvas {
  max-width: 100%;
}

/* Dimension Result Cards */
.dimension-result {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 20px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-card);
}

.dimension-result:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.dimension-result__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.dimension-result__icon {
  font-size: 1.8rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-dim);
  border-radius: var(--radius-sm);
}

.dimension-result__category {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1.5px;
}

.dimension-result__type-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
}

.dimension-result__score-bar {
  height: 8px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

.dimension-result__score-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--peach));
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.dimension-result__desc {
  color: var(--text-body);
  font-size: 0.95rem;
  word-break: keep-all;
  line-height: 1.8;
}

.dimension-result__strengths {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.strength-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: var(--primary-dim);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
}

/* Share Section */
.share-section {
  text-align: center;
  margin-top: 60px;
  padding: 48px 36px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ============================================================
   PAGE: About
   ============================================================ */
.about-header {
  text-align: center;
  padding: 140px 24px 60px;
}

.mission-box {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 48px;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.mission-box::before {
  content: '\201C';
  position: absolute;
  top: -20px;
  left: 40px;
  font-size: 12rem;
  font-family: 'Nunito', serif;
  color: var(--primary);
  opacity: 0.06;
  line-height: 1;
}

.mission-quote {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
  word-break: keep-all;
  line-height: 1.6;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .hero { padding: 80px 20px 40px; }
  .hero__stats { gap: 20px; flex-wrap: wrap; justify-content: center; }
  .hero__radar-demo { width: 240px; height: 240px; }
  .glass-card { padding: 24px; }
  .mission-box { padding: 28px 20px; }
  .test-option { padding: 14px 18px; }
  .dimension-result { padding: 24px; }
  .share-section { padding: 32px 20px; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.7rem; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
  .btn--large { padding: 14px 32px; font-size: 0.95rem; }
}

/* ============================================================
   Component: Mobile Bottom Navigation
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  z-index: 9999;
  display: none;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.05);
}

.bottom-nav__inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 8px;
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;
  width: 25%;
  height: 100%;
  transition: var(--transition-smooth);
  gap: 4px;
}

.bottom-nav__item i {
  font-size: 1.2rem;
  transition: var(--transition-smooth);
  color: var(--text-dim);
}

.bottom-nav__item:hover,
.bottom-nav__item.active {
  color: var(--primary);
}

.bottom-nav__item:hover i,
.bottom-nav__item.active i {
  color: var(--primary);
  transform: translateY(-2px) scale(1.1);
}

@media (max-width: 768px) {
  .bottom-nav {
    display: block;
  }
  body {
    padding-bottom: 70px !important;
  }
  .nav__links.open {
    z-index: 10001 !important;
    box-shadow: var(--shadow-float);
    border-bottom: 1px solid var(--glass-border);
  }
}


/* --- Responsive Typography & Layout --- */
@media (max-width: 768px) {
  h1 { font-size: clamp(1.8rem, 5vw, 2.2rem); }
  h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); }
  h3 { font-size: clamp(1.05rem, 3vw, 1.25rem); }
  body { font-size: 0.95rem; line-height: 1.6; }
  
  .container { padding: 0 16px; }
  .nav__inner { padding: 0 16px; }
  
  /* Make sure result photocard has tighter padding on mobile */
  .photocard { padding: 24px; border-radius: 20px; }
  .photocard__img { width: 140px; }
  .photocard__title { font-size: 1.8rem; }
  
  /* Shrink capture area slightly for mobile view rendering (though it's invisible) */
  /* Keep capture area absolute size for HQ export, just UI adjustments above */
}

@media (min-width: 769px) {
  /* PC Optimizations for Result Page */
  #resultWrapper {
    max-width: 800px;
    margin: 120px auto 40px;
  }
  
  .photocard {
    padding: 60px;
    border-radius: 40px;
  }
  
  .photocard__img {
    width: 200px;
  }
  
  .photocard__title {
    font-size: 2.8rem;
  }
  
  .photocard__content p {
    font-size: 1.2rem !important; /* Override inline styles to make it bigger on PC */
    line-height: 1.8 !important;
  }
}


/* --- Result Page Split Layout --- */
.result-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.result-layout__left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.result-layout__right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 600px) and (max-width: 899px) {
    /* Tablet layout: still single column, but wider and centered */
    #resultWrapper {
        max-width: 720px;
        margin: 100px auto 40px;
    }
    .photocard { padding: 48px; border-radius: 30px; }
}

@media (min-width: 900px) {
    #resultWrapper {
        max-width: 1100px;
        margin: 120px auto 40px;
    }
    .result-layout {
        display: grid;
        grid-template-columns: 420px 1fr;
        gap: 40px;
        align-items: start;
    }
    .result-layout__left {
        position: sticky;
        top: 100px;
    }
    .photocard-container { margin: 0; }
}

@media (min-width: 1200px) {
    #resultWrapper {
        max-width: 1300px;
    }
    .result-layout {
        grid-template-columns: 480px 1fr;
        gap: 60px;
    }
    .photocard__image { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 50%; }
}

/* Samsung/Android prefers-reduced-motion fix */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}

/* =========================================
   FACT BOMB BLIND UI
   ========================================= */
.fact-bomb-container {
    position: relative;
    background: rgba(239, 68, 68, 0.05);
    border-radius: 16px;
    padding: 0;
    text-align: center;
    border: 1px solid rgba(239, 68, 68, 0.2);
    overflow: hidden;
    margin-bottom: 24px;
}

.fact-bomb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 245, 245, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    padding: 24px;
}

.fact-bomb-content {
    padding: 32px 24px;
    filter: blur(8px);
    opacity: 0.4;
    transition: filter 0.8s ease, opacity 0.8s ease;
    text-align: left;
}

.fact-bomb-container.unlocked .fact-bomb-overlay {
    opacity: 0;
    visibility: hidden;
}

.fact-bomb-container.unlocked .fact-bomb-content {
    filter: blur(0);
    opacity: 1;
}

.btn-unlock-fact {
    background: #ef4444;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 800;
    font-family: 'Pretendard', sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-unlock-fact:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-share-postcard {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.btn-share-postcard:hover {
    background: #ef4444;
    color: white;
}

.shake-anim {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* =========================================
   POSTCARD CAPTURE AREA (DARK MODE)
   ========================================= */
.postcard-wrapper {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 1080px;
    height: 1920px; /* 9:16 Ratio */
    background: #0F172A; /* Slate 900 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px;
    box-sizing: border-box;
    z-index: -100;
    visibility: hidden;
}

.postcard-inner {
    width: 100%;
    background: #1E293B; /* Slate 800 */
    border-radius: 40px;
    padding: 120px 80px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.postcard-quote-mark {
    font-family: 'Georgia', serif;
    font-size: 180px;
    color: rgba(239, 68, 68, 0.2);
    position: absolute;
    top: 40px;
    left: 60px;
    line-height: 1;
}

.postcard-text {
    font-size: 46px;
    color: #F8FAFC; /* Slate 50 */
    line-height: 1.6;
    font-weight: 700;
    word-break: keep-all;
    position: relative;
    z-index: 2;
    margin-bottom: 60px;
    text-align: left;
}

.postcard-divider {
    width: 100px;
    height: 6px;
    background: #ef4444;
    border-radius: 3px;
    margin-bottom: 40px;
}

.postcard-author {
    font-size: 32px;
    color: #94A3B8; /* Slate 400 */
    font-weight: 600;
    text-align: left;
}

.postcard-footer {
    margin-top: 120px;
    border-top: 2px solid rgba(255,255,255,0.05);
    padding-top: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pc-brand {
    font-size: 34px;
    color: #ef4444;
    font-weight: 900;
    font-family: 'Nunito', sans-serif;
    letter-spacing: -1px;
}

.pc-tags {
    font-size: 28px;
    color: #64748B;
    font-weight: 600;
}

/* =========================================
   NEWSLETTER SUBSCRIPTION FORM (GLASSMORPHISM)
   ========================================= */
.newsletter-section {
    margin: 80px 0 40px;
    padding: 48px 32px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: var(--primary-dim);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
}

.newsletter-content {
    position: relative;
    z-index: 1;
}

.newsletter-badge {
    display: inline-block;
    background: #ef4444;
    color: white;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.newsletter-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 12px;
    word-break: keep-all;
}

.newsletter-desc {
    font-size: 1rem;
    color: var(--text-body);
    margin-bottom: 32px;
    line-height: 1.6;
    word-break: keep-all;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.8);
    font-size: 1rem;
    font-family: 'Pretendard', sans-serif;
    outline: none;
    transition: all 0.2s;
}

.newsletter-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-dim);
}

.newsletter-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 24px;
    border-radius: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: #ff6045;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(255, 107, 107, 0.3);
}

@media (max-width: 600px) {
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-btn {
        padding: 16px;
    }
}

/* =========================================
   CHEMISTRY UI STYLES
   ========================================= */
.chemistry-selector {
    display: flex;
    gap: 24px;
    align-items: stretch;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

@media (max-width: 768px) {
    .chemistry-selector {
        flex-direction: column;
    }
}

.selector-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: transform 0.3s;
}

.selector-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.selector-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 24px;
}

.persona-select {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    font-size: 1rem;
    font-family: 'Pretendard', sans-serif;
    outline: none;
    background: white;
    margin-bottom: 24px;
    cursor: pointer;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.preview-card {
    background: var(--bg-main);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    min-height: 180px;
}

.vs-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    font-weight: 900;
    font-size: 1.5rem;
    font-family: 'Nunito', sans-serif;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.4);
    z-index: 10;
    border: 4px solid var(--bg-main);
}

@media (max-width: 768px) {
    .vs-badge {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin: -10px auto;
    }
}

.chemistry-result {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 32px;
    padding: 60px 40px;
    box-shadow: var(--shadow-strong);
    border: 1px solid var(--glass-border);
}

.chem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .chem-grid {
        grid-template-columns: 1fr;
    }
}

.chem-card {
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.chem-card.clash {
    background: rgba(239, 68, 68, 0.03);
    border-color: rgba(239, 68, 68, 0.2);
}

.chem-card.clash h3 {
    color: #ef4444;
}

.chem-card.synergy {
    background: rgba(52, 211, 153, 0.03);
    border-color: rgba(52, 211, 153, 0.2);
}

.chem-card.synergy h3 {
    color: #10b981;
}

.chem-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.chem-card p {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.6;
    word-break: keep-all;
}

/* ============================================================
   Accessibility (WCAG) utilities
   ============================================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -48px;
    left: 8px;
    z-index: 10000;
    padding: 12px 20px;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 8px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}
