* {
  box-sizing: border-box;
}

:root {
  --bg: #07111f;
  --surface: rgba(255, 255, 255, 0.065);
  --text: #f8fafc;
  --muted: #a8b3c7;
  --primary: #22c55e;
  --accent: #38bdf8;
  --border: rgba(255, 255, 255, 0.12);
  --radius: 28px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.22), transparent 34%),
    radial-gradient(circle at 82% 10%, rgba(56, 189, 248, 0.18), transparent 30%),
    linear-gradient(180deg, var(--bg), #0f172a);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 17, 31, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav {
  width: min(1160px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-weight: 800;
}

.nav-links a {
  text-decoration: none;
}

.hero,
.creator,
.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 88px 0 54px;
}

.tag {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: -0.08em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.lead {
  max-width: 800px;
  color: var(--muted);
  font-size: 1.16rem;
}

.creator {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.form,
.result,
.section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form,
.result,
.section {
  padding: 34px;
}

.form {
  display: grid;
  gap: 18px;
}

.form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
}

.form input {
  min-height: 52px;
  width: 100%;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
  font: inherit;
  font-weight: 800;
}

.form input::placeholder {
  color: rgba(168, 179, 199, 0.72);
}

.form button,
.result button {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #052e16;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

pre {
  overflow-x: auto;
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.28);
  color: #d1fae5;
  white-space: pre-wrap;
  word-break: break-word;
}

.help {
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.section {
  margin-bottom: 40px;
}

@media (max-width: 850px) {
  .creator {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    min-height: auto;
    padding: 18px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .creator,
  .section {
    width: min(100% - 24px, 1160px);
  }

  .hero {
    padding: 54px 0 36px;
  }

  h1 {
    font-size: clamp(2.35rem, 14vw, 4.3rem);
  }

  .form,
  .result,
  .section {
    padding: 24px;
  }
}
