:root {
  --font: Inter, system-ui, sans-serif;
  --primary: #2b4dff;
  --secondary: #3e00a7;
  --dark: #040d43;
  --dark-2: #022b6d;
  --heading: #04000b;
  --text: #666666;
  --white: #ffffff;
  --gray: #f3f7fd;
  --line: #e6eaf3;
  --gold: #c9b07a;
  --grad: linear-gradient(90deg, #2b4dff 0%, #3e00a7 100%);
  --shadow: 0 12px 36px rgba(4, 13, 67, 0.12);
  --shadow-soft: 0 6px 18px rgba(4, 13, 67, 0.07);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--secondary); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.wrap {
  width: min(1140px, calc(100% - 2rem));
  margin-inline: auto;
}

.skip {
  position: absolute; left: 0.8rem; top: -3rem; z-index: 90;
  padding: 0.45rem 0.75rem; background: var(--primary); color: #fff;
}
.skip:focus { top: 0.8rem; }

/* Header — Techa index-2 transparent over hero */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}
.home .site-header {
  position: absolute; left: 0; right: 0;
  background: transparent; box-shadow: none;
}
.home .site-header.is-scrolled {
  position: fixed;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(4, 13, 67, 0.08);
}
.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--heading); font-weight: 700; font-size: 1.32rem; letter-spacing: -0.035em;
}
.brand img { width: 2.35rem; height: 2.35rem; border-radius: 0.55rem; }
.brand:hover { color: var(--heading); }
.home .site-header:not(.is-scrolled) .brand { color: #fff; }

.nav-toggle {
  display: none; width: 2.4rem; height: 2.4rem;
  border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 1rem; height: 2px; margin: 0 auto; background: var(--dark); position: relative;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

.site-nav { display: flex; align-items: center; gap: 1.15rem; }
.site-nav a { color: var(--heading); font-weight: 500; font-size: 0.92rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--primary); }
.home .site-header:not(.is-scrolled) .site-nav a { color: #fff; }
.home .site-header:not(.is-scrolled) .site-nav a:hover,
.home .site-header:not(.is-scrolled) .site-nav a[aria-current="page"] { color: #dce3ff; }

.header-ask { text-align: right; line-height: 1.25; }
.header-ask small { display: block; color: var(--text); font-size: 0.72rem; }
.header-ask strong { color: var(--heading); font-size: 0.88rem; }
.home .site-header:not(.is-scrolled) .header-ask small { color: rgba(255,255,255,0.7); }
.home .site-header:not(.is-scrolled) .header-ask strong,
.home .site-header:not(.is-scrolled) .header-ask a { color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 44px; padding: 0.55rem 1.35rem;
  border-radius: 50px; border: none;
  background: var(--grad); color: #fff;
  font-weight: 600; font-size: 0.9rem;
  box-shadow: 0 8px 20px rgba(43, 77, 255, 0.28);
}
.btn:hover { color: #fff; filter: brightness(1.06); }
.btn-light {
  background: transparent; color: #fff; border: 2px solid #fff; box-shadow: none;
}
.btn-light:hover { background: #fff; color: var(--primary); }
.btn-outline {
  background: #fff; color: var(--primary);
  border: 2px solid var(--primary); box-shadow: none;
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); box-shadow: none; }
.btn-white:hover { color: var(--secondary); }

/* Hero slider */
.hero {
  position: relative;
  min-height: 520px;
  height: 70vh;
  max-height: 640px;
  overflow: hidden;
  color: #fff;
}
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04);
  animation: ken 14s ease-out forwards;
}
.slide.is-active .slide-bg { animation: ken 14s ease-out forwards; }
@keyframes ken {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,13,67,0.55) 0%, rgba(4,13,67,0.72) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  height: 100%;
  display: grid; place-items: center;
  text-align: center;
  padding: 5rem 1.4rem 3.2rem;
}
.hero-content h1 {
  margin: 0 auto 1rem;
  max-width: 16ch;
  color: #fff;
  font-size: clamp(1.85rem, 4.6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
}
.hero-content h1 strong { color: #8ea4ff; }
.hero-actions { display: flex; gap: 0.8rem; justify-content: center; align-items: center; }
.play {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}
.play:hover { color: var(--secondary); background: #eef2ff; }
.hero-nav {
  position: absolute; inset: auto 1rem 42%;
  z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
  pointer-events: none;
}
.hero-nav button {
  pointer-events: auto;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0;
  background: #fff; color: var(--primary);
  cursor: pointer; font-size: 1.35rem; font-weight: 700; line-height: 1;
  box-shadow: 0 8px 22px rgba(0,0,0,0.28);
}
.hero-nav button:hover { background: var(--primary); color: #fff; }

/* Sections — tighter than the template default */
.section { padding: 48px 0; }
.section-sm { padding: 28px 0; }
.section-gray { background: var(--gray); }
.section-dark { background: var(--dark); color: #c5cce0; }

.sec-head { margin-bottom: 1.5rem; }
.sec-head.center { text-align: center; max-width: 620px; margin-left: auto; margin-right: auto; }
.sec-head.center .btn { margin-top: 0.4rem; }
.eyebrow, .sec-title small, h5.eyebrow {
  display: block; margin: 0 0 0.3rem;
  color: var(--primary); font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; font-size: 0.74rem;
}
.section-dark .eyebrow { color: #8ea4ff; }
h1, h2, h3, h4, .title {
  color: var(--heading); font-weight: 800; letter-spacing: -0.03em; line-height: 1.2;
}
.section-dark h2, .section-dark .title { color: #fff; }
.sec-title h2, .title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}
p { margin: 0 0 0.75rem; }
.lead { font-size: 1rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.split-left { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2rem; align-items: center; }

/* Feature intro — white panel over the dark hero */
.features {
  position: relative;
  margin-top: -72px;
  z-index: 4;
  padding-bottom: 24px;
}
.features-panel {
  background: #fff;
  border-radius: 16px;
  padding: 1.45rem 1.4rem 1.25rem;
  box-shadow: 0 16px 48px rgba(4, 13, 67, 0.14);
}
.feat-head { margin-bottom: 0.85rem; }
.feat-head .title, .feat-head p { color: var(--heading); }
.feat-head p { color: var(--text); }
.feat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feat-card {
  position: relative; overflow: hidden; border-radius: 12px;
  min-height: 220px; color: #fff;
  box-shadow: var(--shadow);
}
.feat-card img {
  width: 100%; height: 220px; object-fit: cover;
  transition: transform 0.6s ease;
}
.feat-card:hover img { transform: scale(1.06); }
.feat-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(4,13,67,0.88));
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 1rem 1.05rem;
}
.feat-card h3 { margin: 0; color: #fff; font-size: 1.15rem; }
.feat-card span {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary); color: #fff; font-size: 0.95rem;
}

/* Client wordmarks */
.clients { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 1.4rem; align-items: center; }
.clients span {
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  font-size: 0.78rem; color: #9aa3b8;
}

/* Mission / vision */
.who {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 360px;
}
.who-photo {
  background-size: cover; background-position: center;
}
.who-info {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--dark); color: #c5cce0;
}
.who-item { padding: 2.2rem 1.6rem; }
.who-item h3 { color: #8ea4ff; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 0.35rem; }
.who-item .ghost {
  margin: 0 0 0.7rem;
  font-size: 2.4rem; font-weight: 800; color: rgba(255,255,255,0.08);
  line-height: 1;
}
.who-item h2 { color: #fff; margin: -2.1rem 0 0.7rem; font-size: 1.55rem; position: relative; }
.who-item p { font-size: 0.92rem; }

/* Cards / services */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  background: #fff; border-radius: 12px; padding: 1.25rem 1.15rem;
  box-shadow: var(--shadow-soft); height: 100%;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin: 0.5rem 0 0.35rem; color: var(--heading); font-size: 1.08rem; }
.card p { margin: 0; font-size: 0.9rem; }
.card-link { display: block; color: inherit; }
.card-link:hover { color: inherit; }
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.65rem 0 0; padding: 0; list-style: none; }
.tags li {
  background: #e8ecff; color: var(--primary);
  font-size: 0.72rem; font-weight: 600;
  padding: 0.16rem 0.5rem; border-radius: 20px;
}
.partner {
  display: inline-block; margin-bottom: 0.35rem;
  color: var(--primary); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.prod-card .meta { margin-bottom: 0.25rem; }
.prod-card p + p { margin-top: 0.55rem; }
.sub-bar {
  text-align: center; font-size: 0.86rem;
  background: var(--gray); color: var(--heading);
  padding: 0.7rem 1rem;
}
.sub-bar a { font-weight: 700; }
.icon {
  width: 46px; height: 46px; border-radius: 10px;
  display: grid; place-items: center;
  background: #e8ecff; color: var(--primary); font-weight: 800; font-size: 0.85rem;
}

.service-cover {
  background: var(--gray) url("../img/office.jpg") center / cover;
  background-blend-mode: luminosity;
}

/* Trust */
.trust-photo { position: relative; }
.trust-photo img { width: 100%; height: 340px; object-fit: cover; border-radius: 12px; }
.fun-fact {
  position: absolute; right: 14px; bottom: 14px;
  background: var(--grad); color: #fff;
  padding: 0.85rem 1.1rem; border-radius: 10px; min-width: 140px;
}
.fun-fact b { display: block; font-size: 1.8rem; line-height: 1; }
.fun-fact span { font-size: 0.78rem; opacity: 0.9; }
.checks { margin: 0.7rem 0 1.1rem; padding: 0; list-style: none; }
.checks li { padding: 0.28rem 0 0.28rem 1.3rem; position: relative; color: var(--heading); font-weight: 600; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.quote {
  background: #fff; border-radius: 12px; padding: 1.2rem;
  box-shadow: var(--shadow-soft);
}
.quote p { font-size: 0.92rem; }
.who-row { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.8rem; }
.who-row img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.who-row strong { display: block; color: var(--heading); font-size: 0.9rem; }
.who-row span { font-size: 0.78rem; color: var(--primary); }

/* FAQ */
.faq details {
  background: #fff; border-radius: 10px; padding: 0.85rem 1rem; margin-bottom: 0.55rem;
  box-shadow: var(--shadow-soft);
}
.faq summary { cursor: pointer; color: var(--heading); font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "?  "; color: var(--primary); }
.faq details p { margin: 0.45rem 0 0; }

/* Blog / cases */
.posts, .cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cases.four { grid-template-columns: repeat(4, 1fr); }
.post, .case-card { overflow: hidden; }
.post img, .case-card img { width: 100%; height: 168px; object-fit: cover; border-radius: 10px; margin-bottom: 0.7rem; }
.post h3, .case-card h3 { margin: 0.2rem 0 0.3rem; color: var(--heading); font-size: 1.08rem; }
.post .meta { font-size: 0.76rem; color: var(--primary); font-weight: 600; }

.case {
  position: relative; min-height: 230px; border-radius: 12px; overflow: hidden;
  display: flex; align-items: flex-end; padding: 1rem; color: #fff;
}
.case img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, rgba(4,13,67,0.88));
}
.case > * { position: relative; z-index: 1; }
.case small { display: block; opacity: 0.8; font-size: 0.75rem; }
.case h3 { margin: 0.15rem 0 0; color: #fff; font-size: 1.1rem; }
.case:hover { color: #fff; }

.leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.member { text-align: center; }
.member img { width: 100%; height: 240px; object-fit: cover; border-radius: 12px; margin-bottom: 0.7rem; }
.member h3 { margin: 0; color: var(--heading); font-size: 1.05rem; }
.member span { color: var(--primary); font-size: 0.82rem; font-weight: 600; }

.counters {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem;
  text-align: center;
}
.counters b { display: block; font-size: 2.1rem; color: var(--primary); font-weight: 800; line-height: 1.1; }
.counters span { color: var(--heading); font-weight: 600; font-size: 0.88rem; }

/* Help / contact on home */
.help-box {
  background: #fff; border-radius: 14px; padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow);
}
.help-box h2 { margin: 0 0 0.25rem; }
.form { display: grid; gap: 0.7rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.field { display: grid; gap: 0.25rem; }
.field label { color: var(--heading); font-weight: 600; font-size: 0.82rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.65rem 0.8rem;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--heading); font: inherit;
}
.field textarea { min-height: 7.2rem; resize: vertical; }
.form-status { min-height: 1.1rem; color: var(--primary); font-size: 0.88rem; }

.aside {
  background: var(--dark); color: #c5cce0; border-radius: 14px; padding: 1.4rem 1.3rem;
}
.aside h3 { margin: 0 0 0.4rem; color: #fff; }
.aside a { color: #9eb4ff; }
.aside .row { margin-bottom: 0.9rem; }

/* Inner page banner */
.page-hero {
  position: relative;
  padding: 78px 0 48px;
  color: #fff;
  background: var(--dark) center / cover;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4,13,67,0.88), rgba(43,77,255,0.55));
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin: 0 0 0.4rem; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.page-hero p { max-width: 38rem; color: #d7ddf0; margin: 0; }
.crumbs { font-size: 0.8rem; color: #b7c2e0; margin-bottom: 0.45rem; }
.crumbs a { color: #fff; }

.article { margin-bottom: 1.6rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.article:last-child { border-bottom: 0; margin-bottom: 0; }
.article img.wide { width: 100%; height: 260px; object-fit: cover; border-radius: 12px; margin: 0 0 0.9rem; }
.article h2 { margin: 0.2rem 0 0.5rem; font-size: 1.45rem; }
.prose p { max-width: 44rem; }

.list-check { margin: 0.4rem 0 0; padding: 0; list-style: none; }
.list-check li { padding: 0.28rem 0 0.28rem 1.25rem; position: relative; }
.list-check li::before { content: "▸"; position: absolute; left: 0; color: var(--primary); }

.cta-band {
  background: var(--grad); color: #fff; text-align: center; padding: 48px 0;
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 0.4rem; }
.cta-band p { color: #e4e8ff; max-width: 34rem; margin: 0 auto 1rem; }

.site-footer {
  background: var(--dark); color: #9aa6c7; padding: 48px 0 18px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.15fr; gap: 1.3rem; }
.site-footer h4 { margin: 0 0 0.65rem; color: #fff; font-size: 1rem; }
.site-footer a { color: #9aa6c7; display: block; margin-bottom: 0.32rem; font-size: 0.9rem; }
.site-footer a:hover { color: #fff; }
.footer-brand p { margin: 0.55rem 0 0; max-width: 20rem; font-size: 0.9rem; }
.footer-base {
  display: flex; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap;
  margin-top: 1.5rem; padding-top: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.84rem;
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-ask { display: none; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 0.4rem 1rem 0.8rem; background: #fff;
    box-shadow: var(--shadow-soft);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { width: 100%; padding: 0.65rem 0; border-top: 1px solid var(--line); color: var(--heading) !important; }
  .hero { height: auto; min-height: 380px; }
  .hero-content { padding: 4.6rem 1.5rem 2.4rem; }
  .hero-content h1 { max-width: 12ch; }
  .hero-nav { inset: auto 0.7rem 38%; }
  .features { margin-top: -36px; padding: 0 0 16px; }
  .features-panel { padding: 1.15rem 1rem 1rem; }
  .feat-head p { margin-bottom: 0; }
  .page-hero { padding: 64px 0 36px; }
  .split, .split-left, .feat-cards, .who, .who-info, .svc-grid, .prod-grid, .quotes, .posts, .cases, .cases.four, .team, .leaders, .counters, .footer-grid, .form-row {
    grid-template-columns: 1fr;
  }
  .who { min-height: 0; }
  .who-photo { min-height: 220px; }
  .trust-photo img { height: 240px; }
}
