* {
  box-sizing: border-box;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

:root {
  --bg: #0b0c10;
  --card: #13151a;
  --border: #22252d;
  --text: #ffffff;
  --muted: #94a3b8;
  --accent: #ef4444;
  --accent-hover: #dc2626;
  --input-bg: #1e222b;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 600px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
}

h1 {
  font-size: 36px;
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

p {
  color: var(--muted);
  margin: 0 0 30px;
  font-size: 16px;
  line-height: 1.6;
}

.form-group {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
}

input {
  flex: 1;
  padding: 14px 16px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

input::placeholder {
  color: #64748b;
}

input:focus {
  border-color: var(--accent);
}

button {
  padding: 14px 24px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

button:hover {
  background: var(--accent-hover);
}

button:active {
  transform: scale(0.98);
}

section {
  margin-top: 20px;
  padding: 20px;
  border-radius: 12px;
  background: #181b22;
  border: 1px solid var(--border);
  text-align: left;
}

h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

section p {
  margin: 0;
}

#result {
  display: none;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.result-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.result-box {
  background: var(--input-bg);
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: 10px;
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  word-break: break-all;
}

a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .container {
    padding: 24px 16px;
  }

  .form-group {
    flex-direction: column;
  }

  input, button {
    width: 100%;
  }
  
  section {
    text-align: center;
  }
}