@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&display=swap");
:root {
  --bg: #080a0d;
  --surface: rgba(14, 17, 21, 0.72);
  --surface-strong: rgba(15, 18, 22, 0.92);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.17);
  --text: #f0f0eb;
  --muted: #989c9b;
  --faint: #666b6a;
  --accent: #d6f36a;
  --accent-ink: #11150b;
  --danger: #ef817c;
  --radius: 14px;
  --mono: "DM Mono", monospace;
  --sans: "Manrope", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}

a{
   text-decoration: none;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.app-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}
.wallpaper {
  position: fixed;
  inset: -24px;
  z-index: -3;
  background:
    radial-gradient(circle at 25% 20%, rgba(75, 91, 91, 0.42), transparent 32%),
    radial-gradient(circle at 78% 70%, rgba(38, 58, 67, 0.35), transparent 35%),
    linear-gradient(125deg, #090b0d, #11171a 50%, #090b0d);
  background-size: cover;
  background-position: center;
  transition:
    filter 0.25s ease,
    background-image 0.3s ease;
}
.wallpaper:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.025),
    transparent 40%,
    rgba(255, 255, 255, 0.015)
  );
}
.wallpaper-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: rgba(3, 5, 7, 0.42);
  transition: background 0.2s ease;
}
.app-shell:after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3),
    transparent 28%,
    rgba(0, 0, 0, 0.25)
  );
}
.topbar {
  height: 88px;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 700;
}
.clock-brand {
  cursor: default;
}
.home-mini-btn {
  height: 30px;
  min-width: 30px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font: 500 9px var(--mono);
  letter-spacing: 0.04em;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.15s ease;
}
.home-mini-btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.065);
  transform: translateY(-1px);
}
.home-mini-btn span:first-child {
  font-size: 13px;
  line-height: 1;
}
.home-mini-label {
  line-height: 1;
}
.brand-mark {
  width: 20px;
  height: 20px;
  border: 1px solid var(--accent);
  display: inline-block;
  position: relative;
}
.brand-mark:after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 10px;
  height: 10px;
  background: var(--accent);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar > .home-mini-btn {
  margin-left: 10px;
  margin-right: auto;
}
.clock-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  margin-right: 8px;
}
.clock-block span:first-child {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.clock-block span:last-child {
  font: 500 12px var(--mono);
  color: var(--text);
}
.icon-btn {
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  transition: 0.2s;
}
.icon-btn:hover {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}
.workspace {
  width: min(1220px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(42px, 7vw, 110px);
  align-items: start;
  padding: 44px 0 72px;
}
.hero {
  min-height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 8px;
}
.eyebrow,
.panel-kicker {
  font: 500 10px var(--mono);
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(25px, 3vw, 39px);
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 13px 0 8px;
  max-width: 650px;
  line-height: 1.1;
}
.timer-wrap {
  width: min(420px, 72vw);
  aspect-ratio: 1;
  margin: 13px auto 12px;
  position: relative;
  display: grid;
  place-items: center;
}
.progress-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ring-track,
.ring-progress {
  fill: none;
  stroke-width: 1;
}
.ring-track {
  stroke: rgba(255, 255, 255, 0.1);
}
.ring-progress {
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 1030.4;
  stroke-dashoffset: 1030.4;
  transition: stroke-dashoffset 0.25s linear;
}
.timer-core {
  position: relative;
}
.timer {
  font: 400 clamp(58px, 8vw, 91px)/1 var(--mono);
  letter-spacing: -0.08em;
  font-variant-numeric: tabular-nums;
}
.timer-status {
  margin-top: 14px;
  font: 500 10px var(--mono);
  letter-spacing: 0.28em;
  color: var(--muted);
}
.timer-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 2px;
}
.btn {
  height: 45px;
  border-radius: 9px;
  padding: 0 22px;
  border: 1px solid var(--line);
  transition:
    transform 0.15s,
    background 0.2s,
    border 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  font-weight: 700;
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}
.btn-quiet {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}
.cycle-dots {
  display: flex;
  gap: 7px;
  margin: 22px 0 13px;
}
.cycle-dot {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
}
.cycle-dot.done {
  background: var(--accent);
  border-color: var(--accent);
}
.cycle-dot.active {
  box-shadow: 0 0 0 3px rgba(214, 243, 106, 0.12);
  border-color: var(--accent);
}
.today-line {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
}
.today-line strong {
  font: 500 11px var(--mono);
  color: var(--text);
}
.dot-sep {
  color: var(--faint);
  padding: 0 3px;
}
.side-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-top: 8px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.15);
}
.setup-panel {
  border-color: rgba(255, 255, 255, 0.14);
}
.field {
  margin-top: 21px;
}
.field label,
.setting-row label,
.range-row label,
.setting-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.text-btn {
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 10px;
  padding: 0;
}
.field input,
.field select,
.setting-row input[type="number"],
.setting-row select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
  color: var(--text);
  padding: 0 12px;
}
.field input::placeholder {
  color: #646a69;
}
.field select,
.setting-row select {
  appearance: auto;
}
.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.preset {
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 7px;
  font: 500 10px var(--mono);
  transition: 0.2s;
}
.preset:hover,
.preset.active {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(214, 243, 106, 0.07);
}
.custom-duration {
  display: flex;
  align-items: center;
  gap: 7px;
}
.custom-duration input {
  width: 78px !important;
}
.custom-duration span {
  font-size: 10px;
  color: var(--muted);
}
.hidden {
  display: none !important;
}
.wide-btn {
  width: 100%;
  height: 45px;
  margin-top: 22px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 14px 0 16px;
}
.wide-btn span {
  font-size: 18px;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.panel-title {
  font-size: 14px;
  margin-top: 5px;
}
.plus-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 7px;
  font-size: 18px;
}
.plus-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
}
.task-form {
  display: flex;
  gap: 6px;
  margin: 17px 0 5px;
}
.task-form input {
  min-width: 0;
  flex: 1;
  height: 36px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  border-radius: 7px;
  padding: 0 9px;
  font-size: 11px;
}
.task-form button {
  height: 36px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 7px;
  padding: 0 11px;
  font-size: 10px;
  font-weight: 700;
}
.task-list {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
}
.task-empty {
  font-size: 11px;
  color: var(--faint);
  padding: 10px 0;
}
.task-item {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}
.task-item:last-child {
  border-bottom: 0;
}
.task-check {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  border-radius: 50%;
  padding: 0;
}
.task-item.completed .task-check {
  background: var(--accent);
  border-color: var(--accent);
  position: relative;
}
.task-item.completed .task-check:after {
  content: "✓";
  position: absolute;
  color: #10130b;
  font-size: 9px;
  left: 2px;
  top: -1px;
}
.task-name {
  font-size: 11px;
  line-height: 1.35;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-item.completed .task-name {
  color: var(--muted);
  text-decoration: line-through;
}
.task-item.current .task-name {
  font-weight: 700;
}
.task-actions {
  display: flex;
  gap: 2px;
}
.task-action {
  border: 0;
  background: transparent;
  color: var(--faint);
  font-size: 11px;
  padding: 3px;
}
.task-action:hover {
  color: var(--text);
}
/* drawers */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 20;
  visibility: hidden;
}
.drawer.open {
  visibility: visible;
}
.drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  opacity: 0;
  transition: opacity 0.25s;
}
.drawer.open .drawer-scrim {
  opacity: 1;
}
.drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(480px, 100vw);
  background: var(--surface-strong);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.25);
}
.drawer.open .drawer-panel {
  transform: none;
}
.drawer-header {
  height: 92px;
  padding: 0 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.drawer-header h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 6px 0 0;
}
.drawer-scroll {
  height: calc(100% - 92px);
  overflow: auto;
  padding: 8px 25px 40px;
}
.close-btn {
  font-size: 23px;
}
.settings-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.settings-section h3 {
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 18px;
  color: var(--text);
}
.setting-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  margin: 15px 0;
}
.setting-row label {
  margin: 0;
  color: var(--text);
  font-size: 11px;
}
.setting-row input[type="number"] {
  width: 75px;
  text-align: right;
}
.setting-control {
  display: flex;
  align-items: center;
  gap: 7px;
}
.setting-control span {
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
}
.setting-row select {
  width: 190px;
}
.switch {
  appearance: none;
  width: 38px !important;
  height: 21px !important;
  border-radius: 20px !important;
  border: 1px solid var(--line-strong) !important;
  background: rgba(255, 255, 255, 0.09) !important;
  padding: 0 !important;
  position: relative;
  cursor: pointer;
}
.switch:after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background: #858a88;
  transition: 0.2s;
}
.switch:checked {
  background: rgba(214, 243, 106, 0.2) !important;
  border-color: rgba(214, 243, 106, 0.5) !important;
}
.switch:checked:after {
  left: 19px;
  background: var(--accent);
}
.setting-block {
  margin: 18px 0;
}
.wallpaper-actions {
  display: flex;
  gap: 7px;
}
.file-btn,
.outline-btn {
  display: inline-flex;
  height: 35px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0 12px;
  font-size: 10px;
  cursor: pointer;
}
.file-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--text);
}
.outline-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}
.muted-small {
  font-size: 9px;
  color: var(--faint);
  margin-top: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.range-row {
  margin: 20px 0;
}
.range-row label {
  display: flex;
  justify-content: space-between;
  color: var(--text);
  font-size: 11px;
}
.range-row output {
  font: 400 9px var(--mono);
  color: var(--muted);
}
input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}
.data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.data-btn {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 7px;
  color: var(--muted);
  font-size: 10px;
  text-align: left;
}
.data-btn:hover {
  border-color: var(--line-strong);
  color: var(--text);
}
.primary-data {
  width: 100%;
  display: flex;
  justify-content: space-between;
  background: rgba(214, 243, 106, 0.09);
  border-color: rgba(214, 243, 106, 0.38);
  color: var(--accent);
  margin-bottom: 7px;
}
.danger {
  color: #cf7974;
}
.shortcuts > div {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 10px;
}
.shortcuts kbd {
  font: 500 9px var(--mono);
  min-width: 42px;
  text-align: center;
  padding: 5px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.app-version {
  font-size: 9px;
  color: var(--faint);
  padding-top: 22px;
}
/* history */
.history-day {
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}
.history-day:first-child {
  padding-top: 16px;
}
.history-date {
  font-size: 15px;
}
.history-total {
  font: 500 10px var(--mono);
  color: var(--accent);
  margin: 5px 0 16px;
}
.history-entry {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.history-main {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.history-time {
  font: 400 9px var(--mono);
  color: var(--muted);
  width: 70px;
}
.history-task {
  font-size: 11px;
}
.history-duration {
  margin-left: auto;
  font: 400 9px var(--mono);
  color: var(--muted);
}
.history-objective {
  font-size: 10px;
  color: var(--faint);
  margin: 5px 0 0 80px;
  line-height: 1.5;
}
.history-empty {
  padding: 50px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
/* modal/toast */
.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
}
.modal.open {
  visibility: visible;
}
.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  opacity: 0;
  transition: 0.2s;
}
.modal.open .modal-scrim {
  opacity: 1;
}
.modal-card {
  position: relative;
  width: min(460px, 100%);
  background: #111519;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 31px;
  transform: translateY(10px);
  opacity: 0;
  transition: 0.25s;
}
.modal.open .modal-card {
  transform: none;
  opacity: 1;
}
.modal-mark {
  width: 30px;
  height: 30px;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 14px;
  margin-bottom: 24px;
}
.modal-card h2 {
  font-size: 30px;
  letter-spacing: -0.05em;
  font-weight: 500;
  margin: 7px 0 3px;
}
.completion-task {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 22px;
}
.completion-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  margin-bottom: 20px;
}
.completion-metrics div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.completion-metrics div + div {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.completion-metrics span {
  font-size: 9px;
  color: var(--muted);
}
.completion-metrics strong {
  font: 500 16px var(--mono);
}
.modal-card > label {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-bottom: 7px;
}
.modal-card textarea {
  width: 100%;
  height: 110px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  padding: 12px;
  font-size: 11px;
  line-height: 1.5;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 16px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  z-index: 50;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  background: #e9ede7;
  color: #0b0e0b;
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700;
  transition: 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
body[data-theme="ember"] {
  --accent: #ef9a70;
  --accent-ink: #1b100a;
}
body[data-theme="forest"] {
  --accent: #9bd59c;
  --accent-ink: #09110a;
}
body[data-theme="mono"] {
  --accent: #f0f0eb;
  --accent-ink: #101111;
}
body[data-theme="aurora"] {
  --accent: #9fd9e8;
  --accent-ink: #071013;
}
@media (max-width: 900px) {
  .workspace {
    grid-template-columns: 1fr;
    gap: 35px;
    width: min(700px, 92vw);
  }
  .hero {
    min-height: auto;
  }
  .side-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .setup-panel,
  .tasks-panel {
    min-width: 0;
  }
}
@media (max-width: 620px) {
  .topbar {
    height: 72px;
    padding: 0 5vw;
  }
  .clock-block {
    display: none;
  }
  .workspace {
    padding-top: 28px;
  }
  .hero h1 {
    font-size: 25px;
  }
  .timer-wrap {
    width: min(340px, 82vw);
  }
  .timer {
    font-size: 62px;
  }
  .timer-controls {
    width: 100%;
    justify-content: center;
  }
  .btn {
    padding: 0 17px;
  }
  .side-column {
    display: flex;
  }
  .panel {
    padding: 18px;
  }
  .drawer-panel {
    width: 100%;
  }
  .drawer-header {
    height: 78px;
    padding: 0 20px;
  }
  .drawer-scroll {
    height: calc(100% - 78px);
    padding: 4px 20px 35px;
  }
  .data-grid {
    grid-template-columns: 1fr;
  }
  .modal-card {
    padding: 24px;
  }
  .today-line {
    flex-wrap: wrap;
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* =========================================================
   LANDING PAGE / SEARCH INTENT
   ========================================================= */
html {
  background: #080b0c;
  scroll-behavior: smooth;
}
html.boot-clock #homePage,
html.route-clock #homePage {
  display: none !important;
}
html.boot-home #clockPage,
html.route-home #clockPage {
  display: none !important;
}
html.boot-clock #clockPage,
html.route-clock #clockPage {
  display: block;
}

.home-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #080b0c;
  color: #e7ebe4;
  font-family: var(--sans);
  isolation: isolate;
}
.home-page:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(
      circle at 75% 32%,
      rgba(178, 221, 108, 0.075),
      transparent 26%
    ),
    radial-gradient(
      circle at 20% 70%,
      rgba(80, 132, 116, 0.09),
      transparent 28%
    ),
    #080b0c;
}
.home-page:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.home-nav {
  height: 78px;
  width: min(1240px, 90vw);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  position: relative;
  z-index: 3;
}
.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  color: #edf1ea;
  text-decoration: none;
  font: 600 11px var(--mono);
  letter-spacing: 0.13em;
  line-height: 1;
  box-shadow: none;
}
.home-brand .brand-mark {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(222, 239, 202, 0.8);
  display: block;
  position: relative;
  transform: rotate(45deg);
}
.home-brand .brand-mark:after {
  content: "";
  position: absolute;
  inset: 3px;
  background: #d6f36a;
}
.home-nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 30px;
}
.home-nav-links a {
  color: #858c88;
  text-decoration: none;
  font-size: 11px;
  transition: color 0.2s;
}
.home-nav-links a:hover {
  color: #e7ebe4;
}
.home-nav-cta {
  height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.025);
  color: #e7ebe4;
  border-radius: 6px;
  font: 600 10px var(--mono);
  cursor: pointer;
  transition: 0.22s;
}
.home-nav-cta:hover {
  border-color: rgba(214, 243, 106, 0.55);
  color: #d6f36a;
  transform: translateY(-1px);
}
.home-hero {
  width: min(1240px, 90vw);
  min-height: 690px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  position: relative;
}
.home-gridline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.045);
  z-index: -1;
}
.hero-gridline-left {
  left: 42%;
}
.hero-gridline-right {
  right: 7%;
}
.home-hero-copy {
  padding: 75px 7vw 85px 0;
  position: relative;
  z-index: 2;
}
.home-kicker {
  font: 500 9px var(--mono);
  letter-spacing: 0.15em;
  color: #8b938d;
}
.kicker-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d6f36a;
  margin-right: 8px;
  box-shadow: 0 0 18px rgba(214, 243, 106, 0.65);
}
.home-hero h1 {
  font-size: clamp(48px, 6.2vw, 86px);
  line-height: 0.94;
  letter-spacing: -0.075em;
  font-weight: 450;
  max-width: 750px;
  margin: 24px 0 28px;
}
.home-hero h1 em,
.home-section-intro em {
  font-style: normal;
  color: #d6f36a;
}
.home-lede {
  max-width: 570px;
  color: #8e9690;
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
}
.home-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 35px;
}
.home-start {
  height: 48px;
  border: 1px solid #d6f36a;
  background: #d6f36a;
  color: #0a0d0a;
  padding: 0 15px 0 18px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 25px;
  font: 700 10px var(--mono);
  cursor: pointer;
  transition: 0.25s;
  box-shadow: 0 0 0 rgba(214, 243, 106, 0);
}
.home-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(214, 243, 106, 0.12);
}
.home-start-arrow {
  font-size: 17px;
  font-weight: 400;
}
.home-note {
  font: 400 9px var(--mono);
  color: #656d68;
  max-width: 200px;
  line-height: 1.5;
}
.home-visual {
  height: 560px;
  position: relative;
  display: grid;
  place-items: center;
}
.visual-caption {
  position: absolute;
  top: 42px;
  left: 8%;
  right: 3%;
  display: flex;
  justify-content: space-between;
  font: 500 9px var(--mono);
  color: #626a65;
  letter-spacing: 0.1em;
}
.visual-clock {
  width: min(460px, 42vw);
  aspect-ratio: 1;
  border: 1px solid rgba(214, 243, 106, 0.18);
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  background: radial-gradient(
    circle at center,
    rgba(214, 243, 106, 0.045),
    transparent 47%
  );
  animation: floatClock 7s ease-in-out infinite;
}
.visual-clock:before,
.visual-clock:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  inset: -1px;
  border: 1px solid rgba(255, 255, 255, 0.035);
}
.visual-clock:after {
  inset: 15%;
  border-color: rgba(214, 243, 106, 0.09);
}
.visual-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
}
.visual-ring-outer {
  inset: -34px;
  border-top-color: rgba(214, 243, 106, 0.48);
  border-right-color: rgba(214, 243, 106, 0.08);
  animation: spinClock 12s linear infinite;
}
.visual-ring-mid {
  inset: -82px;
  border-bottom-color: rgba(111, 173, 151, 0.35);
  border-left-color: rgba(111, 173, 151, 0.07);
  animation: spinClockReverse 18s linear infinite;
}
.visual-ring-inner {
  inset: 21%;
  border-left-color: rgba(214, 243, 106, 0.2);
  border-bottom-color: rgba(214, 243, 106, 0.05);
  animation: spinClock 9s linear infinite;
}
.visual-time {
  font: 400 clamp(54px, 7vw, 92px) var(--mono);
  letter-spacing: -0.09em;
  color: #edf2e9;
  position: relative;
  z-index: 2;
}
.visual-time span {
  color: #65716a;
}
.visual-label {
  position: absolute;
  bottom: 31%;
  font: 500 8px var(--mono);
  letter-spacing: 0.19em;
  color: #68716b;
}
.visual-sweep {
  position: absolute;
  width: 50%;
  height: 1px;
  right: 0;
  top: 50%;
  background: linear-gradient(90deg, transparent, rgba(214, 243, 106, 0.6));
  transform-origin: left;
  animation: sweep 3.2s ease-in-out infinite;
}
.visual-meta {
  position: absolute;
  bottom: 45px;
  left: 8%;
  right: 3%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font: 500 8px var(--mono);
  color: #4f5852;
  letter-spacing: 0.08em;
}
.visual-meta span:first-child {
  color: #8a958c;
}
.home-strip {
  width: min(1240px, 90vw);
  margin: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.home-strip > div {
  padding: 34px 34px 37px 0;
}
.home-strip > div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  padding-left: 34px;
}
.strip-num {
  font: 500 9px var(--mono);
  color: #d6f36a;
  display: block;
  margin-bottom: 24px;
}
.home-strip strong {
  font-size: 14px;
  font-weight: 500;
}
.home-strip p {
  font-size: 11px;
  color: #6f7872;
  line-height: 1.65;
  max-width: 280px;
  margin: 9px 0 0;
}
.home-features {
  width: min(1240px, 90vw);
  margin: 0 auto;
  padding: 150px 0;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 80px;
}
.home-section-intro h2 {
  font-size: clamp(38px, 4.7vw, 65px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  font-weight: 450;
  margin: 19px 0;
}
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.feature-list article {
  padding: 30px 35px 36px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.feature-list article:nth-child(even) {
  padding-left: 35px;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}
.feature-list span {
  font: 500 9px var(--mono);
  color: #59615c;
}
.feature-list h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 28px 0 9px;
}
.feature-list p {
  font-size: 11px;
  color: #747d77;
  line-height: 1.7;
  max-width: 280px;
  margin: 0;
}
.home-faq {
  width: min(1240px, 90vw);
  margin: 0 auto;
  padding: 0 0 150px;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 80px;
}
.faq-list {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.faq-list details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0;
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 23px 0;
  font-size: 13px;
  color: #d7ddd5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary:after {
  content: "+";
  font: 400 17px var(--mono);
  color: #68716b;
  transition: 0.2s;
}
.faq-list details[open] summary:after {
  content: "−";
  color: #d6f36a;
}
.faq-list p {
  font-size: 11px;
  color: #747d77;
  line-height: 1.7;
  max-width: 620px;
  margin: -5px 0 22px;
  padding-right: 40px;
}
.home-footer {
  width: min(1240px, 90vw);
  margin: auto;
  padding: 25px 0 35px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 20px;
  font: 500 9px var(--mono);
  color: #58615b;
}
.home-footer > div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a9b0aa;
  letter-spacing: 0.12em;
}
.home-footer .brand-mark {
  width: 10px;
  height: 10px;
  border: 1px solid #707970;
  display: block;
  transform: rotate(45deg);
}
.home-footer button {
  border: 0;
  background: none;
  color: #8d968f;
  font: 500 9px var(--mono);
  cursor: pointer;
}
.home-footer button:hover {
  color: #d6f36a;
}

/* Cinematic loader */
.site-loader {
  position: fixed;
  inset: 0;
  background: #070a0b;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition:
    opacity 0.55s ease,
    visibility 0.55s ease;
}
.site-loader.gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.site-loader:before {
  content: "";
  position: absolute;
  width: 42vw;
  height: 42vw;
  border: 1px solid rgba(214, 243, 106, 0.05);
  border-radius: 50%;
  animation: loaderPulse 2.4s ease-in-out infinite;
}
.loader-field {
  width: 230px;
  height: 230px;
  position: relative;
  display: grid;
  place-items: center;
}
.loader-orbit {
  position: absolute;
  border-radius: 50%;
  inset: 15px;
  border: 1px solid rgba(214, 243, 106, 0.12);
}
.orbit-a {
  border-top-color: #d6f36a;
  animation: spinClock 1.7s linear infinite;
}
.orbit-b {
  inset: 40px;
  border-right-color: #7eb59e;
  border-bottom-color: rgba(126, 181, 158, 0.12);
  animation: spinClockReverse 2.7s linear infinite;
}
.loader-core {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d6f36a;
  box-shadow:
    0 0 30px rgba(214, 243, 106, 0.65),
    0 0 80px rgba(214, 243, 106, 0.16);
  animation: corePulse 1.1s ease-in-out infinite;
}
.loader-core span {
  position: absolute;
  inset: -45px;
  border: 1px solid rgba(214, 243, 106, 0.08);
  border-radius: 50%;
  animation: corePulse 1.1s ease-in-out infinite reverse;
}
.loader-word {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font: 600 9px var(--mono);
  letter-spacing: 0.32em;
  color: #cfd7cf;
}
.loader-progress {
  position: absolute;
  bottom: 46px;
  left: 50%;
  width: 170px;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(-50%);
  overflow: hidden;
}
.loader-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: #d6f36a;
  animation: loadBar 1.05s cubic-bezier(0.65, 0.02, 0.25, 1) forwards;
}
.site-loader.loader-exit .loader-field {
  animation: loaderExit 0.5s cubic-bezier(0.7, 0, 0.2, 1) forwards;
}
.site-loader.loader-exit .loader-progress {
  opacity: 0;
}

@keyframes spinClock {
  to {
    transform: rotate(360deg);
  }
}
@keyframes spinClockReverse {
  to {
    transform: rotate(-360deg);
  }
}
@keyframes floatClock {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}
@keyframes sweep {
  0%,
  100% {
    transform: rotate(-22deg);
    opacity: 0.15;
  }
  50% {
    transform: rotate(18deg);
    opacity: 0.9;
  }
}
@keyframes loaderPulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}
@keyframes corePulse {
  0%,
  100% {
    transform: scale(0.75);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}
@keyframes loadBar {
  to {
    width: 100%;
  }
}
@keyframes loaderExit {
  to {
    transform: scale(1.22);
    opacity: 0;
    filter: blur(8px);
  }
}

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 80px 0 55px;
  }
  .home-hero-copy {
    padding: 0;
  }
  .home-visual {
    height: 500px;
    margin-top: 10px;
  }
  .visual-clock {
    width: min(400px, 65vw);
  }
  .home-features,
  .home-faq {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .home-strip > div {
    padding-right: 20px;
  }
  .home-strip > div + div {
    padding-left: 20px;
  }
  .home-footer {
    grid-template-columns: 1fr auto;
  }
}
@media (max-width: 620px) {
  .home-nav {
    height: 68px;
  }
  .home-nav-links {
    display: none;
  }
  .home-nav-cta {
    height: 34px;
  }
  .home-hero {
    width: 90vw;
    padding-top: 70px;
  }
  .home-hero h1 {
    font-size: 47px;
  }
  .home-lede {
    font-size: 13px;
  }
  .home-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .home-visual {
    height: 400px;
  }
  .visual-clock {
    width: 65vw;
  }
  .visual-meta {
    display: none;
  }
  .visual-caption {
    top: 25px;
  }
  .home-strip {
    grid-template-columns: 1fr;
  }
  .home-strip > div,
  .home-strip > div + div {
    padding: 25px 0;
    border-left: 0;
  }
  .home-strip > div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }
  .home-features,
  .home-faq {
    padding: 100px 0;
  }
  .feature-list {
    grid-template-columns: 1fr;
  }
  .feature-list article:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }
  .home-footer {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .home-footer > span {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-loader,
  .visual-clock,
  .visual-ring,
  .visual-sweep,
  .loader-orbit,
  .loader-core,
  .loader-core span,
  .site-loader:before,
  .loader-progress span {
    animation: none !important;
  }
  .site-loader {
    transition: none;
  }
  .loader-progress span {
    width: 100%;
  }
}

/* custom destructive confirmation */
.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
}
.confirm-modal.open {
  visibility: visible;
}
.confirm-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  opacity: 0;
  transition: opacity 0.2s;
}
.confirm-modal.open .confirm-scrim {
  opacity: 1;
}
.confirm-card {
  position: relative;
  width: min(430px, 100%);
  background: var(--surface-strong);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.42);
  transform: translateY(10px) scale(0.985);
  opacity: 0;
  transition: 0.22s;
}
.confirm-modal.open .confirm-card {
  transform: none;
  opacity: 1;
}
.confirm-mark {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(207, 121, 116, 0.65);
  color: #cf7974;
  display: grid;
  place-items: center;
  font: 600 12px var(--mono);
  margin-bottom: 22px;
}
.confirm-card h2 {
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.045em;
  margin: 7px 0 8px;
}
.confirm-card p {
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  max-width: 360px;
}
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 23px;
}
.btn-danger {
  height: 45px;
  border: 1px solid rgba(207, 121, 116, 0.55);
  border-radius: 9px;
  padding: 0 20px;
  background: rgba(207, 121, 116, 0.12);
  color: #e0aaa6;
  transition: 0.2s;
}
.btn-danger:hover {
  background: rgba(207, 121, 116, 0.19);
  border-color: rgba(207, 121, 116, 0.8);
  transform: translateY(-1px);
}
@media (max-width: 620px) {
  .confirm-card {
    padding: 24px;
  }
  .confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .confirm-actions .btn,
  .confirm-actions .btn-danger {
    width: 100%;
  }
}

/* custom select controls */
.custom-select {
  position: relative;
  width: 100%;
}
.custom-select-native {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
}
.custom-select-trigger {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
  color: var(--text);
  padding: 0 34px 0 12px;
  text-align: left;
  position: relative;
  transition:
    border-color 0.18s,
    background 0.18s;
}
.custom-select-trigger:after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.18s;
}
.custom-select.open .custom-select-trigger {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
}
.custom-select.open .custom-select-trigger:after {
  transform: translateY(-30%) rotate(225deg);
  border-color: var(--accent);
}
.custom-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 45;
  max-height: 280px;
  overflow: auto;
  padding: 5px;
  background: var(--surface-strong);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.38);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px) scale(0.99);
  transform-origin: top;
  transition: 0.16s;
}
.custom-select.open .custom-select-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.custom-select-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 9px 10px;
  border-radius: 6px;
  text-align: left;
  font-size: 10px;
  cursor: pointer;
}
.custom-select-option:hover,
.custom-select-option:focus-visible {
  background: rgba(255, 255, 255, 0.065);
  color: var(--text);
  outline: none;
}
.custom-select-option.selected {
  color: var(--accent);
  background: rgba(214, 243, 106, 0.065);
}
.custom-select-option.selected:after {
  content: "✓";
  font: 500 10px var(--mono);
  flex: none;
}
.custom-select-menu::-webkit-scrollbar {
  width: 5px;
}
.custom-select-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 10px;
}
.setting-row .custom-select {
  width: 190px;
}
.field .custom-select {
  width: 100%;
}
@media (max-width: 620px) {
  .setting-row .custom-select {
    width: 190px;
    max-width: 55vw;
  }
  .custom-select-menu {
    max-height: 260px;
  }
}
