@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root {
  --page-bg: #f3f5f8;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #111827;
  --muted: #5f6777;
  --line: rgba(17, 24, 39, 0.08);
  --line-strong: rgba(17, 24, 39, 0.14);
  --accent: #ef3d3d;
  --accent-soft: rgba(239, 61, 61, 0.09);
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --page-pad: 140px;
}

@media (max-width: 1440px) and (min-width: 1081px) {
  :root {
    --page-pad: 100px;
  }
}

@media (max-width: 1080px) and (min-width: 721px) {
  :root {
    --page-pad: 48px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: var(--page-bg);
  color: var(--ink);
  overflow-x: hidden;
}

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

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

.topbar {
  width: 100%;
  padding: 18px var(--page-pad) 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar-brand {
  margin-bottom: 0;
  gap: 0;
  display: inline-flex;
  align-items: center;
}

.topbar-brand img {
  height: 34px;
  width: auto;
}

.topbar-back {
  min-width: 100px;
  white-space: nowrap;
}

.hero-banner {
  width: 100%;
  padding: 130px var(--page-pad) 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 36px;
  align-items: center;
}

.hero-copy {
  padding-top: 16px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
}

.brand-lockup img {
  height: 54px;
  width: auto;
}

.hero-title {
  margin: 0 0 18px;
  font-size: 62px;
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 600;
  color: var(--ink);
  max-width: 14.5ch;
}

.hero-text {
  margin: 0;
  max-width: 60ch;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  font-weight: 400;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 0;
  border: 1px solid var(--line-strong);
  font-size: 14px;
  font-weight: 600;
  transition: 0.25s ease;
  background: #fff;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  min-width: 188px;
}

.btn.primary:hover {
  background: #d92f2f;
  border-color: #d92f2f;
}

.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-visual {
  position: relative;
}

.hero-frame {
  position: relative;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 1px solid rgba(17, 24, 39, 0.05);
  pointer-events: none;
}

.hero-frame > img {
  width: 100%;
  border-radius: 10px;
  object-fit: contain;
  min-height: 520px;
  background: #fff;
}

.hero-badge {
  position: absolute;
  right: 22px;
  top: 22px;
  background: #111827;
  color: #fff;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.12);
}

.content-shell {
  width: 100%;
  padding: 0 var(--page-pad) 82px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 36px;
  border-top: 1px solid var(--line);
  align-items: start;
}

.side-tabs {
  position: sticky;
  top: 24px;
  align-self: start;
  padding-top: 22px;
  display: grid;
  gap: 12px;
  height: fit-content;
}

.side-tabs a {
  display: block;
  padding: 5px 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.side-tabs a:hover {
  color: var(--accent);
}

.sections {
  padding-top: 22px;
  display: grid;
  gap: 30px;
}

.section {
  scroll-margin-top: 94px;
}

.section h2 {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--ink);
}

.section p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.85;
  font-weight: 400;
}

.section .lead {
  margin-bottom: 18px;
  color: var(--muted);
}

.highlight-bar {
  margin: 18px 0 0;
  padding: 14px 18px;
  background: rgba(239, 61, 61, 0.1);
  border-radius: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}

.text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 0;
}

.panel h3 {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 600;
}

.panel p {
  color: var(--muted);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  overflow: hidden;
}

.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  background: #f7f8fb;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.compare-table td {
  font-size: 14px;
  line-height: 1.6;
}

.tag-yes {
  color: #0f9d58;
  font-weight: 600;
}

.tag-partial {
  color: #b06a00;
  font-weight: 600;
}

.tag-no {
  color: #c53a3a;
  font-weight: 600;
}

.timeline-list {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  padding: 16px 18px;
}

.timeline-index {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
}

.timeline-item h3 {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
}

.timeline-item p {
  color: var(--muted);
  margin: 0;
}

.persona-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 22px;
}

.persona-card {
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  border: 1px solid var(--line);
  padding: 24px;
}

.persona-name {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 600;
}

.persona-role {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.persona-copy {
  color: var(--muted);
  line-height: 1.8;
}

.list-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px 22px;
}

.list-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
}

.bullet-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 10px;
  line-height: 1.7;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.concept-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px;
}

.card-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(239, 61, 61, 0.16);
  border-radius: 12px;
  font-size: 20px;
  line-height: 1;
}

.concept-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
}

.concept-card p {
  color: var(--muted);
}

.metrics-grid,
.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.metric-card,
.stack-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px;
}

.metric-card p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.metric-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.08;
  font-weight: 600;
}

.metric-card span:not(.card-icon) {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.stack-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
}

.stack-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
  line-height: 1.6;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.gallery-grid img {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-pill {
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

.result-banner {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.result-banner h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.2vw, 2.4rem);
  line-height: 1.08;
  font-weight: 600;
}

.result-banner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.hero-strip {
  margin-top: 18px;
  padding: 12px 16px;
  background: rgba(17, 24, 39, 0.04);
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 1080px) {
  .hero-banner,
  .content-shell,
  .persona-grid,
  .result-banner {
    grid-template-columns: 1fr;
  }

  .hero-title {
    max-width: 14.5ch;
    font-size: 58px;
  }

  .topbar {
    padding: 14px 24px 16px;
  }

  .hero-frame > img {
    min-height: 420px;
  }

  .side-tabs {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 18px;
    padding-top: 20px;
    padding-bottom: 8px;
    white-space: nowrap;
  }

  .side-tabs a {
    flex: 0 0 auto;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 14px 16px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-brand img {
    height: 28px;
  }

  .topbar .btn,
  .topbar .contact-btn {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 12px;
  }

  .topbar-back {
    min-width: 0;
    width: 100%;
  }

  .hero-banner {
    padding: 28px 16px 46px;
    gap: 24px;
  }

  .content-shell {
    padding: 0 16px 68px;
    gap: 22px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .brand-lockup {
    margin-bottom: 18px;
  }

  .brand-lockup img {
    height: 46px;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.6rem);
    max-width: none;
  }

  .hero-text {
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-frame {
    padding: 12px;
  }

  .hero-frame > img {
    min-height: 300px;
  }

  .hero-badge {
    top: 16px;
    right: 16px;
    font-size: 10px;
  }

  .text-grid,
  .concept-grid,
  .metrics-grid,
  .stack-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .section h2 {
    font-size: 28px;
  }

  .section p {
    font-size: 15px;
  }

  .panel,
  .list-card,
  .concept-card,
  .metric-card,
  .stack-card,
  .persona-card,
  .result-banner {
    padding: 18px;
  }

  .timeline-item {
    padding: 14px 16px;
  }

  .result-actions {
    justify-content: flex-start;
  }

  .btn.primary,
  .btn.ghost {
    width: 100%;
  }

  .hero-cta-row {
    flex-direction: column;
  }

  .hero-cta-row .btn {
    width: 100%;
    min-width: 0;
    padding: 0 14px;
  }
}

@media (max-width: 480px) {
  .hero-banner {
    padding-top: 120px;
  }

  .hero-frame > img {
    min-height: 240px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .side-tabs {
    gap: 12px;
  }
}

/* Real Website Header Integration Spacing */
.hero-strip-summary {
  background-color: #ffffff;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
}

/* Testimonial Section */
.testimonial-section {
  background-color: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 80px 20px;
}

.max-width-800 {
  max-width: 800px;
  margin: 0 auto;
}

.text-danger-soft {
  color: rgba(239, 61, 61, 0.1) !important;
}

.italic {
  font-style: italic;
}

/* Related Case Studies Section */
.related-cases-section h2 {
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 30px;
}

/* Reusing listing card designs in detail page */
.related-cases-section .case-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
  transition: 0.3s ease;
  text-align: left;
}

.related-cases-section .case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  border-color: rgba(239, 61, 61, 0.15);
}

.related-cases-section .card-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 20px;
  background-color: #000000;
}

.related-cases-section .card-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  transition: 0.3s ease;
}

.related-cases-section .case-card:hover .card-image-container img {
  transform: scale(1.03);
}

.related-cases-section .category-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: #000000;
  color: #ffffff;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 2px;
  z-index: 5;
}

.related-cases-section .card-body-content {
  flex-grow: 1;
}

.related-cases-section .card-industry-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.related-cases-section .card-title-heading {
  font-size: 22px;
  line-height: 30px;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--ink);
}

.related-cases-section .card-desc-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 24px;
  margin-bottom: 20px;
}

.related-cases-section .card-divider {
  border-top: 1px solid var(--line);
  margin-bottom: 20px;
}

.related-cases-section .card-footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.related-cases-section .card-footer-logo {
  max-width: 150px;
  max-height: 40px;
  object-fit: contain;
}

.related-cases-section .read-case-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: 0.3s ease;
}

.related-cases-section .read-case-cta:hover {
  color: var(--accent);
}

.related-cases-section .read-case-cta:hover i {
  transform: translateX(4px);
}

/* Contact CTA Section */
.contact-cta-section {
  background-color: #111827;
  color: #ffffff;
  padding: 80px 20px;
}

.max-width-600 {
  max-width: 600px;
  margin: 0 auto;
}

.text-light-muted {
  color: #9ca3af;
}

/* Additional layout styles */
.badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}
.bg-success {
  background-color: #198754 !important;
}
.table-active {
  background-color: rgba(0, 0, 0, 0.05) !important;
}
.table-danger {
  background-color: #dc3545 !important;
}

/* Custom AI Scorecard Styles */
.scorecard-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 36px -8px rgba(15, 23, 42, 0.05), 0 4px 12px -2px rgba(15, 23, 42, 0.02);
  padding: 30px;
  margin: 24px 0 32px;
  width: 100%;
  position: relative;
  overflow: hidden;
}


.scorecard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 24px;
}

.scorecard-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.scorecard-header-title h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.scorecard-header-title .header-icon {
  font-size: 22px;
  color: var(--accent);
  background: var(--accent-soft);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.scorecard-subtitle {
  margin: 2px 0 0 !important;
  font-size: 12px !important;
  color: var(--muted) !important;
  line-height: 1.2 !important;
}

.scorecard-status {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
  padding: 4px 10px;
  border-radius: 999px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-dot 2s infinite;
}

.status-text {
  font-size: 11px;
  color: #10b981;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.scorecard-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 576px) {
  .scorecard-body {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
}

.scorecard-summary-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-right: 12px;
  border-right: 1px solid var(--line);
}

@media (max-width: 576px) {
  .scorecard-summary-col {
    border-right: none;
    padding-right: 0;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
  }
}

.overall-circle-container {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overall-circle-svg {
  transform: rotate(-90deg);
  width: 120px;
  height: 120px;
}

.circle-bg {
  stroke: #f1f5f9;
}

.circle-fill {
  transition: stroke-dashoffset 0.8s ease-in-out;
}

.overall-circle-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.overall-circle-text .score-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.overall-circle-text .score-label {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
  font-weight: 500;
}

.recommendation-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.recommendation-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.recommendation-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.scorecard-details-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scorecard-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s ease;
}

.scorecard-item:hover {
  transform: translateX(4px);
}

.scorecard-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.scorecard-item-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.scorecard-item-val {
  font-size: 12px;
  font-weight: 600;
  color: #10b981;
}

.scorecard-progress {
  width: 100%;
  height: 8px;
  background-color: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.scorecard-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #3B82F6 0%, #10B981 100%);
  border-radius: 999px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
