:root {
  --ink: #17202a;
  --muted: #64707d;
  --paper: #f7f8f5;
  --panel: #ffffff;
  --line: #d9e0df;
  --teal: #168a83;
  --coral: #d95d49;
  --gold: #e2b84b;
  --blue: #365a8c;
  --shadow: 0 18px 50px rgba(23, 32, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(23, 32, 42, 0.08);
  box-shadow: 0 8px 28px rgba(23, 32, 42, 0.06);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.toolbar,
footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #ffffff;
  background: linear-gradient(145deg, var(--ink), #21384f);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(23, 32, 42, 0.18);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark::after {
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--gold);
  border-radius: 999px;
  box-shadow: -12px -12px 0 var(--teal), -2px -18px 0 var(--coral);
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  color: var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 950;
  line-height: 1;
}

.brand-tagline {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
}

.nav-links {
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-action,
.primary-button,
.secondary-button,
.task-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
}

.nav-action,
.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.18);
}

.nav-action {
  border-color: var(--line);
  background: #ffffff;
}

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: clamp(72px, 12vw, 128px) clamp(18px, 5vw, 72px);
  overflow: hidden;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(12, 20, 28, 0.82) 0%, rgba(12, 20, 28, 0.54) 42%, rgba(12, 20, 28, 0.16) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #9fe5dc;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-copy {
  max-width: 560px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 2.1vw, 1.35rem);
  line-height: 1.55;
}

.hero-punch {
  max-width: 620px;
  margin: 22px 0 0;
  color: #ffffff;
  font-size: clamp(1.35rem, 2.7vw, 2.15rem);
  font-weight: 900;
  line-height: 1.16;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-button {
  color: #ffffff;
  background: var(--coral);
  box-shadow: 0 12px 28px rgba(217, 93, 73, 0.24);
}

.primary-button.dark {
  background: var(--ink);
  box-shadow: none;
}

.secondary-button {
  color: #ffffff;
}

.planner-shell,
.feature-band {
  padding: clamp(44px, 7vw, 76px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.planner-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 18px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.summary-panel,
.task-panel,
.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.summary-panel {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 22px;
}

.summary-panel strong {
  display: block;
  margin-top: 4px;
  font-size: 2.2rem;
}

.summary-label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  background: #e9eeed;
  border-radius: 999px;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--teal);
  transition: width 180ms ease;
}

.task-panel {
  padding: 18px;
}

.task-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(150px, 0.9fr) minmax(140px, 0.7fr) auto;
  gap: 12px;
}

.task-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.task-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.task-form button {
  align-self: end;
  border: 0;
  color: #ffffff;
  background: var(--teal);
  cursor: pointer;
}

.toolbar {
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.filter-button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--muted);
  background: #f0f4f1;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.filter-button.active {
  color: #ffffff;
  background: var(--blue);
}

.task-list {
  display: grid;
  gap: 10px;
  min-height: 278px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.task-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
}

.task-item.done {
  border-left-color: var(--teal);
  opacity: 0.72;
}

.task-item.soon:not(.done) {
  border-left-color: var(--coral);
}

.task-check {
  width: 24px;
  height: 24px;
  accent-color: var(--teal);
}

.task-title {
  margin: 0;
  font-weight: 900;
}

.task-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.delete-button {
  min-width: 38px;
  min-height: 38px;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 220px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
}

.feature-band {
  background: #ffffff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.feature-card {
  padding: 24px;
  box-shadow: none;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #ffffff;
  background: var(--ink);
  border-radius: 8px;
  font-weight: 900;
}

.feature-card h3 {
  margin: 18px 0 8px;
  font-size: 1.18rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

footer {
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: #ffffff;
  background: var(--ink);
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: 72vh;
  }

  .hero-shade {
    background: rgba(12, 20, 28, 0.66);
  }

  .planner-layout,
  .feature-grid {
    grid-template-columns: 1fr;
  }

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

  .progress-track {
    grid-column: 1 / -1;
  }

  .task-form {
    grid-template-columns: 1fr;
  }

  h1 {
    white-space: normal;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 12px;
  }

  .nav-action {
    display: none;
  }

  .summary-panel {
    grid-template-columns: 1fr;
  }

  .task-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .delete-button {
    grid-column: 2;
    justify-self: start;
  }
}
