/*
Theme Name: MBTI Blue
Theme URI: https://example.com/mbti-blue
Author: MBTI Team
Author URI: https://example.com
Description: Custom MBTI testing theme with blue primary color
Version: 1.0.0
Text Domain: mbti-blue
*/

:root{--primary:#1e6ef7;--primary-dark:#1555c6;--primary-contrast:#ffffff;--bg:#f7f9fc;--text:#0f172a;--muted:#475569;--border:#e2e8f0;--grad-start:#2f6af8;--grad-end:#9a62ff}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,"PingFang SC","Microsoft YaHei",sans-serif}
a{color:var(--primary);text-decoration:none}
header.site-header{background:linear-gradient(90deg,var(--grad-start),var(--grad-end));color:var(--primary-contrast)}
.container{max-width:1248px;margin:0 auto;padding:0 24px}
main .container{max-width:1248px}
.brand{display:flex;align-items:center;gap:12px;font-weight:700}
.brand .logo{width:32px;height:32px;border-radius:8px;display:flex;align-items:center;justify-content:center}
.tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:0;justify-items:stretch}
.tab{width:100%;border:1px solid var(--border);background:#fff;border-radius:20px;padding:18px;cursor:pointer;position:relative;transition:transform .2s ease,box-shadow .2s ease;display:flex;flex-direction:column;align-items:center;text-align:center;overflow:visible}
.tab::before{display:none}
.tab[data-version="quick"]::before{display:none}
.tab[data-version="standard"]::before{display:none}
.tab[data-version="advanced"]::before{display:none}
.tab:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(15,23,42,.08)}
.tab.active{border:2px solid transparent;border-radius:20px;background:linear-gradient(#fff,#fff) padding-box,linear-gradient(135deg,var(--grad-start),var(--grad-end)) border-box;box-shadow:0 12px 30px rgba(15,23,42,.12)}
.tab h3{margin:0 0 8px 0;font-size:24px;font-weight:800;color:#0f172a}
.tab .meta{display:flex;gap:10px;align-items:center;color:var(--muted);font-size:13px;margin:6px 0}
.tab .meta .time{display:inline-flex;align-items:center;gap:6px}
.tab .meta .time svg{width:18px;height:18px;color:#6b7280}
.tab .meta .time svg path{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tab .count{margin:8px 0 4px 0;font-size:18px;font-weight:800;color:#0f172a;line-height:1.2}
.tab .count .num{font-size:48px;letter-spacing:0.5px;display:inline-block}
.tab .count .label{font-size:16px;color:#64748b;font-weight:600;margin-left:4px}
.tab .features-title{margin-top:8px;font-size:14px;font-weight:700;color:#0f172a}
.tab .features{margin:6px auto 0;padding-left:20px;width:auto;text-align:left;list-style-type:disc;list-style-position:outside;display:inline-block}
.tab .features li{margin:6px 0;color:#475569;font-size:14px;text-align:left}
.tab .cta{justify-content:center}
.tab-icon{width:56px;height:56px;display:flex;align-items:center;justify-content:center;margin-bottom:8px}
.tab-icon svg{width:48px;height:48px}
.corner-badge{position:absolute;top:0;right:0;transform:translate(50%,-50%);background:linear-gradient(135deg,var(--grad-start),var(--grad-end));color:#fff;border-radius:50%;width:28px;height:28px;display:none;align-items:center;justify-content:center;font-weight:700;font-size:14px;box-shadow:0 6px 14px rgba(15,23,42,.18)}
.tab.active .corner-badge{display:inline-flex}
.cta{display:flex;gap:12px;margin-top:16px}
.report .cta{justify-content:center}
.report-summary{text-align:center;margin:12px 0 20px 0;font-size:18px;color:var(--text)}
.type-highlight{background:linear-gradient(90deg,var(--grad-start),var(--grad-end));-webkit-background-clip:text;background-clip:text;color:transparent;font-weight:800;font-size:40px;letter-spacing:1px}
.btn{appearance:none;border:0;border-radius:12px;padding:12px 16px;font-weight:600;cursor:pointer}
.btn-primary{background:linear-gradient(90deg,var(--grad-start),var(--grad-end));color:var(--primary-contrast);box-shadow:0 6px 14px rgba(47,106,248,.25)}
.btn-primary:hover{filter:brightness(1.05)}
.btn-outline{background:#fff;color:var(--primary);border:1px solid var(--primary)}
.card{background:#fff;border:1px solid var(--border);border-radius:12px;padding:16px}
.card-plain{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
.section-heading{text-align:center;margin:0 0 32px 0;font-size:36px;font-weight:700;color:var(--text);position:relative;padding-bottom:16px}
.section-heading::after{content:'';position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:60px;height:3px;background:linear-gradient(90deg,var(--grad-start),var(--grad-end));border-radius:2px}
/* 修复标题渐变问题 - 使用正确的渐变文字效果 */
.heading-gradient {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
}
.muted{color:var(--muted)}
.modal-backdrop{position:fixed;inset:0;background:rgba(2,6,23,.6);display:none;align-items:center;justify-content:center;z-index:1000}
.modal{background:#fff;border-radius:16px;max-width:480px;width:92%;padding:24px;border:1px solid var(--border);position:relative;text-align:center}
.modal-close{position:absolute;top:10px;right:10px;width:28px;height:28px;border:none;border-radius:999px;background:linear-gradient(135deg,var(--grad-start),var(--grad-end));color:#fff;cursor:pointer}
.modal .cta{justify-content:center}
.feedback{margin-top:8px;font-size:14px;color:var(--muted)}
.feedback-error{color:#dc2626}
.modal h3{margin:0 0 12px 0}
.input{width:100%;padding:12px;border:1px solid var(--border);border-radius:10px}
.questions{display:grid;grid-template-columns:1fr;gap:12px}
.question{background:#fff;border:1px solid var(--border);border-radius:12px;padding:16px}
.result{margin-top:16px;padding:16px;border:1px solid var(--border);border-radius:12px;background:#fff}

/* Hero区域样式修复 - 确保正确的布局和渐变 */
.hero {
  margin: 0;
  padding: 80px 0;
  text-align: center;
  margin-bottom: 48px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 0 0 24px 24px;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  color: var(--primary-contrast);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 28px;
  box-shadow: 0 4px 12px rgba(47, 106, 248, 0.25);
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  margin: 0 0 24px 0;
  text-align: center;
  line-height: 1.25;
  color: var(--text); /* 使用纯色，移除渐变效果 */
}

.hero-desc {
  color: var(--muted);
  font-size: 18px;
  text-align: center;
  line-height: 1.8;
  max-width: 760px;
  margin: 0 auto;
}
.info-card{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--border);border-radius:16px;padding:16px;margin-top:16px}
.info-icon{width:40px;height:40px;aspect-ratio:1/1;border-radius:50%;background:linear-gradient(135deg,var(--grad-start),var(--grad-end));color:var(--primary-contrast);display:inline-flex;align-items:center;justify-content:center;font-size:16px;flex:0 0 40px;overflow:hidden}
.info-content h4{margin:0 0 6px 0;font-size:16px}
.info-content p{margin:0;color:var(--muted);line-height:1.6}
.info-content{width: 100%;}
.section{margin:48px 0}
.section-title{text-align:center;font-size:40px;font-weight:700;margin:0 0 12px 0}
.section-desc{text-align:center;color:var(--muted);margin:0 0 16px 0}
.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.feature{background:#fff;border:1px solid var(--border);border-radius:16px;padding:16px}
.feature-icon{width:40px;height:40px;border-radius:12px;background:linear-gradient(135deg,var(--grad-start),var(--grad-end));color:var(--primary-contrast);display:flex;align-items:center;justify-content:center;font-size:20px;margin-bottom:8px}
.feature h5{margin:0 0 6px 0;font-size:16px}
.feature p{margin:0;color:var(--muted);font-size:14px}
@media (max-width: 768px){.feature-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width: 520px){.feature-grid{grid-template-columns:1fr}}
/* 增强响应式设计 */
@media (max-width: 1200px) {
  .container {
    padding: 0 20px;
  }
}

/* 修复移动端显示问题 */
@media (max-width: 768px) {
  .hero {
    padding: 60px 0;
    margin-bottom: 32px;
  }
  
  .hero-title {
    font-size: 36px;
    line-height: 1.2;
  }
  
  .hero-desc {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .info-card {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }
  
  .tabs {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .tab {
    padding: 16px;
  }
  
  .tab h3 {
    font-size: 20px;
  }
  
  .tab .count .num {
    font-size: 36px;
  }
}

@media (max-width: 992px) {
  .tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .hero-title {
    font-size: 42px;
  }
  
  .section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .tabs {
    gap: 16px;
    grid-template-columns: 1fr;
  }
  
  .hero {
    padding: 48px 0;
  }
  
  .hero-title {
    font-size: 36px;
    margin-bottom: 20px;
  }
  
  .hero-desc {
    font-size: 16px;
  }
  
  .info-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  
  .modal {
    width: 95%;
    padding: 20px;
    margin: 10px;
  }
  
  .modal .cta {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 16px;
  }
  
  .hero {
    padding: 32px 0;
  }
  
  .hero-title {
    font-size: 28px;
    line-height: 1.3;
  }
  
  .hero-badge {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .tab {
    padding: 16px;
  }
  
  .tab h3 {
    font-size: 20px;
  }
  
  .tab .count .num {
    font-size: 32px;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .bottom-cta-section {
    padding: 48px 0;
  }
  
  .bottom-cta-title {
    font-size: 24px;
  }
  
  .bottom-cta-subtitle {
    font-size: 16px;
  }
}
.guide-card{border:2px solid transparent;border-radius:16px;background:linear-gradient(#fff,#fff) padding-box,linear-gradient(135deg,var(--grad-start),var(--grad-end)) border-box;padding:20px}
.guide-list{margin:0;padding-left:1.2em}
.guide-list li{margin:8px 0;color:var(--text)}
.guide-list li::marker{color:var(--primary);font-weight:700}

/* 人格类型标题样式 */
.types-title{text-align:center;font-size:36px;font-weight:700;margin:24px 0 12px 0}
.types-desc{text-align:center;color:var(--muted);margin:0 auto 32px auto;max-width:800px;line-height:1.6}

/* 人格类型区域容器 */
#personality-types {
/**
  padding: 40px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  margin: 40px 0;
**/
}

/* Test page enhanced styles */
.q-body{margin-top:16px}
.q-body label{display:block;padding:16px 20px;margin:12px 0;border:2px solid #e2e8f0;border-radius:12px;background:#fff;cursor:pointer;transition:all .3s ease;position:relative;font-size:16px;line-height:1.5}
.q-body label:hover{border-color:#667eea;background:linear-gradient(135deg,#f8fafc 0%,#f1f5f9 100%);box-shadow:0 4px 12px rgba(102,126,234,.15);transform:translateY(-1px)}
.q-body label:active{transform:translateY(0);box-shadow:0 2px 6px rgba(102,126,234,.1)}
.q-body input[type=radio]{margin-right:12px;width:18px;height:18px;accent-color:#667eea;cursor:pointer}
.q-body label.option-selected{border-color:#667eea;background:linear-gradient(135deg,#f0f4ff 0%,#e0e7ff 100%);box-shadow:0 4px 16px rgba(102,126,234,.2);animation:optionSelect .2s ease}
.q-body br{display:none}
.q-title{font-size:18px;font-weight:600;color:#1e293b;margin-bottom:8px;line-height:1.4}
@keyframes optionSelect{0%{transform:scale(1)}50%{transform:scale(1.02)}100%{transform:scale(1)}}
.q-body input[type=radio]{appearance:none;width:20px;height:20px;border:2px solid #cbd5e1;border-radius:50%;margin-right:14px;position:relative;transition:all .3s ease}
.q-body input[type=radio]:checked{border-color:#667eea;background:#667eea}
.q-body input[type=radio]:checked::before{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:8px;height:8px;background:white;border-radius:50%}
.q-body input[type=radio]:hover{border-color:#667eea;box-shadow:0 0 0 3px rgba(102,126,234,.1)}
/* 人格类型卡片网格布局 */
.persona-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin:32px 0;width:100%;max-width:1200px;margin-left:auto;margin-right:auto;box-sizing:border-box}

/* 确保网格容器宽度正确 */
#personality-types .persona-grid {
  width: 100%;
  max-width: 1200px;
  margin: 32px auto;
}

/* 人格类型卡片样式 */
.persona-card{background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);border:1px solid var(--border);border-radius:16px;padding:22px;position:relative;min-height:360px;box-shadow:0 8px 24px rgba(17,24,39,.08);transition:all .3s ease;display:flex;flex-direction:column}
.persona-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.persona-title{font-size:18px;font-weight:800;margin:0;color:#0f172a}
.type-badges{display:flex;gap:6px;align-items:center}
.badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;width:24px;height:24px;font-size:12px;color:#fff;background:linear-gradient(135deg,var(--grad-start),var(--grad-end));font-weight:700}

/* 卡片悬停效果 */
.persona-card:hover{transform:translateY(-4px);box-shadow:0 12px 32px rgba(17,24,39,.12);border-color:rgba(47,106,248,.3)}

/* 人格卡片内容样式 */
.persona-sub{color:#475569;margin:4px 0 8px;font-size:14px;font-weight:600}
.persona-stats{color:#64748b;font-size:12px;display:flex;gap:12px;align-items:center;margin-bottom:8px}
.persona-desc{color:#1f2937;font-size:14px;margin:8px 0;line-height:1.5;flex-grow:1;min-height:60px}
.persona-tags{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0;min-height:25px}
.tag{background:rgba(30,110,247,.08);color:var(--primary);border:1px solid rgba(30,110,247,.25);border-radius:999px;padding:4px 8px;font-size:12px;font-weight:500}
.persona-section{margin-top:10px;margin-bottom:8px}
.persona-section h6{margin:0 0 4px 0;font-size:12px;font-weight:700;color:#374151}
.persona-section p{margin:0;font-size:12px;color:#6b7280;line-height:1.4}

/* 确保卡片底部对齐 */
.persona-card > *:not(.persona-footer) {
  margin-bottom: 8px;
}

.persona-card > *:last-child:not(.persona-footer) {
  margin-bottom: 40px;
}
.persona-footer{position:absolute;left:22px;bottom:16px;margin-top:0}
.persona-footer a{color:var(--primary);font-size:12px;text-decoration:none;font-weight:500}
/* 修复卡片布局问题 - 确保一致的间距和对齐 */
.persona-card {
  padding: 22px;
  padding-bottom: 50px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  overflow: hidden;
}

/* 确保所有卡片内容区域一致 */
.persona-card > * {
  flex-shrink: 0;
}

.persona-desc {
  flex-grow: 1;
  display: flex;
  align-items: flex-start;
}

/* 响应式布局 - 人格类型卡片 */
@media (max-width: 1200px) {
  .persona-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 16px;
  }
}

@media (max-width: 992px) {
  .persona-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 16px;
  }
  
  .types-title {
    font-size: 32px;
  }
  
  .types-desc {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .persona-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 24px 0;
    padding: 0 12px;
  }
  
  .persona-card {
    padding: 18px;
    min-height: auto;
  }
  
  .types-title {
    font-size: 28px;
    margin: 16px 0 8px 0;
  }
  
  .types-desc {
    font-size: 14px;
    margin-bottom: 12px;
  }
}

@media (max-width: 480px) {
  .persona-grid {
    gap: 12px;
    padding: 0 8px;
  }
  
  .persona-card {
    padding: 16px;
  }
  
  .persona-title {
    font-size: 16px;
  }
  
  .badge {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
}

/* Enhanced modal close button */
.modal-close {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  transform: rotate(90deg) scale(1.1);
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* Enhanced section headings */
.section-title {
  position: relative;
  padding-bottom: 16px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  border-radius: 2px;
}

/* Enhanced hero section */
.hero {
  text-align: center;
  padding: 48px 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 20px;
  margin: 24px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(47, 106, 248, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(154, 98, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Enhanced button consistency */
.btn {
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

/* Enhanced card hover effects */
.card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.card:not(.card-plain){
  overflow: hidden;
}

.card:not(.card-plain)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.card:not(.card-plain):hover::before {
  transform: scaleX(1);
}

/* Enhanced feature grid */
.feature-grid {
  gap: 20px;
}

.feature {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(47, 106, 248, 0.05) 0%, rgba(154, 98, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.feature:hover::after {
  opacity: 1;
}

/* Enhanced persona cards */
.persona-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.persona-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.persona-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.persona-card:hover::before {
  transform: scaleX(1);
}

/* Enhanced info card */
.info-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.info-icon {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card:hover .info-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 16px rgba(47, 106, 248, 0.2);
}

/* Enhanced modal styling */
.modal {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(47, 106, 248, 0.2);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-backdrop {
  backdrop-filter: blur(4px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced form elements */
.input {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid var(--border);
  font-size: 16px;
}

.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(47, 106, 248, 0.1);
  transform: translateY(-2px);
}

/* Enhanced footer */
footer {
  margin-top: 80px;
  padding: 40px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* Smooth animations */
* {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Loading states */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary: #0066cc;
    --text: #000000;
    --border: #666666;
  }
  
  .card, .persona-card {
    border: 2px solid var(--border);
  }
}

/* Focus indicators */
*:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Enhanced responsive design */
@media (max-width: 768px) {
  .hero {
    padding: 32px 16px;
    margin: 16px 0;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .section-title::after {
    width: 40px;
  }
  
  .card {
    margin: 16px 0;
    padding: 20px;
  }
  
  .btn {
    width: 100%;
    margin: 8px 0;
  }
  
  .cta {
    flex-direction: column;
    gap: 12px;
  }
  
  .modal {
    margin: 16px;
    width: calc(100% - 32px);
  }
  
  .persona-grid {
    gap: 12px;
  }
  
  .persona-card {
    padding: 16px;
    padding-bottom: 32px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 16px;
  }
  
  .hero {
    padding: 24px 16px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .section-title {
    font-size: 20px;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .persona-grid {
    grid-template-columns: 1fr;
  }
}
