:root {
  color-scheme: light;
  --ink: #121417;
  --muted: #5c6570;
  --line: #e6e9ee;
  --paper: #ffffff;
  --soft: #f6f8fb;
  --ms-blue: #0078d4;
  --ms-blue-dark: #005a9e;
  --shadow: 0 16px 40px rgba(18, 20, 23, 0.08);
  --radius: 12px;
  --font-sans: "Outfit", "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(18, 20, 23, 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 48px;
  place-items: center;
}

.brand-mark img {
  width: 44px;
  height: 48px;
  object-fit: contain;
}

.brand-text {
  font-size: 1.05rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 28px);
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 160ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ms-blue);
  color: #fff !important;
  font-weight: 600 !important;
  transition: background 160ms ease, transform 160ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--ms-blue-dark);
  color: #fff !important;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 2px;
}

main {
  padding-top: 76px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(40px, 7vh, 80px) clamp(18px, 4vw, 56px) clamp(48px, 8vh, 96px);
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(0, 120, 212, 0.08), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--soft) 100%);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ms-blue);
}

.hero h1 {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  animation: rise 700ms ease both;
}

.hero-stack {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 500;
  animation: rise 700ms ease 80ms both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  animation: rise 700ms ease 140ms both;
}

.trust-line {
  margin: 22px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
  animation: rise 700ms ease 200ms both;
}

.trust-line span {
  margin: 0 8px;
  opacity: 0.5;
}

.hero-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: fade-in 900ms ease 120ms both;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 120, 212, 0.12), transparent 45%);
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: min(68vh, 560px);
  object-fit: cover;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--ms-blue);
  color: #fff;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--ms-blue-dark);
}

.button.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--ms-blue);
  color: var(--ms-blue);
}

.button.ghost {
  background: transparent;
  color: var(--ms-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
  border: 0;
  min-height: auto;
  padding: 8px 4px;
}

.button.large {
  min-height: 54px;
  padding: 14px 28px;
  font-size: 1.02rem;
}

.section {
  padding: clamp(64px, 10vw, 112px) clamp(18px, 4vw, 56px);
}

.section-muted {
  background: var(--soft);
}

.section-heading {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-heading p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.service-card {
  padding: 28px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.service-card:hover {
  border-color: rgba(0, 120, 212, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}

.project-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.project-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.project-card h3,
.project-card p {
  margin: 0;
  padding-left: 22px;
  padding-right: 22px;
}

.project-card h3 {
  margin-top: 18px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.project-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.96rem;
}

.project-card .tech-tags {
  margin: 14px 0 22px;
  color: var(--ms-blue);
  font-size: 0.84rem;
  font-weight: 600;
}

.project-visual {
  height: 180px;
  padding: 22px;
  display: grid;
  place-items: center;
}

.project-visual.sales {
  background: linear-gradient(160deg, #0b3d66, #0078d4 70%);
}

.project-visual.mfg {
  background: linear-gradient(160deg, #123047, #1f6cab);
}

.project-visual.exec {
  background: linear-gradient(160deg, #0f2438, #2563a8);
}

.mock-dash {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  width: 78%;
  height: 78%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.mock-bar {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: rgba(255, 255, 255, 0.88);
}

.mock-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 82%;
  height: 78%;
}

.mock-kpis span {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.mock-portal {
  display: grid;
  gap: 12px;
  width: 82%;
  height: 70%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  align-content: center;
}

.mock-row {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}

.mock-row.short {
  width: 62%;
}

.why-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 720px;
  display: grid;
  gap: 14px;
}

.why-list li {
  position: relative;
  padding: 18px 22px 18px 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.why-list li::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ms-blue);
  transform: translateY(-50%);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-copy {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 36ch;
}

.about-photo {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-photo img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.tech-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tech-grid li {
  display: grid;
  place-items: center;
  min-height: 88px;
  padding: 16px;
  text-align: center;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--ink);
}

.contact-section {
  padding-top: clamp(48px, 8vw, 80px);
  padding-bottom: clamp(48px, 8vw, 80px);
}

.contact-panel {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 72px) clamp(24px, 5vw, 48px);
  text-align: center;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(0, 120, 212, 0.14), transparent 60%),
    var(--soft);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.contact-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.contact-or {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.footer {
  display: grid;
  gap: 18px;
  padding: 40px clamp(18px, 4vw, 56px) 48px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-brand {
  display: grid;
  gap: 4px;
}

.footer-brand strong {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.footer-brand span {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--ms-blue);
  font-weight: 600;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 1040px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 36px;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-visual img {
    height: 280px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-photo img {
    height: 280px;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
    z-index: 50;
  }

  .nav {
    position: fixed;
    inset: 0;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    background: rgba(255, 255, 255, 0.98);
    padding: 80px 28px 40px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    font-size: 1.2rem;
    color: var(--ink);
  }

  .nav-cta {
    justify-content: center;
    width: min(100%, 280px);
  }

  .service-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
