:root {
  --bg: #09080d;
  --accent: #d94e07;
  --text: #ececec;
  --muted: #949494;
  --panel: #15131f;
  --max-width: 1760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 30px;
}

body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1120px;
  background-image: url("Hero BG.png");
  background-position: top left;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
  z-index: -1;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header,
.hero,
.section,
.contact-section,
.site-footer {
  width: min(var(--max-width), calc(100% - 144px));
  margin-inline: auto;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 42px;
  padding-block: 62px 36px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: clamp(172px, 12vw, 262px);
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--text);
  font-size: clamp(1rem, 1vw, 1.38rem);
}

.desktop-nav a,
.footer-column a,
.text-link,
.info-card a {
  transition: color 180ms ease, opacity 180ms ease;
}

.desktop-nav a:hover,
.footer-column a:hover,
.text-link:hover,
.info-card a:hover {
  color: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 60px;
  padding: 0 32px;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  color: var(--text);
  cursor: pointer;
  font-size: clamp(1rem, 1.18vw, 1.55rem);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.button span,
.info-card a span {
  font-size: 1.25em;
  line-height: 0;
}

.button-small {
  min-height: 72px;
  padding-inline: 32px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(400px, 0.94fr);
  align-items: center;
  gap: 24px;
  min-height: 885px;
  padding-block: 34px 118px;
}

.hero-copy {
  padding-top: 0px;
}

h1,
h2 {
  margin: 0;
  font-family: "Bitcount Prop Single", monospace;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text);
}

h1 {
  max-width: 980px;
  font-size: 64px;
  line-height: 1.28;
}

h1 span {
  display: block;
}

h2 {
  font-size: clamp(3.6rem, 4.45vw, 6.15rem);
  line-height: 1.3;
}

.hero-copy > p {
  max-width: 790px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 24px;
  line-height: 40px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin-top: 24px;
}

.text-link {
  margin-left: 0cap;
  border-bottom: 2px solid currentColor;
  color: var(--text);
  font-size: clamp(1rem, 1.15vw, 1.45rem);
  line-height: 1.2;
}

.response-note {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1rem, 1.05vw, 1.4rem);
}

.response-note span {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #0aa83b;
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.hero-visual img {
  display: block;
  width: min(100%, 860px);
  margin-left: auto;
  transform: translateY(62px);
}

.section {
  padding-block: 72px 50px;
}

.section + .section {
  padding-top: 152px;
}

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

.work-grid .info-card:nth-child(4),
.work-grid .info-card:nth-child(5) {
  grid-column: span 1;
}

.info-card {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  align-items: flex-start;
  padding: 44px 38px 42px;
  border: 2px solid var(--muted);
  background: transparent;
}

.info-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 600;
  line-height: 40px;
}

.info-card p {
  margin: 36px 0 34px;
  color: var(--muted);
  font-size: 16px;
  line-height: 30px;
}

.info-card a {
  display: inline-flex;
  align-items: center;
  gap: 0px;
  margin-top: auto;
  color: var(--accent);
  font-size: clamp(1.06rem, 1.15vw, 1.45rem);
  font-weight: 500;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1fr);
  gap: 92px;
  padding-block: 195px 140px;
}

.contact-copy p {
  max-width: 810px;
  margin: 58px 0 0;
  color: var(--muted);
  font-size: clamp(1.45rem, 1.8vw, 2.45rem);
  line-height: 1.75;
}

.contact-form {
  display: grid;
  gap: 34px;
  align-self: start;
  padding: 48px 38px 58px;
  background: var(--panel);
}

.contact-form label {
  display: grid;
  gap: 18px;
}

.contact-form span {
  color: var(--text);
  font-size: clamp(1rem, 1.08vw, 1.35rem);
  font-weight: 600;
}

.contact-form em {
  color: var(--accent);
  font-style: normal;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-bottom: 2px solid var(--muted);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: clamp(1rem, 1.05vw, 1.32rem);
}

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

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.submit-button {
  width: 100%;
  min-height: 78px;
  margin-top: 6px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 124px;
  align-items: start;
  padding-block: 80px 110px;
}

.footer-logo img {
  width: clamp(172px, 12vw, 260px);
  height: auto;
}

.footer-column {
  display: grid;
  gap: 22px;
  min-width: 250px;
}

.footer-column h2 {
  margin: 0 0 2px;
  color: var(--muted);
  font-family: "Poppins", Arial, sans-serif;
  font-size: clamp(1.25rem, 1.5vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
}

.footer-column a {
  color: var(--text);
  font-size: clamp(1rem, 1.1vw, 1.45rem);
  font-weight: 600;
}

.copyright {
  grid-column: 1 / -1;
  justify-self: center;
  margin: 116px 0 0;
  color: var(--text);
  font-size: clamp(1rem, 1.1vw, 1.45rem);
  font-weight: 600;
}

@media (max-width: 1180px) {
  .site-header,
  .hero,
  .section,
  .contact-section,
  .site-footer {
    width: min(100% - 64px, var(--max-width));
  }

  .site-header {
    gap: 26px;
  }

  .desktop-nav {
    gap: 24px;
  }

  .button-small {
    padding-inline: 32px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 80px;
  }

  h1 {
    font-size: clamp(3.2rem, 8.6vw, 4.5rem);
  }

  .hero-copy {
    max-width: 840px;
    padding-top: 54px;
  }

  .hero-visual img {
    width: min(100%, 760px);
    margin-inline: auto;
    transform: none;
  }

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

  .contact-section {
    grid-template-columns: 1fr;
    gap: 58px;
  }
}

@media (max-width: 820px) {
  body::before {
    height: 820px;
    background-position: top left 20%;
  }

  .site-header,
  .hero,
  .section,
  .contact-section,
  .site-footer {
    width: min(100% - 36px, var(--max-width));
  }

  .site-header {
    grid-template-columns: 1fr auto;
    padding-block: 30px 24px;
  }

  .desktop-nav {
    display: none;
  }

  .brand img {
    width: 150px;
  }

  .button {
    min-height: 58px;
    padding-inline: 28px;
    gap: 10px;
  }

  .button-small {
    min-height: 50px;
    padding-inline: 18px;
    font-size: 0.9rem;
  }

  .hero {
    gap: 44px;
    padding-block: 16px 72px;
  }

  .hero-copy {
    padding-top: 26px;
    text-align: center;
  }

  .hero-copy > p {
    margin-inline: auto;
  }

  h1 {
    font-size: clamp(3.1rem, 13.5vw, 5rem);
    line-height: 1.18;
  }

  h2 {
    font-size: clamp(3rem, 12vw, 4.4rem);
    line-height: 1.18;
  }

  .hero-copy > p,
  .contact-copy p {
    margin-top: 34px;
    font-size: 1.18rem;
    line-height: 1.65;
  }

  .hero-actions {
    align-items: center;
    margin-top: 34px;
  }

  .text-link {
    margin-left: 0;
  }

  .response-note {
    justify-content: center;
    margin-top: 34px;
  }

  .hero-visual img {
    width: min(100%, 620px);
    margin-inline: auto;
  }

  .section {
    padding-block: 54px 34px;
  }

  .section + .section {
    padding-top: 94px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 48px;
  }

  .info-card {
    min-height: 0;
    padding: 30px 24px;
  }

  .info-card p {
    margin-block: 24px 28px;
  }

  .contact-section {
    padding-block: 106px 72px;
  }

  .contact-form {
    gap: 28px;
    padding: 34px 22px 36px;
  }

  .contact-form input,
  .contact-form textarea {
    min-height: 50px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 46px;
    padding-block: 52px 62px;
  }

  .footer-logo img {
    width: 154px;
  }

  .footer-column {
    min-width: 0;
  }

  .copyright {
    justify-self: start;
    margin-top: 32px;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 14px;
  }

  .brand img {
    width: 120px;
  }

  .button-small {
    display: none;
  }

  h1 {
    max-width: 100%;
    font-size: 2.02rem;
    line-height: 1.28;
  }

  h1 span:first-child {
    max-width: 10ch;
  }

  h2 {
    font-size: 2.56rem;
  }

  .hero-copy > p,
  .contact-copy p {
    font-size: 1.02rem;
  }

  .hero-visual img {
    width: 108%;
    margin-left: -4%;
  }

  .info-card h3 {
    font-size: 1.38rem;
  }
}
