:root {
  --blue-900: #002868;
  --blue-800: #003898;
  --blue-700: #0040a8;
  --blue-600: #0050c8;
  --blue-100: #e8f0ff;
  --blue-50: #f3f7ff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #dbe3f0;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(0, 40, 104, 0.12);
  --radius: 18px;
  --container: 1120px;
  --header: 76px;
  --font: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(0, 80, 200, 0.08), transparent 36%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 28%, #ffffff 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 800;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(219, 227, 240, 0.8);
}

.nav {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand img {
  height: 42px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  flex-wrap: wrap;
}

.nav-menu a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0.2rem;
  transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--blue-800);
}

.nav-menu a.active:not(.btn) {
  font-weight: 700;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(0, 64, 168, 0.28);
}

.btn.primary:hover {
  box-shadow: 0 14px 28px rgba(0, 64, 168, 0.34);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
  color: var(--blue-800);
}

.nav-menu .btn.primary {
  margin-left: 0.4rem;
  padding: 0.65rem 1rem;
}

.nav-menu .btn.primary:hover {
  color: var(--white);
}

.hero {
  padding: 4.5rem 0 3rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--blue-700);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.1rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.orb {
  width: min(100%, 420px);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), transparent 28%),
    radial-gradient(circle at 50% 50%, #4f86ff, #003898 58%, #001f4d 100%);
  box-shadow:
    inset 0 0 40px rgba(255, 255, 255, 0.25),
    0 30px 80px rgba(0, 56, 152, 0.35);
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.page-hero {
  padding: 3.5rem 0 1.5rem;
}

.page-hero p {
  max-width: 46rem;
}

.section {
  padding: 4rem 0;
}

.section.center {
  text-align: center;
}

.section.muted {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section-intro {
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 2rem;
  text-align: left;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #b9cceb;
  box-shadow: var(--shadow);
}

.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--blue-50);
  margin-bottom: 0.9rem;
  font-size: 1.35rem;
}

.learn {
  color: var(--blue-700);
  font-weight: 700;
  font-size: 0.92rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.checks {
  display: grid;
  gap: 0.9rem;
}

.check {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue-600);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  color: var(--muted);
}

.check strong {
  color: var(--ink);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat {
  background: linear-gradient(180deg, #ffffff, var(--blue-50));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--blue-800);
  margin-bottom: 0.35rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

.cta {
  padding: 1rem 0 4rem;
}

.cta-card {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: var(--white);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.cta-card .eyebrow,
.cta-card h2,
.cta-card p,
.cta-card a,
.cta-card span {
  color: var(--white);
}

.cta-card h2 {
  max-width: 28rem;
}

.contact-list {
  display: grid;
  gap: 0.55rem;
  font-weight: 600;
}

.contact-list a:hover {
  text-decoration: underline;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.step span {
  display: inline-block;
  color: var(--blue-700);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.industries {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--blue-800);
  font-weight: 700;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.portfolio-grid {
  display: grid;
  gap: 1rem;
}

.project {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.1rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.thumb {
  height: 110px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent),
    linear-gradient(135deg, #0050c8, #002868);
}

.form {
  display: grid;
  gap: 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font: inherit;
  color: var(--ink);
  background: #fcfdff;
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid rgba(0, 80, 200, 0.25);
  border-color: var(--blue-600);
}

.footer {
  background: #061433;
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer img {
  height: 42px;
  width: auto;
  margin-bottom: 0.8rem;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 0.8rem;
}

.footer a,
.footer p {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.45rem;
}

.footer a:hover {
  color: var(--white);
}

.copyright {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.sr-only,
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form button[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.form-status {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 600;
}

.form-status[data-kind="success"] {
  background: #ecfdf3;
  color: #05603a;
  border: 1px solid #abefc6;
}

.form-status[data-kind="error"] {
  background: #fef3f2;
  color: #b42318;
  border: 1px solid #fecdca;
}

.post-card h3 a:hover {
  color: var(--blue-800);
}

.post-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.post-cover-lg {
  margin-bottom: 2rem;
}

.post-meta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-700);
  margin-bottom: 0.5rem;
}

.post-container {
  max-width: 760px;
}

.post-body-section {
  padding-top: 0;
}

.post-body {
  font-size: 1.05rem;
  line-height: 1.75;
}

.post-body p,
.post-body li {
  color: #334155;
}

.post-body h2,
.post-body h3 {
  margin-top: 2rem;
}

.post-body a {
  color: var(--blue-700);
  text-decoration: underline;
}

.post-body img {
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
}

.post-body blockquote {
  margin: 1.5rem 0;
  padding: 0.5rem 1.25rem;
  border-left: 4px solid var(--blue-600);
  background: var(--blue-50);
  border-radius: 0 12px 12px 0;
}

.post-body pre {
  overflow-x: auto;
  background: #0f172a;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 12px;
}

.empty-state {
  max-width: 40rem;
}

.empty-state:hover {
  transform: none;
}

@media (max-width: 960px) {
  .hero-grid,
  .two-col,
  .services-grid,
  .stats,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .orb {
    width: min(100%, 280px);
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: calc(var(--header) + 0.5rem);
    left: 1rem;
    right: 1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.85rem;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu .btn.primary {
    margin-left: 0;
    width: 100%;
  }

  .hero,
  .section,
  .page-hero {
    padding-block: 2.5rem;
  }

  .hero-grid,
  .two-col,
  .services-grid,
  .stats,
  .steps,
  .footer-grid,
  .project {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    text-align: center;
  }

  .lead,
  .page-hero p {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }
}
