:root {
  color-scheme: dark;
  --background: #10131a;
  --panel: #181d27;
  --panel-strong: #202838;
  --text: #f7f8fb;
  --muted: #a5adbd;
  --line: #30384a;
  --accent: #70e1b2;
  --accent-dark: #1b7f62;
  --danger: #ff8f8f;
  --danger-soft: #3a281b;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(112, 225, 178, 0.18), transparent 34rem),
    linear-gradient(135deg, #10131a 0%, #151925 58%, #0d1118 100%);
  color: var(--text);
}

.shell {
  width: min(1100px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 48px 0;
}

.two-column {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 48px;
}

.hero h1,
.card h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.card h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
}

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

.description {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.notice {
  display: inline-flex;
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid #6b512f;
  border-radius: 16px;
  background: var(--danger-soft);
  color: #ffd9a6;
  font-weight: 700;
}

.card {
  width: 100%;
  padding: clamp(22px, 5vw, 36px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(24, 29, 39, 0.86);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

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

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

.checkbox-label {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #111721;
}

.checkbox-label input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.checkbox-label span {
  display: grid;
  gap: 4px;
  color: var(--text);
}

.checkbox-label small {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.4;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #111721;
  color: var(--text);
  font: inherit;
  padding: 14px 16px;
  outline: none;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(112, 225, 178, 0.12);
}

.button,
.copy-button,
.secondary-button,
.danger-button {
  border: 0;
  border-radius: 16px;
  background: var(--accent);
  color: #07140f;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 0 18px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
}

.button:hover,
.copy-button:hover,
.secondary-button:hover {
  background: #8df1c9;
}

.button:disabled,
.copy-button:disabled,
.secondary-button:disabled,
.danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.secondary-button {
  width: fit-content;
  min-height: 42px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-dark);
}

.secondary-button:hover {
  background: rgba(112, 225, 178, 0.1);
}

.danger-button {
  min-height: 42px;
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(255, 143, 143, 0.45);
}

.danger-button:hover {
  background: rgba(255, 143, 143, 0.1);
}

.result {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

.result-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.secondary-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.secondary-link:hover {
  text-decoration: underline;
}

.message {
  min-height: 24px;
  color: var(--muted);
}

.preview-card {
  max-width: 720px;
}

.preview-image {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 22px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
}

.destination-box {
  display: grid;
  gap: 8px;
  margin: 24px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-strong);
}

.destination-box span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.destination-box code {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.redirect-notice {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid #6b512f;
  border-radius: 18px;
  background: var(--danger-soft);
  color: #ffd9a6;
}

.redirect-notice span {
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.redirect-notice p {
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .two-column {
    grid-template-columns: 1fr;
    gap: 28px;
    place-items: stretch;
  }

  .shell {
    padding: 28px 0;
  }

  .result-row {
    grid-template-columns: 1fr;
  }
}
