:root {
  color-scheme: light;
  --background: #f7f8fb;
  --surface: #ffffff;
  --surface-muted: #eef4ff;
  --text: #111827;
  --muted: #536173;
  --line: #dbe3ef;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #dbeafe;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.1);
  --radius-lg: 28px;
  --radius-md: 20px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.12), transparent 32rem),
    linear-gradient(180deg, #ffffff 0%, var(--background) 40%, #ffffff 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

p,
h1,
h2,
h3 {
  margin-top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(219, 227, 239, 0.78);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
}

.brand,
.nav-links,
.hero-actions,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.nav-links {
  gap: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a {
  border-radius: 999px;
  padding: 8px 12px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--surface-muted);
  color: var(--primary-dark);
}

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

.section-shell[id] {
  scroll-margin-top: 90px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 76px);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.contact h2 {
  color: var(--text);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(3.4rem, 8vw, 6.8rem);
}

.hero-text {
  max-width: 660px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 750;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible,
.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--primary-dark);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
}

.hero-panel,
.service-card,
.project-card,
.contact-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.hero-panel {
  border-radius: var(--radius-lg);
  padding: 28px;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 800;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.13);
}

.capability-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.capability-list li {
  border-radius: 16px;
  background: var(--surface-muted);
  padding: 16px;
  color: #1f2a44;
  font-weight: 750;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading h2,
.contact h2 {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.section-heading p,
.contact p {
  color: var(--muted);
  font-size: 1.06rem;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.project-card,
.contact-card {
  border-radius: var(--radius-md);
  padding: 24px;
}

.service-card h3,
.project-card h3 {
  margin-bottom: 10px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.service-card p,
.project-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.card-number,
.project-domain {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.projects-section {
  padding-top: 62px;
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  min-height: 210px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  border-color: rgba(37, 99, 235, 0.36);
  box-shadow: 0 24px 70px rgba(37, 99, 235, 0.14);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
  gap: 28px;
  align-items: start;
}

.contact-card dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.contact-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-card dd {
  margin: 4px 0 0;
  color: var(--text);
  font-weight: 750;
}

.contact-card a {
  color: var(--primary-dark);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 26px 24px 34px;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  gap: 14px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--primary-dark);
}

@media (max-width: 980px) {
  .hero,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .section-shell {
    padding: 64px 18px;
  }

  .section-shell[id] {
    scroll-margin-top: 150px;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .hero-panel,
  .service-card,
  .project-card,
  .contact-card {
    padding: 20px;
  }

  .services-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }
}
