@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --background: #0b1020;
  --surface: #121a30;
  --surface-light: #18223d;
  --text: #f7f9ff;
  --muted: #aab4cc;
  --accent: #64e6b7;
  --accent-dark: #27b988;
  --border: rgba(255, 255, 255, 0.10);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 15%, rgba(100, 230, 183, 0.12), transparent 26rem),
    var(--background);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
}

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

.topbar {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.logo span,
.hero h1 span {
  color: var(--accent);
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 180ms ease;
}

nav a:hover {
  color: var(--text);
}

main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 72px;
  padding: 80px 0 110px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(3rem, 7vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.subtitle {
  max-width: 620px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.primary-button,
.secondary-button {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-button {
  border: 0;
  background: var(--accent);
  color: #07130f;
}

.primary-button:hover {
  background: #83f2ca;
  transform: translateY(-2px);
}

.secondary-button {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.secondary-button:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.status {
  min-height: 24px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.status.success {
  color: var(--accent);
}

.code-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(145deg, var(--surface-light), var(--surface));
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.card-header {
  min-height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-header span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.card-header p {
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

pre {
  padding: 38px;
  overflow-x: auto;
  color: #d9e2f7;
  font-size: 1rem;
  line-height: 1.9;
}

.code-tag {
  color: var(--accent);
}

.about {
  padding: 110px 0;
  border-top: 1px solid var(--border);
}

.about h2,
.contact h2 {
  max-width: 700px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.cards {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cards article {
  min-height: 190px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.cards strong {
  color: var(--accent);
  font-size: 1.1rem;
}

.cards p,
.contact > p:not(.eyebrow) {
  margin-top: 14px;
  color: var(--muted);
}

.contact {
  margin: 50px 0 100px;
  padding: 72px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(100, 230, 183, 0.09), rgba(255, 255, 255, 0.025));
}

.contact > p:not(.eyebrow) {
  max-width: 680px;
  font-size: 1.02rem;
}

.link-button {
  margin-top: 28px;
}

footer {
  padding: 0 0 36px;
  color: var(--muted);
  text-align: center;
  font-size: 0.85rem;
}

@media (max-width: 820px) {
  nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 50px;
    padding-top: 55px;
  }

  .code-card {
    transform: none;
  }

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

  .contact {
    padding: 46px 28px;
  }
}

@media (max-width: 480px) {
  .topbar,
  main,
  footer {
    width: min(100% - 28px, 1120px);
  }

  .hero h1 {
    font-size: 3.15rem;
  }

  .actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  pre {
    padding: 26px 22px;
    font-size: 0.88rem;
  }
}
