:root{
    --primary:#4F39F6;
    --primary-hover:#3526B8;
    --primary-light:#F3F1FF;

    --ink:#1F1F26;
    --text-dark:#45454F;
    --slate-500:#73737F;
    --slate-400:#9A9AA6;
    --slate-200:#E5E5EA;
    --slate-100:#F0F0F3;
    --slate-50:#F7F7F9;

    --done:#7FA895;
    --in_progress:#7187A8;
    --review:#8175B5;
    --planned:#988AC4;
    --blocked:#B77D7D;
    --todo:#A5A5AE;
  }

  *{
    box-sizing:border-box;
  }

  body{
    margin:0;
    font-family:'Inter',system-ui,-apple-system,sans-serif;
    background:var(--slate-50);
    color:var(--ink);
    -webkit-font-smoothing:antialiased;
  }

  .page{
    min-height:100vh;
    display:flex;
    flex-direction:column;
  }

  /* ============================================================
     HEADER
  ============================================================ */

  .site-header{
    height:64px;
    background:rgba(255,255,255,.94);
    border-bottom:1px solid var(--slate-200);
    display:flex;
    align-items:center;
    position:sticky;
    top:0;
    z-index:20;
    backdrop-filter:blur(10px);
  }

  .header-inner{
    width:100%;
    max-width:1180px;
    margin:0 auto;
    padding:0 24px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
  }

  .brand{
    display:flex;
    align-items:center;
    gap:9px;
    text-decoration:none;
    color:var(--ink);
  }

  .brand-mark{
    width:30px;
    height:30px;
    border-radius:9px;
    background:var(--primary);
    display:flex;
    align-items:center;
    justify-content:center;
    color:white;
    font-size:14px;
    font-weight:800;
    letter-spacing:-.04em;
  }

  .brand-name{
    font-size:16px;
    font-weight:800;
    letter-spacing:-.02em;
  }

  .header-actions{
    display:flex;
    align-items:center;
    gap:9px;
  }

  .header-link{
    color:var(--text-dark);
    text-decoration:none;
    font-size:12.5px;
    font-weight:600;
    padding:8px 12px;
    border-radius:9px;
    transition:.15s;
  }

  .header-link:hover{
    background:var(--slate-100);
  }

  .header-cta{
    background:var(--primary);
    color:white;
    text-decoration:none;
    padding:8px 14px;
    border-radius:9px;
    font-size:12.5px;
    font-weight:700;
    transition:.15s;
  }

  .header-cta:hover{
    background:var(--primary-hover);
  }

  /* ============================================================
     MAIN
  ============================================================ */

  .wrap{
    width:100%;
    max-width:920px;
    margin:0 auto;
    padding:40px 20px 46px;
    flex:1;
  }

  /* ---------- intro ---------- */

  .head{
    margin-bottom:22px;
  }

  .head .tag{
    display:inline-flex;
    align-items:center;
    gap:6px;
    font-size:12px;
    font-weight:600;
    color:var(--primary);
    background:#F3F1FF;
    border:1px solid #DDD8FF;
    padding:5px 10px;
    border-radius:999px;
    margin-bottom:14px;
  }

  .head h1{
    font-size:clamp(24px,4vw,32px);
    font-weight:800;
    line-height:1.15;
    margin:0 0 8px;
    letter-spacing:-0.025em;
    color:var(--ink);
  }

  .head p{
    font-size:15px;
    color:var(--slate-500);
    margin:0;
    max-width:56ch;
    line-height:1.55;
  }

  /* ---------- preset switcher ---------- */

  .preset-bar{
    display:flex;
    flex-wrap:wrap;
    gap:9px;
    margin:20px 0 22px;
  }

  .preset-btn{
    display:flex;
    align-items:center;
    gap:8px;
    border:1px solid var(--slate-200);
    background:#fff;
    padding:10px 15px;
    border-radius:12px;
    font-size:13px;
    font-weight:700;
    color:#5F5F69;
    cursor:pointer;
    font-family:inherit;
    transition:.15s;
  }

  .preset-btn:hover{
    border-color:#C9C3F4;
    background:#FBFAFD;
  }

  .preset-btn.active{
    border-color:#B9B1DD;
    background:#F3F1FF;
    color:#5D4FB5;
  }

  .preset-btn .emoji{
    font-size:15px;
  }

  /* ---------- panel ---------- */

  .panel{
    background:#fff;
    border:1px solid var(--slate-200);
    border-radius:18px;
    padding:22px;
    box-shadow:0 1px 2px rgba(31,31,38,.04);
  }

  .gantt-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:14px;
  }

  .gantt-head .proj-name{
    font-size:15px;
    font-weight:700;
  }

  .gantt-head .proj-meta{
    font-size:12px;
    color:var(--slate-500);
    margin-top:3px;
  }

  .gantt-svg-wrap{
    border:1px solid var(--slate-200);
    border-radius:14px;
    overflow:hidden;
    background:#fff;
  }

  .legend{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    margin-top:14px;
    font-size:11.5px;
    color:var(--slate-500);
  }

  .legend span{
    display:inline-flex;
    align-items:center;
    gap:6px;
  }

  .legend .sw{
    width:11px;
    height:11px;
    border-radius:3px;
  }

  /* ---------- CTA ---------- */

  .cta-band{
    margin-top:20px;
    padding:18px 20px;
    border-radius:14px;
    background:linear-gradient(
      135deg,
      #6252BE 0%,
      #7565F7 100%
    );
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    flex-wrap:wrap;
  }

  .cta-title{
    font-size:14.5px;
    font-weight:700;
    color:#fff;
  }

  .cta-sub{
    font-size:12.5px;
    color:#E7E4F6;
    margin-top:2px;
  }

  .btn-primary{
    border:none;
    border-radius:11px;
    padding:10px 18px;
    font-size:13.5px;
    font-weight:700;
    cursor:pointer;
    transition:.15s;
    font-family:inherit;
    text-decoration:none;
    display:inline-block;
    background:#fff;
    color:#5D4FB5;
  }

  .btn-primary:hover{
    background:#F4F3F7;
  }

  /* ---------- db simulation ---------- */

  .db-toggle{
    margin-top:22px;
    display:flex;
    align-items:center;
    gap:8px;
    font-size:12.5px;
    font-weight:600;
    color:var(--slate-500);
    cursor:pointer;
    user-select:none;
  }

  .db-toggle .dot{
    width:7px;
    height:7px;
    border-radius:50%;
    background:#7FA895;
    box-shadow:0 0 0 3px rgba(127,168,149,.12);
  }

  .db-toggle svg.chevron{
    transition:transform .15s;
  }

  .db-toggle.open svg.chevron{
    transform:rotate(90deg);
  }

  .db-panel{
    display:none;
    margin-top:10px;
    background:var(--ink);
    border-radius:14px;
    overflow:hidden;
  }

  .db-panel.open{
    display:block;
  }

  .db-panel-bar{
    display:flex;
    gap:6px;
    padding:10px 14px;
    border-bottom:1px solid #30303A;
  }

  .db-panel-bar span{
    width:9px;
    height:9px;
    border-radius:50%;
    background:#464650;
  }

  .db-panel pre{
    margin:0;
    padding:16px;
    font-family:'JetBrains Mono',monospace;
    font-size:11.5px;
    color:#BDB6E8;
    overflow-x:auto;
    line-height:1.6;
    max-height:280px;
    overflow-y:auto;
  }

  .db-panel .caption{
    padding:8px 14px 14px;
    font-size:11px;
    color:#858590;
    border-top:1px solid #30303A;
  }

  /* ============================================================
     FOOTER
  ============================================================ */

  .site-footer{
    border-top:1px solid var(--slate-200);
    background:#fff;
  }

  .footer-inner{
    max-width:1180px;
    margin:0 auto;
    padding:18px 24px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    flex-wrap:wrap;
  }

  .footer-brand{
    font-size:12px;
    font-weight:700;
    color:var(--text-dark);
  }

  .footer-copy{
    font-size:11px;
    color:var(--slate-400);
  }

  .footer-link{
    font-size:11.5px;
    font-weight:600;
    color:var(--slate-500);
    text-decoration:none;
  }

  .footer-link:hover{
    color:var(--primary);
  }

  @media (max-width:640px){

    .site-header{
      height:58px;
    }

    .header-inner{
      padding:0 16px;
    }

    .header-link{
      display:none;
    }

    .header-cta{
      padding:7px 11px;
      font-size:11.5px;
    }

    .brand-name{
      font-size:15px;
    }

    .wrap{
      padding:30px 16px 38px;
    }

    .panel{
      padding:16px;
    }

    .preset-bar{
      gap:7px;
    }

    .preset-btn{
      padding:9px 11px;
      font-size:12px;
    }

    .footer-inner{
      padding:16px;
    }
  }
