:root {
  --thread-blue: #1c84fa;
  --start-green: #1db384;
  --replan-amber: #f29c0a;
  --carryover-violet: #8f6edb;
  --ink: #182130;
  --muted: #657184;
  --line: #dbe3ee;
  --panel: #ffffff;
  --soft: #fafafa;
  --wash: #eef6ff;
  color-scheme: light;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(28, 132, 250, 0.08), rgba(250, 250, 250, 0) 38rem),
    var(--soft);
}

a {
  color: inherit;
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* ── Hero ──────────────────────────────────────────────────────── */

.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(32px, 7vw, 96px);
  padding: 64px 0 48px;
}

.hero__content {
  max-width: 720px;
}

.app-icon {
  display: block;
  width: 92px;
  height: 92px;
  margin-bottom: 28px;
  border-radius: 22px;
  box-shadow: 0 22px 48px rgba(28, 132, 250, 0.18), 0 4px 14px rgba(24, 33, 48, 0.1);
}

.label,
.section-label {
  margin: 0 0 14px;
  color: var(--thread-blue);
  font-size: 0.75rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 8vw, 5.9rem);
  line-height: 0.98;
  font-weight: 820;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin-bottom: 32px;
  color: #3b4657;
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  line-height: 1.9;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 720;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:focus-visible {
  outline: 3px solid rgba(28, 132, 250, 0.25);
  outline-offset: 3px;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  color: white;
  background: var(--thread-blue);
  box-shadow: 0 16px 32px rgba(28, 132, 250, 0.24);
}

.button--secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
}

.requirements {
  color: var(--muted);
  font-size: 0.94rem;
}

/* ── Thread Panel ────────────────────────────────────────────────── */

.thread-panel {
  position: relative;
  min-height: 460px;
  padding: 44px 28px 44px 54px;
  border: 1px solid rgba(28, 132, 250, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(238, 246, 255, 0.76)),
    var(--panel);
  box-shadow: 0 24px 70px rgba(24, 33, 48, 0.12);
}

.thread-line {
  position: absolute;
  top: 58px;
  bottom: 58px;
  left: 30px;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--start-green), var(--thread-blue), var(--carryover-violet));
}

.thread-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 78px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.thread-item::before {
  content: "";
  position: absolute;
  left: -33px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--panel);
  border-radius: 999px;
  background: var(--thread-blue);
  box-shadow: 0 0 0 1px rgba(28, 132, 250, 0.16);
}

.thread-item--active::before {
  background: var(--start-green);
}

.thread-item--done {
  opacity: 0.6;
}

.thread-item--done::before {
  background: var(--start-green);
}

.thread-item--carryover {
  border-color: rgba(143, 110, 219, 0.28);
  background: rgba(143, 110, 219, 0.04);
}

.thread-item--carryover::before {
  background: var(--carryover-violet);
}

.thread-item:last-child {
  margin-bottom: 0;
}

.time {
  color: var(--thread-blue);
  font-variant-numeric: tabular-nums;
  font-weight: 760;
  font-size: 0.88rem;
}

.thread-item__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.title {
  font-weight: 720;
  font-size: 0.95rem;
}

.thread-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.thread-meta--live {
  color: var(--start-green);
  font-weight: 700;
}

/* ── Sections ────────────────────────────────────────────────────── */

.section {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 72px);
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  max-width: 420px;
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.section-body {
  margin-top: 0;
  color: #3b4657;
  line-height: 1.85;
}

/* ── Vision ──────────────────────────────────────────────────────── */

.section--vision {
  grid-template-columns: minmax(220px, 0.52fr) minmax(0, 1fr);
  align-items: start;
}

.vision-header h2 {
  max-width: 360px;
  margin-bottom: 0;
}

.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.principle {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.principle__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 9px;
}

.principle__icon--green  { background: rgba(29, 179, 132, 0.12); color: var(--start-green); }
.principle__icon--blue   { background: rgba(28, 132, 250, 0.12); color: var(--thread-blue); }
.principle__icon--amber  { background: rgba(242, 156, 10, 0.12); color: var(--replan-amber); }
.principle__icon--violet { background: rgba(143, 110, 219, 0.12); color: var(--carryover-violet); }

.principle h3 {
  margin-bottom: 8px;
  font-size: 0.97rem;
  line-height: 1.4;
}

.principle p {
  margin-bottom: 0;
  color: #3f4a59;
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ── Cycle ────────────────────────────────────────────────────────── */

.section--cycle {
  align-items: start;
}

.cycle-steps {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.cycle-step {
  flex: 1;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.cycle-step__num {
  display: block;
  margin-bottom: 10px;
  color: var(--thread-blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.cycle-step h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.cycle-step p {
  margin-bottom: 0;
  color: #3f4a59;
  font-size: 0.9rem;
  line-height: 1.75;
}

.cycle-arrow {
  flex-shrink: 0;
  padding-top: 28px;
  color: var(--muted);
  font-size: 1.2rem;
}

/* ── Install ─────────────────────────────────────────────────────── */

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

.step {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.step h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.step p {
  margin-bottom: 0;
  color: #3f4a59;
  line-height: 1.75;
}

/* ── Trust ───────────────────────────────────────────────────────── */

.section--compact {
  padding-bottom: 100px;
}

.trust-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.trust-body p {
  margin-bottom: 0;
  color: #3f4a59;
  line-height: 1.85;
}

/* ── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 900px) {
  main {
    width: min(100% - 28px, 680px);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 40px;
  }

  .thread-panel {
    min-height: 0;
  }

  .section,
  .section--vision,
  .section--cycle {
    grid-template-columns: 1fr;
    padding: 56px 0;
  }

  .section h2 {
    max-width: none;
    margin-bottom: 24px;
  }

  .vision-header h2 {
    max-width: none;
    margin-bottom: 24px;
  }

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

  .cycle-steps {
    flex-direction: column;
    gap: 12px;
  }

  .cycle-arrow {
    padding-top: 0;
    transform: rotate(90deg);
    align-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}
