* {
  box-sizing: border-box;
}

:root {
  --surface: rgba(252, 253, 255, 0.9);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --border: rgba(160, 176, 201, 0.26);
  --text-primary: #122033;
  --text-secondary: #556277;
  --accent: #2f6fed;
  --accent-dark: #1d4fb5;
  --success: #16876c;
  --shadow-soft: 0 24px 60px rgba(8, 21, 43, 0.18);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text-primary);
  background:
    linear-gradient(135deg, rgba(6, 16, 33, 0.84), rgba(11, 31, 61, 0.72)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1800&q=80")
      center/cover fixed;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.75rem;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #f6f8fc;
}

h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  font-weight: 700;
}

label {
  font-size: 0.95rem;
}

.hero,
.about-project,
.app-card {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(145deg, rgba(15, 28, 47, 0.86), rgba(27, 53, 91, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(91, 151, 255, 0.38), transparent 68%);
  pointer-events: none;
}

.hero__eyebrow,
.section-heading__eyebrow,
.hero__meta-label {
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
}

.hero__eyebrow {
  margin-bottom: 1.25rem;
  padding: 0.45rem 0.8rem;
  color: #d9e7ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.hero__content {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.hero__copy {
  max-width: 650px;
}

.hero__subtitle {
  max-width: 560px;
  margin-bottom: 0;
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(240, 244, 252, 0.82);
}

.hero__meta {
  display: grid;
  gap: 1rem;
  min-width: 250px;
}

.hero__meta-card {
  padding: 1rem 1.1rem;
  color: #f7f9fd;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
}

.hero__meta-card strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1rem;
}

.hero__meta-label {
  color: rgba(220, 231, 249, 0.72);
}

.about-project {
  margin-bottom: 1.75rem;
  padding: 1.6rem 1.8rem;
  color: #edf3fb;
  background: rgba(16, 28, 46, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.about-project p {
  max-width: 840px;
  margin-bottom: 0;
  line-height: 1.8;
  color: rgba(235, 240, 248, 0.8);
}

.section-heading {
  margin-bottom: 1.35rem;
}

.section-heading__eyebrow {
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.app-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(290px, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}

.app-layout__primary {
  display: grid;
  gap: 1.5rem;
}

.app-card {
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.task-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-weight: 700;
  color: var(--text-primary);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(183, 193, 210, 0.9);
  border-radius: 14px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 111, 237, 0.12);
  transform: translateY(-1px);
}

.add-btn {
  padding: 0.9em 1.4em;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #5a8ff5);
  border: none;
  border-radius: 14px;
  box-shadow: 0 18px 30px rgba(47, 111, 237, 0.22);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.add-btn:hover {
  filter: brightness(1.02);
  box-shadow: 0 22px 34px rgba(47, 111, 237, 0.28);
}

.add-btn:active {
  transform: translateY(1px) scale(0.99);
}

.add-btn:focus {
  outline: 3px solid rgba(47, 111, 237, 0.22);
  outline-offset: 2px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-btn {
  padding: 0.8em 1.15em;
  font: inherit;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(237, 241, 248, 0.92);
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: all 160ms ease;
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: rgba(47, 111, 237, 0.18);
}

.filter-btn.is-active {
  border-color: rgba(47, 111, 237, 0.12);
  color: #fff;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
}

.task-list-section {
  min-height: 250px;
}

.task-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.task-list > li:not(.task-item) {
  padding: 1.25rem;
  color: var(--text-secondary);
  text-align: center;
  background: rgba(241, 245, 252, 0.78);
  border: 1px dashed rgba(149, 166, 192, 0.6);
  border-radius: 18px;
}

.task-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface-strong);
  border: 1px solid rgba(196, 205, 220, 0.65);
  border-radius: 20px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.task-item:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 111, 237, 0.24);
  box-shadow: 0 16px 30px rgba(17, 31, 56, 0.08);
}

.task-item__main {
  flex: 1;
  min-width: 0;
}

.task-item__status {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.task-item__checkbox {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.3rem;
  flex-shrink: 0;
  accent-color: var(--success);
}

.task-item__content {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  cursor: pointer;
}

.task-item__title {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
}

.task-item__description {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.task-item__actions {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  flex-shrink: 0;
  margin-top: 1rem;
}

.task-action-button {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: rgba(248, 250, 253, 0.95);
  color: var(--text-primary);
  border: 1px solid rgba(206, 214, 227, 0.85);
  border-radius: 12px;
  cursor: pointer;
  transition: all 160ms ease;
}

.task-action-button:hover {
  background: #ffffff;
  border-color: rgba(47, 111, 237, 0.22);
}

.task-action-button:focus-visible {
  outline: 3px solid rgba(47, 111, 237, 0.2);
  outline-offset: 2px;
}

.task-action-button--danger {
  color: #d93d4c;
}

.task-item--completed .task-item__title,
.task-item--completed .task-item__description {
  text-decoration: line-through;
  opacity: 0.7;
}

.task-status {
  position: sticky;
  top: 1.25rem;
}

.status-card {
  padding: 0.35rem;
  background: rgba(239, 244, 250, 0.8);
  border: 1px solid rgba(198, 208, 223, 0.75);
  border-radius: 22px;
}

.status-card dl {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.status-item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(200, 209, 221, 0.55);
  border-radius: 18px;
}

.status-item dd,
.status-item dt {
  margin: 0;
}

.status-value {
  order: -1;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
}

.status-term {
  color: var(--text-secondary);
  font-weight: 700;
}

.site-footer {
  padding: 1.5rem 0 0.5rem;
  text-align: center;
}

.site-footer p {
  margin-bottom: 0;
  font-size: 0.92rem;
  color: rgba(233, 239, 248, 0.78);
}

@media (max-width: 900px) {
  .hero__content,
  .app-layout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero__meta {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .task-status {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 1.1rem 0.85rem 2rem;
  }

  .hero,
  .about-project,
  .app-card {
    padding: 1.2rem;
    border-radius: 22px;
  }

  h1 {
    font-size: 2.5rem;
  }

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

  .filter-buttons {
    gap: 0.75rem;
  }

  .filter-btn {
    flex: 1 1 calc(50% - 0.75rem);
    text-align: center;
  }

  .task-item {
    padding: 1.1rem;
  }
}
