:root {
  --bg: #19152c;
  --bg2: #31215d;
  --php: #777bb4;
  --php-dark: #4f528f;
  --green: #b9ff63;
  --cream: #f7f0d8;
  --ink: #171420;
  --shadow: rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  font-family: "Lucida Console", "Courier New", monospace;
  color: var(--cream);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 74% 12%, rgba(185, 255, 99, 0.22), transparent 22%),
    radial-gradient(circle at 20% 86%, rgba(119, 123, 180, 0.42), transparent 32%),
    linear-gradient(135deg, var(--bg), var(--bg2));
  background-size: 18px 18px, 18px 18px, auto, auto, auto;
}

.screen {
  position: relative;
  min-height: 100vh;
  padding: 22px clamp(16px, 4vw, 58px) 32px;
  overflow: hidden;
}

.screen::before {
  content: "PHP PHP PHP PHP PHP PHP PHP PHP PHP PHP";
  position: absolute;
  top: 10vh;
  left: -8vw;
  z-index: -1;
  width: 140vw;
  color: rgba(255, 255, 255, 0.045);
  font-size: clamp(70px, 14vw, 190px);
  font-weight: 900;
  line-height: 0.85;
  transform: rotate(-10deg);
}

.nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: clamp(28px, 7vh, 72px);
}

.btn,
.run-btn,
.soft-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 9px 12px;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  background: var(--cream);
  border: 2px solid #fff;
  border-right-color: #6c6680;
  border-bottom-color: #6c6680;
  box-shadow: 4px 4px 0 var(--shadow);
  cursor: pointer;
  font: 700 12px/1 "Lucida Console", "Courier New", monospace;
}

.btn:active,
.run-btn:active,
.soft-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--shadow);
}

.contract {
  max-width: min(440px, 55vw);
}

.contract strong {
  overflow: hidden;
  max-width: 285px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.x-link {
  color: #fff;
  background: #050505;
  border-color: #777;
  border-right-color: #000;
  border-bottom-color: #000;
}

.x {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #000;
  background: #fff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(310px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

.visual-card {
  position: relative;
  padding: 10px;
  background: #ece9d8;
  border: 3px solid #d7d2ff;
  box-shadow: 14px 14px 0 rgba(0, 0, 0, 0.34);
}

.visual-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid #120f1d;
}

.mini-terminal {
  width: min(620px, 100%);
  margin-top: 24px;
  color: #e9e5ff;
  background: #120f1d;
  border: 3px solid #d7d2ff;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.26);
}

.bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  color: #fff;
  background: linear-gradient(180deg, var(--php), var(--php-dark));
  border-bottom: 3px solid #d7d2ff;
}

.bar strong {
  margin-left: 6px;
  font-size: 13px;
}

.dot {
  width: 11px;
  height: 11px;
  background: var(--green);
  border: 2px solid #151515;
}

pre {
  margin: 0;
  padding: clamp(14px, 2vw, 22px);
  overflow-x: auto;
  font-size: clamp(13px, 1.55vw, 18px);
  line-height: 1.62;
  text-shadow: 0 0 12px rgba(185, 255, 99, 0.18);
}

code {
  color: #d8d5ff;
}

.copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: clamp(13px, 1.6vw, 17px);
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 110px);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 6px 6px 0 rgba(0, 0, 0, 0.28);
}

h1 span {
  display: block;
  color: #fff;
  font-size: 1.28em;
}

.lede {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: clamp(15px, 1.8vw, 20px);
  line-height: 1.48;
}

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

.run-btn {
  color: #14200a;
  background: var(--green);
}

.soft-btn {
  color: #f4f1ff;
  background: var(--php-dark);
  border-color: #c9c5ff;
  border-right-color: #211d3d;
  border-bottom-color: #211d3d;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(36px, 8vh, 88px);
}

.cards article {
  min-height: 150px;
  padding: 18px;
  color: var(--ink);
  background: rgba(247, 240, 216, 0.92);
  border: 2px solid #fff;
  border-right-color: #776f92;
  border-bottom-color: #776f92;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.22);
}

.cards h2 {
  margin: 0 0 12px;
  color: var(--php-dark);
  font-size: 22px;
  text-transform: uppercase;
}

.cards p {
  margin: 0;
  line-height: 1.42;
}

.status {
  margin-top: 28px;
  color: rgba(247, 240, 216, 0.72);
  font-size: 13px;
}

.alert {
  position: fixed;
  z-index: 10;
  width: min(360px, calc(100vw - 24px));
  color: var(--ink);
  background: #ece9d8;
  border: 2px solid #fff;
  border-right-color: #706b5f;
  border-bottom-color: #706b5f;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.32);
  transform: translate(-50%, -50%);
  animation: pop 180ms steps(2, end);
}

.alert-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  padding: 0 5px 0 9px;
  color: #fff;
  font-size: 12px;
  background: linear-gradient(180deg, var(--php), var(--php-dark));
}

.alert-title button {
  width: 20px;
  height: 20px;
  padding: 0;
  color: #fff;
  background: #c23b22;
  border: 1px solid #fff;
  font: 700 15px/15px Arial, sans-serif;
}

.alert p {
  margin: 0;
  padding: 18px;
  line-height: 1.42;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
  }
}

@media (max-width: 840px) {
  .nav {
    justify-content: flex-start;
  }

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

  .visual-card {
    order: 2;
  }

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

@media (max-width: 560px) {
  .screen {
    padding-inline: 14px;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: space-between;
  }

  .contract {
    max-width: none;
  }

  .contract strong {
    max-width: 190px;
  }
}
