:root {
  --bg: #0b0c10;
  --fg: #eaf0f6;
  --accent: #63ffe2;
  --maxw: 72rem;
}

html,
body {
  height: 100%;
  background-color: #0b0c10;
}

body {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: -0.015em;
  background: radial-gradient(1200px 800px at 10% 10%, #12141a 0%, #0b0c10 100%);
  color: var(--fg);
  display: grid;
  place-items: center;
  text-align: center;
}

.wrap {
  max-width: var(--maxw);
  padding: 6rem 1.25rem;
}

h1 {
  margin: 0 0 .25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  word-spacing: 0;
  line-height: 1.1;
  font-size: clamp(2rem, 5vw + 1rem, 4.25rem);
}

p {
  margin: 1.25rem 0 0;
  opacity: 0.8;
  font-size: clamp(1rem, 0.8rem + 0.8vw, 1.25rem);
}

/* Druga linia (animowana) */
.typewriter {
  display: inline-flex;
  align-items: baseline;
  gap: .25ch;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-size: clamp(2rem, 5vw + 1rem, 4.25rem);
  margin-top: .1rem;
}

.line {
  display: inline-block;
  white-space: nowrap;
  line-height: 1.1;
}

.cursor {
  width: 0.25ch;
  height: 1.05em;
  transform: translateY(0.25em);
  background: var(--accent);
  border-radius: 1px;
  animation: blink .9s steps(1, end) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.no-js .line::after {
  content: "open sourcerer";
  border-right: .25ch solid var(--accent);
  animation: typeSteps 3s steps(15) 1 0.4s both, blink 0.9s steps(1, end) infinite 3.6s;
  padding-right: .2ch;
}

@keyframes typeSteps {
  from {
    width: 0;
  }

  to {
    width: 15ch;
  }
}

/* Sekcja treści pod animacją */
.content {
  max-width: 42rem;
  margin: 3rem auto 0;
  text-align: center;
  line-height: 1.6;
  color: #c7d0dd;
}

.content p+p {
  margin-top: 1rem;
}

@media (max-width: 720px) {
  .buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    /* było 1rem – trochę ciaśniej wygląda lepiej */
  }

  .btn {
    width: 60%;
    /* wszystkie przyciski mają tę samą szerokość */
    max-width: 18rem;
    text-align: center;
    justify-content: center;
  }
}

.buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 4rem;
}

.btn {
  font-family: "IBM Plex Mono", monospace;
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  line-height: 1;
}

@media (min-width: 720px) {
  .btn {
    flex: 1 1 10rem;
    max-width: 12rem;
    text-align: center;
    justify-content: center;
  }
}

.btn .icon {
  width: 1.15em;
  /* ~wys. wielkich liter */
  height: 1.15em;
  flex: 0 0 1.15em;
  /* stała szerokość – nie „pływa” */
  display: inline-flex;
  /* centrum dla każdego SVG */
  align-items: center;
  justify-content: center;
}

.btn .icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.btn.primary {
  background: var(--accent);
  color: #0b0c10;
}

.btn.primary:hover {
  background: #7fffe9;
}

.btn.outline {
  border: 1.5px solid var(--accent);
  color: var(--accent);
}

.btn.outline:hover {
  background: rgba(99, 255, 226, 0.1);
}

@media (max-width: 720px) {
  h1 {
    margin: 0;
    line-height: 1.05;
  }

  .typewriter {
    margin-top: 0;
    transform: translateY(-0.15em);
  }
}