:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --surface: #161616;
  --surface-2: #1e1e1e;
  --border: #2a2a2a;
  --text: #f5f5f5;
  --muted: #8a8a8a;
  --accent: #ffffff;
  --accent-hover: #d4d4d4;
  --success: #b0b0b0;
  --error: #e0e0e0;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(18px) brightness(0.35) saturate(0.6);
  transform: scale(1.1);
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.75) 100%);
  z-index: 1;
}

.container {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero {
  text-align: center;
  width: 100%;
}

.brand {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 0 .6rem;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,.6);
}

.tagline {
  margin: 0 auto;
  margin-bottom: 20px;
  max-width: 460px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

.tagline:last-child {
  margin-bottom: 0;
}

.gallery {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  justify-content: center;
}

.gallery-img {
  width: calc(33.333% - 0.5rem);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,.5);
  background: var(--surface);
}

.card {
  width: 100%;
  background: rgba(22,22,22,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.55);
}

.card h2 {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}

label {
  display: block;
  margin: 1rem 0 .35rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

input[type="text"],
input[type="url"] {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}

input[type="text"]:focus,
input[type="url"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,255,255,.08);
}

button[type="submit"] {
  margin-top: 1.5rem;
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #000;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background .15s, color .15s, border-color .15s;
}

button[type="submit"]:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.err {
  display: none;
  color: var(--error);
  margin-top: 1rem;
  font-size: 0.85rem;
  min-height: 1.2rem;
}

.result {
  display: none;
  margin-top: 1rem;
}

.result label {
  margin-bottom: 0.4rem;
}

.result-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.result-row input {
  flex: 1;
}

#copy {
  width: auto;
  margin: 0;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

#copy:hover {
  background: #2a2a2a;
  border-color: var(--accent);
}

@media (max-width: 520px) {
  .brand { font-size: 2rem; }
  .card { padding: 1.5rem; }
  .result-row { flex-direction: column; }
}
