:root {
  --color-primary: #0a84ff;
  --color-primary-dark: #003366;
  --color-primary-light: #66b2ff;
  --color-white: #ffffff;
  --color-soft: #f5f5f5;
  --color-text: #1b2a3a;
  --color-border: #d9e4f2;
  --shadow-sm: 0 6px 18px rgba(0, 51, 102, 0.08);
  --shadow-md: 0 12px 26px rgba(0, 51, 102, 0.12);
  --radius-md: 12px;
  --radius-lg: 16px;
  --container: 1120px;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Work Sans", Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.section {
  padding: var(--space-2xl) 0;
}

.section-soft {
  background: var(--color-soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

.brand {
  font-weight: 800;
  color: var(--color-primary-dark);
  letter-spacing: 0.3px;
}

.menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.menu a {
  color: var(--color-primary-dark);
  font-weight: 500;
  transition: color 180ms ease;
}

.menu a:hover,
.menu a:focus-visible {
  color: var(--color-primary);
}

.hero {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 var(--space-sm);
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--color-primary-dark);
  line-height: 1.2;
}

h1 {
  margin-bottom: var(--space-md);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.2rem;
}

p {
  margin-top: 0;
  margin-bottom: var(--space-md);
}

.hero-text {
  margin-bottom: var(--space-xl);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  max-width: 58ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.64rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-primary-dark);
}

.btn-outline {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-white);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-ghost {
  border-color: var(--color-border);
  background: var(--color-white);
  color: var(--color-primary-dark);
}

.btn-ghost img {
  width: 16px;
  height: 16px;
}

.icon-plus {
  font-size: 1.05rem;
  font-weight: 700;
}

.section-head {
  margin-bottom: var(--space-xl);
}

.grid {
  display: grid;
  gap: var(--space-xl);
}

.projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.project-header {
  height: 150px;
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  background: var(--color-soft);
}

.project-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.card-body {
  padding: var(--space-lg);
}

.actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.team-card {
  padding: var(--space-lg);
}

.avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: var(--space-md);
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-primary);
}

.meta {
  color: #4e6070;
  font-weight: 500;
}

.tech-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.tech-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.tech-item img {
  width: 26px;
  height: 26px;
}

.tech-item span {
  font-weight: 600;
  color: var(--color-primary-dark);
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer-content h2 {
  font-size: 1.4rem;
  margin-bottom: var(--space-sm);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 460ms ease, transform 460ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .section {
    padding: var(--space-xl) 0;
  }

  .menu {
    gap: var(--space-md);
  }
}

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    justify-content: center;
    padding: 0.75rem 0;
    gap: var(--space-sm);
  }

  .hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .btn {
    width: 100%;
  }

  .actions .btn {
    width: auto;
    flex: 1 1 130px;
  }
}
