:root {
  --navy: #062a60;
  --midnight: #041a3b;
  --blue: #0b66d8;
  --cyan: #09c8f3;
  --sky: #e9f7ff;
  --ink: #0d1b2a;
  --muted: #607086;
  --line: #dbe9f5;
  --white: #ffffff;
  --glow: 0 24px 70px rgba(6, 42, 96, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: #f7fbff;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(219, 233, 245, 0.8);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand img {
  width: 182px;
  height: 62px;
  object-fit: contain;
  object-position: left center;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(11, 102, 216, 0.18);
  border-radius: 999px;
  color: var(--navy);
  background: var(--white);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle strong {
  font-size: 0.88rem;
}

.site-header.is-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: #24405f;
  font-size: 0.95rem;
  font-weight: 700;
}

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

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

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
}

.header-cta,
.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--blue) 62%, var(--cyan));
  box-shadow: 0 14px 35px rgba(11, 102, 216, 0.22);
}

.button.secondary {
  color: var(--navy);
  border: 1px solid rgba(11, 102, 216, 0.22);
  background: rgba(255, 255, 255, 0.74);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 91px);
  overflow: hidden;
  background: var(--midnight);
}

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

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

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(4, 26, 59, 0.9) 0%, rgba(4, 26, 59, 0.64) 43%, rgba(4, 26, 59, 0.08) 100%),
    linear-gradient(180deg, rgba(4, 26, 59, 0.18), rgba(4, 26, 59, 0.56));
}

.hero-content {
  position: relative;
  z-index: 2;
  align-self: center;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 104px);
  padding: 80px 0 150px;
  color: var(--white);
}

.eyebrow,
.section-label {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.portfolio-hero h1 {
  margin: 0;
  max-width: 940px;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy,
.portfolio-hero p {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.02rem, 2vw, 1.28rem);
  line-height: 1.7;
}

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

.hero-stats {
  position: absolute;
  z-index: 3;
  right: clamp(18px, 5vw, 70px);
  bottom: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 1px;
  overflow: hidden;
  width: min(560px, calc(100% - 36px));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
}

.hero-stats div {
  padding: 24px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 700;
}

.intro-section,
.services-section,
.products-section,
.proof-section,
.work-list {
  padding: clamp(70px, 9vw, 128px) clamp(18px, 5vw, 76px);
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(140px, 0.42fr) 1fr;
  gap: clamp(28px, 7vw, 120px);
  background: var(--white);
}

.intro-section h2,
.section-heading h2,
.proof-section h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.intro-section p,
.proof-list,
.work-copy p {
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.75;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 38px;
}

.section-heading h2 {
  max-width: 850px;
}

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

.service-card {
  min-height: 280px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--white);
}

.service-card span {
  color: var(--cyan);
  font-weight: 900;
}

.service-card h3 {
  margin: 74px 0 14px;
  color: var(--navy);
  font-size: 1.45rem;
}

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

.products-section {
  background:
    radial-gradient(circle at 18% 14%, rgba(9, 200, 243, 0.18), transparent 28%),
    linear-gradient(135deg, var(--midnight), var(--navy));
}

.products-section .section-heading h2 {
  color: var(--white);
}

.product-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.product-showcase article {
  display: grid;
  grid-template-rows: 210px auto;
  min-height: 430px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--glow);
}

.product-showcase img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.product-showcase p,
.work-copy span,
.mini-work-grid span {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-showcase h3 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 2rem;
}

.product-showcase span {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
}

.product-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 22px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: var(--white);
  font-weight: 900;
}

.product-showcase div {
  padding: 24px 8px 8px;
}

.proof-section {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: clamp(36px, 8vw, 110px);
  background: var(--white);
}

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

.proof-list li {
  padding: 20px 0 20px 34px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(var(--cyan), var(--cyan)) 0 28px / 12px 12px no-repeat;
}

.testimonials-section,
.team-section {
  padding: clamp(70px, 9vw, 128px) clamp(18px, 5vw, 76px);
}

.testimonials-section {
  background: #f7fbff;
}

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

.testimonial-card {
  display: grid;
  gap: 24px;
  min-height: 360px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(6, 42, 96, 0.08);
}

.testimonial-photo,
.team-photo {
  overflow: hidden;
  border-radius: 8px;
  object-fit: cover;
  background: #eaf8ff;
}

.testimonial-photo {
  width: 92px;
  height: 92px;
  border-radius: 999px;
}

.testimonial-card blockquote {
  margin: 0;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.65;
}

.testimonial-card strong,
.team-card h3 {
  display: block;
  color: var(--navy);
}

.testimonial-card span,
.team-card span,
.team-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.team-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 0.62fr);
  gap: clamp(30px, 7vw, 96px);
  align-items: center;
  background:
    radial-gradient(circle at 82% 18%, rgba(9, 200, 243, 0.18), transparent 28%),
    linear-gradient(135deg, var(--midnight), var(--navy));
}

.about-team {
  background:
    radial-gradient(circle at 16% 18%, rgba(9, 200, 243, 0.16), transparent 28%),
    linear-gradient(135deg, #ffffff, #eaf8ff);
}

.team-copy h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.team-copy p {
  max-width: 680px;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.about-team .team-copy h2 {
  color: var(--navy);
}

.team-card {
  display: grid;
  gap: 22px;
  max-width: 460px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--glow);
}

.team-photo {
  width: 100%;
  height: clamp(260px, 32vw, 380px);
  object-position: center top;
}

.team-card div:last-child {
  padding: 8px 8px 12px;
}

.team-card p {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-card h3 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.team-name {
  display: block;
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 900;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  padding: 52px clamp(18px, 5vw, 76px);
  color: var(--white);
  background: var(--midnight);
}

.footer img {
  width: 210px;
  height: 76px;
  object-fit: contain;
  object-position: left center;
  padding: 8px;
  border-radius: 8px;
  background: var(--white);
}

.footer p {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.72);
}

.footer address {
  display: grid;
  gap: 8px;
  font-style: normal;
}

.footer a,
.footer span {
  color: rgba(255, 255, 255, 0.72);
}

.portfolio-page {
  background: var(--white);
}

.portfolio-header {
  background: rgba(255, 255, 255, 0.94);
}

.portfolio-hero {
  min-height: 72vh;
  padding: clamp(90px, 13vw, 180px) clamp(18px, 6vw, 90px) 80px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(4, 26, 59, 0.95), rgba(6, 42, 96, 0.78)),
    url("images/banner.png") center / cover;
}

.portfolio-hero h1 {
  max-width: 1120px;
}

.work-list {
  display: grid;
  gap: clamp(44px, 7vw, 96px);
  background: #f7fbff;
}

.work-item {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}

.work-item.reverse {
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
}

.work-item.reverse .work-visual {
  order: 2;
}

.work-visual {
  display: grid;
  place-items: center;
  min-height: clamp(380px, 47vw, 620px);
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(9, 200, 243, 0.18), rgba(11, 102, 216, 0.08)),
    var(--white);
  box-shadow: var(--glow);
}

.featured .work-visual {
  background:
    radial-gradient(circle at 20% 24%, rgba(9, 200, 243, 0.24), transparent 32%),
    linear-gradient(135deg, #ffffff, #dff6ff);
}

.work-visual img {
  width: min(58%, 520px);
  max-height: 74%;
  object-fit: contain;
}

.compact-grid .work-visual img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.work-copy h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.25rem, 6vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.work-copy p {
  margin: 24px 0 28px;
}

.work-copy a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(11, 102, 216, 0.24);
  border-radius: 999px;
  color: var(--blue);
  font-weight: 900;
}

.mini-work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.mini-work-grid article {
  min-height: 280px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.mini-work-grid img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  padding: 18px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #f2f8ff;
}

.mini-work-grid h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.35rem;
}

.about-page {
  background: #f7fbff;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: clamp(32px, 7vw, 90px);
  align-items: center;
  min-height: 72vh;
  padding: clamp(80px, 11vw, 150px) clamp(18px, 6vw, 90px);
  background:
    linear-gradient(120deg, rgba(4, 26, 59, 0.96), rgba(6, 42, 96, 0.86)),
    url("images/banner.png") center / cover;
  color: var(--white);
}

.about-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.about-hero p:not(.eyebrow) {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.75;
}

.about-hero img {
  width: 100%;
  max-height: 330px;
  object-fit: contain;
  padding: 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
}

.about-story,
.contact-section,
.demo-section {
  padding: clamp(70px, 9vw, 128px) clamp(18px, 5vw, 76px);
}

.about-story {
  display: grid;
  grid-template-columns: minmax(140px, 0.42fr) 1fr;
  gap: clamp(28px, 7vw, 120px);
  background: var(--white);
}

.about-story h2,
.contact-panel h2,
.demo-copy h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.about-story p,
.contact-panel p,
.demo-copy p {
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.75;
}

.contact-section,
.demo-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1fr);
  gap: clamp(30px, 6vw, 82px);
  align-items: start;
}

.contact-section {
  background: #f7fbff;
}

.demo-section {
  background:
    radial-gradient(circle at 82% 16%, rgba(9, 200, 243, 0.18), transparent 26%),
    linear-gradient(135deg, #ffffff, #eaf8ff);
}

.contact-panel,
.demo-copy {
  position: sticky;
  top: 126px;
}

.contact-details {
  display: grid;
  gap: 12px;
  margin-top: 30px;
  color: var(--navy);
  font-weight: 800;
}

.lead-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--glow);
}

.demo-form {
  border-color: rgba(9, 200, 243, 0.35);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lead-form label {
  display: grid;
  gap: 9px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 900;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #cddfed;
  border-radius: 8px;
  color: var(--ink);
  background: #fbfdff;
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.lead-form textarea {
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(11, 102, 216, 0.12);
}

.bot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 800;
}

.form-status.is-error {
  color: #b42318;
}

.security-check {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #cddfed;
  border-radius: 8px;
  background: #fbfdff;
}

.security-check p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.5;
}

.form-button {
  width: fit-content;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.response-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background:
    linear-gradient(120deg, rgba(4, 26, 59, 0.94), rgba(6, 42, 96, 0.78)),
    url("images/banner.png") center / cover;
}

.response-page section {
  width: min(620px, 100%);
  padding: clamp(28px, 5vw, 46px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--glow);
}

.response-page h1 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1;
}

.response-page p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .menu-toggle {
    display: inline-grid;
    grid-template-columns: 18px auto;
    justify-self: end;
  }

  .menu-toggle span {
    grid-column: 1;
  }

  .menu-toggle strong {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: center;
  }

  .nav-links {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 10px 0;
    border-top: 1px solid var(--line);
  }

  .site-header.is-open .nav-links {
    display: flex;
  }

  .nav-links a {
    min-height: 46px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(219, 233, 245, 0.78);
  }

  .header-cta {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
  }

  .site-header.is-open .header-cta {
    display: inline-flex;
  }

  .hero {
    min-height: 820px;
  }

  .hero-content {
    padding-bottom: 250px;
  }

  .hero-stats,
  .intro-section,
  .proof-section,
  .team-section,
  .work-item,
  .work-item.reverse,
  .about-hero,
  .about-story,
  .contact-section,
  .demo-section {
    grid-template-columns: 1fr;
  }

  .work-item.reverse .work-visual {
    order: 0;
  }

  .contact-panel,
  .demo-copy {
    position: static;
  }

  .service-grid,
  .product-showcase,
  .mini-work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand img {
    width: 112px;
    height: 48px;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: 860px;
  }

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

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 16px;
    padding-top: 58px;
  }

  .hero h1,
  .portfolio-hero h1 {
    font-size: clamp(2.65rem, 14vw, 4.1rem);
  }

  .hero-stats {
    right: 16px;
    bottom: 18px;
  }

  .hero-stats div {
    padding: 18px;
  }

  .section-heading {
    display: block;
  }

  .service-grid,
  .product-showcase,
  .mini-work-grid,
  .testimonial-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 230px;
  }

  .service-card h3 {
    margin-top: 46px;
  }

  .work-visual {
    min-height: 330px;
  }

  .footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .site-header .menu-toggle {
    display: inline-grid;
  }

  .site-header .nav-links,
  .site-header .header-cta {
    display: none;
  }

  .site-header.is-open .nav-links {
    display: flex;
  }

  .site-header.is-open .header-cta {
    display: inline-flex;
  }
}
