/* ===========================
   CSS VARIABLES & RESET
   =========================== */
:root {
  --primary: #030213;
  --primary-light: rgba(3, 2, 19, 0.08);
  --accent-purple: #8B5CF6;
  --accent-cyan: #06B6D4;
  --accent-green: #10B981;
  --accent-amber: #F59E0B;
  --accent-red: #EF4444;
  --muted: #ececf0;
  --muted-fg: #717182;
  --radius: 0.625rem;
  --border: rgba(0, 0, 0, 0.1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  color: var(--primary);
  line-height: 1.6;
  background: #fff;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ===========================
   UTILITY
   =========================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  text-align: center;
  color: var(--muted-fg);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

.highlight {
  color: var(--accent-purple);
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: opacity 0.2s ease, transform 0.1s ease;
  border-radius: var(--radius);
  text-decoration: none;
}

.btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
  border-radius: 9999px;
}

.btn-rounded-full {
  border-radius: 9999px;
}

/* ===========================
   HEADER
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

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

.site-logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
}

.lang-switcher .lang-active {
  font-weight: 700;
  color: var(--primary);
}

.lang-switcher .lang-sep {
  color: var(--muted-fg);
}

.lang-switcher a {
  color: var(--muted-fg);
  transition: color 0.2s;
}

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

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  background: linear-gradient(135deg, #f0f0ff 0%, #f9f9fb 50%, #f0fff4 100%);
  padding: 5rem 0 4rem;
}

.hero-inner {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.hero-left {
  flex: 1 1 50%;
}

.hero-right {
  flex: 1 1 50%;
  min-width: 0;
}

.hero-headline {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 1.25rem;
}

.hero-subheadline {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-cta {
  margin-bottom: 2.5rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.metric-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--muted-fg);
  margin-bottom: 0.25rem;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

/* HERO RIGHT CARD — floated over photo */
.hero-chart-card {
  position: absolute;
  bottom: 60px;
  left: 12px;
  width: 190px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 12px 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.hero-chart-title {
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.hero-chart-subtitle {
  font-size: 0.68rem;
  color: var(--muted-fg);
  margin-bottom: 0.6rem;
}

.bar-chart-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.bar-chart-label {
  font-size: 0.75rem;
  color: var(--muted-fg);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* ===========================
   QUESTION SECTION
   =========================== */
.question-section {
  background: #fff;
  padding: 5rem 0;
}

.question-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.question-intro p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #444;
}

.question-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.question-text h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.question-text p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 0.85rem;
}

.pie-chart-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.pie-chart-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.pie-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  justify-content: center;
}

.pie-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #444;
}

.pie-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===========================
   VALUE PROPOSITION SECTION
   =========================== */
.value-section {
  background: #f9f9fb;
  padding: 5rem 0;
}

.value-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.value-card {
  border-radius: 1.25rem;
  padding: 2rem;
}

.value-card-before {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.value-card-after {
  background: var(--primary);
  color: #fff;
}

.value-card-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.value-card-before .value-card-badge {
  background: var(--muted);
  color: var(--muted-fg);
}

.value-card-after .value-card-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.value-card-items {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.value-card-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.value-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.value-card-before .value-icon {
  background: #fee2e2;
  color: var(--accent-red);
}

.value-card-after .value-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.value-card-before .value-card-item {
  color: var(--muted-fg);
}

.value-final-msg {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
}

/* ===========================
   PROFILE SECTION
   =========================== */
.profile-section {
  background: #fff;
  padding: 5rem 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: flex-start;
}

.profile-img {
  width: 100%;
  max-width: 400px;
  border-radius: 1.25rem;
  object-fit: cover;
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.profile-birthplace {
  font-size: 0.85rem;
  color: var(--muted-fg);
  margin-bottom: 1.5rem;
}

.career-cards {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.career-card {
  background: #f9f9fb;
  border-left: 4px solid var(--accent-purple);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.85rem 1rem;
}

.career-card:nth-child(2) {
  border-left-color: var(--accent-cyan);
}

.career-card:nth-child(3) {
  border-left-color: var(--accent-green);
}

.career-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--primary);
}

.career-card-desc {
  font-size: 0.82rem;
  color: #555;
  line-height: 1.6;
}

.profile-sub-section {
  margin-bottom: 1.25rem;
}

.profile-sub-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
}

.profile-sub-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.profile-sub-list li {
  font-size: 0.82rem;
  color: #444;
  line-height: 1.6;
  padding-left: 1rem;
  position: relative;
}

.profile-sub-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-purple);
}

/* ===========================
   RESULTS SECTION
   =========================== */
.results-section {
  background: #f9f9fb;
  padding: 5rem 0;
}

.featured-result-card {
  background: var(--primary);
  color: #fff;
  border-radius: 1.25rem;
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.result-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.featured-result-card .result-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.featured-result-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.featured-result-desc {
  font-size: 0.9rem;
  line-height: 1.75;
  opacity: 0.88;
  margin-bottom: 1.5rem;
}

.result-metric-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.result-metric-badge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

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

.project-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.project-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.09);
  transform: translateY(-2px);
}

.project-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  display: block;
}

.project-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.project-card-desc {
  font-size: 0.82rem;
  color: #555;
  line-height: 1.65;
}

/* ===========================
   FAQ SECTION
   =========================== */
.faq-section {
  background: #fff;
  padding: 5rem 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

/* FAQ group card */
.faq-group {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  margin-bottom: 1rem;
  overflow: hidden;
}
.faq-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.faq-group-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--muted);
  color: #444;
  flex-shrink: 0;
}
.faq-group-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}
.faq-items {
  padding: 0;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-item summary.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a1a2e;
  cursor: pointer;
  list-style: none;
  gap: 12px;
}
.faq-item summary.faq-q::-webkit-details-marker { display: none; }
.faq-item summary.faq-q::marker { display: none; }
.faq-chevron {
  flex-shrink: 0;
  color: #888;
  transition: transform 0.2s;
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}
.faq-a {
  padding: 0 1.5rem 1rem 1.5rem;
  font-size: 0.875rem;
  color: #555;
  line-height: 1.7;
}
.faq-footer-box {
  margin-top: 2rem;
  background: var(--muted);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
}
.faq-footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.faq-footer-text {
  font-size: 0.875rem;
  color: var(--muted-fg);
  margin-bottom: 1.25rem;
}

/* ===========================
   CTA SECTION
   =========================== */
.cta-section {
  position: relative;
  padding: 6rem 0;
  background: var(--primary);
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-image: url('fetched/hero-bg-futuristic-data.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}

.cta-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.cta-subtitle {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 2rem;
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--primary);
  padding: 0.9rem 2.25rem;
  border-radius: 9999px;
  font-size: 1rem;
}

.cta-section .btn-primary:hover {
  opacity: 0.9;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: #030213;
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0;
  text-align: center;
}

.footer-brand {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.footer-copy {
  font-size: 0.78rem;
}

/* ===========================
   INLINE SVG BAR CHART
   =========================== */
.bar-chart-container {
  width: 100%;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
  }

  .hero-left,
  .hero-right {
    flex: 1 1 100%;
  }

  .question-intro {
    grid-template-columns: 1fr;
  }

  .question-columns {
    grid-template-columns: 1fr;
  }

  .value-cards {
    grid-template-columns: 1fr;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-img {
    max-width: 100%;
  }

  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Hero photo */
.hero-img-container {
  position: relative;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.hero-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* Metric icon */
.metric-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light, rgba(3,2,19,0.08));
  color: var(--primary);
  margin: 0 auto 0.5rem auto;
}

/* Floating language switcher */
.lang-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  border: 1px solid rgba(0,0,0,0.1);
}
.lang-float a,
.lang-float span {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.4;
}
.lang-float .lang-inactive {
  background: #fff;
  color: #030213;
}
.lang-float .lang-active {
  background: #030213;
  color: #fff;
}

/* Header brand */
.header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
}
.brand-icon {
  flex-shrink: 0;
}

/* Metrics strip — absolute overlay at bottom of photo */
.metrics-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  padding: 8px 4px;
  z-index: 2;
}
.metrics-strip .metric-card {
  background: transparent;
  box-shadow: none;
  border: none;
  border-right: 1px solid var(--border);
  padding: 4px 6px;
  text-align: center;
}
.metrics-strip .metric-card:last-child {
  border-right: none;
}
.metrics-strip .metric-icon {
  width: 24px;
  height: 24px;
  margin: 0 auto 2px auto;
}
.metrics-strip .metric-value {
  font-size: 12px;
  font-weight: 700;
}
.metrics-strip .metric-label {
  font-size: 9px;
  color: var(--muted-fg);
}

/* Question section expert text */
.question-expert-text {
  max-width: 720px;
  margin: 0 auto 2.5rem auto;
}
.question-expert-text h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.question-photo-col {
  flex: 1;
}
.question-portrait {
  width: 100%;
  height: 100%;
  min-height: 300px;
  max-height: 400px;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

/* Featured result card redesign */
.featured-result-card {
  margin-top: 2rem;
  border-radius: 1rem;
  background: #f7f7f7;
  border: 1px solid var(--border);
  overflow: hidden;
}
.featured-result-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.featured-result-content {
  flex: 1.2;
  padding: 2rem;
}
.featured-result-img-col {
  flex: 1;
  min-height: 280px;
}
.featured-result-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.featured-result-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.75rem 0;
  color: #030213;
}
.featured-result-desc {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.7;
}
.featured-metrics {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.featured-metric-badge {
  background: #030213;
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 9999px;
}
.featured-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: #030213;
  color: #fff;
}
@media (max-width: 700px) {
  .featured-result-inner { flex-direction: column; }
  .featured-result-img-col { min-height: 200px; }
}

@media (max-width: 600px) {
  .section-title {
    font-size: 1.35rem;
  }

  .hero-headline {
    font-size: 1.4rem;
  }

  .cta-title {
    font-size: 1.3rem;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .header-right {
    gap: 0.75rem;
  }

  .site-logo {
    font-size: 0.88rem;
  }

  .btn.btn-rounded-full {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}
