:root {
  --surface: rgba(30, 30, 30, 0.92);
  --surface-alt: rgba(45, 45, 45, 0.9);
  --line: rgba(57, 255, 20, 0.14);
  --line-strong: rgba(57, 255, 20, 0.28);
  --text: #f5f5f5;
  --muted: #b0b0b0;
  --accent: #39ff14;
  --accent-soft: rgba(57, 255, 20, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --danger: #ff6b6b;
  --warning: #ffc857;
  --success: #6dff8d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(57, 255, 20, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(57, 255, 20, 0.08), transparent 24%),
    linear-gradient(180deg, #121212 0%, #171717 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero-card,
.card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  padding: 32px;
  margin-bottom: 24px;
}

.hero-copy h1,
.card-header h2 {
  margin: 0;
  line-height: 1.02;
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(2.3rem, 5vw, 4.7rem);
}

.back-link,
.quick-links a {
  color: var(--muted);
  text-decoration: none;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.back-link:hover,
.quick-links a:hover {
  color: var(--accent);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.eyebrow,
.panel-label,
.card-kicker,
.list-title {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-text,
.panel-list,
.card-header p,
.field span,
.field small,
.quick-links a,
.status-message {
  color: var(--muted);
}

.hero-text {
  max-width: 62ch;
  font-size: 1.06rem;
  line-height: 1.7;
  margin: 18px 0 0;
}

.hero-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(57, 255, 20, 0.08), rgba(57, 255, 20, 0.03)),
    var(--surface-alt);
}

.panel-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
  line-height: 1.5;
}

.app-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 28px;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -12% -34% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(57, 255, 20, 0.12), transparent 68%);
  pointer-events: none;
}

.card-header h2 { font-size: clamp(1.4rem, 3vw, 2rem); }

.card-header p {
  margin: 8px 0 0;
  line-height: 1.6;
}

form,
.settings-grid,
.result-panel {
  display: grid;
  gap: 16px;
}

.settings-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.95rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(57, 255, 20, 0.18);
  border-radius: 16px;
  background: rgba(18, 18, 18, 0.96);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(57, 255, 20, 0.12);
}

input[type="range"] {
  padding: 0;
  accent-color: var(--accent);
  background: transparent;
}

.option-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(57, 255, 20, 0.14);
  background: rgba(57, 255, 20, 0.04);
  color: var(--text);
  cursor: pointer;
}

.toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.actions,
.quick-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  border: 0;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.button:hover { transform: translateY(-1px); }

.button-primary {
  color: #0c0c0c;
  background: var(--accent);
  box-shadow: 0 16px 32px rgba(57, 255, 20, 0.2);
}

.button-secondary {
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(57, 255, 20, 0.18);
}

.password-output-wrap {
  padding: 16px;
  border-radius: 22px;
  background: rgba(57, 255, 20, 0.04);
  border: 1px solid rgba(57, 255, 20, 0.12);
}

#password-output {
  min-height: 122px;
  resize: none;
  font-family: Consolas, "Courier New", monospace;
  font-size: 1.05rem;
  line-height: 1.6;
}

.strength-row {
  display: grid;
  gap: 10px;
}

.strength-meter {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

#strength-bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--danger);
  transition: width 0.2s ease, background 0.2s ease;
}

#strength-label {
  font-size: 0.98rem;
}

.status-message {
  margin: 0;
  min-height: 24px;
}

.list-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(57, 255, 20, 0.1);
  background: rgba(18, 18, 18, 0.72);
}

.password-list {
  display: grid;
  gap: 10px;
}

.password-item {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(57, 255, 20, 0.08);
  background: rgba(57, 255, 20, 0.04);
  font-family: Consolas, "Courier New", monospace;
  word-break: break-all;
}

.promo-card { margin-top: 24px; }

.articles-card {
  margin-top: 24px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.article-post {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(57, 255, 20, 0.12);
  background:
    linear-gradient(180deg, rgba(57, 255, 20, 0.05), rgba(18, 18, 18, 0.82));
}

.article-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-post h3 {
  margin: 0 0 14px;
  font-size: 1.3rem;
  line-height: 1.2;
}

.article-post p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.72;
}

.article-post p:last-child {
  margin-bottom: 0;
}

.quick-links a {
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(57, 255, 20, 0.05);
}

@media (max-width: 960px) {
  .hero-card,
  .app-grid,
  .settings-grid,
  .option-list,
  .article-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 20px, 100%);
    padding-top: 20px;
  }

  .card,
  .hero-card {
    padding: 20px;
    border-radius: 22px;
  }

  .button,
  .quick-links a {
    width: 100%;
  }
}
