:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef6f9;
  --ink: #111827;
  --muted: #5d6b7c;
  --line: #dbe4ed;
  --navy: #071526;
  --blue: #1767e8;
  --teal: #08b4a6;
  --mint: #dff8f2;
  --amber: #f5b84b;
  --shadow: 0 22px 70px rgba(7, 21, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  z-index: 20;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 21, 38, 0.72);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #ffffff;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #ffffff;
  font-size: 0.82rem;
  box-shadow: 0 12px 30px rgba(23, 103, 232, 0.32);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  font-weight: 600;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/techsquare-hero.png");
  background-position: center right;
  background-size: cover;
  opacity: 0.8;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 21, 38, 0.96) 0%, rgba(7, 21, 38, 0.78) 42%, rgba(7, 21, 38, 0.24) 100%),
    linear-gradient(180deg, rgba(7, 21, 38, 0.35), rgba(7, 21, 38, 0.92));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 132px 0 72px;
  color: #ffffff;
}

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

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.16rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(8, 180, 166, 0.28);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary.dark {
  border-color: rgba(7, 21, 38, 0.16);
  color: var(--navy);
  background: #ffffff;
}

.hero-stats {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 68px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.hero-stats div {
  min-height: 112px;
  padding: 22px;
  background: rgba(7, 21, 38, 0.48);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  margin-bottom: 6px;
  font-size: 1.34rem;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.section {
  padding: 110px 0;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-heading.align-left {
  margin: 0;
  text-align: left;
}

.section-heading h2,
.contact-panel h2 {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.section-heading p,
.contact-panel p,
.service-card p,
.feature-item p,
.process-step p,
.site-footer p,
address {
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 300px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.05);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(8, 180, 166, 0.4);
  box-shadow: var(--shadow);
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 48px;
  border-radius: 8px;
  background: var(--mint);
  color: #04776f;
  font-weight: 800;
}

.service-card h3,
.feature-item h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.16rem;
  line-height: 1.25;
}

.why {
  background: #ffffff;
}

.why-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature-item {
  position: relative;
  padding: 24px 24px 24px 66px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, var(--surface-soft));
}

.feature-item::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 29px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle at center, #ffffff 0 30%, var(--teal) 31% 100%);
  box-shadow: 0 0 0 8px rgba(8, 180, 166, 0.12);
}

.process {
  background: linear-gradient(180deg, #f6f8fb 0%, #eef6f9 100%);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: steps;
}

.process-step {
  position: relative;
  min-height: 230px;
  padding: 28px;
  border: 1px solid rgba(7, 21, 38, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 50px rgba(7, 21, 38, 0.06);
}

.process-step::before {
  counter-increment: steps;
  content: "0" counter(steps);
  display: block;
  margin-bottom: 44px;
  color: var(--blue);
  font-weight: 800;
}

.process-step span {
  display: block;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.3rem;
  font-weight: 800;
}

.contact-cta {
  padding: 72px 0 104px;
  background: #ffffff;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  padding: 44px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 180, 166, 0.13), rgba(23, 103, 232, 0.1)),
    #f8fbff;
  border: 1px solid rgba(7, 21, 38, 0.08);
}

.contact-panel > div:first-child {
  max-width: 680px;
}

.site-footer {
  padding: 54px 0;
  background: var(--navy);
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
}

.footer-logo {
  margin-bottom: 16px;
}

address {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-style: normal;
}

.site-footer strong {
  margin-bottom: 8px;
  color: #ffffff;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.76);
}

.site-footer a:hover {
  color: #ffffff;
}

@media (max-width: 900px) {
  .nav {
    min-height: 66px;
  }

  .nav-links {
    gap: 16px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    background-position: 64% center;
  }

  .hero-content {
    padding: 118px 0 52px;
  }

  h1 {
    font-size: clamp(2.65rem, 12vw, 4.6rem);
  }

  .hero-stats,
  .card-grid,
  .why-layout,
  .process-grid,
  .footer-layout {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    margin-top: 46px;
  }

  .section {
    padding: 78px 0;
  }

  .why-layout {
    gap: 34px;
  }

  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
    padding: 32px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    position: absolute;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
    gap: 14px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(7, 21, 38, 0.98), rgba(7, 21, 38, 0.74)),
      linear-gradient(180deg, rgba(7, 21, 38, 0.2), rgba(7, 21, 38, 0.94));
  }

  .hero-content {
    padding-top: 126px;
    padding-bottom: 42px;
  }

  h1 {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
    line-height: 1;
  }

  .hero-copy {
    margin-bottom: 26px;
    font-size: 1rem;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-stats {
    display: none;
  }

  .section-heading {
    margin-bottom: 34px;
    text-align: left;
  }

  .service-card,
  .process-step {
    min-height: auto;
  }

  .card-icon,
  .process-step::before {
    margin-bottom: 28px;
  }

  .feature-item {
    padding-left: 58px;
  }
}
