:root {
  color-scheme: light;
  --ink: #0f1720;
  --ink-2: #17202b;
  --ink-3: #202b38;
  --paper: #f6f3ee;
  --surface: #ffffff;
  --surface-2: #eef2f6;
  --line: #d8dee7;
  --line-dark: rgba(255, 255, 255, 0.13);
  --text: #111827;
  --muted: #667085;
  --muted-dark: #aab5c4;
  --blue: #2563eb;
  --cyan: #14b8a6;
  --coral: #ef6954;
  --amber: #f5b84b;
  --green: #16a36a;
  --danger: #c83f35;
  --shadow-soft: 0 18px 60px rgba(15, 23, 32, 0.12);
  --shadow-hard: 0 26px 90px rgba(0, 0, 0, 0.38);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--text);
  margin: 0;
  min-height: 100vh;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

svg {
  height: 18px;
  stroke-width: 2.15;
  width: 18px;
}

.hidden {
  display: none !important;
}

.public-shell {
  background: #0c121a;
  color: #ffffff;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.public-shell::before {
  background:
    linear-gradient(90deg, rgba(12, 18, 26, 0.98) 0%, rgba(12, 18, 26, 0.91) 35%, rgba(12, 18, 26, 0.58) 68%, rgba(12, 18, 26, 0.42) 100%),
    radial-gradient(circle at 16% 18%, rgba(20, 184, 166, 0.22), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(37, 99, 235, 0.24), transparent 32%),
    linear-gradient(180deg, transparent 0%, rgba(12, 18, 26, 0.88) 82%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.product-backdrop {
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.app-window {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow: var(--shadow-hard);
  height: min(66vh, 680px);
  min-height: 520px;
  min-width: 850px;
  overflow: hidden;
  position: absolute;
  right: clamp(-180px, -7vw, -80px);
  top: clamp(112px, 15vh, 150px);
  width: min(68vw, 980px);
}

.window-bar {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
}

.window-bar span {
  border-radius: 999px;
  height: 10px;
  width: 10px;
}

.window-bar span:nth-child(1) {
  background: #ff6f61;
}

.window-bar span:nth-child(2) {
  background: var(--amber);
}

.window-bar span:nth-child(3) {
  background: #3ddc84;
}

.window-bar strong {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  margin-left: 8px;
}

.window-bar em {
  color: #7ee4d5;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  margin-left: auto;
}

.window-grid {
  display: grid;
  grid-template-columns: 174px minmax(410px, 1fr) 250px;
  height: calc(100% - 44px);
}

.window-grid aside:first-child {
  background: rgba(0, 0, 0, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 8px;
  padding: 22px 16px;
  place-content: start stretch;
}

.window-grid aside b,
.window-grid aside span {
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.68);
  padding: 11px 12px;
}

.window-grid aside b {
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
}

.window-grid section {
  background: #f8fafc;
  color: var(--text);
  display: grid;
  gap: 12px;
  grid-template-rows: auto auto auto auto auto 1fr;
  padding: 26px;
}

.window-heading p {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.window-heading h2 {
  font-size: clamp(42px, 5vw, 70px);
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0;
}

.window-add,
.window-task {
  background: #ffffff;
  border: 1px solid #dce3ec;
  border-radius: 12px;
}

.window-add {
  color: #8a94a3;
  padding: 15px 17px;
}

.window-task {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  min-height: 76px;
  padding: 14px 16px;
}

.window-task.is-hot {
  border-left: 4px solid var(--coral);
}

.window-task i {
  border: 2px solid #98a2b3;
  border-radius: 999px;
  height: 23px;
  width: 23px;
}

.window-task strong,
.window-task small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-task small,
.window-task time {
  color: #667085;
  font-size: 12px;
}

.window-task.is-done {
  opacity: 0.58;
}

.window-detail {
  background: #ffffff;
  border-left: 1px solid #dce3ec;
  color: var(--text);
  padding: 26px 20px;
}

.window-detail p,
.window-detail span {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.window-detail h3 {
  font-size: 24px;
  line-height: 1.08;
  margin: 0 0 28px;
}

.window-detail div {
  background: #edf1f5;
  border-radius: 999px;
  height: 13px;
  margin-bottom: 11px;
}

.window-detail div:last-child {
  width: 68%;
}

.public-nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  left: 0;
  margin: 0 auto;
  max-width: 1240px;
  padding: 24px clamp(18px, 4vw, 44px);
  position: relative;
  right: 0;
  top: 0;
  z-index: 3;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 17px;
  font-weight: 800;
  gap: 11px;
  text-decoration: none;
}

.brand img {
  border-radius: 11px;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.3);
  height: 34px;
  width: 34px;
}

.public-nav nav {
  align-items: center;
  display: flex;
  gap: 24px;
}

.public-nav nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.public-nav .nav-action {
  background: #ffffff;
  border-radius: 999px;
  color: var(--ink);
  padding: 11px 18px;
}

.public-main {
  align-items: center;
  display: grid;
  gap: clamp(28px, 6vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  margin: 0 auto;
  max-width: 1240px;
  min-height: calc(100vh - 86px);
  padding: 38px clamp(18px, 4vw, 44px) 82px;
  position: relative;
  z-index: 2;
}

.intro-panel {
  max-width: 560px;
}

.eyebrow {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.intro-panel h1 {
  font-size: clamp(54px, 8vw, 108px);
  letter-spacing: 0;
  line-height: 0.92;
  margin: 0;
}

.hero-line {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  margin: 22px 0 0;
  max-width: 520px;
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.signal-row span {
  align-items: center;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
}

.auth-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  box-shadow: var(--shadow-hard);
  color: var(--text);
  padding: 20px;
}

.auth-heading {
  margin-bottom: 16px;
}

.auth-heading h2 {
  font-size: 26px;
  line-height: 1.08;
  margin: 0;
}

.auth-tabs {
  background: #edf1f5;
  border-radius: 12px;
  display: grid;
  gap: 5px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 18px;
  padding: 5px;
}

.auth-tabs button {
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #344054;
  cursor: pointer;
  font-weight: 750;
  min-height: 42px;
}

.auth-tabs button.active {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 32, 0.1);
  color: var(--text);
}

form label {
  color: #344054;
  display: grid;
  font-size: 13px;
  font-weight: 750;
  gap: 7px;
  margin-bottom: 14px;
}

input,
select,
textarea {
  background: #ffffff;
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  color: var(--text);
  min-height: 44px;
  outline: none;
  padding: 10px 12px;
  width: 100%;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 46px;
  padding: 0 17px;
  text-decoration: none;
}

.button.primary,
.button.dark {
  background: var(--ink);
  box-shadow: 0 14px 30px rgba(15, 23, 32, 0.16);
  color: #ffffff;
}

.button.danger {
  background: #fff1ef;
  border-color: #efb6ad;
  color: var(--danger);
}

.button.full {
  width: 100%;
}

.link-button {
  background: transparent;
  border: 0;
  color: var(--blue);
  cursor: pointer;
  font-weight: 750;
  margin-top: 12px;
  padding: 0;
}

.password-rules {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  gap: 4px;
  margin: -4px 0 14px;
}

.password-rules span.met {
  color: var(--green);
}

.form-message {
  color: var(--muted);
  min-height: 20px;
}

.form-message[data-tone="error"] {
  color: var(--danger);
}

.form-message[data-tone="ok"] {
  color: var(--green);
}

.feature-panel {
  background: var(--paper);
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 26px clamp(18px, 4vw, 44px) 36px;
  position: relative;
  z-index: 2;
}

.feature-panel article {
  background: #ffffff;
  border: 1px solid #e0ddd5;
  border-radius: 16px;
  color: var(--text);
  min-height: 186px;
  padding: 22px;
}

.feature-panel article svg {
  color: var(--blue);
  height: 24px;
  width: 24px;
}

.feature-panel h2 {
  font-size: 24px;
  line-height: 1.08;
  margin: 32px 0 10px;
}

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

.workspace {
  background: #f4f6f8;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: var(--ink);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100vh;
  padding: 20px 16px;
}

.brand.compact {
  color: #ffffff;
  font-size: 18px;
  padding: 4px 2px 18px;
}

.view-nav {
  display: grid;
  gap: 6px;
}

.view-nav button,
.project-list button,
.signout {
  align-items: center;
  border: 0;
  cursor: pointer;
  display: flex;
  font-weight: 750;
  gap: 10px;
}

.view-nav button,
.project-list button {
  background: transparent;
  border-radius: 10px;
  color: #c0cad8;
  min-height: 42px;
  padding: 0 12px;
  text-align: left;
}

.view-nav button.active,
.project-list button.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.sidebar-section {
  border-top: 1px solid var(--line-dark);
  padding-top: 16px;
}

.section-title {
  color: #8f9bab;
  font-size: 12px;
  font-weight: 850;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.project-create {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 40px;
  margin-bottom: 12px;
}

.project-create input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.project-create input::placeholder {
  color: #8f9bab;
}

.project-create button {
  align-items: center;
  background: #ffffff;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: center;
}

.project-list {
  display: grid;
  gap: 5px;
}

.project-list .empty-state {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  color: #98a5b5;
  padding: 14px;
}

.signout {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  color: #ffffff;
  justify-content: center;
  margin-top: auto;
  min-height: 46px;
}

.task-main {
  display: grid;
  gap: 16px;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  min-width: 0;
  padding: 30px;
}

.task-header {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.task-header h1 {
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: 0;
  line-height: 0.96;
  margin: 0;
}

.header-actions,
.editor-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.search-box {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: #7a8593;
  display: flex;
  gap: 8px;
  height: 46px;
  margin: 0;
  min-width: min(34vw, 320px);
  padding: 0 12px;
}

.search-box input {
  border: 0;
  box-shadow: none;
  min-height: 0;
  padding: 0;
}

.search-box input:focus {
  box-shadow: none;
}

.quick-add,
.stats-row,
.task-editor,
.task-card,
.empty-state {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.quick-add {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 200px) minmax(140px, 170px) auto;
  padding: 12px;
}

.stats-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-row div {
  padding: 18px;
}

.stats-row strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.stats-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.task-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(290px, 1fr) minmax(330px, 0.72fr);
  min-height: 0;
}

.task-list {
  align-content: start;
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 358px);
  overflow: auto;
}

.task-card {
  align-items: start;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: 28px minmax(0, 1fr);
  min-height: 78px;
  padding: 14px;
  text-align: left;
}

.task-card.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.28);
}

.task-card.priority-3 {
  border-left: 4px solid var(--coral);
}

.task-card.done {
  opacity: 0.62;
}

.task-check {
  appearance: none;
  border: 2px solid #98a2ad;
  border-radius: 999px;
  height: 23px;
  margin: 2px 0 0;
  width: 23px;
}

.task-check:checked {
  background: var(--green);
  border-color: var(--green);
}

.task-title {
  display: block;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-meta {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-top: 4px;
}

.task-editor {
  align-self: start;
  padding: 18px;
  position: sticky;
  top: 20px;
}

.editor-fields {
  display: grid;
  gap: 4px;
}

.editor-empty {
  align-items: start;
  color: var(--muted);
  display: grid;
  gap: 8px;
  padding: 26px 8px;
}

.editor-empty strong {
  color: var(--text);
  font-size: 20px;
}

.editor-empty svg {
  color: var(--blue);
  height: 26px;
  width: 26px;
}

.two-col {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.checkbox-row {
  align-items: center;
  display: flex;
  gap: 9px;
}

.checkbox-row input {
  min-height: auto;
  width: auto;
}

.modal {
  align-items: center;
  background: rgba(15, 23, 32, 0.68);
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 18px;
  position: fixed;
  z-index: 10;
}

.modal-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: var(--shadow-hard);
  max-width: 420px;
  padding: 22px;
  width: min(100%, 420px);
}

.modal-card h2 {
  margin-top: 0;
}

.modal-card p {
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 1060px) {
  .app-window {
    right: -390px;
    width: 900px;
  }

  .public-main,
  .feature-panel,
  .task-layout {
    grid-template-columns: 1fr;
  }

  .public-main {
    align-items: end;
  }

  .auth-panel {
    max-width: 430px;
  }

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

  .sidebar {
    min-height: auto;
  }

  .view-nav,
  .project-list {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

  .project-create {
    max-width: 420px;
  }

  .task-list {
    max-height: none;
  }

  .task-editor {
    position: static;
  }
}

@media (max-width: 720px) {
  .public-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .public-nav nav {
    width: 100%;
  }

  .public-nav nav a:not(.nav-action) {
    display: none;
  }

  .public-nav .nav-action {
    text-align: center;
    width: 100%;
  }

  .public-main {
    display: block;
    min-height: auto;
    padding-bottom: 34px;
    padding-top: 226px;
  }

  .intro-panel h1 {
    font-size: clamp(54px, 18vw, 76px);
  }

  .hero-line {
    font-size: 17px;
  }

  .signal-row {
    display: grid;
  }

  .auth-panel {
    margin-top: 28px;
  }

  .app-window {
    border-radius: 14px;
    height: 242px;
    left: 14px;
    min-height: 0;
    min-width: 0;
    right: 14px;
    top: 118px;
    width: auto;
  }

  .window-grid {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .window-grid aside:first-child {
    gap: 2px;
    padding: 12px 8px;
  }

  .window-grid aside b,
  .window-grid aside span {
    font-size: 12px;
    padding: 8px;
  }

  .window-grid section {
    gap: 7px;
    padding: 12px;
  }

  .window-heading h2 {
    font-size: 34px;
  }

  .window-heading p,
  .window-task small,
  .window-task time {
    display: none;
  }

  .window-add {
    padding: 9px 11px;
  }

  .window-task {
    grid-template-columns: 20px minmax(0, 1fr);
    min-height: 46px;
    padding: 8px 10px;
  }

  .window-task i {
    height: 19px;
    width: 19px;
  }

  .window-detail {
    display: none;
  }

  .feature-panel {
    padding-bottom: 24px;
    padding-top: 24px;
  }

  .feature-panel article {
    min-height: 0;
  }

  .feature-panel h2 {
    margin-top: 22px;
  }

  .task-main {
    padding: 18px;
  }

  .task-header,
  .header-actions,
  .editor-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .search-box {
    width: 100%;
  }

  .search-box {
    min-width: 0;
  }

  .quick-add,
  .stats-row,
  .two-col {
    grid-template-columns: 1fr;
  }
}
