@font-face {
  font-family: "Space Grotesk";
  font-weight: 400;
  font-display: swap;
  src: url("assets/space-grotesk-400.ttf") format("truetype");
}
@font-face {
  font-family: "Space Grotesk";
  font-weight: 500;
  font-display: swap;
  src: url("assets/space-grotesk-500.ttf") format("truetype");
}
@font-face {
  font-family: "Space Grotesk";
  font-weight: 600;
  font-display: swap;
  src: url("assets/space-grotesk-600.ttf") format("truetype");
}
@font-face {
  font-family: "Space Grotesk";
  font-weight: 700;
  font-display: swap;
  src: url("assets/space-grotesk-700.ttf") format("truetype");
}

:root {
  --bg: #070b14;
  --bg-raise: #0c1320;
  --text: #eef3f8;
  --muted: #95a3b6;
  --faint: #5d6b7e;
  --line: #1c2636;
  --cyan: #6bebe6;
  --violet: #b4a0f8;
  --display: "Space Grotesk", "DM Sans", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
::selection {
  background: var(--cyan);
  color: var(--bg);
}
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--cyan);
  color: var(--bg);
  font-weight: 600;
}
.skip-link:focus {
  top: 16px;
}

.wrap {
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
}
.glow {
  position: fixed;
  inset: -20% -10% auto auto;
  width: 60vw;
  height: 60vw;
  max-width: 820px;
  max-height: 820px;
  background:
    radial-gradient(circle at 40% 40%, rgb(107 235 230 / 0.13), transparent 55%),
    radial-gradient(circle at 70% 60%, rgb(180 160 248 / 0.12), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
}

/* Navigation */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 16px 0;
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1100px, 100%);
  margin-inline: auto;
  padding: 10px 12px 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(9 14 24 / 0.85);
  backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.brand b,
.strip-brand b {
  font-weight: inherit;
  color: #7fb8f5;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  color: var(--muted);
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links .accent {
  color: var(--cyan);
}
.nav-pill {
  padding: 10px 20px;
  border: 1px solid #2c3a4d;
  border-radius: 999px;
  white-space: nowrap;
  transition: border-color 0.2s;
}
.nav-pill:hover {
  border-color: var(--cyan);
}

/* Hero */
.hero {
  padding: 88px 0 64px;
}
.eyebrow,
.label,
.card-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
h1 {
  margin-top: 28px;
  font-size: clamp(3.2rem, 9vw, 6.6rem);
}
.grad {
  background: linear-gradient(90deg, var(--cyan), #7fb8f5 55%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  max-width: 560px;
  margin: 32px 0 40px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.75;
}

.day-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.day-label {
  display: flex;
  flex-direction: column;
  min-width: 210px;
  padding: 0 8px;
}
.day-name {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.day-date {
  color: var(--muted);
  font-size: 0.9rem;
}
.icon-btn {
  width: 48px;
  height: 48px;
  border: 1px solid #2c3a4d;
  border-radius: 8px;
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.icon-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
#day-input {
  height: 48px;
  padding: 0 14px;
  border: 1px solid #2c3a4d;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 48px;
  padding: 0 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s, border-color 0.2s;
}
.btn-primary {
  border: 0;
  background: var(--cyan);
  color: #061016;
  box-shadow: 0 0 28px rgb(107 235 230 / 0.18);
}
.btn-primary:hover {
  filter: brightness(1.08);
}
.btn-ghost {
  border: 1px solid #2c3a4d;
  background: transparent;
}
.btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.btn-ghost:hover:not(:disabled) {
  border-color: var(--cyan);
}

/* Strip */
.strip {
  position: relative;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, #0b1420, #0a0f1a);
}
.strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 92px;
  font-family: var(--display);
  font-size: 1.35rem;
  color: #d5dde7;
}
.spark {
  color: var(--cyan);
  font-size: 1rem;
}
.strip-brand {
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}
.progress {
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
}
.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 12px var(--cyan);
  transition: width 0.4s ease;
}

/* Sections */
.section {
  padding: 96px 0 0;
}
.label {
  margin-bottom: 18px;
  color: #c9d3df;
}
.label b {
  margin-right: 10px;
  color: var(--cyan);
}
h2 {
  margin-bottom: 36px;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}
.dot-end {
  color: var(--cyan);
}

.card {
  padding: 28px;
  border: 1px solid #1f3140;
  border-radius: 14px;
  background: linear-gradient(160deg, #0d1c26, #0a111c 60%);
}
.card-violet {
  border-color: #2a2540;
  background: linear-gradient(160deg, #181430, #0d0f1c 65%);
}

.priority-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.priority {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border: 1px solid #1f3140;
  border-radius: 14px;
  background: linear-gradient(160deg, #0d1c26, #0a111c 60%);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.priority:focus-within {
  border-color: rgb(107 235 230 / 0.7);
}
.priority.done {
  border-color: var(--cyan);
  box-shadow: 0 0 32px rgb(107 235 230 / 0.12);
}
.priority-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.priority-num {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1;
  color: var(--faint);
}
.priority.done .priority-num {
  color: var(--cyan);
}
.priority input[type="text"] {
  width: 100%;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--display);
  font-size: 1.3rem;
  outline: none;
}
.priority input[type="text"]:focus {
  border-color: var(--cyan);
}
.priority.done input[type="text"] {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--cyan);
}
.priority-hint {
  margin: 0;
  color: var(--faint);
  font-size: 0.85rem;
}

/* Custom checkbox */
.check {
  appearance: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: 0;
  flex-shrink: 0;
  border: 1.5px solid #3a4a5e;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.check::after {
  content: "";
  width: 7px;
  height: 12px;
  margin-top: -3px;
  border: solid #061016;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s;
}
.check:checked {
  border-color: var(--cyan);
  background: var(--cyan);
}
.check:checked::after {
  transform: rotate(45deg) scale(1);
}
.check:hover {
  border-color: var(--cyan);
}

/* Schedule and tasks */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}
.split > * {
  min-width: 0;
}
.schedule-card {
  padding: 8px 0;
}
.schedule {
  margin: 0;
  padding: 0;
  list-style: none;
}
.slot {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.slot:last-child {
  border-bottom: 0;
}
.slot label {
  padding: 0 0 0 24px;
  color: var(--faint);
  font-family: ui-monospace, "Space Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}
.slot input {
  width: 100%;
  height: 52px;
  padding: 0 24px 0 12px;
  border: 0;
  background: transparent;
  outline: none;
}
.slot input::placeholder {
  color: #2d3a4c;
}
.slot:focus-within {
  background: rgb(107 235 230 / 0.04);
}
.slot:focus-within label,
.slot.filled label {
  color: var(--cyan);
}
.slot.now {
  box-shadow: inset 3px 0 0 var(--violet);
}
.slot.now label {
  color: var(--violet);
}

.add-task {
  display: flex;
  gap: 10px;
}
.add-task input,
textarea {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #263445;
  border-radius: 6px;
  background: rgb(4 8 14 / 0.6);
  outline: none;
  transition: border-color 0.2s;
}
.add-task input:focus,
textarea:focus {
  border-color: var(--cyan);
}
input::placeholder,
textarea::placeholder {
  color: var(--faint);
}
.tasks {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.task {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.task-text {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.task.done .task-text {
  color: var(--faint);
  text-decoration: line-through;
}
.remove {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--faint);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.6;
}
.remove:hover,
.remove:focus-visible {
  color: #ff8fa3;
  opacity: 1;
}
.empty {
  margin: 20px 0 4px;
  color: var(--faint);
  font-size: 0.9rem;
  text-align: center;
}
.text-btn {
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cyan);
  cursor: pointer;
}
.text-btn:hover {
  text-decoration: underline;
}

.notes-card {
  margin-top: 24px;
}
.icon-box {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
  border: 1px solid #3a3260;
  border-radius: 10px;
  background: rgb(180 160 248 / 0.06);
  color: var(--violet);
}
.icon-box svg {
  width: 24px;
  height: 24px;
}
.card-kicker {
  color: var(--muted);
  font-weight: 500;
}
.notes-card h3 {
  margin: 12px 0 20px;
  font-size: 2rem;
}
textarea {
  display: block;
  width: 100%;
  height: auto;
  padding: 14px 16px;
  line-height: 1.7;
  resize: vertical;
}
.notes-card textarea:focus {
  border-color: var(--violet);
}

.footer-note {
  padding: 72px 0 56px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .nav-pill {
    margin-left: auto;
  }
  .priority-grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .strip-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px 0;
    font-size: 1.1rem;
    text-align: center;
  }
  .strip-brand,
  .strip-inner .spark:last-of-type {
    display: none;
  }
}
@media (max-width: 520px) {
  .brand span {
    font-size: 1.1rem;
  }
  .nav-pill {
    padding: 8px 14px;
  }
  .hero {
    padding-top: 56px;
  }
  .day-label {
    order: -1;
    width: 100%;
    padding: 0 0 4px;
  }
  #day-input {
    flex: 1;
    min-width: 0;
    padding: 0 10px;
  }
  .card,
  .priority {
    padding: 22px;
  }
  .slot {
    grid-template-columns: 70px 1fr;
  }
  .slot label {
    padding-left: 18px;
  }
  .section {
    padding-top: 72px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
