/* ============================================================
   MediumBox — styles.css
   Colors: Navy #171868 | Orange #F87515 | White #FFFFFF
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #171868;
  --navy-light: #1e2080;
  --orange: #F87515;
  --orange-dark: #e06610;
  --white: #FFFFFF;
  --gray-50: #F9F9FB;
  --gray-100: #F0F0F5;
  --gray-200: #E0E0EB;
  --gray-500: #8888AA;
  --gray-700: #444466;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(23,24,104,0.08);
  --shadow-lg: 0 12px 48px rgba(23,24,104,0.14);
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn--primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(248,117,21,0.3);
}
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--ghost:hover {
  background: var(--navy);
  color: var(--white);
}
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--full { width: 100%; justify-content: center; }

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.nav--scrolled {
  border-bottom-color: var(--gray-200);
  box-shadow: 0 2px 16px rgba(23,24,104,0.06);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav__logo-icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav__logo-img { width: 48px; height: 48px; object-fit: contain; }
.nav__logo-text {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}
.nav__logo-medium { color: var(--navy); }
.nav__logo-box { color: var(--orange); }

.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--navy); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--navy);
  margin-left: auto;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 88px;
  background: var(--white);
}
.hero__bg-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.05;
  pointer-events: none;
}
.hero__bg-shape--1 {
  width: 700px; height: 700px;
  background: var(--navy);
  top: -250px; right: -150px;
}
.hero__bg-shape--2 {
  width: 350px; height: 350px;
  background: var(--orange);
  bottom: -100px; left: -100px;
}
.hero__content {
  position: relative;
  max-width: 720px;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.hero__headline {
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 22px;
}
.text-accent { color: var(--orange); }
.hero__sub {
  font-size: 18px;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 580px;
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- SECTION HEADERS ---- */
.section-header {
  margin-bottom: 48px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--navy);
}
.section-sub {
  font-size: 17px;
  color: var(--gray-500);
  line-height: 1.65;
  margin-top: 12px;
}
.section-eyebrow--light { color: var(--orange); }
.section-title--light { color: var(--white); }
.section-sub--light { color: rgba(255,255,255,0.65); }

/* ---- PARTNERS BAR ---- */
.partners {
  background: #f8f9fb;
  border-top: 1px solid #e8eaed;
  border-bottom: 1px solid #e8eaed;
  padding: 28px 0;
}

.partners__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.partners__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aaa;
  white-space: nowrap;
}

.partners__logos {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.partners__logos img {
  height: 36px;
  width: auto;
  filter: grayscale(100%) opacity(0.5);
  transition: filter 0.2s ease;
}

.partners__logos img:hover {
  filter: grayscale(100%) opacity(0.75);
}

/* ---- SERVICES LIST ---- */
.services {
  padding: 88px 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}
.services__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.service-item {
  display: flex;
  gap: 20px;
  padding: 32px 32px 32px 0;
  border-bottom: 1px solid var(--gray-200);
}
.service-item:nth-child(odd) { padding-right: 48px; border-right: 1px solid var(--gray-200); }
.service-item:nth-child(even) { padding-left: 48px; padding-right: 0; }
.service-item:nth-last-child(-n+2) { border-bottom: none; }

.service-item__num {
  font-size: 13px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  padding-top: 3px;
  min-width: 28px;
}
.service-item__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.service-item__desc {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.65;
}

/* ---- SERVICES FOOTER LINK ---- */
.services__footer {
  padding: 32px 0 0;
  background: var(--gray-50);
  padding-bottom: 88px;
  margin-top: -88px;
  padding-top: 0;
  display: flex;
  justify-content: flex-end;
}
.services__all-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  transition: color var(--transition);
}
.services__all-link:hover { color: var(--orange-dark); }

/* ---- WHY US ---- */
.why {
  position: relative;
  padding: 88px 0;
  overflow: hidden;
}
.why__bg {
  position: absolute;
  inset: 0;
  background: var(--navy);
  z-index: 0;
}
.why__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.why__copy .section-title { margin-bottom: 16px; }
.why__cta { margin-top: 32px; }

.why__stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid rgba(255,255,255,0.12);
  padding-left: 72px;
}
.why-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.why-stat:last-child { border-bottom: none; }
.why-stat__number {
  font-size: 44px;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: -0.04em;
  line-height: 1;
}
.why-stat__label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
}

/* ---- CONTACT ---- */
.contact {
  padding: 88px 0;
  background: var(--white);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.contact__copy .section-eyebrow { display: block; }
.contact__copy .section-title { margin-top: 8px; }

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 40px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea {
  font-family: var(--font);
  font-size: 15px;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  padding: 12px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-500); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(248,117,21,0.1);
}

/* ---- CONTACT CTA (homepage) ---- */
.contact-cta {
  padding: 96px 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  text-align: center;
}
.contact-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.contact-cta__inner .section-title { margin-top: 4px; }
.contact-cta__inner .section-sub { margin-bottom: 8px; }
.btn--lg { padding: 18px 40px; font-size: 16px; }

/* ---- FOOTER ---- */
.footer {
  background: var(--navy);
  padding: 64px 0 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.footer__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(10);
}
.footer__name {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.footer__tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
  max-width: 220px;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__col-head {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}
.footer__col a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition);
}
.footer__col a:hover { color: var(--white); }
.footer__cta-btn { margin-top: 4px; }
.footer__copy {
  font-size: 13px;
  color: rgba(255,255,255,0.28);
  text-align: center;
  margin-top: 28px;
}

/* ---- ABOUT ---- */
.about-story,
.about-ecosystem {
  padding: 72px 0;
  border-bottom: 1px solid var(--gray-200);
}
.about-story__inner,
.about-ecosystem__inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 72px;
  align-items: start;
}
.about-section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-top: 8px;
  line-height: 1.2;
}
.about-story__copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.about-story__copy p {
  font-size: 16px;
  color: var(--gray-700);
  line-height: 1.8;
}
.about-ecosystem__copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.about-ecosystem__copy > p {
  font-size: 16px;
  color: var(--gray-700);
  line-height: 1.8;
}
.ecosystem-cards {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.ecosystem-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--gray-50);
  flex: 1;
  min-width: 220px;
}
.ecosystem-card--active {
  border-color: var(--orange);
  background: rgba(248,117,21,0.04);
}
.ecosystem-card__logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ecosystem-card__logo--active {
  background: var(--navy);
}
.ecosystem-card__icon { width: 28px; height: 28px; object-fit: contain; }
.ecosystem-card__initial {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.ecosystem-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}
.ecosystem-card__desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.4;
}

.about-principles {
  position: relative;
  padding: 72px 0;
  overflow: hidden;
}
.about-principles__inner {
  position: relative;
  z-index: 1;
}
.about-principles__header {
  margin-bottom: 48px;
}
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.principle {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.principle__num {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.principle__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.principle__desc {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* ---- CASE STUDIES ---- */
.cases {
  padding: 0 0 88px;
  background: var(--white);
}
.case {
  padding: 64px 0;
  border-bottom: 1px solid var(--gray-200);
}
.case:last-child { border-bottom: none; }

.case__meta { margin-bottom: 12px; }
.case__category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(248,117,21,0.08);
  border: 1px solid rgba(248,117,21,0.2);
  border-radius: 20px;
  padding: 4px 12px;
}
.case__title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 14px;
  max-width: 700px;
}
.case__intro {
  font-size: 16px;
  color: var(--gray-700);
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 40px;
}
.case__body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}
.case__narrative {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.case__block-head {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
  opacity: 0.5;
}
.case__block p {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.75;
}
.case__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.case__tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  background: var(--gray-100);
  border-radius: 6px;
  padding: 5px 12px;
}
.case__stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--navy);
  border-radius: 16px;
  overflow: hidden;
}
.case-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.case-stat:last-child { border-bottom: none; }
.case-stat__number {
  font-size: 40px;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: -0.04em;
  line-height: 1;
}
.case-stat__label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

/* ---- PAGE HEADER ---- */
.page-header {
  padding: 80px 0 64px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.page-header__title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--navy);
  margin: 10px 0 16px;
}
.page-header__sub {
  font-size: 18px;
  color: var(--gray-700);
  max-width: 520px;
  line-height: 1.65;
}

/* ---- SERVICES DETAIL ---- */
.services-detail {
  padding: 0 0 88px;
  background: var(--white);
}
.svc {
  padding: 64px 0;
  border-bottom: 1px solid var(--gray-200);
}
.svc:last-child { border-bottom: none; }

.svc__header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
}
.svc__num {
  font-size: 13px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.svc__title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.svc__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding-left: 36px;
}
.svc__copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.svc__copy p {
  font-size: 16px;
  color: var(--gray-700);
  line-height: 1.75;
}
.svc__copy p:last-child {
  font-weight: 600;
  color: var(--navy);
}
.svc__includes {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 32px;
  align-self: start;
}
.svc__includes-head {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.svc__includes ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.svc__includes li {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.svc__includes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

/* ---- CTA STRIP ---- */
.cta-strip {
  position: relative;
  padding: 72px 0;
  overflow: hidden;
}
.cta-strip__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

/* ---- NAV ACTIVE ---- */
.nav__link--active {
  color: var(--navy) !important;
  font-weight: 600 !important;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .svc__body { grid-template-columns: 1fr; gap: 28px; padding-left: 0; }
  .cta-strip__inner { flex-direction: column; align-items: flex-start; }
  .case__body { grid-template-columns: 1fr; gap: 40px; }
  .case__stats { flex-direction: row; flex-wrap: wrap; border-radius: 12px; }
  .case-stat { flex: 1; min-width: 140px; border-right: 1px solid rgba(255,255,255,0.08); border-bottom: none; }
  .case-stat:last-child { border-right: none; }
  .about-story__inner, .about-ecosystem__inner { grid-template-columns: 1fr; gap: 24px; }
  .principles { grid-template-columns: 1fr; gap: 16px; }

  .why__inner { grid-template-columns: 1fr; gap: 48px; }
  .why__stats { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 32px; flex-direction: row; flex-wrap: wrap; gap: 0; }
  .why-stat { flex: 1; min-width: 120px; border-right: 1px solid rgba(255,255,255,0.08); border-bottom: none; padding: 16px 24px; }
  .why-stat:last-child { border-right: none; }
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .services__list { grid-template-columns: 1fr; }
  .service-item { padding: 24px 0; border-right: none !important; padding-left: 0 !important; padding-right: 0 !important; }
  .service-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--gray-200); }
  .service-item:last-child { border-bottom: none; }
}

@media (max-width: 640px) {
  .nav__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: var(--white);
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    gap: 16px;
  }
  .nav__links--open { display: flex; }
  .nav .btn--sm { display: none; }
  .nav__toggle { display: block; }
  .hero { padding: 60px 0 52px; }
  .hero__headline { font-size: 34px; }
  .services { padding: 64px 0; }
  .why { padding: 64px 0; }
  .contact { padding: 64px 0; }
  .contact__form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer { padding: 48px 0 24px; }
}
