/* ═══════════════════════════════════
   PAGE 1 - LANDING
═══════════════════════════════════ */

/* Background texture overlay for hero */
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(184,137,42,0.06) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(28,63,94,0.05) 0%, transparent 40%),
    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='%23b8892a' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero {
  flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  max-width: 1200px; margin: 0 auto; padding: 80px 60px; align-items: center;
  width: 100%; position: relative; z-index: 1;
}
#page-home > section { flex: 1; display: flex; flex-direction: column; position: relative; }

.hero-left { animation: slideLeft 0.7s cubic-bezier(.22,.68,0,1.2) both; }
.upload-card { animation: slideRight 0.7s 0.15s cubic-bezier(.22,.68,0,1.2) both; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-pale); border: 1px solid #e0c87a;
  border-radius: 20px; padding: 5px 14px;
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 28px; animation: fadeIn 0.5s ease both;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif; font-size: 52px; font-weight: 700;
  line-height: 1.1; letter-spacing: -1px; color: var(--ink); margin-bottom: 20px;
}
.hero-title em { color: var(--gold); font-style: italic; }
.hero-urdu {
  font-family: 'Noto Nastaliq Urdu', serif; font-size: 20px;
  direction: rtl; text-align: right; color: var(--accent); margin-bottom: 16px; line-height: 2;
  padding: 12px 16px; background: rgba(28,63,94,0.05); border-radius: 8px; border-right: 3px solid var(--accent);
}
.hero-desc { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 36px; }
.hero-stats { display: flex; gap: 32px; }
.stat { position: relative; }
.stat-num {
  font-family: 'Cormorant Garamond', serif; font-size: 36px; font-weight: 700;
  color: var(--ink); line-height: 1;
  background: linear-gradient(135deg, var(--ink), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* How It Works */
.hiw-section {
  background: var(--ink); padding: 80px 60px; text-align: center;
  position: relative; overflow: hidden;
}
.hiw-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(184,137,42,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(28,63,94,0.15) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23b8892a' fill-opacity='0.03'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hiw-title {
  font-family: 'Cormorant Garamond', serif; font-size: 40px; font-weight: 700;
  color: #fff; margin-bottom: 12px; position: relative;
}
.hiw-sub { color: rgba(255,255,255,0.5); font-size: 15px; margin-bottom: 56px; position: relative; }
.hiw-steps {
  display: grid; grid-template-columns: repeat(5, 1fr);
  max-width: 1000px; margin: 0 auto; position: relative;
}
.hiw-steps::before {
  content: ''; position: absolute; top: 28px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hiw-step { padding: 0 12px; position: relative; }
.hiw-num {
  width: 56px; height: 56px; background: var(--gold); color: var(--ink); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 700;
  margin: 0 auto 20px; position: relative; z-index: 1;
  box-shadow: 0 0 0 4px rgba(184,137,42,0.2), 0 4px 20px rgba(184,137,42,0.3);
  transition: all 0.3s;
}
.hiw-step:hover .hiw-num { transform: scale(1.12); box-shadow: 0 0 0 8px rgba(184,137,42,0.15), 0 8px 28px rgba(184,137,42,0.35); }
.hiw-step-title { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.hiw-step-desc { font-size: 11px; color: rgba(255,255,255,0.45); line-height: 1.6; }

/* ═══════════════════════════════════
   PAGE 2 - ANALYSIS
═══════════════════════════════════ */
.analysis-topbar {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 12px 32px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-shrink: 0; flex-wrap: wrap;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.doc-info { display: flex; align-items: center; gap: 12px; }
.doc-icon { font-size: 26px; }
.doc-name { font-weight: 600; font-size: 14px; }
.doc-meta { font-size: 11px; color: var(--muted); }
.filter-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.analysis-body {
  flex: 1; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
  height: calc(100vh - var(--nav-h) - 3px - 58px - 57px); min-height: 400px;
}
.left-panel {
  border-right: 1px solid var(--border); overflow-y: auto; padding: 24px;
  background: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23b8892a' fill-opacity='0.025'%3E%3Cpath d='M0 0h20v20H0V0zm20 20h20v20H20V20z'/%3E%3C/g%3E%3C/svg%3E");
}
.right-panel { overflow-y: auto; padding: 24px; background: var(--white); }

.nav-clause-row {
  display: flex; gap: 8px; justify-content: center; padding: 14px 24px;
  border-top: 1px solid var(--border); background: var(--white);
  flex-wrap: wrap; flex-shrink: 0;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.04);
}

/* ═══════════════════════════════════
   PAGE 3 - Q&A
═══════════════════════════════════ */
.qa-layout {
  flex: 1; display: grid; grid-template-columns: 280px 1fr;
  height: calc(100vh - var(--nav-h) - 3px); overflow: hidden;
}
.qa-sidebar {
  background: var(--ink); padding: 24px 20px;
  display: flex; flex-direction: column; gap: 20px; overflow-y: auto;
  background-image: 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='%23b8892a' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.qa-sidebar-title { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 4px; }
.qa-doc-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 14px; transition: all 0.2s; }
.qa-doc-card:hover { background: rgba(255,255,255,0.09); border-color: rgba(184,137,42,0.3); }
.qa-doc-name { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.qa-doc-stat { font-size: 11px; color: rgba(255,255,255,0.4); }
.qa-suggestions-title { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 10px; }
.qa-suggestion {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px; padding: 11px 14px; font-size: 12px; color: rgba(255,255,255,0.65);
  cursor: pointer; margin-bottom: 8px; transition: all 0.2s;
  font-family: 'Noto Nastaliq Urdu', serif; direction: rtl; text-align: right; line-height: 1.9;
}
.qa-suggestion:hover { background: rgba(184,137,42,0.12); border-color: rgba(184,137,42,0.3); color: #fff; transform: translateX(-3px); }

.qa-main { display: flex; flex-direction: column; background: var(--paper); overflow: hidden; }
.qa-header {
  padding: 18px 28px; border-bottom: 1px solid var(--border); background: var(--white);
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.qa-header-title { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 700; }
.qa-header-sub { font-size: 12px; color: var(--muted); }
.qa-messages {
  flex: 1; padding: 24px 28px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 18px;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23b8892a' fill-opacity='0.018'%3E%3Ccircle cx='20' cy='20' r='1'/%3E%3C/g%3E%3C/svg%3E");
}
.qa-input-area { padding: 16px 28px; border-top: 1px solid var(--border); background: var(--white); flex-shrink: 0; }
.qa-input-box { display: flex; gap: 10px; align-items: flex-end; }
.qa-actions { display: flex; flex-direction: column; gap: 6px; }
.qa-hint { font-size: 11px; color: var(--muted); text-align: center; margin-top: 10px; }

/* ═══════════════════════════════════
   PAGE 4 - REPORT
═══════════════════════════════════ */
.report-body { flex: 1; padding: 40px; max-width: 960px; margin: 0 auto; width: 100%; }
.report-header-card {
  background: var(--ink); border-radius: 16px; padding: 36px 40px; margin-bottom: 28px;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px;
  position: relative; overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23b8892a' fill-opacity='0.05'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40z'/%3E%3C/g%3E%3C/svg%3E");
}
.report-header-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 85% 50%, rgba(184,137,42,0.18) 0%, transparent 55%);
}
.report-doc-title { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 8px; position: relative; }
.report-meta { font-size: 13px; color: rgba(255,255,255,0.45); position: relative; }
.report-meta span { color: rgba(255,255,255,0.75); }
.insights-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }

/* ═══════════════════════════════════
   PAGE 5 - ABOUT
═══════════════════════════════════ */
.about-hero {
  padding: 100px 60px; text-align: center; position: relative; overflow: hidden;
  background: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23b8892a' fill-opacity='0.04' fill-rule='evenodd'/%3E%3C/svg%3E");
}
.about-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(184,137,42,0.12) 0%, transparent 60%);
}
.about-hero-title { font-family: 'Cormorant Garamond', serif; font-size: 48px; font-weight: 700; color: #fff; margin-bottom: 16px; position: relative; }
.about-hero-title span { color: var(--gold); }
.about-hero-sub { font-size: 16px; color: rgba(255,255,255,0.5); max-width: 600px; margin: 0 auto 24px; line-height: 1.7; position: relative; }
.about-hero-urdu { font-family: 'Noto Nastaliq Urdu', serif; font-size: 22px; color: var(--gold-light); direction: rtl; line-height: 2; position: relative; }

.about-content { max-width: 960px; margin: 0 auto; padding: 60px 40px; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 56px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
