:root {
  --bg: #0a0a0a;
  --panel: #12121a;
  --panel-2: #171721;
  --text: #f5f7ff;
  --muted: #9da3b4;
  --line: rgba(124, 92, 255, 0.32);
  --accent: #7c5cff;
  --accent-2: #b9a8ff;
  --accent-soft: rgba(124, 92, 255, 0.18);
  --high: #ff7f7f;
  --medium: #ffe57a;
  --low: #6affdf;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "JetBrains Mono", "Cascadia Code", "Fira Code", monospace;
}

body {
  position: relative;
  min-height: 100vh;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    radial-gradient(circle at 20% 10%, rgba(185, 168, 255, 0.14), transparent 32%),
    radial-gradient(circle at 80% 0%, rgba(124, 92, 255, 0.12), transparent 35%),
    var(--bg);
  background-size: 100% 4px, auto, auto, auto;
  color: var(--text);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.03) 0,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.12;
}

.app-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  position: relative;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.16), 0 0 24px rgba(124, 92, 255, 0.2);
  background: linear-gradient(180deg, rgba(15, 12, 26, 0.7), rgba(10, 10, 10, 0.76));
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
  background: rgba(124, 92, 255, 0.08);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(185, 168, 255, 0.9);
}

.window-title {
  font-size: 0.78rem;
  text-transform: lowercase;
  color: var(--accent-2);
  letter-spacing: 0.08rem;
}

.sys-meta {
  position: absolute;
  top: 44px;
  right: 14px;
  text-align: right;
  font-size: 0.82rem;
  color: var(--accent-2);
  line-height: 1.5;
}

.hero {
  margin: 34px 0 26px;
  padding: 0 24px;
}

.eyebrow {
  text-transform: lowercase;
  letter-spacing: 0.14rem;
  color: var(--accent-2);
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 8px;
  color: var(--accent);
  text-shadow: 0 0 14px rgba(124, 92, 255, 0.3);
}

.subtitle {
  color: var(--muted);
  max-width: 720px;
  line-height: 1.6;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 24px;
  padding: 0 24px;
}

.timer-card,
.task-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 28px;
  box-shadow: 0 0 16px rgba(124, 92, 255, 0.14), inset 0 0 10px rgba(124, 92, 255, 0.06);
}

.timer-card h2,
.task-card h2 {
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  font-size: 1rem;
}

.timer-shell {
  border: 1px solid rgba(124, 92, 255, 0.55);
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.28);
  margin-bottom: 14px;
}

.timer-label {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.timer-display {
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  text-align: left;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.04rem;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(124, 92, 255, 0.28);
}

button,
input,
select {
  border: 1px solid var(--line);
  outline: none;
  border-radius: 0;
  font-size: 1rem;
  font-family: inherit;
}

button {
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

button:hover {
  background: rgba(124, 92, 255, 0.12);
}

.primary-btn,
.secondary-btn {
  padding: 12px 14px;
  width: 100%;
  font-weight: 700;
  letter-spacing: 0.06rem;
}

.primary-btn {
  background: rgba(124, 92, 255, 0.08);
  color: var(--accent);
  box-shadow: inset 0 0 8px rgba(124, 92, 255, 0.2);
}

.secondary-btn {
  background: rgba(185, 168, 255, 0.1);
  color: var(--text);
}

.task-controls {
  display: grid;
  gap: 12px;
}

input,
select {
  width: 100%;
  padding: 12px 14px;
  background: var(--panel-2);
  color: var(--text);
}

.task-list {
  list-style: none;
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 0;
}

.task-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.priority-badge {
  padding: 4px 8px;
  border-radius: 0;
  font-size: 0.8rem;
  font-weight: 700;
}

.priority-high {
  background: rgba(255, 107, 129, 0.18);
  color: var(--high);
}

.priority-medium {
  background: rgba(255, 209, 102, 0.18);
  color: var(--medium);
}

.priority-low {
  background: rgba(76, 215, 167, 0.18);
  color: var(--low);
}

.empty-state {
  color: var(--muted);
  text-align: left;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 0;
}

.terminal-footer {
  margin: 12px 24px 0;
  font-size: 0.9rem;
  color: var(--accent);
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.terminal-label {
  color: var(--accent);
}

.terminal-input {
  width: 100%;
  background: #0b0b12;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 10px 12px;
}

.terminal-input:focus {
  box-shadow: 0 0 0 1px var(--accent-soft);
}

.terminal-output {
  color: var(--muted);
  font-size: 0.82rem;
  min-height: 2.8em;
  white-space: pre-wrap;
  line-height: 1.4;
}

@media (max-width: 800px) {
  .sys-meta {
    position: static;
    text-align: left;
    margin: 0 24px 16px;
  }

  .dashboard {
    grid-template-columns: 1fr;
  }
}
