/* ==========================================================================
   AlgoZig — Sections
   Hero, introduction, services, values, technologies, portfolio, page heroes,
   process steps and CTA band.
   ========================================================================== */

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5.25rem) clamp(3.5rem, 7vw, 6rem);
  border-bottom: 1px solid var(--az-line-soft);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: min(720px, 78vw);
  height: min(720px, 78vw);
  background: radial-gradient(circle at center, rgba(117, 102, 193, 0.16), transparent 66%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(48, 54, 83, 0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 54, 83, 0.34) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 10%, transparent 72%);
  opacity: 0.5;
  pointer-events: none;
}

.hero > .shell {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(2.5rem, 4.5vw, 4rem);
  align-items: center;
}

.hero-title {
  margin-bottom: 1.6rem;
  font-size: clamp(2.75rem, 5.2vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.043em;
}

@media (min-width: 992px) {
  .hero-title .line > span {
    white-space: nowrap;
  }
}

.hero-title .line {
  display: block;
}

.hero-title .line-accent {
  color: var(--az-accent-soft);
}

.hero-lead {
  max-width: 46ch;
  margin-bottom: 2.25rem;
  font-size: clamp(1.12rem, 1.4vw, 1.28rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.35rem;
  margin: 0;
  padding: 1.15rem 0 0;
  border-top: 1px solid var(--az-line-soft);
  list-style: none;
}

.hero-tags li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  color: var(--az-muted);
}

.hero-tags li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--az-accent);
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Hero visual — abstract product surface
   -------------------------------------------------------------------------- */

.hero-visual {
  position: relative;
  padding: 0.5rem 0 2.25rem;
}

.mock {
  position: relative;
  border: 1px solid var(--az-line);
  border-radius: var(--az-radius-lg);
  background: linear-gradient(170deg, #1d2244 0%, #171c39 55%, #151a35 100%);
  box-shadow: 0 40px 80px -42px rgba(4, 7, 22, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--az-line-soft);
  background: rgba(17, 21, 47, 0.55);
}

.mock-dots {
  display: flex;
  gap: 6px;
}

.mock-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a4166;
}

.mock-dots span:first-child {
  background: #4a4270;
}

.mock-path {
  font-family: var(--az-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.01em;
  color: var(--az-muted);
  opacity: 0.85;
}

.mock-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--az-accent-line);
  border-radius: 100px;
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--az-accent-soft);
}

.mock-live::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--az-accent-soft);
}

.mock-body {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  min-height: 320px;
}

.mock-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 0;
  border-right: 1px solid var(--az-line-soft);
  background: rgba(17, 21, 47, 0.35);
}

.mock-rail span {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(183, 188, 208, 0.12);
}

.mock-rail span:first-child {
  background: rgba(117, 102, 193, 0.55);
}

.mock-main {
  padding: 1.15rem 1.25rem 1.4rem;
}

.mock-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.sk {
  display: block;
  border-radius: 4px;
  background: rgba(183, 188, 208, 0.16);
}

.sk-title {
  width: 132px;
  height: 9px;
  background: rgba(245, 245, 250, 0.42);
}

.sk-sub {
  width: 84px;
  height: 6px;
  margin-top: 0.5rem;
  background: rgba(183, 188, 208, 0.13);
}

.sk-btn {
  width: 62px;
  height: 22px;
  border-radius: 100px;
  background: rgba(117, 102, 193, 0.35);
}

.mock-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.mock-tile {
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--az-line-soft);
  border-radius: 10px;
  background: rgba(25, 30, 61, 0.55);
}

.mock-tile .sk {
  height: 5px;
}

.mock-tile .sk + .sk {
  margin-top: 0.4rem;
}

.mock-tile .sk-short {
  width: 55%;
}

.mock-panel {
  padding: 0.85rem 0.9rem 0.7rem;
  border: 1px solid var(--az-line-soft);
  border-radius: 12px;
  background: rgba(25, 30, 61, 0.55);
}

.mock-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  height: 74px;
}

.mock-bars span {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: rgba(117, 102, 193, 0.24);
}

.mock-bars span:nth-child(2) {
  background: rgba(117, 102, 193, 0.34);
}

.mock-bars span:nth-child(4) {
  background: rgba(154, 140, 224, 0.5);
}

.mock-bars span:nth-child(6) {
  background: rgba(117, 102, 193, 0.38);
}

.mock-bars span:nth-child(7) {
  background: rgba(154, 140, 224, 0.62);
}

.mock-bars span:nth-child(1) {
  height: 34%;
}
.mock-bars span:nth-child(2) {
  height: 52%;
}
.mock-bars span:nth-child(3) {
  height: 44%;
}
.mock-bars span:nth-child(4) {
  height: 68%;
}
.mock-bars span:nth-child(5) {
  height: 58%;
}
.mock-bars span:nth-child(6) {
  height: 80%;
}
.mock-bars span:nth-child(7) {
  height: 96%;
}

/* Floating code card */
.mock-code {
  position: absolute;
  left: -1.25rem;
  bottom: 0;
  width: min(292px, 82%);
  border: 1px solid var(--az-line);
  border-radius: 12px;
  background: #121634;
  box-shadow: 0 28px 50px -28px rgba(4, 7, 22, 0.95);
  overflow: hidden;
}

.mock-code-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--az-line-soft);
  background: rgba(25, 30, 61, 0.5);
  font-family: var(--az-font-mono);
  font-size: 0.66rem;
  color: var(--az-muted);
}

.mock-code-head svg {
  color: var(--az-accent-soft);
}

.mock-code pre {
  margin: 0;
  padding: 0.8rem 0.9rem;
  font-family: var(--az-font-mono);
  font-size: 0.68rem;
  line-height: 1.85;
  color: var(--az-muted);
  overflow-x: auto;
}

.mock-code .c-key {
  color: var(--az-accent-soft);
}

.mock-code .c-str {
  color: #a9b3d6;
}

.mock-code .c-dim {
  color: #6f769a;
}

@media (max-width: 991.98px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .hero-visual {
    max-width: 560px;
    margin-inline: auto;
    width: 100%;
  }

  .mock-code {
    left: 0.75rem;
    bottom: -0.25rem;
  }

  .hero-lead {
    max-width: 56ch;
  }
}

@media (max-width: 575.98px) {
  .hero-visual {
    padding-bottom: 0;
  }

  .mock-code {
    position: relative;
    left: 0;
    bottom: 0;
    width: 100%;
    margin-top: -0.75rem;
    box-shadow: none;
  }

  .mock-body {
    min-height: 260px;
  }

  .mock-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mock-tiles .mock-tile:last-child {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Introduction
   -------------------------------------------------------------------------- */

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.intro-grid h2 {
  max-width: 18ch;
  margin-bottom: 0;
}

.intro-copy p {
  font-size: 1.09rem;
  line-height: 1.78;
}

.intro-copy .intro-points {
  display: grid;
  gap: 0.55rem;
  margin: 1.5rem 0 1.75rem;
  padding: 0;
  list-style: none;
}

.intro-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 1rem;
  color: var(--az-muted);
}

.intro-points svg {
  flex: none;
  margin-top: 0.28rem;
  color: var(--az-accent-soft);
}

@media (max-width: 991.98px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .intro-grid h2 {
    max-width: 24ch;
  }
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.85rem 1.7rem 1.7rem;
  border: 1px solid var(--az-line);
  border-radius: var(--az-radius);
  background: linear-gradient(175deg, rgba(30, 36, 71, 0.62), rgba(25, 30, 61, 0.34));
  transition: border-color 0.3s var(--az-ease), background-color 0.3s var(--az-ease),
    transform 0.3s var(--az-ease), box-shadow 0.3s var(--az-ease);
}

.service-card:hover {
  border-color: var(--az-accent-line);
  background-color: rgba(30, 36, 71, 0.85);
  transform: translateY(-5px);
  box-shadow: 0 22px 45px -32px rgba(4, 7, 22, 0.9);
}

.service-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.35rem;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--az-accent-line);
  border-radius: 13px;
  background: var(--az-accent-dim);
  color: var(--az-accent-soft);
  transition: color 0.3s var(--az-ease), border-color 0.3s var(--az-ease),
    transform 0.4s var(--az-ease);
}

.service-card:hover .service-icon {
  border-color: var(--az-accent);
  color: var(--az-text);
  transform: translateY(-2px) rotate(-5deg);
}

.service-index {
  font-family: var(--az-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--az-muted);
  opacity: 0.5;
}

.service-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.26rem;
}

.service-card p {
  margin-bottom: 1.3rem;
  font-size: 1rem;
  line-height: 1.7;
}

.service-card .service-link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--az-muted);
  transition: color 0.2s var(--az-ease), gap 0.2s var(--az-ease);
}

.service-card:hover .service-link {
  gap: 0.6rem;
}

.service-card:hover .service-link,
.service-card:focus-within .service-link {
  color: var(--az-accent-soft);
}

.service-card .service-link:hover {
  color: var(--az-text);
}

.service-card .service-link::after {
  content: "→";
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: clamp(2rem, 3.5vw, 2.75rem);
}

/* Detailed service list (services page) */
.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.service-detail {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.3rem;
  padding: 1.85rem;
  border: 1px solid var(--az-line);
  border-radius: var(--az-radius);
  background: rgba(25, 30, 61, 0.42);
  transition: border-color 0.25s var(--az-ease), background-color 0.25s var(--az-ease);
}

.service-detail:hover {
  border-color: var(--az-accent-line);
  background: rgba(30, 36, 71, 0.6);
}

.service-detail h3 {
  margin-bottom: 0.55rem;
  font-size: 1.24rem;
}

.service-detail p {
  margin-bottom: 1.05rem;
  font-size: 1rem;
}

.service-detail ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-detail ul li {
  padding: 0.26rem 0.68rem;
  border: 1px solid var(--az-line-soft);
  border-radius: 100px;
  font-size: 0.83rem;
  color: var(--az-muted);
}

@media (max-width: 991.98px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-detail {
    grid-template-columns: 1fr;
    padding: 1.35rem;
  }
}

/* --------------------------------------------------------------------------
   Why choose us
   -------------------------------------------------------------------------- */

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.why-intro {
  position: sticky;
  top: calc(var(--az-header-h) + 2rem);
}

.why-intro h2 {
  max-width: 15ch;
}

.why-intro .section-lead {
  margin-top: 1.1rem;
}

.value-list {
  display: grid;
}

.value-item {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--az-line-soft);
  transition: border-color 0.3s var(--az-ease);
}

.value-item:last-child {
  border-bottom: 1px solid var(--az-line-soft);
}

.value-item:hover {
  border-top-color: var(--az-accent-line);
}

.value-num {
  font-family: var(--az-font-mono);
  font-size: 0.78rem;
  line-height: 1.9;
  color: var(--az-accent-soft);
  opacity: 0.85;
}

.value-item h3 {
  margin-bottom: 0.4rem;
  font-size: 1.19rem;
}

.value-item p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 991.98px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .why-intro {
    position: static;
  }
}

/* --------------------------------------------------------------------------
   Technologies
   -------------------------------------------------------------------------- */

.tech-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--az-line);
  border-radius: var(--az-radius);
  background: var(--az-line);
  overflow: hidden;
}

.tech-group {
  padding: 1.7rem 1.55rem;
  background: var(--az-bg);
}

.section--surface .tech-group {
  background: var(--az-surface);
}

.tech-group h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-family: var(--az-font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--az-muted);
}

.tech-group h3 svg {
  color: var(--az-accent-soft);
  opacity: 0.9;
}

.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tech-chips li {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--az-line-soft);
  border-radius: 7px;
  background: rgba(154, 140, 224, 0.035);
  font-size: 0.9rem;
  color: var(--az-text);
  opacity: 0.86;
  transition: border-color 0.2s var(--az-ease), color 0.2s var(--az-ease);
}

.tech-chips li:hover {
  border-color: var(--az-accent-line);
  color: var(--az-text);
  opacity: 1;
}

@media (max-width: 991.98px) {
  .tech-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .tech-groups {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Portfolio
   -------------------------------------------------------------------------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--az-line);
  border-radius: var(--az-radius-lg);
  background: rgba(25, 30, 61, 0.4);
  overflow: hidden;
  transition: border-color 0.3s var(--az-ease), transform 0.3s var(--az-ease),
    background-color 0.3s var(--az-ease);
}

.project-card:hover {
  border-color: var(--az-accent-line);
  transform: translateY(-5px);
  background: rgba(25, 30, 61, 0.62);
  box-shadow: 0 26px 50px -34px rgba(4, 7, 22, 0.95);
}

.project-visual {
  position: relative;
  aspect-ratio: 16 / 6;
  background: #141936;
  border-bottom: 1px solid var(--az-line-soft);
  overflow: hidden;
}

.project-visual svg,
.project-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card:hover .project-visual img {
  transform: scale(1.015);
}

.project-visual img {
  transition: transform 0.6s var(--az-ease);
}

.project-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(17, 21, 47, 0.55));
  pointer-events: none;
}

.project-visual .project-badge {
  position: absolute;
  left: 1.1rem;
  top: 1.1rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--az-line);
  border-radius: 100px;
  background: rgba(17, 21, 47, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--az-muted);
}

.project-badge::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--az-accent-soft);
}

.project-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem 1.5rem 1.6rem;
}

.project-body h3 {
  margin-bottom: 0.5rem;
  font-size: 1.44rem;
  letter-spacing: -0.025em;
}

.project-body p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.7;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
}

.project-tech li {
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--az-line-soft);
  border-radius: 6px;
  font-family: var(--az-font-mono);
  font-size: 0.72rem;
  color: var(--az-muted);
}

.project-foot {
  margin-top: auto;
  padding-top: 0.2rem;
}

.project-card--wide {
  grid-column: 1 / -1;
  flex-direction: row;
}

.project-card--wide .project-visual {
  flex: 1 1 52%;
  aspect-ratio: auto;
  border-bottom: 0;
  border-right: 1px solid var(--az-line-soft);
}

.project-card--wide .project-body {
  flex: 1 1 48%;
  justify-content: center;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
}

.project-card--wide .project-body h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
}

@media (max-width: 991.98px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card--wide {
    flex-direction: column;
  }

  .project-card--wide .project-visual {
    aspect-ratio: 16 / 9.6;
    border-right: 0;
    border-bottom: 1px solid var(--az-line-soft);
  }
}

/* Portfolio note */
.portfolio-note {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 1.5rem;
  padding: 1.15rem 1.3rem;
  border: 1px dashed var(--az-line-strong);
  border-radius: var(--az-radius);
  font-size: 0.9rem;
  color: var(--az-muted);
}

.portfolio-note svg {
  flex: none;
  margin-top: 0.15rem;
  color: var(--az-accent-soft);
  opacity: 0.9;
}

.portfolio-note p {
  margin: 0;
  font-size: inherit;
}

/* Portfolio — brand card, logo tile, feature icons */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 16px;
  height: 16px;
  flex: none;
}

.project-visual--brand {
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background: radial-gradient(85% 85% at 50% 42%, rgba(117, 102, 193, 0.22), transparent 70%),
    #141936;
}

.project-visual--gi9 {
  background: radial-gradient(78% 78% at 50% 38%, rgba(186, 146, 79, 0.24), transparent 72%),
    linear-gradient(155deg, #1a1a34, #12142a);
}

.project-visual--pc {
  background: radial-gradient(78% 78% at 50% 38%, rgba(197, 92, 54, 0.26), transparent 72%),
    linear-gradient(155deg, #211627, #150f1c);
}

.project-logo {
  display: grid;
  place-items: center;
  width: clamp(140px, 35%, 200px);
  aspect-ratio: 1;
  padding: 8px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 24px 46px -24px rgba(4, 7, 22, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.14);
  transition: transform 0.5s var(--az-ease);
}

.project-logo--reverse {
  width: auto;
  aspect-ratio: unset;
  padding: 1rem 1.6rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.project-logo--reverse img {
  display: block;
  width: 140px;
  height: auto;
  max-width: none;
  object-fit: unset;
}

.project-visual .project-logo img,
.project-card:hover .project-visual .project-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 19px;
  transform: none;
}

.project-card:hover .project-logo {
  transform: translateY(-3px) scale(1.015);
}

.project-platforms {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-platforms li {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  padding: 0.26rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 100px;
  background: rgba(17, 21, 47, 0.74);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.74rem;
  letter-spacing: 0.01em;
  color: #d3d7e5;
}

.project-platforms .icon {
  color: #ab9fe8;
}

.project-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
}

.project-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--az-muted);
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.55rem;
  border: 1px solid var(--az-line);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--az-muted);
}

.project-status--live {
  border-color: rgba(88, 160, 118, 0.42);
  background: rgba(88, 160, 118, 0.1);
  color: #4d8a63;
}

.project-status--live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5aa473;
}

.project-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
  margin: 0 0 1.3rem;
  padding: 0;
  list-style: none;
}

.project-features li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.55rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--az-muted);
}

.project-features .icon {
  margin-top: 0.15rem;
  color: var(--az-accent-soft);
}

.project-features strong {
  display: block;
  margin-bottom: 0.05rem;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--az-text);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.project-links .btn {
  font-size: 0.93rem;
}

.section--light .project-platforms li,
.section--light-alt .project-platforms li {
  border-color: rgba(255, 255, 255, 0.18);
  color: #d8dbe8;
}

.section--light .project-kicker,
.section--light-alt .project-kicker {
  color: #5f50a0;
}

@media (max-width: 575.98px) {
  .project-features {
    grid-template-columns: 1fr;
  }

  .project-logo {
    width: clamp(96px, 30%, 122px);
  }

  .project-platforms {
    left: 0.85rem;
    bottom: 0.85rem;
  }
}

/* Anchor offset for the fixed header */
[id] {
  scroll-margin-top: calc(var(--az-header-h) + 1.5rem);
}

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.75rem, 5.5vw, 4.5rem) clamp(2.5rem, 4.5vw, 3.75rem);
  border-bottom: 1px solid var(--az-line-soft);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -40% -5% auto auto;
  width: min(560px, 70vw);
  height: min(560px, 70vw);
  background: radial-gradient(circle at center, rgba(117, 102, 193, 0.13), transparent 68%);
  pointer-events: none;
}

.page-hero .shell {
  position: relative;
  z-index: 1;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
  font-size: 0.8rem;
  color: var(--az-muted);
  list-style: none;
  padding: 0;
}

.crumbs a {
  color: var(--az-muted);
}

.crumbs a:hover {
  color: var(--az-text);
}

.crumbs .sep {
  opacity: 0.45;
}

.crumbs .current {
  color: var(--az-accent-soft);
}

.page-hero h1 {
  max-width: 22ch;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  letter-spacing: -0.038em;
}

.page-hero .section-lead {
  max-width: 58ch;
  margin-top: 1.1rem;
  font-size: 1.05rem;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

/* --------------------------------------------------------------------------
   Process steps
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 1.5rem;
  border-top: 1px solid var(--az-line);
  transition: border-color 0.3s var(--az-ease);
}

.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--az-accent);
  transition: width 0.5s var(--az-ease);
}

.step:hover::before {
  width: 100%;
}

.step-num {
  display: block;
  margin-bottom: 0.7rem;
  font-family: var(--az-font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--az-accent-soft);
}

.step h3 {
  margin-bottom: 0.45rem;
  font-size: 1.13rem;
}

.step p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.7;
}

@media (max-width: 991.98px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: clamp(2rem, 4vw, 3.25rem);
  border: 1px solid var(--az-line);
  border-radius: var(--az-radius-lg);
  background: linear-gradient(120deg, rgba(30, 36, 71, 0.85), rgba(25, 30, 61, 0.5));
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -80%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at center, rgba(117, 102, 193, 0.16), transparent 70%);
  pointer-events: none;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  max-width: 22ch;
  margin-bottom: 0.65rem;
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
}

.cta-band p {
  margin: 0;
  max-width: 50ch;
  font-size: 1.06rem;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

@media (max-width: 767.98px) {
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6rem;
  }
}

/* --------------------------------------------------------------------------
   Light sections — surfaces, cards and details
   -------------------------------------------------------------------------- */

.section--light .service-card,
.section--light-alt .service-card,
.section--light .service-detail,
.section--light-alt .service-detail,
.section--light .surface-note,
.section--light-alt .surface-note,
.section--light .project-card,
.section--light-alt .project-card {
  background: #ffffff;
  border-color: var(--az-line);
  box-shadow: 0 1px 2px rgba(21, 26, 51, 0.04), 0 20px 44px -38px rgba(21, 26, 51, 0.55);
}

.section--light .service-card:hover,
.section--light-alt .service-card:hover,
.section--light .service-detail:hover,
.section--light-alt .service-detail:hover,
.section--light .project-card:hover,
.section--light-alt .project-card:hover {
  background: #ffffff;
  border-color: var(--az-accent-line);
  box-shadow: 0 26px 52px -36px rgba(21, 26, 51, 0.5);
}

.section--light .service-icon,
.section--light-alt .service-icon {
  background: #f2f0fa;
  border-color: rgba(106, 90, 182, 0.28);
  color: #5f50a0;
}

.section--light .service-card:hover .service-icon,
.section--light-alt .service-card:hover .service-icon {
  color: var(--az-accent);
  border-color: var(--az-accent);
}

.section--light .service-index,
.section--light-alt .service-index {
  color: #8b8fa6;
  opacity: 1;
}

.section--light .tech-groups,
.section--light-alt .tech-groups {
  border-color: var(--az-line);
  background: var(--az-line);
}

.section--light .tech-group,
.section--light-alt .tech-group {
  background: #ffffff;
}

.section--light .tech-chips li,
.section--light-alt .tech-chips li {
  background: #f7f7fb;
  border-color: #dcdee9;
  color: #2b3150;
  opacity: 1;
}

.section--light .tech-chips li:hover,
.section--light-alt .tech-chips li:hover {
  border-color: var(--az-accent);
  color: var(--az-accent);
}

.section--light .tech-group h3,
.section--light-alt .tech-group h3 {
  color: #656b82;
}

.section--light .steps .step,
.section--light-alt .steps .step {
  border-top-color: #d2d5e3;
}

.section--light .step-num,
.section--light-alt .step-num {
  color: #5f50a0;
}

.section--light .project-tech li,
.section--light-alt .project-tech li {
  border-color: #dcdee9;
  background: #f7f7fb;
  color: var(--az-muted);
}

.section--light .portfolio-note,
.section--light-alt .portfolio-note {
  background: #ffffff;
  border-color: #c7cad9;
}

.section--light .portfolio-note svg,
.section--light-alt .portfolio-note svg {
  color: var(--az-accent);
}

.section--light .value-item,
.section--light-alt .value-item {
  border-color: var(--az-line-soft);
}

.section--light .value-num,
.section--light-alt .value-num {
  color: #5f50a0;
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Technology marquee
   -------------------------------------------------------------------------- */

.tech-marquee {
  position: relative;
  margin-top: 2.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--az-line-soft);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.tech-marquee-track {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  width: max-content;
  animation: azMarquee 42s linear infinite;
}

.tech-marquee:hover .tech-marquee-track {
  animation-play-state: paused;
}

.tech-marquee span {
  display: inline-flex;
  align-items: center;
  gap: 2.4rem;
  font-family: var(--az-font-display);
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--az-muted);
}

.tech-marquee span::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--az-accent-line);
}

.tech-marquee-note {
  margin-top: 1rem;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  color: var(--az-muted);
  opacity: 0.75;
}

@media (prefers-reduced-motion: reduce) {
  .tech-marquee-track {
    animation: none;
  }
}

/* ==========================================================================
   Brand colour pass — logo orange as the second accent
   ========================================================================== */

:root {
  --az-orange: #ff8a00;
  --az-orange-soft: #ffb257;
  --az-orange-dim: rgba(255, 138, 0, 0.14);
  --az-orange-line: rgba(255, 138, 0, 0.46);
  --az-blue: #2f7bff;
  --az-blue-dim: rgba(47, 123, 255, 0.16);
}

/* Eyebrows carry the logo orange */
.eyebrow::before,
.eyebrow--dot::before {
  background: var(--az-orange);
}

.eyebrow--dot::before {
  box-shadow: 0 0 0 4px var(--az-orange-dim);
}

/* Service icons: warm tile, solid orange on hover */
.service-icon {
  border-color: var(--az-orange-line);
  background: linear-gradient(150deg, var(--az-orange-dim), rgba(47, 123, 255, 0.12));
  color: var(--az-orange-soft);
}

.service-card:hover .service-icon,
.service-detail:hover .service-icon {
  border-color: transparent;
  background: linear-gradient(150deg, #ff9d24, #ff7a00);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(255, 138, 0, 0.3);
}

.service-index {
  color: var(--az-orange-soft);
  opacity: 0.85;
}

.service-link,
.service-card .link-arrow,
.contact-points .num,
.steps .step-num {
  color: var(--az-orange-soft);
}

.service-link:hover,
.service-card:hover .service-link {
  color: var(--az-orange);
}

.service-link svg,
.link-arrow svg {
  color: var(--az-orange);
}

/* Cards pick up a warm edge on hover */
.project-card:hover,
.step:hover {
  border-color: var(--az-orange-line);
}

/* Footer and header accents */
.footer-cta svg {
  color: var(--az-orange);
}

.site-nav .nav-link.active::after {
  background: var(--az-orange);
}

/* Small blue supporting accent for tags and meta */
.hero-tags li,
.tag {
  border-color: rgba(47, 123, 255, 0.38);
}

.hero-tags li::before,
.tag::before {
  background: var(--az-blue);
}

/* Stronger selectors so the orange pass wins over the base rules */
.service-detail .service-icon,
.service-card .service-icon,
.service-grid .service-icon {
  border-color: var(--az-orange-line);
  background: linear-gradient(150deg, var(--az-orange-dim), rgba(47, 123, 255, 0.12));
  color: var(--az-orange-soft);
}

.service-detail:hover .service-icon,
.service-card:hover .service-icon {
  border-color: transparent;
  background: linear-gradient(150deg, #ff9d24, #ff7a00);
  color: #fff;
  box-shadow: 0 12px 26px rgba(255, 138, 0, 0.3);
}

.page-hero .eyebrow::before,
.section .eyebrow::before,
.service-detail .service-index,
.service-card .service-index {
  background-color: var(--az-orange);
  color: var(--az-orange-soft);
}

.service-card .service-link,
.service-detail .service-link,
.project-card .link-arrow,
.contact-points .num,
.steps .step-num {
  color: var(--az-orange-soft);
}

.service-card .service-link svg,
.service-detail .service-link svg {
  color: var(--az-orange);
}

.service-card:hover .service-link {
  color: var(--az-orange);
}

/* Refinement: keep the orange quiet on service cards */
.service-card .service-icon,
.service-detail .service-icon,
.service-grid .service-icon {
  border-color: rgba(255, 138, 0, 0.3);
  background: linear-gradient(150deg, rgba(255, 138, 0, 0.1), rgba(47, 123, 255, 0.1));
  color: var(--az-orange-soft);
}

.service-card:hover .service-icon,
.service-detail:hover .service-icon {
  border-color: var(--az-orange);
  background: linear-gradient(150deg, rgba(255, 138, 0, 0.16), rgba(47, 123, 255, 0.12));
  color: var(--az-orange);
  box-shadow: none;
  transform: translateY(-1px);
}

.service-card .service-index,
.service-detail .service-index,
.service-grid .service-index {
  color: var(--az-muted);
  opacity: 0.5;
}

.service-card .service-index::after,
.service-detail .service-index::after {
  content: none;
}

/* Numbers stay quiet: no fill, muted grey; links neutral with an orange arrow */
.service-card .service-index,
.service-detail .service-index,
.service-grid .service-index {
  background: none;
  color: var(--az-muted);
  opacity: 0.5;
}

.service-card .service-link,
.service-detail .service-link {
  color: inherit;
}

.service-card:hover .service-link,
.service-detail:hover .service-link {
  color: inherit;
}

.service-card .service-link svg,
.service-detail .service-link svg {
  color: var(--az-orange);
}

/* ==========================================================================
   AI page + AI section additions
   ========================================================================== */

.ai-deliverables {
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.ai-deliverables li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--az-text);
}

.ai-deliverables li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--az-orange);
}

.ai-guardrails {
  height: 100%;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  border: 1px solid var(--az-line);
  border-radius: var(--az-radius-lg);
  background: rgba(25, 30, 61, 0.55);
}

.ai-guardrails h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.ai-guardrails ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.ai-guardrails li {
  font-size: 0.94rem;
  line-height: 1.62;
  color: var(--az-muted);
}

.ai-guardrails strong {
  display: block;
  color: var(--az-text);
  font-weight: 600;
}

/* Light sections need darker text inside the guardrail card */
.section--light .ai-guardrails,
.section--light-alt .ai-guardrails {
  background: #fff;
  border-color: rgba(21, 26, 51, 0.12);
}

.section--light .ai-guardrails li,
.section--light-alt .ai-guardrails li {
  color: #58607a;
}

.section--light .ai-guardrails strong,
.section--light-alt .ai-guardrails strong {
  color: #151a33;
}

.section--light .ai-deliverables li,
.section--light-alt .ai-deliverables li {
  color: #3d4460;
}

/* FAQ */
.faq {
  max-width: 860px;
  border-top: 1px solid var(--az-line);
}

.faq details {
  border-bottom: 1px solid var(--az-line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--az-font-display);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--az-text);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--az-orange);
}

.faq details[open] summary::after {
  content: "\2013";
}

.faq details[open] summary {
  color: var(--az-orange-soft);
}

.faq p {
  max-width: 68ch;
  margin: 0 0 1.2rem;
  color: var(--az-muted);
  line-height: 1.7;
}

/* Services page: AI fit comparison */
.ai-fit {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.4rem, 2.6vw, 2.2rem);
  border: 1px solid rgba(21, 26, 51, 0.12);
  border-radius: var(--az-radius-lg);
  background: #fff;
}

.ai-fit h3 {
  margin-bottom: 1.1rem;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
}

.ai-fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2.4rem);
  margin-bottom: 1.2rem;
}

.ai-fit-col h4 {
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--az-orange-soft);
}

.ai-fit-col ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
  color: #58607a;
  font-size: 0.94rem;
  line-height: 1.6;
}

@media (max-width: 719px) {
  .ai-fit-grid {
    grid-template-columns: 1fr;
  }
}
