:root {
  --bg: #dbe9f7;
  --paper: #ffffff;
  --ink: #16212e;
  --muted: #4f6175;
  --primary: #006a66;
  --accent: #f0a202;
  --line: #d9e2eb;
  --shadow: 0 18px 40px rgba(22, 33, 46, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Figtree", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% -18%, rgba(25, 107, 197, 0.26), transparent 42%),
    radial-gradient(circle at 92% 14%, rgba(0, 170, 160, 0.2), transparent 38%),
    linear-gradient(180deg, #eaf3ff 0%, #dbe9f7 100%),
    var(--bg);
  line-height: 1.68;
  font-size: 1.03rem;
  font-weight: 500;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(144, 174, 205, 0.95);
  border-bottom: 1px solid #88aacb;
  z-index: 20;
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: "Figtree", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: clamp(1.28rem, 2vw, 1.62rem);
  letter-spacing: 0.012em;
  text-decoration: none;
  color: var(--ink);
}

nav {
  display: flex;
  gap: 22px;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.01em;
}

nav a:hover {
  color: var(--ink);
}

section {
  padding: 56px 0;
}

main > section {
  margin: 0;
  border-top: 1px solid rgba(167, 194, 223, 0.42);
}

main > section:nth-of-type(odd) {
  background:
    radial-gradient(900px 260px at 15% -20%, rgba(255, 255, 255, 0.5), transparent 55%),
    linear-gradient(180deg, rgba(226, 239, 252, 0.92), rgba(214, 231, 248, 0.94));
}

main > section:nth-of-type(even) {
  background:
    radial-gradient(860px 240px at 88% -14%, rgba(255, 255, 255, 0.45), transparent 58%),
    linear-gradient(180deg, rgba(211, 229, 247, 0.94), rgba(202, 223, 244, 0.95));
}

main > section:first-of-type {
  padding-top: 68px;
}

.hero-grid,
.feature-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  align-items: center;
}

h1,
h2,
h3 {
  font-family: "Figtree", "Segoe UI", sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  margin-top: 10px;
}

h2 {
  font-size: clamp(1.72rem, 3vw, 2.62rem);
  margin: 10px 0 16px;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.lead {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.72;
  font-weight: 500;
}

.kicker {
  margin: 0;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.hero img,
.feature img {
  width: 100%;
  max-width: 520px;
  justify-self: center;
  filter: drop-shadow(0 18px 36px rgba(22, 33, 46, 0.12));
  border-radius: 16px;
}

.inline-visual {
  width: 100%;
  max-width: 560px;
  justify-self: center;
  border-radius: 16px;
  filter: drop-shadow(0 18px 36px rgba(22, 33, 46, 0.12));
}

.tech-inline {
  max-width: 620px;
}

.about-visual {
  width: 100%;
  margin-top: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #f8fbfd;
  box-shadow: 0 16px 34px rgba(22, 33, 46, 0.1);
}

.ecosystem img {
  width: 100%;
  margin-top: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f4f8fb;
  box-shadow: var(--shadow);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 18px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.image-cards {
  margin-top: 18px;
}

.image-cards .card img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 12px;
  background: #f7fafd;
  box-shadow: 0 10px 24px rgba(20, 36, 52, 0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.image-cards .card:hover img {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(20, 36, 52, 0.14);
}

.ai-showcase {
  background:
    radial-gradient(760px 280px at 10% 0%, rgba(96, 160, 235, 0.2), transparent 62%),
    linear-gradient(180deg, rgba(214, 231, 248, 0.95), rgba(201, 222, 244, 0.95));
}

.ai-image-cards .card {
  border-color: #cedbe6;
}

.ai-image-cards .card img {
  background: linear-gradient(145deg, #edf4f9, #f7fafc);
  box-shadow: inset 0 0 0 1px rgba(163, 184, 199, 0.35);
}

.with-icon img {
  width: 52px;
  height: 52px;
}

#services .service-grid {
  margin-top: 18px;
  align-items: stretch;
}

#services .service-grid .card {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  gap: 10px;
}

#services .service-grid .card h3 {
  margin: 2px 0 4px;
}

#services > .container > h3 {
  margin-top: 26px;
  margin-bottom: 14px;
}

#services .clean-list {
  display: grid;
  gap: 10px;
}

#services .clean-list li {
  margin-bottom: 0;
}

.service-collage {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  align-items: start;
}

#services .service-collage {
  margin-top: 30px;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

#services .service-copy {
  display: grid;
  gap: 12px;
  align-content: start;
  max-width: 62ch;
}

#services .service-copy h3,
#services .service-copy p {
  margin: 0;
}

.service-copy p {
  color: var(--muted);
  max-width: 60ch;
}

.collage-stack {
  position: relative;
  min-height: 470px;
  width: min(100%, 560px);
  margin-left: auto;
}

.collage-stack img {
  position: absolute;
  border-radius: 14px;
  border: 1px solid #d2deea;
  box-shadow: 0 18px 35px rgba(18, 36, 54, 0.2);
  background: #f5f9fc;
}

.collage-main {
  width: min(100%, 430px);
  left: 0;
  top: 76px;
  z-index: 2;
}

.collage-top {
  width: min(54%, 220px);
  right: 0;
  top: 8px;
  z-index: 3;
}

.collage-bottom {
  width: min(50%, 198px);
  right: 10px;
  bottom: 0;
  z-index: 1;
}

.clean-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.clean-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 10px;
  font-weight: 600;
  letter-spacing: 0.006em;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pill-grid span {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
}

.industries-showcase {
  background:
    radial-gradient(1200px 360px at 10% 18%, rgba(255, 255, 255, 0.08), transparent 55%),
    radial-gradient(840px 320px at 90% 72%, rgba(255, 255, 255, 0.06), transparent 62%),
    linear-gradient(145deg, #06080d, #0b1119 52%, #05070b);
  color: #fff;
}

.industries-showcase h2,
.industries-showcase .lead {
  color: #0e1623;
}

.showcase-track {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 52px repeat(3, minmax(0, 1fr)) 52px;
  gap: 14px;
  align-items: center;
}

.showcase-nav {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: #0e1623;
  font-size: 1.35rem;
}

.showcase-card {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.showcase-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  filter: contrast(1.08) saturate(1.05);
}

.showcase-card h3 {
  position: absolute;
  left: 14px;
  bottom: 12px;
  color: #0e1623;
  background: rgba(255, 255, 255, 0.84);
  padding: 4px 10px;
  border-radius: 999px;
  text-shadow: none;
}

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px;
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 10px;
  font-family: inherit;
}

select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 10px;
  font-family: inherit;
  background: #fff;
}

.contact-email-cards a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.contact-page-form {
  max-width: 760px;
  margin: 0 auto;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 24, 36, 0.58);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 40;
}

.popup-overlay.show {
  display: flex;
}

.popup-card {
  width: min(520px, 94vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.popup-card p {
  color: var(--muted);
}

.popup-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #dcebf9, #d1e4f7);
}

.lorven-footprint {
  background: linear-gradient(180deg, #d7e7f8, #cce0f3);
  border-top: 1px solid #b9d0e8;
  border-bottom: 1px solid #b9d0e8;
}

.footprint-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1.4fr;
  gap: 28px;
}

.lorven-footprint h2,
.lorven-footprint h3,
.lorven-footprint h4 {
  margin-bottom: 12px;
}

.footprint-subtitle {
  margin: -6px 0 14px;
  color: #2b78be;
  font-weight: 600;
}

.lorven-footprint p {
  color: #2c3f52;
}

.lorven-footprint ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.lorven-footprint a {
  color: #153c6f;
  text-decoration: none;
  font-weight: 600;
}

.footprint-social {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.footprint-social a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #b8c6d6;
  background: #fff;
  font-weight: 700;
}

.footprint-locations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
}

.location-card {
  background: rgba(242, 248, 255, 0.88);
  border: 1px solid #bcd1e6;
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 8px;
}

.location-wide {
  grid-column: 1 / -1;
}

.location-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.flag-icon {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid #bfcddd;
}

.footprint-locations h4 {
  font-size: 1rem;
}

.footprint-locations p {
  margin: 0;
}

.footprint-locations p a {
  display: inline-block;
  max-width: 100%;
  font-size: 0.96rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-wrap {
  min-height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.98rem;
}

.footer-wrap a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.section-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  nav {
    display: none;
  }

  .hero-grid,
  .feature-grid,
  .contact-grid,
  .cards-3,
  .service-collage {
    grid-template-columns: 1fr;
  }

  .collage-stack {
    min-height: auto;
    display: grid;
    gap: 12px;
  }

  .collage-stack img {
    position: static;
    width: 100%;
  }

  .showcase-track {
    grid-template-columns: 1fr;
  }

  .showcase-nav {
    display: none;
  }

  .footprint-grid,
  .footprint-locations {
    grid-template-columns: 1fr;
  }

  section {
    padding: 44px 0;
  }

  main > section:first-of-type {
    padding-top: 54px;
  }
}
