/* A2TDEV — Minimal professional CMS case studies and details pages */
:root {
  --a2t-case-blue: #2f63ff;
  --a2t-case-ink: #070b14;
  --a2t-case-muted: #5b667a;
  --a2t-case-line: #e6ebf3;
  --a2t-case-soft: #f7f9ff;
  --a2t-case-card: #ffffff;
}

.a2t-case-index-page,
.a2t-case-detail-page {
  width: min(1280px, calc(100% - 64px));
  padding-top: 54px;
}

.a2t-case-index-hero {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 42px;
}

.a2t-section-mark {
  display: block;
  width: 48px;
  height: 2px;
  border-radius: 999px;
  margin: 16px auto 0;
  background: var(--a2t-case-blue);
}

.a2t-case-index-page .a2t-page-title {
  font-size: clamp(40px, 5.2vw, 58px);
  letter-spacing: -.065em;
  margin-bottom: 12px;
}

.a2t-case-index-page .a2t-page-lead,
.a2t-case-detail-page .a2t-page-lead {
  color: var(--a2t-case-muted);
  line-height: 1.75;
}

.a2t-case-grid-minimal {
  gap: 18px;
}

.a2t-case-card-minimal {
  border-radius: 24px;
  border-color: var(--a2t-case-line);
  box-shadow: 0 20px 60px rgba(8, 12, 24, .055);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.a2t-case-card-minimal:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 99, 255, .24);
  box-shadow: 0 28px 75px rgba(8, 12, 24, .09);
}

.a2t-case-visual-link {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.a2t-case-card-minimal .a2t-case-visual {
  height: 222px;
  border-bottom: 1px solid var(--a2t-case-line);
}

.a2t-case-visual-placeholder {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 36px;
  background: linear-gradient(145deg, #f7faff, #ffffff 42%, #eef4ff);
}

.a2t-case-visual-placeholder::before {
  display: none;
}

.a2t-case-visual-placeholder span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #dbe7ff, #f4f7ff);
}

.a2t-case-visual-placeholder span:first-child {
  width: 62%;
  height: 18px;
}

.a2t-case-visual-placeholder span:nth-child(2) { width: 88%; }
.a2t-case-visual-placeholder span:nth-child(3) { width: 72%; }

.a2t-featured-badge {
  position: absolute;
  right: 16px;
  top: 16px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--a2t-case-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(47, 99, 255, .28);
}

.a2t-case-card-minimal .a2t-case-body {
  padding: 24px 22px 26px;
}

.a2t-case-card-minimal h3 {
  margin-top: 14px;
  font-size: 25px;
  line-height: 1.08;
}

.a2t-case-card-minimal h3 a {
  color: var(--a2t-case-ink);
  text-decoration: none;
}

.a2t-case-card-minimal .a2t-muted {
  min-height: 62px;
  color: var(--a2t-case-muted);
}

.a2t-case-card-minimal .a2t-result-box {
  display: none;
}

.a2t-case-card-minimal .a2t-case-link {
  color: var(--a2t-case-blue);
}

.a2t-case-start-strip {
  margin: 48px 0 58px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 34px 44px;
  border: 1px solid var(--a2t-case-line);
  border-radius: 24px;
  background: linear-gradient(135deg, #f7faff, #ffffff);
  box-shadow: 0 18px 55px rgba(8, 12, 24, .05);
}

.a2t-strip-icon {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--a2t-case-blue);
  color: #fff;
  font-size: 30px;
  box-shadow: 0 18px 40px rgba(47, 99, 255, .24);
}

.a2t-strip-icon i {
  color: #f59e0b;
}

.a2t-case-start-strip h2,
.a2t-case-bottom-cta h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.045em;
  color: var(--a2t-case-ink);
}

.a2t-case-start-strip p,
.a2t-case-bottom-cta p {
  margin: 0;
  color: var(--a2t-case-muted);
  line-height: 1.65;
}

.a2t-centered-heading,
.a2t-centered-title {
  text-align: center;
}

.a2t-testimonial-grid-minimal {
  max-width: 1160px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 28px auto 0;
}

.a2t-testimonial-grid-minimal .a2t-testimonial-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 246px;
  padding: 34px;
}

.a2t-testimonial-grid-minimal .a2t-quote {
  overflow-wrap: anywhere;
}

.a2t-testimonial-grid-minimal .a2t-author {
  margin-top: auto;
}

.a2t-review-project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  color: var(--a2t-case-blue, #2f63ff) !important;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.a2t-review-project-link:hover,
.a2t-review-project-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.a2t-testimonial-grid-minimal .a2t-testimonial-card:only-child,
.a2t-testimonial-grid-minimal .a2t-testimonial-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: min(760px, calc((100% - 22px) / 2));
  justify-self: center;
}

.a2t-testimonial-grid-minimal .a2t-testimonial-card:only-child {
  width: min(760px, 100%);
}

.a2t-author-avatar {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: #0f172a;
}

.a2t-case-industries-panel {
  margin-top: 56px;
}

/* Detail page */
.a2t-back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--a2t-case-muted);
  text-decoration: none;
  font-weight: 800;
  margin-bottom: 28px;
}

.a2t-back-link:hover { color: var(--a2t-case-blue); }

.a2t-case-detail-hero {
  display: grid;
  grid-template-columns: .86fr 1fr;
  gap: 44px;
  align-items: center;
  margin-bottom: 32px;
}

.a2t-case-detail-copy .a2t-page-title {
  font-size: clamp(42px, 5vw, 64px);
  letter-spacing: -.07em;
  line-height: .98;
  margin-bottom: 18px;
}

.a2t-btn-primary,
.a2t-btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid transparent;
}

.a2t-btn-primary {
  color: #fff;
  background: var(--a2t-case-blue);
  box-shadow: 0 16px 35px rgba(47, 99, 255, .2);
}

.a2t-btn-light,
.a2t-case-detail-page .a2t-btn {
  color: var(--a2t-case-ink);
  border-color: var(--a2t-case-line);
  background: #fff;
}

.a2t-case-browser-card {
  overflow: hidden;
  border: 1px solid var(--a2t-case-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(8, 12, 24, .10);
}

.a2t-browser-top {
  height: 28px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-bottom: 1px solid var(--a2t-case-line);
  background: #f8fafc;
}

.a2t-browser-top span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d6dce8;
}

.a2t-case-browser-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.a2t-browser-placeholder {
  min-height: 330px;
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 44px;
  color: #fff;
  background:
    radial-gradient(circle at 24% 20%, rgba(47, 99, 255, .5), transparent 22%),
    linear-gradient(135deg, #071426, #133968 70%, #0b1b30);
}

.a2t-browser-placeholder strong {
  max-width: 440px;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -.055em;
}

.a2t-browser-placeholder small,
.a2t-browser-logo { color: rgba(255,255,255,.78); font-weight: 800; }

.a2t-project-summary-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  margin: 36px 0;
  border: 1px solid var(--a2t-case-line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 16px 55px rgba(8,12,24,.04);
}

.a2t-project-summary-strip div {
  min-height: 86px;
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 10px;
  align-content: center;
  padding: 16px 18px;
  border-left: 1px solid var(--a2t-case-line);
}

.a2t-project-summary-strip div:first-child { border-left: 0; }
.a2t-project-summary-strip i { grid-row: span 2; color: var(--a2t-case-blue); font-size: 18px; align-self: center; }
.a2t-project-summary-strip span { color: var(--a2t-case-muted); font-size: 12px; font-weight: 800; }
.a2t-project-summary-strip strong { color: var(--a2t-case-ink); font-size: 13px; line-height: 1.3; }
.a2t-project-summary-strip .fa-circle { color: #16a34a; font-size: 10px; }

.a2t-two-col-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 26px 0;
}

.a2t-detail-panel,
.a2t-detail-feature-card,
.a2t-screen-card,
.a2t-outcome-card,
.a2t-related-case-card {
  border: 1px solid var(--a2t-case-line);
  background: #fff;
  box-shadow: 0 14px 45px rgba(8,12,24,.04);
}

.a2t-detail-panel {
  border-radius: 20px;
  padding: 28px;
}

.a2t-detail-panel h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 22px;
  letter-spacing: -.035em;
  color: var(--a2t-case-ink);
}

.a2t-detail-panel h2 i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eef4ff;
  color: var(--a2t-case-blue);
}

.a2t-problem-panel h2 i { background: #fff1f2; color: #e11d48; }
.a2t-solution-panel h2 i { background: #ecfdf3; color: #16a34a; }

.a2t-detail-panel p,
.a2t-result-copy p,
.a2t-detail-feature-card p {
  color: var(--a2t-case-muted);
  line-height: 1.72;
}

.a2t-dot-list,
.a2t-check-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.a2t-dot-list li,
.a2t-check-list li {
  position: relative;
  padding-left: 22px;
  color: #253044;
  line-height: 1.55;
}

.a2t-dot-list li::before,
.a2t-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--a2t-case-blue);
}

.a2t-check-list li::before { background: #16a34a; }

.a2t-feature-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.a2t-detail-feature-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 20px;
  border-radius: 18px;
}

.a2t-detail-feature-card > span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #eef4ff;
  color: var(--a2t-case-blue);
  font-size: 18px;
}

.a2t-detail-feature-card h3 {
  margin: 0 0 6px;
  color: var(--a2t-case-ink);
  font-size: 16px;
  letter-spacing: -.02em;
}

.a2t-detail-feature-card p { margin: 0; font-size: 14px; }

.a2t-screen-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.a2t-screen-card {
  overflow: hidden;
  border-radius: 16px;
  margin: 0;
}

.a2t-screen-card img,
.a2t-screen-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: linear-gradient(135deg, #071426, #173865);
}

.a2t-screen-placeholder {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 20px;
}

.a2t-screen-placeholder span {
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}

.a2t-screen-placeholder span:first-child { width: 52%; }
.a2t-screen-placeholder span:nth-child(2) { width: 88%; }
.a2t-screen-placeholder span:nth-child(3) { width: 68%; }

.a2t-screen-card figcaption {
  padding: 12px 14px 14px;
  text-align: center;
  color: var(--a2t-case-ink);
  font-weight: 900;
  font-size: 13px;
}

.a2t-result-tech-row {
  display: grid;
  grid-template-columns: .62fr 1.38fr;
  gap: 20px;
  align-items: stretch;
  margin: 34px 0;
}

.a2t-result-copy {
  padding: 8px 0;
}

.a2t-result-copy h2,
.a2t-tech-stack-section h2 {
  font-size: 24px;
  letter-spacing: -.04em;
  margin: 0 0 10px;
  color: var(--a2t-case-ink);
}

.a2t-outcome-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.a2t-outcome-card {
  min-height: 96px;
  border-radius: 16px;
  padding: 18px;
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 12px;
  align-content: center;
}

.a2t-outcome-card i {
  grid-row: span 2;
  color: var(--a2t-case-blue);
  font-size: 22px;
  align-self: center;
}

.a2t-outcome-card strong { color: var(--a2t-case-ink); line-height: 1.15; }
.a2t-outcome-card span { color: var(--a2t-case-muted); font-size: 13px; }

.a2t-tech-stack-section {
  text-align: center;
  margin: 34px 0;
}

.a2t-tech-pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.a2t-tech-pill-row span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--a2t-case-line);
  border-radius: 999px;
  background: #fff;
  color: var(--a2t-case-ink);
  font-size: 13px;
  font-weight: 900;
}

.a2t-related-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.a2t-related-case-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
}

.a2t-related-case-card img,
.a2t-related-case-card > div {
  grid-row: span 3;
  width: 86px;
  height: 86px;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, #071426, #173865);
}

.a2t-related-case-card span {
  color: var(--a2t-case-blue);
  font-size: 11px;
  font-weight: 900;
}

.a2t-related-case-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.15;
  color: var(--a2t-case-ink);
}

.a2t-related-case-card a {
  color: var(--a2t-case-blue);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.a2t-case-bottom-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-top: 44px;
  padding: 36px 44px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 8%, rgba(47, 99, 255, .38), transparent 28%),
    linear-gradient(135deg, #071426, #0b3260);
  box-shadow: 0 24px 70px rgba(8, 12, 24, .18);
}

.a2t-case-bottom-cta h2,
.a2t-case-bottom-cta p { color: #fff; }
.a2t-case-bottom-cta p { color: rgba(255,255,255,.74); }
.a2t-case-bottom-cta .a2t-btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.38); }

html[data-theme="dark"] .a2t-case-index-page,
html[data-theme="dark"] .a2t-case-detail-page,
body.dark-mode .a2t-case-index-page,
body.dark-mode .a2t-case-detail-page,
body.dark .a2t-case-index-page,
body.dark .a2t-case-detail-page {
  --a2t-case-ink: #f8fafc;
  --a2t-case-muted: #a8b3c7;
  --a2t-case-line: rgba(255,255,255,.12);
  --a2t-case-card: #0c1220;
}

html[data-theme="dark"] :is(.a2t-case-card-minimal, .a2t-case-start-strip, .a2t-testimonial-card, .a2t-case-browser-card, .a2t-project-summary-strip, .a2t-detail-panel, .a2t-detail-feature-card, .a2t-screen-card, .a2t-outcome-card, .a2t-tech-pill-row span, .a2t-related-case-card),
body.dark-mode :is(.a2t-case-card-minimal, .a2t-case-start-strip, .a2t-testimonial-card, .a2t-case-browser-card, .a2t-project-summary-strip, .a2t-detail-panel, .a2t-detail-feature-card, .a2t-screen-card, .a2t-outcome-card, .a2t-tech-pill-row span, .a2t-related-case-card),
body.dark :is(.a2t-case-card-minimal, .a2t-case-start-strip, .a2t-testimonial-card, .a2t-case-browser-card, .a2t-project-summary-strip, .a2t-detail-panel, .a2t-detail-feature-card, .a2t-screen-card, .a2t-outcome-card, .a2t-tech-pill-row span, .a2t-related-case-card) {
  background: #0c1220;
  border-color: rgba(255,255,255,.12);
}

html[data-theme="dark"] :is(.a2t-case-card-minimal h3 a, .a2t-case-start-strip h2, .a2t-detail-panel h2, .a2t-dot-list li, .a2t-check-list li, .a2t-detail-feature-card h3, .a2t-screen-card figcaption, .a2t-result-copy h2, .a2t-tech-stack-section h2, .a2t-outcome-card strong, .a2t-tech-pill-row span, .a2t-related-case-card h3),
body.dark-mode :is(.a2t-case-card-minimal h3 a, .a2t-case-start-strip h2, .a2t-detail-panel h2, .a2t-dot-list li, .a2t-check-list li, .a2t-detail-feature-card h3, .a2t-screen-card figcaption, .a2t-result-copy h2, .a2t-tech-stack-section h2, .a2t-outcome-card strong, .a2t-tech-pill-row span, .a2t-related-case-card h3),
body.dark :is(.a2t-case-card-minimal h3 a, .a2t-case-start-strip h2, .a2t-detail-panel h2, .a2t-dot-list li, .a2t-check-list li, .a2t-detail-feature-card h3, .a2t-screen-card figcaption, .a2t-result-copy h2, .a2t-tech-stack-section h2, .a2t-outcome-card strong, .a2t-tech-pill-row span, .a2t-related-case-card h3) {
  color: #f8fafc;
}

html[data-theme="dark"] .a2t-browser-top,
body.dark-mode .a2t-browser-top,
body.dark .a2t-browser-top { background: #111827; }

@media (max-width: 1120px) {
  .a2t-case-detail-hero,
  .a2t-result-tech-row { grid-template-columns: 1fr; }
  .a2t-project-summary-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .a2t-feature-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a2t-screen-grid,
  .a2t-outcome-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .a2t-case-index-page,
  .a2t-case-detail-page {
    width: min(100% - 28px, 1280px);
    padding-top: 36px;
  }

  .a2t-case-index-hero { text-align: left; margin-bottom: 28px; }
  .a2t-section-mark { margin-left: 0; }
  .a2t-case-card-minimal .a2t-muted { min-height: 0; }
  .a2t-case-start-strip,
  .a2t-case-bottom-cta {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .a2t-strip-icon { width: 64px; height: 64px; font-size: 24px; }
  .a2t-testimonial-grid-minimal { grid-template-columns: 1fr; }
  .a2t-testimonial-grid-minimal .a2t-testimonial-card,
  .a2t-testimonial-grid-minimal .a2t-testimonial-card:last-child:nth-child(odd) {
    grid-column: auto;
    width: 100%;
    min-height: 0;
    padding: 26px;
  }
  .a2t-case-detail-copy .a2t-page-title { font-size: clamp(36px, 12vw, 48px); }
  .a2t-case-detail-hero { gap: 24px; }
  .a2t-project-summary-strip,
  .a2t-two-col-section,
  .a2t-feature-card-grid,
  .a2t-screen-grid,
  .a2t-outcome-grid,
  .a2t-related-case-grid { grid-template-columns: 1fr; }
  .a2t-project-summary-strip div { border-left: 0; border-top: 1px solid var(--a2t-case-line); }
  .a2t-project-summary-strip div:first-child { border-top: 0; }
  .a2t-detail-panel { padding: 22px; }
  .a2t-related-case-card { grid-template-columns: 74px 1fr; }
  .a2t-related-case-card img,
  .a2t-related-case-card > div { width: 74px; height: 74px; }
  .a2t-case-detail-page .a2t-action-row { align-items: stretch; }
  .a2t-case-detail-page .a2t-action-row a { width: 100%; }
}
