/*
 * Alibel editorial layer
 * A restrained, grid-led presentation that keeps the original palette while
 * removing decorative patterns commonly associated with generic SaaS themes.
 */

:root {
  --night: #050b12;
  --navy: #071522;
  --navy-soft: #0b2034;
  --line: rgba(190, 215, 242, .2);
  --muted: #a9b7ca;
  --muted-strong: #cad4e2;
  --radius-lg: 2px;
  --radius-md: 2px;
  --radius-sm: 2px;
  --shadow: none;
  --shell: 1240px;
}

body {
  background: linear-gradient(180deg, #071522 0%, #081827 58%, #050b12 100%);
}

body::before {
  display: none;
}

.site-shell {
  width: min(calc(100% - 64px), var(--shell));
}

.site-header {
  border-color: var(--line);
  background: rgba(5, 13, 22, .96);
  backdrop-filter: none;
}

.site-nav-wrap {
  min-height: 70px;
}

.site-navigation a[aria-current="page"] {
  text-decoration: none;
}

.site-navigation a[aria-current="page"]::before {
  margin-right: .45rem;
  color: var(--orange);
  content: "/";
}

.site-language-link,
.site-login-link,
.site-menu-button {
  border-radius: 2px;
  background: transparent;
}

.section-kicker,
.terms-kicker {
  color: #84cfff;
  font-size: .7rem;
  letter-spacing: .19em;
}

.display-title,
.section-title,
.page-title,
.contact-ribbon h2 {
  letter-spacing: -.035em;
}

.display-title {
  max-width: 720px;
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  line-height: 1.02;
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 3.1rem);
}

.page-title {
  font-size: clamp(2.3rem, 4.7vw, 4.2rem);
  line-height: 1.04;
}

.service-copy h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
}

.contact-ribbon h2 {
  font-size: clamp(1.4rem, 2.4vw, 2.05rem);
}

.terms-header h1 {
  font-size: clamp(2rem, 4.1vw, 3.8rem);
  line-height: 1.06;
}

.button {
  min-height: 46px;
  border-radius: 2px;
  box-shadow: none;
}

.button:hover {
  transform: none;
}

.button-primary,
.button-primary:hover {
  background: #277fe8;
  box-shadow: none;
}

.button-primary:hover {
  background: #3b91f6;
}

.button-quiet {
  background: transparent;
}

.home-hero {
  grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr);
  min-height: min(790px, calc(100vh - 70px));
  gap: clamp(2.5rem, 6vw, 6.5rem);
  padding-block: 4.5rem;
}

.home-hero::after,
.home-hero-visual::before,
.home-hero-visual::after {
  display: none;
}

.home-hero-visual {
  margin: 0;
  border-left: 1px solid var(--line);
  padding-left: clamp(1.5rem, 4vw, 3.5rem);
}

.home-hero-frame {
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.home-hero-frame img {
  width: 100%;
  height: clamp(470px, 62vh, 650px);
  border-radius: 0;
  object-fit: cover;
}

.hero-figure-note {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: .8rem 0 0;
  color: #8494a9;
  font-size: .7rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.hero-figure-note span:first-child {
  color: #d9e6f5;
  font-family: "Alibel Brand", sans-serif;
}

.hero-signals {
  gap: .4rem 0;
}

.hero-signals li {
  padding-right: .9rem;
}

.hero-signals li:not(:last-child) {
  margin-right: .9rem;
  border-right: 1px solid var(--line);
}

.hero-signals li::before {
  display: none;
}

.statement-section,
.principles-section,
.process-section,
.ecosystem-section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.statement-section {
  grid-template-columns: 190px minmax(0, 1fr);
  border-top-color: var(--line);
}

.statement-text {
  max-width: 700px;
  font-size: 1rem;
}

.principles-header,
.process-header {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  margin-bottom: 2.5rem;
}

.principles-grid {
  display: block;
  border-top: 1px solid var(--line);
}

.principle-card {
  display: grid;
  grid-template-columns: 90px minmax(220px, .7fr) minmax(280px, 1.3fr);
  align-items: baseline;
  min-height: 0;
  gap: 1.5rem;
  padding: 1.65rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.principle-number {
  margin: 0;
  color: var(--orange);
}

.principle-card h3,
.principle-card p {
  margin: 0;
}

.process-track {
  counter-reset: alibel-process;
  border-top-color: var(--line);
}

.process-step {
  counter-increment: alibel-process;
  padding: 1.5rem 1.4rem 0 0;
}

.process-step:not(:first-child) {
  padding-left: 1.4rem;
  border-left: 1px solid var(--line);
}

.process-step::before {
  position: static;
  display: block;
  width: auto;
  height: auto;
  margin-bottom: 2.8rem;
  content: counter(alibel-process, decimal-leading-zero);
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #7bc9f5;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.process-step:not(:last-child)::after {
  display: none;
}

.ecosystem-card {
  display: block;
  min-height: 0;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  border-width: 1px 0;
  border-color: var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ecosystem-card::after {
  display: none;
}

.ecosystem-copy {
  display: grid;
  grid-template-columns: 190px minmax(0, 1.15fr) minmax(260px, .85fr);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.ecosystem-copy .section-kicker {
  grid-column: 1;
}

.ecosystem-copy .section-title {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.ecosystem-copy p:not(.section-kicker),
.ecosystem-copy .text-link {
  grid-column: 3;
}

.ecosystem-copy p:not(.section-kicker) {
  margin: 0;
}

.closing-section {
  border-top: 1px solid var(--line);
}

.page-hero {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 0 clamp(2rem, 6vw, 7rem);
  padding-block: clamp(5rem, 10vw, 8rem);
  border-color: var(--line);
}

.page-hero .section-kicker {
  grid-column: 1;
  grid-row: 1 / span 3;
}

.page-hero .page-title,
.page-hero .page-lead,
.page-hero > p:not(.section-kicker):not(.page-lead) {
  grid-column: 2;
}

.page-hero > p:not(.section-kicker):not(.page-lead) {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: .82rem;
}

.about-story {
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
  border-bottom: 1px solid var(--line);
}

.values-section {
  padding-bottom: clamp(5rem, 9vw, 8rem);
}

.values-grid {
  gap: 0;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.value-card {
  padding: 1.6rem 1.6rem 1.6rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.value-card:not(:last-child) {
  margin-right: 1.6rem;
  border-right: 1px solid var(--line);
}

.services-list {
  counter-reset: alibel-service;
  padding-top: 0;
}

.service-item {
  counter-increment: alibel-service;
  grid-template-columns: minmax(340px, .9fr) minmax(0, 1.1fr);
  padding-block: clamp(3rem, 6vw, 5.5rem);
  border-color: var(--line);
}

.service-item:nth-child(even) .service-media {
  order: 0;
}

.service-media::after {
  display: none;
}

.service-media {
  display: flex;
  align-items: center;
}

.service-media img {
  width: min(92%, 520px);
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.service-label {
  margin-bottom: 1rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #85caef;
}

.service-label::before {
  margin-right: .55rem;
  color: var(--orange);
  content: counter(alibel-service, decimal-leading-zero) " /";
}

.service-copy h2 {
  max-width: 650px;
}

.contact-layout {
  gap: 0;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.contact-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.contact-details-card {
  padding-right: clamp(2rem, 5vw, 4rem);
}

.contact-form-card {
  padding-left: clamp(2rem, 5vw, 4rem);
  border-left: 1px solid var(--line);
}

.contact-links a {
  padding: .75rem 0;
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
}

.contact-links a:hover {
  background: transparent;
}

.contact-link-icon {
  border-radius: 0;
  background: transparent;
  color: var(--orange);
}

.form-field input,
.form-field textarea,
.form-field select {
  border-radius: 2px;
  background: rgba(2, 9, 16, .35);
}

.legal-index {
  padding: 1.1rem 0;
  border-width: 1px 0 0;
  border-radius: 0;
  background: transparent;
}

.legal-card {
  padding: 1.8rem 0;
  border-width: 1px 0 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.contact-ribbon {
  border-color: var(--line);
  background: #0a1c2c;
  box-shadow: inset 0 3px 0 rgba(255, 173, 66, .85);
}

.site-footer {
  padding-top: 3.5rem;
  border-top: 1px solid var(--line);
  background: #040a11;
}

.footer-grid {
  grid-template-columns: 1.5fr .65fr .75fr 1fr;
}

.footer-bottom {
  justify-content: flex-end;
}

.back-to-top {
  border-radius: 2px;
}

.terms-meta div,
.terms-index,
.terms-card {
  border-radius: 0;
  background: transparent;
}

.terms-card {
  border-width: 1px 0 0;
  box-shadow: none;
}

.terms-index {
  border-width: 1px 0;
}

.terms-meta div {
  border-width: 1px 0 0;
}

.terms-toc a,
.terms-section-title span,
.terms-example {
  border-radius: 0;
}

@media (max-width: 980px) {
  .home-hero {
    grid-template-columns: 1fr;
  }

  .home-hero-visual {
    width: 100%;
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .home-hero-frame img {
    height: min(62vw, 560px);
  }

  .ecosystem-copy {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .ecosystem-copy .section-title {
    grid-column: 2;
    grid-row: auto;
  }

  .ecosystem-copy p:not(.section-kicker),
  .ecosystem-copy .text-link {
    grid-column: 2;
  }

  .process-step:not(:first-child) {
    border-left: 0;
  }

  .contact-details-card {
    padding: 0 0 2.5rem;
  }

  .contact-form-card {
    padding: 2.5rem 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .footer-grid {
    grid-template-columns: 1.25fr 1fr 1fr;
  }

  .footer-grid > :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .site-nav-wrap {
    min-height: 66px;
  }

  .home-hero {
    padding-block: 3.5rem 4.5rem;
  }

  .home-hero-frame,
  .home-hero-frame img {
    border-radius: 0;
  }

  .home-hero-frame img {
    height: 72vw;
    min-height: 330px;
  }

  .hero-figure-note {
    align-items: flex-start;
    flex-direction: column;
    gap: .2rem;
  }

  .hero-signals li:not(:last-child) {
    border-right: 0;
  }

  .statement-section,
  .page-hero,
  .ecosystem-copy {
    grid-template-columns: 1fr;
  }

  .statement-section {
    gap: 1.5rem;
  }

  .page-hero {
    gap: .3rem;
  }

  .page-hero .section-kicker,
  .page-hero .page-title,
  .page-hero .page-lead,
  .page-hero > p:not(.section-kicker):not(.page-lead),
  .ecosystem-copy .section-kicker,
  .ecosystem-copy .section-title,
  .ecosystem-copy p:not(.section-kicker),
  .ecosystem-copy .text-link {
    grid-column: 1;
    grid-row: auto;
  }

  .principles-header,
  .process-header {
    grid-template-columns: 1fr;
  }

  .principle-card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: .7rem 1rem;
  }

  .principle-card p {
    grid-column: 2;
  }

  .process-track {
    gap: 0;
  }

  .process-step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: .4rem 1rem;
    padding: 1.4rem 0;
    border-top: 1px solid var(--line);
  }

  .process-step::before {
    grid-row: 1 / span 2;
    margin: 0;
  }

  .process-step p {
    grid-column: 2;
  }

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

  .service-media img {
    width: min(100%, 520px);
  }

  .value-card:not(:last-child) {
    margin-right: 0;
    border-right: 0;
  }

  .contact-ribbon-inner {
    padding-block: 3rem;
  }

  .footer-bottom {
    align-items: flex-start;
  }

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

  .footer-brand-column,
  .footer-grid > :last-child {
    grid-column: 1 / -1;
  }
}

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

  .footer-brand-column,
  .footer-grid > :last-child {
    grid-column: auto;
  }
}
