/* ==========================================================================
   Algo-Chain — shared marketing-page design system (About + Home).
   Namespaced with the `ac-` prefix so it never collides with the Webflow
   export (QOl7AdNCkSUL.css) or the Bootstrap-based UserControls that still
   power the shared nav + footer.
   ========================================================================== */

:root {
  --ac-navy: #273977;
  --ac-navy-dark: #0c1b4d;
  --ac-green: #92d050;
  --ac-orange: #ff8c00;
  --ac-ink: #1b2033;
  --ac-muted: #5b6472;
  --ac-line: rgba(12, 27, 77, 0.08);
  --ac-shadow: 0 16px 40px rgba(12, 27, 77, 0.1);
  --ac-shadow-sm: 0 6px 18px rgba(12, 27, 77, 0.08);
  --ac-radius: 18px;
}

.ac-page {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--ac-ink);
}

.ac-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

.ac-page h1,
.ac-page h2,
.ac-page h3 {
  color: var(--ac-navy);
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
}

.ac-page p {
  color: var(--ac-muted);
  line-height: 1.7;
  margin: 0;
}

.ac-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ac-navy);
  margin-bottom: 14px;
}

.ac-eyebrow::before {
  content: '';
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--ac-green);
  display: inline-block;
}

.ac-section {
  padding: 88px 0;
}

.ac-section--tight {
  padding: 64px 0;
}

.ac-section--tint {
  background: #f6f8fb;
}

.ac-section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.ac-section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 14px;
}

/* Buttons ----------------------------------------------------------------- */

.ac-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.ac-btn:hover {
  transform: translateY(-2px);
}

.ac-btn--primary {
  background: var(--ac-orange);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 140, 0, 0.32);
}

.ac-btn--primary:hover {
  background: #eb7f00;
  color: #fff;
}

.ac-btn--ghost {
  background: #fff;
  color: var(--ac-navy);
  border-color: var(--ac-line);
  box-shadow: var(--ac-shadow-sm);
}

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

.ac-btn--on-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.ac-btn--on-dark:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
}

/* Hero ---------------------------------------------------------------------- */

.ac-hero {
  padding: 64px 0 56px;
  background: linear-gradient(150deg, #eef1f8 0%, #f6f8fb 55%, #ffffff 100%);
}

.ac-hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .ac-hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }
}

.ac-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  margin-bottom: 20px;
}

.ac-hero p.ac-lede {
  font-size: 1.15rem;
  max-width: 560px;
}

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

.ac-hero-media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--ac-shadow);
  aspect-ratio: 16 / 10;
}

.ac-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ac-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(0deg, rgba(12, 27, 77, 0.45), rgba(12, 27, 77, 0.15));
  border: none;
  width: 100%;
  height: 100%;
  cursor: pointer;
  padding: 0;
}

.ac-play-circle {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--ac-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.ac-play:hover .ac-play-circle {
  transform: scale(1.08);
}

.ac-play-circle::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #0c1b4d;
  margin-left: 5px;
}

.ac-play-label {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Stats band ---------------------------------------------------------------- */

.ac-stats {
  background: linear-gradient(120deg, var(--ac-navy-dark), var(--ac-navy) 85%);
  padding: 40px 0;
}

.ac-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.ac-stat-num {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
}

.ac-stat-num span {
  color: var(--ac-green);
}

.ac-stat-label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  margin-top: 6px;
  font-weight: 600;
}

/* Story ---------------------------------------------------------------------- */

.ac-story-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .ac-story-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 64px;
  }
}

.ac-story-media {
  border-radius: var(--ac-radius);
  overflow: hidden;
  box-shadow: var(--ac-shadow);
}

.ac-story-media img {
  width: 100%;
  display: block;
}

.ac-story-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 20px;
}

.ac-story-copy p + p {
  margin-top: 16px;
}

.ac-pillars {
  display: grid;
  gap: 20px;
  margin-top: 44px;
}

@media (min-width: 720px) {
  .ac-pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ac-pillar-card {
  background: #fff;
  border: 1px solid var(--ac-line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--ac-shadow-sm);
}

.ac-pillar-card img {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
}

.ac-pillar-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.ac-pillar-card p {
  font-size: 0.95rem;
}

/* Value cards (what clients value) ------------------------------------------ */

.ac-value-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 720px) {
  .ac-value-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ac-value-card {
  background: #fff;
  border-radius: var(--ac-radius);
  padding: 32px;
  box-shadow: var(--ac-shadow-sm);
  border-top: 4px solid var(--ac-green);
}

.ac-value-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

/* Milestone / proof ----------------------------------------------------------- */

.ac-milestone {
  background: linear-gradient(120deg, var(--ac-navy-dark), var(--ac-navy));
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  color: #fff;
}

@media (min-width: 880px) {
  .ac-milestone {
    grid-template-columns: 1fr 1.1fr;
  }
}

.ac-milestone-media {
  min-height: 260px;
  background-size: cover;
  background-position: center;
}

.ac-milestone-copy {
  padding: 44px 40px;
}

.ac-milestone-copy .ac-eyebrow {
  color: var(--ac-green);
}

.ac-milestone-copy .ac-eyebrow::before {
  background: #fff;
}

.ac-milestone-quote {
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.6;
  color: #fff;
  margin: 18px 0 20px;
}

.ac-milestone-cite {
  font-weight: 700;
  color: #fff;
}

.ac-milestone-cite span {
  display: block;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-top: 2px;
}

/* Trusted-by / logos ----------------------------------------------------------- */

.ac-trusted {
  position: relative;
  padding: 76px 0;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.ac-trusted::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(12, 27, 77, 0.94), rgba(39, 57, 119, 0.88));
}

.ac-trusted .ac-container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.ac-trusted h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.ac-logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.ac-logo-chip {
  background: #fff;
  border-radius: 12px;
  padding: 14px 26px;
  min-width: 150px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ac-logo-chip img {
  max-height: 34px;
  max-width: 130px;
  object-fit: contain;
}

.ac-logo-chip--text {
  font-weight: 800;
  color: var(--ac-navy);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

/* Team ---------------------------------------------------------------------- */

.ac-team-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 720px) {
  .ac-team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ac-team-card {
  background: #fff;
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  box-shadow: var(--ac-shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  font-family: inherit;
  display: block;
  width: 100%;
}

.ac-team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ac-shadow);
}

.ac-team-photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eef1f8;
}

.ac-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ac-team-body {
  padding: 18px 20px 22px;
}

.ac-team-name {
  font-weight: 800;
  color: var(--ac-navy);
  font-size: 1.02rem;
}

.ac-team-role {
  color: var(--ac-muted);
  font-size: 0.88rem;
  margin-top: 2px;
}

.ac-team-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--ac-green);
  font-weight: 700;
  font-size: 0.86rem;
}

.ac-team-card:hover .ac-team-link {
  text-decoration: underline;
}

/* Testimonials ---------------------------------------------------------------- */

.ac-testi-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.ac-testi-card {
  background: #fff;
  border-radius: var(--ac-radius);
  padding: 30px;
  box-shadow: var(--ac-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ac-testi-mark {
  font-size: 2.6rem;
  line-height: 1;
  color: var(--ac-green);
  font-family: Georgia, serif;
  font-weight: 700;
}

.ac-testi-card p.ac-testi-quote {
  color: var(--ac-ink);
  font-size: 0.98rem;
}

.ac-testi-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.ac-testi-person img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.ac-testi-name {
  font-weight: 800;
  color: var(--ac-navy);
  font-size: 0.94rem;
}

.ac-testi-role {
  color: var(--ac-muted);
  font-size: 0.82rem;
}

/* Final CTA --------------------------------------------------------------------- */

.ac-cta {
  background: linear-gradient(120deg, var(--ac-navy-dark), var(--ac-navy));
  border-radius: 24px;
  padding: 64px 40px;
  text-align: center;
  color: #fff;
}

.ac-cta h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 14px;
}

.ac-cta p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.ac-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 30px;
}

/* Modals ------------------------------------------------------------------------ */

.ac-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 15, 33, 0.68);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.ac-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.ac-modal {
  position: relative;
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 720px;
  max-height: 86vh;
  overflow-y: auto;
  padding: 44px 40px;
}

.ac-modal-video {
  max-width: 960px;
  padding: 0;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
}

.ac-modal-video .ac-video-frame-wrap {
  position: relative;
  padding-top: 56.25%;
}

.ac-modal-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ac-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--ac-navy);
}

.ac-modal-video .ac-modal-close {
  background: rgba(255, 255, 255, 0.92);
}

.ac-bio-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  float: left;
  margin: 0 20px 12px 0;
}

.ac-bio-name {
  color: var(--ac-navy);
  font-weight: 800;
  font-size: 1.3rem;
  margin: 0;
}

.ac-bio-role {
  color: var(--ac-green);
  font-weight: 700;
  font-size: 0.92rem;
  margin: 4px 0 16px;
}

.ac-modal-body p {
  margin: 0 0 14px;
  clear: none;
}

.ac-modal-body::after {
  content: '';
  display: block;
  clear: both;
}

body.ac-modal-open {
  overflow: hidden;
}

@media (max-width: 560px) {
  .ac-stats-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .ac-modal {
    padding: 36px 22px;
  }
  .ac-bio-photo {
    float: none;
    display: block;
    margin: 0 auto 16px;
  }
}

/* ==========================================================================
   Homepage-specific components
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

/* Inline video embed (hero + testimonial) ------------------------------------ */

.ac-video-embed {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--ac-radius);
  overflow: hidden;
  box-shadow: var(--ac-shadow);
}

.ac-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Split layout (masterclass, etc.) -------------------------------------------- */

.ac-split {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .ac-split {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.ac-split-media {
  background-size: cover;
  background-position: center;
  border-radius: var(--ac-radius);
  min-height: 280px;
  box-shadow: var(--ac-shadow);
}

/* Service / advantage cards --------------------------------------------------- */

.ac-service-card {
  background: #fff;
  border-radius: var(--ac-radius);
  overflow: hidden;
  box-shadow: var(--ac-shadow-sm);
  display: flex;
  flex-direction: column;
}

.ac-service-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.ac-service-card-body {
  padding: 24px 26px 28px;
}

.ac-service-card h3 {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 14px;
}

.ac-bullet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ac-bullet-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ac-muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.ac-bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--ac-green);
}

.ac-section-copy {
  max-width: 820px;
  margin: 40px auto 0;
  text-align: center;
  font-size: 1.02rem;
}

.ac-section-actions {
  text-align: center;
  margin-top: 32px;
}

/* Investment process ----------------------------------------------------------- */

.ac-process {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin-top: 56px;
}

.ac-process-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 900px) {
  .ac-process-row {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
  }
  .ac-process-row.reverse .ac-process-media {
    order: 2;
  }
  .ac-process-row.reverse .ac-process-copy {
    order: 1;
  }
}

.ac-process-media img {
  width: 100%;
  border-radius: var(--ac-radius);
  box-shadow: var(--ac-shadow-sm);
  display: block;
}

.ac-process-copy h3 {
  font-size: 1.3rem;
  margin: 6px 0 12px;
}

/* Featured testimonial ---------------------------------------------------------- */

.ac-featured-testimonial {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .ac-featured-testimonial {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }
}

.ac-featured-quote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ac-ink);
  line-height: 1.7;
}

.ac-featured-cite {
  margin-top: 16px;
  font-weight: 800;
  color: var(--ac-navy);
}
