/* ============================================================
   Leaside Systems Architecture — stylesheet
   Brand palette derived from the company logo.
   ============================================================ */

:root {
  --cyan: #29abe2;
  --cyan-dark: #1f8fbf;
  --navy: #16294d;
  --navy-deep: #0e1c38;
  --slate: #6e7a86;
  --ink: #1a2230;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --line: #e3e9f1;
  --white: #ffffff;

  --maxw: 1120px;
  --radius: 14px;
  --shadow: 0 18px 40px -24px rgba(22, 41, 77, 0.35);
  --shadow-sm: 0 6px 18px -10px rgba(22, 41, 77, 0.3);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--cyan-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn--primary {
  background: var(--cyan);
  color: var(--white);
  box-shadow: 0 10px 24px -12px rgba(41, 171, 226, 0.9);
}
.btn--primary:hover { background: var(--cyan-dark); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 40px; height: 40px; border-radius: 9px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 800; font-size: 1.2rem; color: var(--navy); letter-spacing: -0.01em; }
.brand__sub { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a { color: var(--navy); font-weight: 500; font-size: 0.97rem; }
.nav__links a:hover { color: var(--cyan-dark); text-decoration: none; }
.nav__cta {
  background: var(--navy);
  color: #fff !important;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
}
.nav__cta:hover { background: var(--navy-deep); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav__toggle span {
  width: 24px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: min(100vh, 900px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(41,171,226,0.16), transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, #1b3a63 100%);
  color: #fff;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 40%, rgba(14,28,56,0.55) 100%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__name {
  margin: 0;
  font-size: clamp(2.3rem, 6.2vw, 4.4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(8, 18, 38, 0.55);
}
.hero__name-accent { color: var(--cyan); }

/* The centrepiece: live architecture diagram */
.hero__diagram {
  position: relative;
  width: 100%;
  max-width: 1120px;
  height: clamp(440px, 72vh, 840px);
  margin: 1rem auto 1.5rem;
}
.hero__diagram canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero__lede {
  margin: 0 0 2rem;
  max-width: 40rem;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.86);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ============================================================
   Sections (shared)
   ============================================================ */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 42rem; margin-bottom: 3rem; }
.section__eyebrow {
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--cyan-dark);
}
.section__title {
  margin: 0 0 0.8rem;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.section__intro { margin: 0; font-size: 1.08rem; color: var(--slate); }

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(41,171,226,0.4);
}
.card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(41,171,226,0.16), rgba(41,171,226,0.05));
  color: var(--cyan-dark);
  margin-bottom: 1.2rem;
}
.card__icon svg { width: 30px; height: 30px; }
.card__title { margin: 0 0 0.6rem; font-size: 1.3rem; color: var(--navy); font-weight: 700; }
.card__text { margin: 0; color: var(--slate); }

/* ---------- Domains ---------- */
.domains {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
}
.domains__label {
  margin: 0 0 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--cyan);
}
.domains__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  list-style: none;
  margin: 0; padding: 0;
}
.domains__list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-left: 1rem;
  border-left: 3px solid var(--cyan);
}
.domains__list strong { font-size: 1.5rem; font-weight: 800; letter-spacing: 0.02em; }
.domains__list span { color: rgba(255,255,255,0.7); font-size: 0.94rem; }

/* ---------- Approach steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  position: relative;
}
.step__num {
  font-size: 2.4rem;
  font-weight: 800;
  color: rgba(41,171,226,0.35);
  line-height: 1;
}
.step__title { margin: 0.6rem 0 0.5rem; font-size: 1.25rem; color: var(--navy); }
.step__text { margin: 0; color: var(--slate); }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about__text p { color: var(--slate); font-size: 1.06rem; }
.about__text .section__title { margin-bottom: 1.2rem; }
.about__card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}
.about__logo { margin: 0 auto 1.4rem; width: 96px; height: 96px; border-radius: 16px; }
.about__facts { margin: 0; text-align: left; }
.about__facts > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}
.about__facts dt { color: var(--slate); font-size: 0.9rem; margin: 0; }
.about__facts dd { margin: 0; font-weight: 600; color: var(--navy); font-size: 0.95rem; text-align: right; }

/* ---------- Contact ---------- */
.section--contact {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
}
.section--contact .section__title { color: #fff; }
.section--contact .section__intro { color: rgba(255,255,255,0.75); }
.section--contact .section__eyebrow { color: var(--cyan); }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 2.5rem; }
.contact__email { font-size: 1.05rem; }
.contact__address { font-style: normal; color: rgba(255,255,255,0.8); line-height: 1.8; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.75);
  padding-block: 2.5rem;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
  text-align: center;
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: #fff;
}
.site-footer__mark { width: 32px; height: 32px; border-radius: 7px; }
.site-footer__address { margin: 0.4rem 0 0; font-style: normal; font-size: 0.9rem; }
.site-footer__meta { margin: 0.2rem 0 0; font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.site-footer__copy { margin: 0; font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 820px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav__links.is-open { max-height: 360px; }
  .nav__links li { width: 100%; text-align: center; }
  .nav__links li a { display: block; padding: 1rem; border-top: 1px solid var(--line); }
  .nav__cta { border-radius: 0; }
  .about { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__scroll span { animation: none; }
  .btn:hover, .card:hover { transform: none; }
}
