:root {
  --bg: #ffffff;
  --bg-soft: #f6f8f9;
  --text: #101820;
  --muted: #5e6b76;
  --line: #dfe6ea;
  --ink: #111820;
  --teal: #0f766e;
  --blue: #1d4ed8;
  --shadow: 0 22px 70px rgba(16, 24, 32, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 clamp(20px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(223, 230, 234, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: #0b0f14;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.brand-word {
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 180ms ease;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: center;
  padding: 138px clamp(20px, 6vw, 88px) 78px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.94) 37%, rgba(255, 255, 255, 0.58) 66%, rgba(255, 255, 255, 0.18) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, #ffffff 100%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(54px, 8.8vw, 126px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 23px;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-lead {
  width: min(620px, 100%);
  margin-bottom: 14px;
  color: #253341;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  line-height: 1.25;
}

.hero-copy {
  width: min(630px, 100%);
  color: #50606e;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 14px 20px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
  cursor: pointer;
}

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

.button.primary {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(17, 24, 32, 0.22);
}

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

.button.full {
  width: 100%;
}

.section {
  padding: clamp(76px, 9vw, 132px) clamp(20px, 4vw, 64px);
  scroll-margin-top: 78px;
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section-heading {
  width: min(780px, 100%);
  margin-bottom: 42px;
}

.section-heading.compact {
  margin-bottom: 0;
}

.section-copy,
.section-heading p,
.contact-layout > div > p {
  color: var(--muted);
  font-size: 17px;
}

.expertise {
  padding-top: 28px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.expertise-grid span {
  display: flex;
  min-height: 86px;
  align-items: center;
  padding: 20px;
  background: #ffffff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 286px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.card-index {
  display: block;
  margin-bottom: 58px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.products-section {
  background: #f7faf9;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-layout,
.technology-layout,
.about-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 6vw, 92px);
  align-items: start;
}

.product-card {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.project-label {
  display: inline-flex;
  margin-bottom: 32px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card p {
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.text-link::after {
  content: "→";
  margin-left: 8px;
}

.technology-section {
  background: #ffffff;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tech-grid span {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

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

.reason-list {
  display: grid;
  gap: 14px;
}

.reason-list p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
}

.reason-list p::before {
  content: "→";
  color: var(--teal);
}

.contact-section {
  background: var(--ink);
  color: #ffffff;
}

.contact-section .section-kicker {
  color: #5eead4;
}

.contact-section p,
.contact-section .contact-layout > div > p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-section h2 {
  color: #ffffff;
}

.contact-form {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font: inherit;
  padding: 14px 15px;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #5eead4;
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.18);
}

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

.form-note {
  min-height: 22px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.form-note[data-state="success"] {
  color: #86efac;
}

.form-note[data-state="error"] {
  color: #fecaca;
}

.button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.footer {
  padding: 34px clamp(20px, 4vw, 64px);
  background: #0f1922;
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  font-size: 14px;
}

.footer-brand {
  margin-bottom: 14px;
  color: #ffffff;
}

.footer p {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 22px;
}

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

@media (max-width: 1080px) {
  .expertise-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: 860px;
    padding-top: 124px;
    align-items: start;
  }

  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.94) 42%, rgba(255, 255, 255, 0.44) 76%, rgba(255, 255, 255, 0.12) 100%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.28));
  }

  .hero-content {
    margin-top: 12px;
  }

  .product-layout,
  .technology-layout,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .section-heading.compact {
    margin-bottom: 24px;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 66px;
    padding: 0 18px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 8px 18px 22px;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform 200ms ease;
  }

  .nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    min-height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  body.nav-open .nav {
    transform: translateY(0);
  }

  body.nav-open .nav-toggle span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  body.nav-open .nav-toggle span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .hero {
    min-height: 820px;
    padding: 108px 20px 52px;
  }

  .hero-media img {
    object-position: 60% center;
  }

  h1 {
    font-size: clamp(48px, 15vw, 72px);
  }

  h2 {
    font-size: clamp(32px, 11vw, 46px);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .section {
    padding: 68px 20px;
  }

  .expertise-grid,
  .service-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .card-index {
    margin-bottom: 30px;
  }

  .contact-form {
    padding: 20px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    justify-content: flex-start;
  }
}
