/* ============================================
   PENSIONASSIST AI — DESIGN SYSTEM
   Palette: Alpine Frost (#E3EDF7, #A8C4E0, #2E5090, #0A1929)
   Fonts: Plus Jakarta Sans + Source Serif 4
============================================ */
:root {
  --frost-light: #E3EDF7;
  --frost-mid: #A8C4E0;
  --navy: #2E5090;
  --navy-dark: #0A1929;
  --navy-mid: #1a3a6b;
  --accent: #4A90D9;
  --white: #FFFFFF;
  --off-white: #F7FAFD;
  --text-primary: #0A1929;
  --text-secondary: #3D5A80;
  --text-muted: #6B8CAE;
  --success: #2E7D52;
  --success-light: #E8F5EE;
  --border: #C8DCF0;
  --shadow-sm: 0 2px 8px rgba(10,25,41,0.08);
  --shadow-md: 0 8px 24px rgba(10,25,41,0.12);
  --shadow-lg: 0 20px 60px rgba(10,25,41,0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Source Serif 4', serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-display); background: var(--off-white); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; }
body.large-text { font-size: 20px; }
body.large-text .hero-title { font-size: clamp(2rem,5vw,3.6rem); }
body.large-text .section-title { font-size: 2rem; }
body.large-text .message-bubble p, body.large-text .chat-input { font-size: 1.1rem; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── HEADER ── */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-weight: 800; font-size: 1.15rem; color: var(--navy-dark); line-height: 1.2; }
.brand-ai { color: var(--navy); }
.brand-tagline { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0.03em; }
.header-nav { display: flex; align-items: center; gap: 6px; }
.nav-link { font-size: 0.88rem; font-weight: 600; color: var(--text-secondary); text-decoration: none; padding: 8px 14px; border-radius: var(--radius-sm); transition: all 0.2s; }
.nav-link:hover { color: var(--navy); background: var(--frost-light); }
.btn-accessibility { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; color: var(--navy); background: var(--frost-light); border: 1.5px solid var(--border); padding: 7px 14px; border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s; font-family: var(--font-display); }
.btn-accessibility:hover, .btn-accessibility.active { background: var(--navy); color: white; border-color: var(--navy); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy-dark); border-radius: 2px; transition: all 0.3s; }
.mobile-nav { display: none; flex-direction: column; padding: 12px 24px 16px; border-top: 1px solid var(--border); background: white; }
.mobile-nav a { padding: 12px 0; font-weight: 600; color: var(--text-secondary); text-decoration: none; border-bottom: 1px solid var(--frost-light); font-size: 1rem; }
.mobile-nav.open { display: flex; }

/* ── HERO ── */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 55%, var(--navy) 100%); min-height: 90vh; display: flex; align-items: center; }
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; opacity: 0.07; }
.shape-1 { width: 600px; height: 600px; background: var(--frost-mid); top: -200px; right: -100px; animation: float1 9s ease-in-out infinite; }
.shape-2 { width: 400px; height: 400px; background: var(--accent); bottom: -150px; left: -80px; animation: float2 11s ease-in-out infinite; }
.shape-3 { width: 180px; height: 180px; background: var(--frost-light); top: 45%; left: 42%; animation: float3 7s ease-in-out infinite; }
@keyframes float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-20px,28px)} }
@keyframes float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(28px,-18px)} }
@keyframes float3 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-12px,12px) scale(1.1)} }
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 100px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; width: 100%; position: relative; z-index: 2; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); color: var(--frost-light); font-size: 0.8rem; font-weight: 600; padding: 8px 16px; border-radius: 100px; margin-bottom: 24px; backdrop-filter: blur(8px); }
.badge-dot { width: 8px; height: 8px; background: #4ADE80; border-radius: 50%; animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.4)} }
.hero-title { font-weight: 800; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15; color: white; margin-bottom: 20px; letter-spacing: -0.02em; }
.hero-title em { font-style: italic; font-family: var(--font-body); color: var(--frost-mid); font-weight: 300; }
.hero-subtitle { font-family: var(--font-body); font-size: 1.05rem; color: rgba(255,255,255,0.75); line-height: 1.75; margin-bottom: 36px; max-width: 480px; }
.hero-stats { display: flex; align-items: center; gap: 24px; margin-bottom: 40px; }
.stat { display: flex; flex-direction: column; }
.stat-number { font-size: 1.55rem; font-weight: 800; color: white; line-height: 1; }
.stat-label { font-size: 0.72rem; color: rgba(255,255,255,0.6); font-weight: 500; margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.2); }
.btn-primary { display: inline-flex; align-items: center; gap: 10px; background: white; color: var(--navy-dark); font-family: var(--font-display); font-weight: 700; font-size: 1rem; padding: 16px 32px; border-radius: var(--radius-md); text-decoration: none; border: none; cursor: pointer; box-shadow: 0 8px 32px rgba(0,0,0,0.2); transition: all 0.3s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0,0,0,0.3); background: var(--frost-light); }
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 380px; }
.hero-illustration { position: relative; width: 260px; height: 260px; display: flex; align-items: center; justify-content: center; }
.illustration-circle { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); }
.illustration-circle.outer { width: 260px; height: 260px; animation: spin 22s linear infinite; }
.illustration-circle.middle { width: 185px; height: 185px; animation: spin 16s linear infinite reverse; }
.illustration-circle.inner { width: 120px; height: 120px; background: rgba(255,255,255,0.07); }
.illustration-icon { font-size: 3.2rem; z-index: 1; }
@keyframes spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
.hero-card-float { position: absolute; background: rgba(255,255,255,0.96); border-radius: var(--radius-md); padding: 13px 17px; display: flex; align-items: center; gap: 11px; box-shadow: var(--shadow-lg); min-width: 190px; }
.card-float-1 { top: 10px; left: -30px; animation: floatCard 4s ease-in-out infinite; }
.card-float-2 { bottom: 50px; right: -20px; animation: floatCard 4s ease-in-out infinite 1.4s; }
.card-float-3 { top: 48%; left: -50px; transform: translateY(-50%); animation: floatCard 4s ease-in-out infinite 2.7s; }
@keyframes floatCard { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-9px)} }
.card-float-3 { animation: floatCard3 4s ease-in-out infinite 2.7s; }
@keyframes floatCard3 { 0%,100%{transform:translateY(-50%)} 50%{transform:translateY(calc(-50% - 9px))} }
.float-icon { font-size: 1.5rem; }
.float-text { display: flex; flex-direction: column; }
.float-text strong { font-size: 0.8rem; font-weight: 700; color: var(--navy-dark); }
.float-text span { font-size: 0.7rem; color: var(--text-muted); }

/* ── SECTION COMMON ── */
.section-header { text-align: center; margin-bottom: 52px; }
.section-title { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--navy-dark); margin-bottom: 12px; letter-spacing: -0.02em; }
.section-subtitle { font-family: var(--font-body); font-size: 1rem; color: var(--text-secondary); max-width: 500px; margin: 0 auto; }

/* ── SERVICES ── */
.services { padding: 96px 0; background: white; }
.services-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.service-card { background: var(--off-white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 26px 22px; text-align: left; cursor: pointer; position: relative; overflow: hidden; transition: all 0.3s; font-family: var(--font-display); display: flex; flex-direction: column; gap: 9px; }
.service-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--navy) 0%, var(--accent) 100%); opacity: 0; transition: opacity 0.3s; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--navy); }
.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; z-index: 1; }
.service-card:hover .service-icon, .service-card:hover .service-title, .service-card:hover .service-desc, .service-card:hover .service-arrow { color: white; }
.service-icon { font-size: 1.9rem; }
.service-title { font-weight: 700; font-size: 0.92rem; color: var(--navy-dark); }
.service-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; flex: 1; }
.service-arrow { font-size: 1.1rem; color: var(--navy); font-weight: 700; align-self: flex-end; transition: transform 0.2s; }
.service-card:hover .service-arrow { transform: translateX(4px); }

/* ── CHAT ── */
.chat-section { padding: 96px 0; background: var(--frost-light); }
.chat-wrapper { display: grid; grid-template-columns: 290px 1fr; gap: 26px; align-items: start; }
.chat-sidebar { display: flex; flex-direction: column; gap: 18px; }
.sidebar-card { background: white; border-radius: var(--radius-lg); padding: 26px; text-align: center; border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); }
.sidebar-avatar { position: relative; display: inline-block; margin-bottom: 14px; }
.avatar-ring { width: 68px; height: 68px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--accent)); display: flex; align-items: center; justify-content: center; font-size: 1.9rem; margin: 0 auto; }
.status-dot { position: absolute; bottom: 2px; right: 2px; width: 15px; height: 15px; background: #4ADE80; border-radius: 50%; border: 3px solid white; }
.sidebar-name { font-weight: 800; font-size: 0.98rem; color: var(--navy-dark); margin-bottom: 4px; }
.sidebar-role { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 13px; }
.sidebar-badges { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; }
.badge { font-size: 0.7rem; font-weight: 600; padding: 4px 10px; border-radius: 100px; }
.badge-green { background: var(--success-light); color: var(--success); }
.badge-blue { background: var(--frost-light); color: var(--navy); }
.sidebar-info { background: white; border-radius: var(--radius-md); padding: 18px; border: 1.5px solid var(--border); }
.sidebar-info-title { font-weight: 700; font-size: 0.82rem; color: var(--navy-dark); margin-bottom: 11px; }
.sidebar-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.sidebar-list li { font-size: 0.8rem; color: var(--text-secondary); }
.sidebar-emergency { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); border-radius: var(--radius-md); padding: 18px; color: white; }
.sidebar-emergency h4 { font-size: 0.82rem; font-weight: 700; margin-bottom: 9px; opacity: 0.9; }
.emergency-link { display: flex; align-items: center; gap: 7px; color: white; text-decoration: none; font-weight: 700; font-size: 1.05rem; margin-bottom: 5px; }
.emergency-link:hover { opacity: 0.85; }
.emergency-note { font-size: 0.7rem; opacity: 0.65; }
.chat-window { background: white; border-radius: var(--radius-xl); border: 1.5px solid var(--border); box-shadow: var(--shadow-md); overflow: hidden; display: flex; flex-direction: column; min-height: 540px; }
.chat-messages { flex: 1; padding: 26px; display: flex; flex-direction: column; gap: 18px; overflow-y: auto; max-height: 400px; scroll-behavior: smooth; }
.chat-messages::-webkit-scrollbar { width: 5px; }
.chat-messages::-webkit-scrollbar-track { background: var(--frost-light); }
.chat-messages::-webkit-scrollbar-thumb { background: var(--frost-mid); border-radius: 3px; }
.message { display: flex; gap: 11px; align-items: flex-start; animation: msgIn 0.3s ease-out; }
@keyframes msgIn { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
.message-user { flex-direction: row-reverse; }
.message-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--accent)); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.message-user .message-avatar { background: linear-gradient(135deg, var(--accent), var(--frost-mid)); }
.message-content { display: flex; flex-direction: column; gap: 7px; max-width: 78%; }
.message-bubble { padding: 13px 17px; border-radius: var(--radius-md); font-size: 0.9rem; line-height: 1.65; }
.message-bot .message-bubble { background: var(--frost-light); color: var(--text-primary); border-bottom-left-radius: 4px; }
.message-user .message-bubble { background: linear-gradient(135deg, var(--navy), var(--accent)); color: white; border-bottom-right-radius: 4px; }
.message-bubble p { margin-bottom: 7px; }
.message-bubble p:last-child { margin-bottom: 0; }
.message-bubble strong { font-weight: 700; }
.message-bubble ul { padding-left: 17px; margin-top: 5px; }
.message-bubble li { margin-bottom: 4px; }
.message-time { font-size: 0.68rem; color: var(--text-muted); padding: 0 3px; }
.message-user .message-time { text-align: right; }
.message-suggestions { display: flex; flex-wrap: wrap; gap: 7px; }
.suggestion-chip { background: white; border: 1.5px solid var(--border); color: var(--navy); font-size: 0.76rem; font-weight: 600; padding: 6px 13px; border-radius: 100px; cursor: pointer; transition: all 0.2s; font-family: var(--font-display); }
.suggestion-chip:hover { background: var(--navy); color: white; border-color: var(--navy); }
.typing-indicator { display: flex; align-items: center; gap: 11px; padding: 10px 26px; }
.typing-dots { display: flex; gap: 5px; background: var(--frost-light); padding: 11px 15px; border-radius: var(--radius-md); }
.typing-dots span { width: 7px; height: 7px; background: var(--frost-mid); border-radius: 50%; animation: typeBounce 1.2s infinite; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typeBounce { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-8px)} }
.chat-input-area { padding: 18px 22px; border-top: 1.5px solid var(--border); background: var(--off-white); }
.input-wrapper { display: flex; align-items: flex-end; gap: 11px; background: white; border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 11px 15px; transition: border-color 0.2s; }
.input-wrapper:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(46,80,144,0.1); }
.chat-input { flex: 1; border: none; outline: none; font-family: var(--font-display); font-size: 0.93rem; color: var(--text-primary); resize: none; background: transparent; line-height: 1.5; max-height: 120px; }
.chat-input::placeholder { color: var(--text-muted); }
.input-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.char-count { font-size: 0.7rem; color: var(--text-muted); }
.btn-send { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: white; transition: all 0.2s; flex-shrink: 0; }
.btn-send:hover:not(:disabled) { background: var(--navy-mid); transform: scale(1.06); }
.btn-send:disabled { background: var(--border); cursor: not-allowed; }
.input-disclaimer { font-size: 0.7rem; color: var(--text-muted); margin-top: 9px; }

/* ── FAQ ── */
.faq-section { padding: 96px 0; background: white; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 880px; margin: 0 auto; }
.faq-item { border: 1.5px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; background: none; border: none; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--navy-dark); text-align: left; transition: background 0.2s; }
.faq-question:hover { background: var(--frost-light); }
.faq-question.open { background: var(--frost-light); color: var(--navy); }
.faq-chevron { flex-shrink: 0; font-size: 0.7rem; color: var(--text-muted); transition: transform 0.3s; display: inline-block; }
.faq-question.open .faq-chevron { transform: rotate(180deg); color: var(--navy); }
.faq-answer { padding: 0 22px 18px; font-family: var(--font-body); font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }
.faq-answer strong { color: var(--navy-dark); }

/* ── CONTACT ── */
.contact-section { padding: 96px 0; background: var(--frost-light); }
.contact-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.contact-card { background: white; border-radius: var(--radius-lg); padding: 30px 22px; text-align: center; border: 1.5px solid var(--border); transition: all 0.3s; }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-card-primary { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); color: white; border-color: transparent; }
.contact-card-primary h3 { color: white; }
.contact-card-primary .contact-detail a { color: white; }
.contact-card-primary .contact-note { color: rgba(255,255,255,0.75); }
.contact-icon { font-size: 2rem; margin-bottom: 14px; }
.contact-card h3 { font-weight: 700; font-size: 0.98rem; color: var(--navy-dark); margin-bottom: 9px; }
.contact-detail { margin-bottom: 7px; }
.contact-detail a { font-weight: 700; font-size: 0.98rem; color: var(--navy); text-decoration: none; }
.contact-detail a:hover { text-decoration: underline; }
.contact-note { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 14px; }
.btn-outline { background: none; border: 1.5px solid var(--navy); color: var(--navy); font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; padding: 8px 18px; border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s; margin-top: 6px; }
.btn-outline:hover { background: var(--navy); color: white; }

/* ── FOOTER ── */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); padding: 60px 0 0; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px 44px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; }
.footer-brand .brand-name { font-size: 1.15rem; font-weight: 800; color: white; display: block; margin-bottom: 11px; }
.footer-brand p { font-size: 0.82rem; line-height: 1.65; opacity: 0.65; max-width: 230px; }
.footer-col h4 { font-size: 0.78rem; font-weight: 700; color: white; text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 0.82rem; color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--frost-mid); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 24px; text-align: center; }
.footer-bottom p { font-size: 0.75rem; opacity: 0.45; margin-bottom: 3px; }
.footer-disclaimer { font-style: italic; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 80px 24px; }
  .hero-visual { display: none; }
  .hero-stats { justify-content: center; }
  .hero-subtitle { margin: 0 auto 36px; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .chat-wrapper { grid-template-columns: 1fr; }
  .chat-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .sidebar-emergency { grid-column: span 2; }
  .contact-grid { grid-template-columns: repeat(2,1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  .header-nav { display: none; }
  .hamburger { display: flex; }
  .hero-title { font-size: 2rem; }
  .faq-grid { grid-template-columns: 1fr; }
  .chat-sidebar { grid-template-columns: 1fr; }
  .sidebar-emergency { grid-column: span 1; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 14px; align-items: flex-start; }
  .stat-divider { display: none; }
}