:root {
  --bg: #0c0c11;
  --panel: #14141d;
  --text-main: #f2f2f7;
  --text-muted: #a0a0b8;
  --accent: #7c7cff;
  --border: rgba(255, 255, 255, 0.08);
}

/* Reset */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(
    circle at top,
    #151522,
    var(--bg)
  );
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, sans-serif;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 4rem);
}

/* Main container */
.container {
  width: 100%;
  max-width: 1100px;
  text-align: center;
}

/* Title */
h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

h1 span {
  color: var(--accent);
}

/* Subtitle */
.subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

/* Control panel */
/* Enhanced control panel */
.controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.control {
  background: linear-gradient(
    180deg,
    #171725,
    #12121a
  );
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.2rem 1.1rem 1.3rem;
  text-align: left;
  position: relative;
}

.control label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.control select,
.control input {
  width: 100%;
  padding: 0.55rem 0.65rem;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f0f18;
  color: var(--text-main);
  margin-bottom: 0.65rem;
}

.control select:focus,
.control input:focus {
  outline: none;
  border-color: var(--accent);
}

.lock {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #0f0f18;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0.35rem 0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lock:hover {
  color: var(--text-main);
}

.lock.locked {
  background: linear-gradient(
    135deg,
    var(--accent),
    #5a5aff
  );
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(124, 124, 255, 0.35);
}

.control.generate {
  grid-column: 1 / -1;
  text-align: center;
  padding: 1.6rem;
}

.control.generate button {
  margin-top: 0.6rem;
}


label {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
}

input {
  width: 90px;
  padding: 0.4rem 0.6rem;
  font-size: 1.1rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #0f0f18;
  color: var(--text-main);
  text-align: center;
}

input:focus {
  outline: none;
  border-color: var(--accent);
}

/* Button */
button {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  padding: 0.6rem 1.8rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--accent),
    #5a5aff
  );
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(124, 124, 255, 0.35);
}

button:active {
  transform: translateY(0);
}

.actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem;
}

.actions button {
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  padding: 0.55rem 1.6rem;
  border-radius: 999px;
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s ease;
}

.actions button:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 124, 255, 0.15);
}

.actions button:active {
  transform: scale(0.98);
}

/* First-time guidance */
.first-time {
  margin-top: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(180deg, #171728, var(--panel));
  border: 1px solid var(--border);
  border-radius: 22px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;

  text-align: center;
  animation: fadeIn 0.4s ease;
}

.first-time h2 {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  margin-bottom: 0.75rem;
}

.first-time p {
  color: var(--text-muted);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.first-time strong {
  color: var(--text-main);
}

/* Fade animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.first-time::after {
  content: "↓ output appears here ↓";
  display: block;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  opacity: 0.6;
}

button.secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

button.secondary:hover {
  color: var(--text-main);
  border-color: var(--accent);
  box-shadow: none;
}

.daily-badge {
  text-align: center;
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.tagline {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--accent);        /* makes it pop */
  margin-bottom: 2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}


/* Output block */
pre {
  margin-top: 2.5rem;
  background: linear-gradient(
    180deg,
    #161622,
    var(--panel)
  );
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(1.2rem, 4vw, 3rem);
  text-align: left;

  font-family: "JetBrains Mono", monospace;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.7;

  white-space: pre-wrap;
  max-height: 65vh;
  overflow-y: auto;
}


/* Divider lines inside output */
pre::selection {
  background: rgba(124, 124, 255, 0.35);
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .controls {
    gap: 1.2rem;
  }

  .control {
    padding: 1rem;
  }

  h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

    .tagline {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }
}

