:root {
  --bg: #ebe7e3;
  --paper: rgba(255, 255, 255, 0.78);
  --paper-strong: rgba(255, 255, 255, 0.9);
  --ink: #17181d;
  --muted: #666d78;
  --line: rgba(23, 24, 29, 0.08);
  --gold: #f0b400;
  --gold-deep: #d98b00;
  --red: #e53935;
  --red-soft: rgba(229, 57, 53, 0.14);
  --black-card: #101114;
  --success: #2f855a;
  --yellow: #d4a017;
  --green: #2f855a;
  --shadow: 0 24px 80px rgba(17, 18, 22, 0.12);
  --shadow-soft: 0 16px 40px rgba(17, 18, 22, 0.08);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: "Avenir Next", "Helvetica Neue", "Trebuchet MS", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at top left, rgba(229, 57, 53, 0.1), transparent 18%),
    linear-gradient(180deg, #f2efeb 0%, #e8e2dc 100%);
  animation: pageFade 420ms ease-out;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 45%);
  content: "";
  pointer-events: none;
}

.shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar,
.brand,
.topbar__actions,
.button-row,
.hero__chips,
.metric-row,
.section-tabs,
.mobile-tabbar,
.action-dock {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
  animation: riseIn 520ms ease-out;
}

.brand {
  align-items: center;
  gap: 16px;
}

.brand-button {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.brand__logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand__tag {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.brand h1,
.hero h2,
.hero-card h2,
.card h3 {
  margin: 0;
  font-family: "Avenir Next Condensed", "Arial Narrow", "Arial", sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.brand h1 {
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero,
.workspace,
.form-grid,
.requirements,
.timeline,
.comment-list {
  display: grid;
  gap: 20px;
}

.hero--mobile {
  gap: 18px;
}

.mobile-hero,
.login-stack {
  display: grid;
  gap: 18px;
}

.hero__panel,
.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  animation: riseIn 620ms ease-out;
}

.hero__panel {
  position: relative;
  overflow: hidden;
  padding: 36px;
  background:
    linear-gradient(140deg, rgba(18, 17, 16, 0.97), rgba(36, 31, 28, 0.96));
  color: #fff7f2;
}

.hero__panel::before {
  position: absolute;
  inset: auto -8% -35% auto;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(229, 57, 53, 0.12), transparent 68%);
  content: "";
  animation: pulseFloat 9s ease-in-out infinite;
}

.hero__panel::after {
  position: absolute;
  inset: -20% auto auto -8%;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(240, 180, 0, 0.1), transparent 72%);
  content: "";
  animation: pulseFloat 12s ease-in-out infinite reverse;
}

.hero__brandline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.hero__stamp {
  display: grid;
  gap: 4px;
}

.hero__stamp span {
  color: rgba(255, 247, 242, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
}

.hero__stamp strong {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.hero__journey {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.hero__journey-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  min-height: 118px;
  transform-origin: center;
  animation: cardDrift 7s ease-in-out infinite;
}

.hero__journey-card:nth-child(2) {
  animation-delay: 0.6s;
}

.hero__journey-card:nth-child(3) {
  animation-delay: 1.2s;
}

.hero__journey-step {
  color: rgba(255, 247, 242, 0.66);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
}

.hero__journey-card strong {
  font-size: 1.08rem;
  line-height: 1.12;
}

.hero__journey-card small {
  color: rgba(255, 247, 242, 0.72);
  font-size: 0.88rem;
  line-height: 1.35;
}

.hero__lead,
.hint,
.table-note,
.timeline__item p,
.hero-card__subtitle {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.hero__panel .eyebrow,
.hero__panel .hero__lead {
  position: relative;
  z-index: 1;
  color: rgba(255, 247, 242, 0.8);
}

.hero__panel h2 {
  position: relative;
  z-index: 1;
  max-width: 780px;
  font-size: clamp(2.5rem, 5.5vw, 4.4rem);
  line-height: 0.98;
}

.hero__panel--compact h2 {
  max-width: 560px;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
}

.hero__chips--mobile span {
  font-size: 0.84rem;
}

.mobile-preview {
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(23, 24, 29, 0.06);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(22, 20, 18, 0.96), rgba(40, 34, 30, 0.94));
  box-shadow: var(--shadow);
  color: #fff8f3;
  animation: riseIn 760ms ease-out;
}

.mobile-preview__header,
.mobile-preview__metrics {
  display: flex;
  gap: 10px;
}

.mobile-preview__header {
  align-items: center;
  margin-bottom: 16px;
  color: rgba(255, 248, 243, 0.76);
  font-size: 0.9rem;
}

.mobile-preview__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #e53935;
  box-shadow: 0 0 0 6px rgba(229, 57, 53, 0.16);
  animation: statusPulse 1.8s ease-in-out infinite;
}

.mobile-preview__status {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.mobile-preview__status p,
.mobile-preview__status small {
  margin: 0;
}

.mobile-preview__status p {
  color: rgba(255, 248, 243, 0.64);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
}

.mobile-preview__status strong {
  font-size: 1.45rem;
  line-height: 1.1;
}

.mobile-preview__status small {
  color: rgba(255, 248, 243, 0.72);
  font-size: 0.92rem;
}

.mobile-preview__metrics {
  flex-wrap: nowrap;
}

.mobile-preview__metrics article {
  flex: 1 1 0;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-preview__metrics span {
  display: block;
  color: rgba(255, 248, 243, 0.62);
  font-size: 0.76rem;
  margin-bottom: 8px;
}

.mobile-preview__metrics strong {
  font-size: 1rem;
}

.hero__chips span,
.status-pill,
.demo-code,
.label,
.dot {
  display: inline-flex;
  align-items: center;
}

.hero__chips span,
.status-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(23, 24, 29, 0.06);
  font-size: 0.9rem;
}

.hero__chips {
  position: relative;
  z-index: 1;
}

.hero__panel .hero__chips span {
  background: rgba(255, 255, 255, 0.08);
  color: #fff7f2;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-grid,
.workspace-grid,
.geo-grid,
.today-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card__header {
  margin-bottom: 16px;
}

.card__header h3,
.install-guide__panel h2 {
  font-size: clamp(1.22rem, 1.8vw, 1.65rem);
  line-height: 1.12;
}

.card--accent {
  border-color: rgba(229, 57, 53, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 244, 0.82));
}

.card--action {
  border-radius: 30px;
}

.card--guide {
  border-radius: 30px;
}

.card--accent .hint {
  margin: 4px 0 0;
}

.workspace-grid--priority {
  align-items: start;
}

.section-tabs {
  gap: 10px;
}

.tab-button {
  padding: 12px 16px;
  border: 1px solid rgba(23, 24, 29, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--muted);
  font-weight: 700;
}

.tab-button--active {
  background: linear-gradient(135deg, #1a1b20, #2a2d33);
  color: #fff7f2;
  box-shadow: var(--shadow-soft);
}

.action-dock {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}

.primary-button--large,
.secondary-button--large {
  min-height: 58px;
  border-radius: 22px;
  font-size: 1rem;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

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

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(23, 24, 29, 0.09);
  border-radius: 18px;
  background: var(--paper-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  line-height: 1.45;
}

textarea {
  resize: vertical;
}

.photo-preview {
  overflow: hidden;
  border: 1px solid rgba(23, 24, 29, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.6);
}

.photo-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.primary-button,
.secondary-button,
.ghost-button {
  padding: 13px 18px;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: transform 140ms ease, opacity 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.hero__download {
  min-height: 54px;
  padding-inline: 22px;
  font-size: 1rem;
  animation: glowPulse 2.8s ease-in-out infinite;
}

.primary-button {
  background: linear-gradient(135deg, #1a1b20, #2a2d33);
  color: #fff7f2;
  box-shadow: 0 18px 30px rgba(23, 24, 29, 0.18);
}

.secondary-button {
  background: linear-gradient(135deg, var(--red), #f24d43);
  color: #fff7f2;
}

.ghost-button {
  border: 1px solid rgba(23, 24, 29, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.ghost-button--light {
  background: rgba(255, 255, 255, 0.1);
  color: #fff7f2;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.demo-code {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(240, 180, 0, 0.16);
  border: 1px solid rgba(240, 180, 0, 0.2);
}

.guide-steps {
  display: grid;
  gap: 14px;
}

.guide-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 246, 242, 0.76));
  animation: riseIn 700ms ease-out;
}

.guide-step:nth-child(2) {
  animation-delay: 60ms;
}

.guide-step:nth-child(3) {
  animation-delay: 120ms;
}

.guide-step:nth-child(4) {
  animation-delay: 180ms;
}

.guide-step__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1a1b20, #2a2d33);
  color: #fff7f2;
  font-family: "Avenir Next Condensed", "Arial Narrow", "Arial", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
}

.guide-step strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
  line-height: 1.25;
}

.guide-step__meta {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  font-weight: 700;
}

.guide-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.install-guide__lead {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.45;
}

@keyframes pageFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -10px, 0) scale(1.04);
  }
}

@keyframes cardDrift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes statusPulse {
  0%,
  100% {
    box-shadow: 0 0 0 6px rgba(229, 57, 53, 0.16);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(229, 57, 53, 0.08);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.06);
  }
  50% {
    box-shadow: 0 16px 34px rgba(255, 255, 255, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.demo-code--strong {
  font-size: 1rem;
}

.hero-card {
  background:
    linear-gradient(135deg, rgba(17, 16, 15, 0.98), rgba(35, 29, 25, 0.95)),
    rgba(30, 24, 20, 0.96);
  color: #f8f4ea;
}

.hero-card .eyebrow,
.hero-card .hero-card__subtitle,
.hero-card .metric-card span {
  color: rgba(248, 244, 234, 0.72);
}

.hero-card__content {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.metric-card {
  flex: 1 1 180px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.2rem;
  line-height: 1.08;
}

.status-pill--not_started {
  background: rgba(255, 255, 255, 0.1);
}

.status-pill--in_progress {
  background: rgba(47, 133, 90, 0.22);
}

.status-pill--completed {
  background: rgba(15, 118, 110, 0.22);
}

.status-pill--admin {
  background: rgba(229, 57, 53, 0.22);
}

.label {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

th,
td {
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.25;
}

td {
  line-height: 1.45;
}

tbody tr {
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px rgba(23, 24, 29, 0.05);
}

tbody td:first-child {
  border-radius: 16px 0 0 16px;
}

tbody td:last-child {
  border-radius: 0 16px 16px 0;
}

.dot {
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 999px;
}

.dot--green {
  background: var(--green);
}

.dot--yellow {
  background: var(--yellow);
}

.dot--red {
  background: var(--red);
}

.dot--none {
  background: rgba(44, 34, 28, 0.22);
}

.timeline__item,
.comment-item {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 246, 242, 0.76));
}

.timeline__item strong,
.comment-item strong {
  line-height: 1.25;
}

.mobile-tabbar {
  position: sticky;
  bottom: 14px;
  z-index: 12;
  display: none;
  justify-content: space-between;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  background: rgba(26, 22, 19, 0.9);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 36px rgba(16, 17, 20, 0.22);
}

.mobile-tabbar .tab-button {
  flex: 1 1 0;
  justify-content: center;
  border: 0;
  background: transparent;
  color: rgba(255, 247, 242, 0.62);
  border-radius: 16px;
}

.mobile-tabbar .tab-button--active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff7f2;
}

.timeline__item small,
.comment-item small {
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 320px;
  padding: 14px 16px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  color: #fff;
  z-index: 20;
}

.toast--info {
  background: rgba(32, 26, 22, 0.94);
}

.toast--error {
  background: rgba(194, 59, 34, 0.96);
}

.install-guide {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.install-guide__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 17, 20, 0.55);
  backdrop-filter: blur(8px);
}

.install-guide__panel {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: min(100% - 24px, 460px);
  transform: translateX(-50%);
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(16, 17, 20, 0.28);
}

.install-guide__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 24, 29, 0.08);
  color: var(--ink);
  font-size: 1.4rem;
}

.install-guide__panel h2 {
  margin: 0 0 16px;
  font-size: 1.45rem;
}

.install-guide__steps {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--ink);
}

@media (max-width: 900px) {
  .auth-grid,
  .workspace-grid,
  .geo-grid,
  .today-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .hero-card__content {
    flex-direction: column;
  }

  .shell {
    width: min(100% - 20px, 1240px);
    padding-top: 16px;
    padding-bottom: 96px;
  }

  .hero__panel,
  .card {
    padding: 20px;
  }

  .topbar {
    align-items: flex-start;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 22px;
  }

  .topbar__actions {
    width: 100%;
  }

  .topbar__actions .ghost-button {
    flex: 1 1 0;
  }

  .brand {
    width: 100%;
    align-items: flex-start;
  }

  .brand__logo {
    width: 72px;
    height: 72px;
  }

  .hero__brandline {
    align-items: flex-start;
  }

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

  .hero__panel h2 {
    font-size: clamp(1.9rem, 9vw, 3rem);
  }

  .hero__panel {
    padding: 24px 20px;
    border-radius: 30px;
  }

  .mobile-preview {
    padding: 16px;
    border-radius: 28px;
  }

  .mobile-preview__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-tabs {
    display: none;
  }

  .mobile-tabbar {
    display: flex;
  }

  .action-dock {
    grid-template-columns: 1fr;
  }

  .metric-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-card {
    min-height: 110px;
  }

  table {
    min-width: 680px;
  }

  .login-stack {
    gap: 14px;
  }

  .card--action {
    padding: 18px;
  }

  .primary-button--large,
  .secondary-button--large {
    min-height: 56px;
  }
}
