:root {
  --graphite: #232323;
  --metal: #d7dde5;
  --yellow: #f8c630;
  --white: #ffffff;
  --soft: #f4f5f7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--graphite);
  font-family: "Trebuchet MS", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.brand {
  font-weight: 900;
  letter-spacing: 0.08em;
}

nav {
  display: flex;
  gap: 22px;
  font-weight: 800;
}

.hero {
  min-height: 84vh;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 44px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}

.hero-device {
  min-height: 520px;
  border-radius: 44px;
  background: linear-gradient(145deg, #1d1d1d, #545960);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.08), 0 36px 90px rgba(0, 0, 0, 0.18);
}

.screen {
  width: 74%;
  min-height: 320px;
  border-radius: 24px;
  padding: 32px;
  background: #0a0f17;
  display: grid;
  align-content: center;
  gap: 18px;
}

.dot {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--yellow);
}

.line {
  display: block;
  height: 18px;
  width: 70%;
  border-radius: 999px;
  background: var(--metal);
}

.line.wide {
  width: 92%;
}

.line.short {
  width: 48%;
}

.kicker {
  color: #7d6413;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3.2rem, 7vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: -0.07em;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

p {
  line-height: 1.75;
  color: #62666e;
}

.hero-copy p {
  max-width: 690px;
  font-size: 1.16rem;
}

.catalogue,
.lifecycle,
.security,
footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 74px 24px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-grid article {
  min-height: 310px;
  padding: 24px;
  border-radius: 30px;
  background: var(--white);
  border-bottom: 8px solid var(--yellow);
}

.product-grid span {
  color: #a4831c;
  font-weight: 900;
}

.lifecycle {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  background: var(--graphite);
  color: white;
  max-width: none;
  padding-left: max(24px, calc((100vw - 1200px) / 2));
  padding-right: max(24px, calc((100vw - 1200px) / 2));
}

.lifecycle p {
  color: rgba(255, 255, 255, 0.7);
}

.steps {
  display: grid;
  gap: 12px;
}

.step,
form button {
  border: 0;
  border-radius: 18px;
  padding: 16px;
  font: 900 1rem "Trebuchet MS", Arial, sans-serif;
  cursor: pointer;
}

.step {
  text-align: left;
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.step.active {
  background: var(--yellow);
  color: var(--graphite);
}

#detailBox {
  grid-column: 2;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.security-grid div {
  padding: 26px;
  border-radius: 28px;
  background: var(--white);
}

footer {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
}

footer a {
  color: #8b6d0d;
  font-weight: 900;
}

form {
  display: grid;
  gap: 14px;
}

input,
textarea {
  border: 1px solid #d2d6de;
  border-radius: 16px;
  padding: 16px;
  font: inherit;
}

textarea {
  min-height: 130px;
}

form button {
  background: var(--yellow);
}

form span {
  min-height: 24px;
  color: #7d6413;
}

@media (max-width: 860px) {
  .header,
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .lifecycle,
  .product-grid,
  .security-grid,
  footer {
    grid-template-columns: 1fr;
  }

  #detailBox {
    grid-column: auto;
  }
}
