/* QuickInsight AI — Redesigned Auxiliary Pages Stylesheet */

:root {
  /* New Color Palette - Modern Tech Aesthetic */
  --primary:       #0F172A;
  --primary-mid:   #1E293B;
  --primary-light: #F1F5F9;
  --accent:        #6366F1;
  --accent-dark:   #4F46E5;
  --accent-light:  #EEF2FF;
  --secondary:     #10B981;
  --secondary-dark:#059669;
  --secondary-light:#ECFDF5;
  --warning:       #F59E0B;
  --warning-light: #FEF3C7;
  --dark:          #020617;
  --gray-900:      #0F172A;
  --gray-800:      #1E293B;
  --gray-700:      #334155;
  --gray-600:      #475569;
  --gray-500:      #64748B;
  --gray-400:      #94A3B8;
  --gray-300:      #CBD5E1;
  --gray-200:      #E2E8F0;
  --gray-100:      #F1F5F9;
  --gray-50:       #F8FAFC;
  --white:         #FFFFFF;
  
  /* Typography - Modern Sans */
  --font-primary:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', monospace;
  
  /* Spacing & Layout */
  --radius-sm:     6px;
  --radius:        12px;
  --radius-lg:     20px;
  --radius-xl:     32px;
  --radius-full:   9999px;
  
  /* Shadows - Elevated Design */
  --shadow-xs:     0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm:     0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow:        0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-md:     0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-lg:     0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-xl:     0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  --max-width:     1280px;
  --content-width: 768px;
}

/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

html { 
  scroll-behavior: smooth; 
  font-size: 16px; 
  line-height: 1.5;
}

body {
  font-family: var(--font-primary);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

a { 
  color: inherit; 
  text-decoration: none; 
  transition: all 0.2s ease;
}

img { 
  display: block; 
  max-width: 100%; 
  height: auto;
}

ul { list-style: none; }

/* Container System */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* Button System - Redesigned */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  line-height: 1;
  white-space: nowrap;
  transition: all 0.2s ease;
  text-decoration: none;
  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.5s ease;
}

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

.btn-primary { 
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover { 
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-sm { 
  padding: 12px 24px; 
  font-size: 14px; 
}

.btn-outline { 
  background: var(--white);
  border: 2px solid var(--gray-200);
  color: var(--gray-900);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover { 
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-secondary { 
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-secondary:hover { 
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ══════════════════════════════════════
   HEADER - Redesigned
══════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 800;
  font-size: 24px;
  color: var(--gray-900);
}

.brand-logo { 
  width: 40px; 
  height: 40px; 
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.2));
}

.brand-name {
  letter-spacing: -0.02em;
}

.brand-name span { 
  color: var(--accent);
}

.header-back {
  font-size: 16px;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: all 0.2s ease;
}

.header-back:hover { 
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-light);
}

/* ══════════════════════════════════════
   PAGE HERO - Redesigned
══════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--primary-mid) 50%, var(--gray-800) 100%);
  color: var(--white);
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  animation: float 20s ease-in-out infinite;
}

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

.page-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #A5B4FC;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

.page-hero-title {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.page-hero-sub {
  font-size: 20px;
  color: rgba(255,255,255,0.8);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════
   CONTENT BLOCKS - Redesigned
══════════════════════════════════════ */
.page-section {
  padding: 120px 0;
  background: var(--white);
}

.page-section.alt { 
  background: var(--gray-50); 
}

.page-section.last { 
  padding-bottom: 120px; 
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  padding: 8px 16px;
  background: var(--accent-light);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.section-text {
  font-size: 18px;
  color: var(--gray-600);
  line-height: 1.6;
  max-width: 720px;
}

.section-text p + p { 
  margin-top: 20px; 
}

/* Two-column layout */
.page-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.page-two-col.flip { 
  direction: rtl; 
}

.page-two-col.flip > * { 
  direction: ltr; 
}

.page-img-placeholder {
  height: 400px;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--gray-500);
  font-size: 16px;
  font-weight: 500;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.page-img-placeholder::before {
  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 2s infinite;
}

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

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-300);
}

.info-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--secondary-light) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent);
}

.info-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
  line-height: 1.3;
}

.info-card p {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Policy empty block */
.policy-empty {
  padding: 120px 32px;
  text-align: center;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  border-radius: var(--radius-xl);
  border: 2px dashed var(--gray-300);
  color: var(--gray-500);
  margin: 60px 0;
  position: relative;
  overflow: hidden;
}

.policy-empty::before {
  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 3s infinite;
}

.policy-empty svg { 
  margin: 0 auto 20px; 
  opacity: 0.6; 
  color: var(--gray-400);
}

.policy-empty p {
  font-size: 18px;
  font-weight: 500;
}

/* Policy Content Styling */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
}

.policy-meta {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 40px;
  border-left: 4px solid var(--accent);
}

.policy-meta p {
  margin: 0;
  font-size: 14px;
  color: var(--gray-600);
}

.policy-meta p + p {
  margin-top: 8px;
}

.policy-section {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-200);
}

.policy-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.policy-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
  line-height: 1.3;
}

.policy-section h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-800);
  margin: 24px 0 12px 0;
  line-height: 1.4;
}

.policy-section p {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 16px;
}

.policy-section ul {
  margin: 16px 0;
  padding-left: 0;
}

.policy-section li {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 8px;
  padding-left: 24px;
  position: relative;
}

.policy-section li::before {
  content: '•';
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.contact-info {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 20px;
  border-left: 4px solid var(--accent);
}

.contact-info p {
  margin: 0;
  font-size: 16px;
  color: var(--gray-700);
}

.contact-info p + p {
  margin-top: 12px;
}

/* ══════════════════════════════════════
   FOOTER - Redesigned
══════════════════════════════════════ */
.site-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 40px;
}

.footer-brand .brand-name { 
  color: var(--white); 
  font-size: 24px;
}

.footer-brand .brand-name span { 
  color: #A5B4FC; 
}

.footer-tagline {
  font-size: 16px;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 320px;
  color: rgba(255,255,255,0.7);
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
}

.footer-links { 
  display: flex; 
  flex-direction: column; 
  gap: 16px; 
}

.footer-links a { 
  font-size: 16px; 
  color: rgba(255,255,255,0.7);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

.footer-legal { 
  display: flex; 
  gap: 24px; 
}

.footer-legal a { 
  color: rgba(255,255,255,0.5);
  transition: color 0.2s ease;
}

.footer-legal a:hover { 
  color: rgba(255,255,255,0.8); 
}

/* ══════════════════════════════════════
   RESPONSIVE DESIGN
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .page-two-col { grid-template-columns: 1fr; gap: 60px; }
  .page-two-col.flip { direction: ltr; }
  .page-img-placeholder { height: 320px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .page-hero { padding: 80px 0; }
  .page-section { padding: 80px 0; }
  .page-section.last { padding-bottom: 80px; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-legal { justify-content: center; flex-wrap: wrap; }
  .page-img-placeholder { height: 300px; }
  .section-title { font-size: 32px; }
  .page-hero-title { font-size: 36px; }
  .header-inner { height: 70px; }
  .brand { font-size: 20px; }
  .brand-logo { width: 36px; height: 36px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .page-hero { padding: 60px 0; }
  .page-section { padding: 60px 0; }
  .page-hero-title { font-size: 28px; }
  .page-hero-sub { font-size: 18px; }
  .section-title { font-size: 28px; }
  .info-card { padding: 32px 24px; }
  .page-img-placeholder { height: 250px; }
  .header-back { padding: 10px 16px; font-size: 14px; }
}