/* ===================== Design tokens ===================== */
:root {
  --navy-950: #060f1c;
  --navy-900: #081a2d;
  --navy-800: #0f2540;
  --navy-700: #17304f;
  --navy-600: #24405f;
  --ink: #0b1626;
  --text: #3c4757;
  --muted: #6b7686;
  --line: #e5e9ef;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-soft-2: #eef1f6;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(8, 26, 45, 0.06);
  --shadow-md: 0 8px 24px rgba(8, 26, 45, 0.08);
  --shadow-lg: 0 24px 60px rgba(8, 26, 45, 0.14);
  --container: 1180px;
  --ff-head: "Sora", "Inter", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, sans-serif;
}

/* ===================== Reset ===================== */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--ff-head);
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; font-size: 0.95rem; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-900);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--navy-900);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--navy-800); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--navy-900); }
.btn-dark {
  background: var(--navy-900);
  color: #fff;
}
.btn-dark:hover { background: var(--navy-800); }
.btn-light {
  background: #fff;
  color: var(--navy-900);
}
.btn-light:hover { background: var(--bg-soft); }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ===================== Eyebrow / section head ===================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-700);
  margin: 0 0 14px;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--navy-700);
  display: inline-block;
}
.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); margin-bottom: 14px; }
.section-lead { color: var(--muted); font-size: 1.05rem; }

/* ===================== Header ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(8, 26, 45, 0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 26px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0 auto;
}
.main-nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover { color: var(--navy-900); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--navy-900);
  transition: transform 0.25s ease, opacity 0.25s 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 {
  padding: 32px 0 0;
}
.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}
.hero-card-media {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 82% 8%, rgba(112, 150, 199, 0.35), transparent 60%),
    radial-gradient(55% 60% at 8% 100%, rgba(60, 95, 145, 0.3), transparent 65%),
    linear-gradient(150deg, var(--navy-700) 0%, var(--navy-900) 55%, var(--navy-950) 100%);
}
.hero-card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
}
.hero-weave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-card-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  text-align: center;
  padding: 90px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.hero-mark svg { width: 18px; height: 18px; }
.eyebrow-on-dark { color: rgba(255, 255, 255, 0.85); }
.eyebrow-on-dark .dot { background: #fff; }
.hero h1 {
  width: 100%;
  color: #fff;
  font-size: clamp(1.7rem, 4.2vw, 3.1rem);
  margin-bottom: 20px;
  overflow-wrap: break-word;
}
.hero-lead {
  width: 100%;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 520px;
  margin: 0 auto 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ===================== About ===================== */
.about { padding: 100px 0; }
.about-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
  align-items: start;
}
.about-text h2 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); margin-bottom: 24px; }
.about-desc p { font-size: 1.08rem; color: var(--text); }

.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.about-card {
  padding: 32px 28px;
  border-radius: var(--radius-md);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.about-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.about-card p { font-size: 0.95rem; }
.about-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about-card-icon svg { width: 22px; height: 22px; }
.about-card--light {
  background: var(--bg-soft-2);
  color: var(--ink);
}
.about-card--light p { color: var(--muted); }
.about-card--light .about-card-icon { background: var(--navy-900); color: #fff; }
.about-card--dark {
  background: var(--navy-900);
  color: #fff;
}
.about-card--dark h3 { color: #fff; }
.about-card--dark p { color: rgba(255, 255, 255, 0.72); }
.about-card--dark .about-card-icon { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ===================== Clients marquee ===================== */
.clients { padding: 60px 0 90px; }
.clients-label {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: scroll-left 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.client-logo {
  font-family: var(--ff-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--muted);
  opacity: 0.7;
  filter: grayscale(1);
  transition: opacity 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.client-logo:hover { opacity: 1; color: var(--navy-900); }

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===================== Services ===================== */
.services { padding: 100px 0; }

.expertise-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: stretch;
  margin-bottom: 90px;
}
.expertise-text { display: flex; flex-direction: column; justify-content: center; }
.expertise-text .section-lead { margin-top: 4px; }

.expertise-card {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 32px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.expertise-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.expertise-card p { color: var(--muted); font-size: 0.98rem; max-width: 420px; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--navy-900);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.link-arrow:hover svg { transform: translateX(3px); }
.expertise-card-media {
  position: relative;
  margin-top: 26px;
  height: 220px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  background:
    radial-gradient(65% 90% at 15% 0%, rgba(112, 150, 199, 0.3), transparent 60%),
    linear-gradient(155deg, var(--navy-700), var(--navy-950));
  display: flex;
  align-items: center;
  justify-content: center;
}
.expertise-card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
}
.expertise-card-media svg {
  position: relative;
  width: 68px;
  height: 68px;
  color: #fff;
  opacity: 0.85;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: transparent;
}
.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--navy-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.service-card p { font-size: 0.94rem; color: var(--muted); }

/* ===================== Contact ===================== */
.contact { padding: 100px 0; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-text h2 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); margin-bottom: 14px; }
.contact-text .section-lead { margin-bottom: 30px; }
.contact-list { display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-size: 0.98rem; }
.contact-list svg { width: 20px; height: 20px; color: var(--navy-900); flex-shrink: 0; }
.contact-list a:hover { color: var(--navy-900); }

.contact-form {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.form-row input, .form-row textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--navy-900);
  box-shadow: 0 0 0 3px rgba(8, 26, 45, 0.12);
}
.form-note { font-size: 0.88rem; color: var(--navy-700); min-height: 1em; }

/* ===================== Footer ===================== */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, 0.75); padding: 70px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-logo { height: 24px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.92rem; max-width: 240px; color: rgba(255, 255, 255, 0.55); }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.footer-col a { font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding: 22px 24px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ===================== Back to top ===================== */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }

/* ===================== Responsive ===================== */
@media (max-width: 980px) {
  .hero-card { min-height: 520px; }
  .hero-card-content { padding: 64px 28px; }
  .about-top { grid-template-columns: 1fr; }
  .about-cards { grid-template-columns: 1fr; }
  .expertise-top { grid-template-columns: 1fr; margin-bottom: 60px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-card-content { padding: 52px 20px; }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .header-actions .btn-light.btn-sm { display: none; }
  .nav-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
