/* ─────────────────────────────────────────────────────────
   FORMATRIX TECHNOLOGY AS — Main Stylesheet
   Brand palette: Navy #0f1f5c  |  Blue #1d56c5  |  Accent #4a8fe0
   ───────────────────────────────────────────────────────── */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #0f1f5c;
  --navy-mid:    #162a78;
  --blue:        #1d56c5;
  --blue-light:  #4a8fe0;
  --blue-pale:   #e8f1fb;
  --accent:      #5ba3f5;
  --white:       #ffffff;
  --off-white:   #f7f9fd;
  --gray-100:    #f0f4fa;
  --gray-200:    #dce4f0;
  --gray-400:    #8a9dbf;
  --gray-600:    #4a5778;
  --text:        #0e1a38;
  --text-muted:  #5a6880;

  --font: 'Inter', system-ui, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(15,31,92,.07), 0 1px 2px rgba(15,31,92,.05);
  --shadow:    0 4px 16px rgba(15,31,92,.10), 0 2px 6px rgba(15,31,92,.06);
  --shadow-lg: 0 12px 40px rgba(15,31,92,.16), 0 4px 12px rgba(15,31,92,.08);
  --transition: .22s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

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

/* ── TYPOGRAPHY HELPERS ── */
.section__eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: .6rem;
}
.section__eyebrow--light { color: var(--accent); }

.section__title {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 1rem;
}
.section__title--light { color: var(--white); }

.section__desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
}

.section__header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section__header .section__desc { margin: 0 auto; }
.section__header--light .section__title { color: var(--white); }
.section__header--light .section__desc  { color: rgba(255,255,255,.65); }

/* ── SECTION WRAPPERS ── */
.section { padding: 96px 0; }
.section--light   { background: var(--off-white); }
.section--dark    { background: var(--navy); }
.section--accent  { background: var(--blue-pale); }
.section--partners { background: var(--gray-100); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .78rem 1.8rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(29,86,197,.35);
}
.btn--primary:hover {
  background: var(--navy-mid);
  box-shadow: 0 4px 16px rgba(29,86,197,.45);
  transform: translateY(-1px);
}
.btn--ghost {
  border: 2px solid rgba(15,31,92,.3);
  color: var(--navy);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--navy);
  background: rgba(15,31,92,.06);
}
.btn--full { width: 100%; justify-content: center; }

/* ─────────────────────────────────────────────────────────
   NAVIGATION
   ───────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15,31,92,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,.25); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav__logo {
  background: rgba(255,255,255,.88);
  border-radius: 7px;
  padding: 4px 10px;
  transition: background var(--transition);
}
.nav__logo:hover { background: rgba(255,255,255,1); }
.nav__logo img {
  height: 30px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav__links a {
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255,255,255,.78);
  padding: .45rem .85rem;
  border-radius: 6px;
  transition: all var(--transition);
}
.nav__links a:hover { color: var(--white); background: rgba(255,255,255,.1); }
.nav__cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: .45rem 1.1rem !important;
  border-radius: 6px;
  font-weight: 600 !important;
  margin-left: .5rem;
  box-shadow: 0 2px 8px rgba(29,86,197,.4);
}
.nav__cta:hover {
  background: var(--blue-light) !important;
  transform: translateY(-1px);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ─────────────────────────────────────────────────────────
   HERO  —  full-screen centered brand statement
   ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(170deg, #ffffff 0%, #eef4fc 60%, #ddeaf8 100%);
  overflow: hidden;
}

/* Fine grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29,86,197,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,86,197,.05) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
  z-index: 0;
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(29,86,197,.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Centre column */
.hero__center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 100px 24px 120px;
  max-width: 860px;
  width: 100%;
}

/* ── LOGO  — the star of the show ── */
.hero__logo-wrap {
  margin-bottom: 2.5rem;
}
.hero__logo {
  width: min(820px, 90vw);
  height: auto;
  display: block;
  animation: logo-in .9s cubic-bezier(.22,1,.36,1) both;
}

@keyframes logo-in {
  from { opacity: 0; transform: translateY(28px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Thin horizontal rule below logo */
.hero__divider {
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  border-radius: 2px;
  margin-bottom: 1.8rem;
  animation: fade-in .8s .4s ease both;
}

.hero__tagline {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.2rem;
  animation: fade-in .8s .5s ease both;
}

.hero__sub {
  font-size: clamp(.95rem, 1.8vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2.4rem;
  max-width: 560px;
  animation: fade-in .8s .6s ease both;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.8rem;
  animation: fade-in .8s .7s ease both;
}

.hero__trust {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fade-in .8s .8s ease both;
}
.hero__trust li {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.hero__trust svg {
  width: 15px;
  height: 15px;
  color: var(--blue);
  flex-shrink: 0;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: rgba(15,31,92,.35);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  z-index: 1;
  animation: bounce 2.2s 1.2s infinite;
}
.hero__scroll-hint svg { width: 18px; height: 18px; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .5; }
  50%       { transform: translateX(-50%) translateY(7px); opacity: 1; }
}

/* ─────────────────────────────────────────────────────────
   CHALLENGES
   ───────────────────────────────────────────────────────── */
.challenges__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.challenge-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.challenge-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.challenge-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.challenge-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--blue);
}
.challenge-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .6rem;
}
.challenge-card p { font-size: .92rem; color: var(--text-muted); }

/* ─────────────────────────────────────────────────────────
   PROCESS
   ───────────────────────────────────────────────────────── */
.process__steps {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.process__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.process__row--flip { direction: rtl; }
.process__row--flip > * { direction: ltr; }

.process__num {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--blue-light);
  line-height: 1;
  margin-bottom: .75rem;
  opacity: .5;
}

.process__text h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .8rem;
}
.process__text p { font-size: .97rem; color: rgba(255,255,255,.6); line-height: 1.7; }

.process__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
}
.process__img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

/* ─────────────────────────────────────────────────────────
   SERVICE
   ───────────────────────────────────────────────────────── */
.service__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.service__lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.service__list {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-bottom: 1.5rem;
}
.service__list li {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .97rem;
  font-weight: 500;
  color: var(--text);
}
.service__list svg {
  width: 20px;
  height: 20px;
  color: var(--blue);
  flex-shrink: 0;
}

.service__size {
  font-size: .92rem;
  color: var(--text-muted);
  padding: .8rem 1rem;
  background: var(--blue-pale);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 2rem;
}

.service__loc-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.2rem;
}

.loc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.loc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  padding: 1.4rem 1rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  text-align: center;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.loc-card:hover { box-shadow: var(--shadow-sm); border-color: var(--blue-light); }
.loc-card svg { width: 28px; height: 28px; color: var(--blue); }
.loc-card span { font-size: .85rem; font-weight: 600; color: var(--navy); }

/* ─────────────────────────────────────────────────────────
   USE CASES
   ───────────────────────────────────────────────────────── */
.usecases__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.usecase-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.usecase-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.usecase-card__tag {
  display: inline-block;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-pale);
  padding: .25rem .75rem;
  border-radius: 20px;
  width: fit-content;
}

.usecase-card__problem {
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.usecase-card__problem strong { color: var(--text); }

.usecase-card__arrow {
  display: flex;
  justify-content: center;
}
.usecase-card__arrow svg {
  width: 22px;
  height: 22px;
  color: var(--blue-light);
}

.usecase-card__solution {
  font-size: .92rem;
  color: var(--text);
  background: var(--blue-pale);
  border-left: 3px solid var(--blue);
  padding: .75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────
   ABOUT
   ───────────────────────────────────────────────────────── */
.about__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about__body {
  font-size: .97rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  line-height: 1.75;
}

.about__team-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.team-cards { display: flex; flex-direction: column; gap: 1.25rem; }

.team-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.team-card:hover { box-shadow: var(--shadow); }

.team-card__photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--blue-pale);
}
.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.team-card__photo--placeholder {
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-card__photo--placeholder svg {
  width: 36px;
  height: 36px;
  color: var(--blue-light);
}

.team-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .15rem;
}
.team-card__role {
  font-size: .8rem;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .5rem;
}
.team-card__bio { font-size: .88rem; color: var(--text-muted); line-height: 1.55; }

/* ─────────────────────────────────────────────────────────
   PARTNERS
   ───────────────────────────────────────────────────────── */
.partners__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.partner-logo {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow var(--transition), border-color var(--transition);
  min-height: 90px;
}
.partner-logo:hover { box-shadow: var(--shadow-sm); border-color: var(--blue-light); }

.partner-logo__name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--gray-600);
  text-align: center;
  letter-spacing: .02em;
}
.partner-logo img {
  max-height: 52px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter var(--transition);
}
.partner-logo:hover img { filter: grayscale(0%); }

/* ─────────────────────────────────────────────────────────
   CONTACT
   ───────────────────────────────────────────────────────── */
.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}

.contact__desc {
  font-size: 1rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact__details li {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  font-size: .93rem;
  color: rgba(255,255,255,.7);
  line-height: 1.6;
}
.contact__details svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact__details a {
  color: rgba(255,255,255,.75);
  transition: color var(--transition);
}
.contact__details a:hover { color: var(--white); }

/* Form */
.contact__form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.contact-form__hidden { display: none; }

.form-row { display: flex; gap: 1rem; }
.form-row--2 > * { flex: 1; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.1rem;
}
.form-group label {
  font-size: .83rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .02em;
}
.form-group input,
.form-group textarea {
  padding: .7rem .95rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .93rem;
  color: var(--text);
  background: var(--off-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(29,86,197,.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }

.contact-form__note {
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .75rem;
}

/* ─────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────── */
.footer {
  background: #080f2a;
  color: rgba(255,255,255,.6);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding: 60px 24px 48px;
}

.footer__logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  opacity: .85;
}
.footer__brand p { font-size: .88rem; line-height: 1.65; }

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.footer__nav a {
  font-size: .88rem;
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--white); }

.footer__contact p { font-size: .88rem; margin-bottom: .4rem; }
.footer__contact a { transition: color var(--transition); }
.footer__contact a:hover { color: var(--white); }

.footer__bar {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 1.25rem 24px;
}
.footer__bar p { font-size: .8rem; text-align: center; color: rgba(255,255,255,.3); }

/* ─────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .process__row,
  .process__row--flip { grid-template-columns: 1fr; direction: ltr; gap: 2rem; }
  .process__row--flip .process__img { order: -1; }

  .service__layout,
  .about__layout,
  .contact__layout { grid-template-columns: 1fr; gap: 3rem; }

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

  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .nav__links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--navy); padding: 1rem 1.5rem; gap: .25rem; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav__links.open { display: flex; }
  .nav__burger { display: flex; }

  .hero__logo { width: min(560px, 88vw); }
  .hero__trust { gap: 1rem; }

  .challenges__grid { grid-template-columns: 1fr; }
  .usecases__grid   { grid-template-columns: 1fr; }

  .form-row { flex-direction: column; }

  .partners__grid { grid-template-columns: 1fr 1fr; }

  .footer__inner { grid-template-columns: 1fr; gap: 2rem; padding: 48px 24px 32px; }

  .loc-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .partners__grid { grid-template-columns: 1fr; }
  .hero__trust { flex-direction: column; }
}
